From 755cbffeeed21dfee394812399ad33b4146dd468 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 diagnostics output Adjusts all tests accordingly. Fixes #21192 internal issue. Issue: https://gitee.com/openharmony/arkcompiler_ets_frontend/issues/ICPCXY Testing: ast, astchecker, parser Change-Id: I37049bb0cfdef72d5b6516fbcffb9eb8794c83d1 Co-authored-by: Peter Pronai Signed-off-by: Kaskov Mikhail Signed-off-by: Peter Pronai --- ets2panda/parser/ETSparser.cpp | 7 +- ets2panda/parser/ETSparser.h | 3 +- .../ets/AnnotationForTypeAliaDecl.ets | 21 +- .../ets/Const_Literal_As_TypeAnnotation_1.ets | 9 +- .../ets/Const_Literal_As_TypeAnnotation_2.ets | 9 +- .../ast/compiler/ets/DeclareCheckAssign.ets | 43 +- .../ambient_annotations_bad_type01.ets | 40 +- .../ambient_annotations_bad_type02.ets | 16 +- .../annotationDecl_bad_initializer08.ets | 15 +- .../annotationUsage_bad_param09.ets | 15 +- .../annotation_for_array_type01.ets | 4 +- .../annotation_for_readonly_type.ets | 3 +- ...rray_indexing_without_chaining_nullish.ets | 3 +- ...nsion_func_dupicated_name_with_builtin.ets | 3 +- .../extension_function_return_this_neg2.ets | 7 +- .../for_of_missing_iterator_type.ets | 3 +- .../scopes_multi_error.ets | 9 +- ...rabletypes_with_protected_iterator_neg.ets | 5 +- .../ets/FixedArray/lambda_type_mismatch.ets | 6 +- ..._specific_method_with_empty_rest_param.ets | 2 + .../FixedArray/newClassInstanceExpression.ets | 3 +- .../same_assembly_overload/callExpr_pos.ets | 3 +- .../ets/FixedArray/setArrayLength1.ets | 3 +- .../ets/FixedArray/setArrayLength2.ets | 3 +- .../ets/FixedArray/setArrayLength3.ets | 3 +- .../FixedArray/spreadMultiArrayInTuple.ets | 13 +- .../ets/FixedArray/tuple_types_5_neg.ets | 19 +- .../ets/FixedArray/tuple_types_9_neg.ets | 19 +- .../ets/FixedArray/unionCommonMember_neg.ets | 15 +- .../FixedArray/union_array_declaration.ets | 2 +- .../ets/FixedArray/union_subtyping_neg.ets | 3 +- .../ets/FixedArray/unresolved_reference.ets | 5 +- .../FixedArray/variance_typeparam_array.ets | 29 +- .../test/ast/compiler/ets/FunctionType1.ets | 2 +- .../test/ast/compiler/ets/FunctionType10.ets | 3 +- .../test/ast/compiler/ets/FunctionType3.ets | 5 +- .../test/ast/compiler/ets/FunctionType5.ets | 3 +- .../test/ast/compiler/ets/FunctionType8.ets | 8 +- .../test/ast/compiler/ets/FunctionType9.ets | 3 +- .../ast/compiler/ets/Incorrect_arrow_func.ets | 7 +- .../Invalid_rest_element_wtih_tuple_type.ets | 5 +- .../ast/compiler/ets/IsValidRestArgument.ets | 9 +- .../ets/MultiPropertyWithSameName.ets | 8 +- ...-static-private-method-used-as-val-neg.ets | 3 +- .../ast/compiler/ets/ObjectLiteral_neg_1.ets | 3 +- .../ast/compiler/ets/ObjectLiteral_neg_2.ets | 3 +- .../ets/ParserImpl_ParserForInOf_nullptr.ets | 22 +- .../compiler/ets/Partial_utility_type_0.ets | 11 +- .../ets/PromiseAllSettledRejectIgnored.ets | 4 +- .../compiler/ets/Required_utility_type_0.ets | 11 +- .../ets/TypeError_recursive_parameter_1.ets | 3 +- .../ets/TypeError_recursive_parameter_2.ets | 3 +- .../ets/UnresolvedReferenceInCamparison.ets | 7 +- .../compiler/ets/absent_return_statement.ets | 13 +- .../ast/compiler/ets/ambient_function.ets | 5 +- .../ast/compiler/ets/ambient_indexer_1.ets | 3 +- .../ast/compiler/ets/ambient_indexer_2.ets | 3 +- .../ambient_indexer_multiple_dummy_nodes.ets | 3 +- .../ets/ambient_interface/use_interface.ets | 3 +- .../ambient_interface_default_keyword02.ets | 9 +- .../ast/compiler/ets/ambient_namesapce01.ets | 4 +- .../ast/compiler/ets/ambient_namesapce02.ets | 5 +- .../ast/compiler/ets/ambient_namesapce03.ets | 4 +- .../ast/compiler/ets/ambient_namesapce04.ets | 4 +- .../ast/compiler/ets/ambient_namesapce05.ets | 9 +- .../ast/compiler/ets/ambient_namesapce06.ets | 4 +- .../ast/compiler/ets/ambient_namesapce07.ets | 5 +- .../ets/ambient_struct/declare_struct.d.ets | 3 +- .../compiler/ets/ambiguous_signature01.ets | 2 +- .../compiler/ets/ambiguous_signature02.ets | 1 - .../ast/compiler/ets/anno_required_fields.ets | 7 +- .../ets/annotation_decl_dot_empty.ets | 5 +- .../ets/annotation_dot_with_empty.ets | 7 +- .../Retension_invalid_params.ets | 9 +- .../Retentions_missing_arguments.ets | 5 +- .../ambient_annotations_bad_type01.ets | 40 +- .../ambient_annotations_bad_type02.ets | 16 +- .../ambient_annotations_bad_type03.ets | 18 +- .../annotationDecl_bad_initializer07.ets | 5 +- .../annotationDecl_bad_initializer08.ets | 15 +- .../annotationDecl_bad_type.ets | 4 +- .../annotationUsage_as_type01.ets | 3 +- .../annotationUsage_as_type02.ets | 10 +- .../annotationUsage_as_type03.ets | 5 +- .../annotationUsage_as_type04.ets | 5 +- .../annotationUsage_as_type05.ets | 3 +- .../annotationUsage_as_type06.ets | 7 +- .../annotationUsage_as_type07.ets | 8 +- .../annotationUsage_as_type08.ets | 4 +- .../annotationUsage_as_type09.ets | 3 +- .../annotationUsage_as_type10.ets | 3 +- .../annotationUsage_as_type11.ets | 3 +- .../annotationUsage_as_type12.ets | 7 +- .../annotationUsage_as_type13.ets | 3 +- .../annotationUsage_as_type14.ets | 5 +- .../annotationUsage_bad_param07.ets | 5 +- .../annotationUsage_bad_param08.ets | 9 +- .../annotationUsage_bad_param09.ets | 15 +- .../annotationUsage_bad_param10.ets | 5 +- ...notationUsage_conflict_for_namespace01.ets | 4 +- ...notationUsage_conflict_for_namespace02.ets | 4 +- ...ationUsage_duplicate_for_classproperty.ets | 3 +- ...nnotationUsage_duplicate_for_interface.ets | 3 +- ...ionUsage_duplicate_for_interfacemethod.ets | 3 +- ...nUsage_duplicate_for_interfaceproperty.ets | 3 +- ...otationUsage_duplicate_for_namespace01.ets | 6 +- ...otationUsage_duplicate_for_namespace02.ets | 6 +- ...notationUsage_duplicate_for_type_alias.ets | 7 +- ...ationUsage_duplicate_for_variable_decl.ets | 5 +- .../annotationUsage_duplicate_from_import.ets | 3 +- .../annotationUsage_duplicate_on_class.ets | 3 +- ...ionUsage_duplicate_on_extension_lambda.ets | 3 +- .../annotationUsage_duplicate_on_function.ets | 3 +- .../annotationUsage_duplicate_on_method.ets | 3 +- .../annotationUsage_excessive_param01.ets | 5 +- .../annotationUsage_excessive_param02.ets | 5 +- ...sage_excessive_param_for_classproperty.ets | 5 +- ...age_excessive_param_for_function_param.ets | 5 +- ...ionUsage_excessive_param_for_interface.ets | 7 +- ...onUsage_excessive_param_for_type_alias.ets | 7 +- ...sage_excessive_param_for_variable_decl.ets | 5 +- .../annotationUsage_missing_AT01.ets | 9 +- .../annotationUsage_missing_AT02.ets | 5 +- ...notationUsage_missing_AT_for_interface.ets | 5 +- ...otationUsage_missing_AT_for_type_alias.ets | 11 +- ...tionUsage_missing_AT_for_variable_decl.ets | 9 +- .../annotationUsage_missing_arguements01.ets | 4 +- .../annotationUsage_missing_arguements02.ets | 8 +- ...nUsage_missing_param_for_classproperty.ets | 5 +- ...Usage_missing_param_for_function_param.ets | 11 +- ...ationUsage_missing_param_for_interface.ets | 7 +- ...tionUsage_missing_param_for_type_alias.ets | 7 +- ...nUsage_missing_param_for_variable_decl.ets | 9 +- .../annotationUsage_unordered_params.ets | 5 +- .../annotation_and_class_with_same_name.ets | 3 +- .../annotation_as_negative_case.ets | 8 +- .../annotation_for_annotation.ets | 8 +- .../annotation_for_array_type01.ets | 5 +- .../annotation_for_array_type02.ets | 7 +- .../annotation_for_bad_target.ets | 11 +- .../annotation_for_boxing_type.ets | 16 +- .../annotation_for_function_type.ets | 13 +- .../annotation_for_named_type.ets | 9 +- .../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 | 15 +- .../annotation_for_types_in_annotation.ets | 2 +- .../annotation_for_types_in_class.ets | 17 +- .../annotation_for_types_in_expression.ets | 7 +- .../annotation_for_types_in_function.ets | 10 +- .../annotation_for_types_in_interface.ets | 3 +- .../annotation_for_types_in_variance.ets | 4 +- .../annotation_for_union_type.ets | 19 +- .../annotation_without_source_policy.ets | 14 +- .../annotation_tests/broken_annotation.ets | 36 +- .../broken_annotation_usage.ets | 6 +- .../test/ast/compiler/ets/array_index.ets | 3 +- ...rray_indexing_without_chaining_nullish.ets | 3 +- .../ast/compiler/ets/array_type_as_param.ets | 4 +- .../ast/compiler/ets/array_type_as_value.ets | 14 +- .../test/ast/compiler/ets/array_type_test.ets | 3 +- .../ets/array_with_type_parameter.ets | 31 +- ...w_function_call_as_record_property_key.ets | 65 +- .../compiler/ets/arrow_function_mismatch.ets | 4 +- .../test/ast/compiler/ets/assert_bad.ets | 4 +- .../test/ast/compiler/ets/assign_const.ets | 3 +- .../ets/async-function-expression1.ets | 13 +- .../ets/async-function-expression2.ets | 37 +- .../test/ast/compiler/ets/async_import_3.ets | 4 +- .../async_with_non_generic_return_type.ets | 3 +- .../ets/awaited_assignability_2_neg.ets | 2 +- .../ets/awaited_assignability_neg.ets | 4 +- .../ast/compiler/ets/awaited_utility_type.ets | 2 +- .../ast/compiler/ets/awaited_with_array.ets | 3 +- .../test/ast/compiler/ets/bad_call_setter.ets | 9 +- .../ast/compiler/ets/bigInt_operators_neg.ets | 21 +- .../ets/bigInt_unsigned_right_shift.ets | 3 +- .../ast/compiler/ets/binary_operator_neg.ets | 11 +- .../test/ast/compiler/ets/bit_wise_expr.ets | 15 +- ...lock_namespace_interface_name_conflict.ets | 5 +- .../ast/compiler/ets/boxingConversion4.ets | 5 +- .../test/ast/compiler/ets/break_target.ets | 3 +- .../test/ast/compiler/ets/broken_getter.ets | 18 +- .../ast/compiler/ets/broken_partial_type.ets | 17 +- .../test/ast/compiler/ets/broken_setter.ets | 6 +- .../ast/compiler/ets/builtin_thisArgs.ets | 36 +- .../ets/call_for_method_never_exist.ets | 3 +- .../test/ast/compiler/ets/call_signature.ets | 17 +- .../ast/compiler/ets/call_signature_error.ets | 5 +- .../ast/compiler/ets/check_spreadElement.ets | 9 +- .../ets/circular_dependency_crash.ets | 4 +- .../ast/compiler/ets/circular_inheritance.ets | 3 +- .../ets/circular_inheritance_class.ets | 3 +- .../ets/circular_inheritance_parameter.ets | 5 +- .../test/ast/compiler/ets/circular_unfold.ets | 9 +- .../compiler/ets/circular_variable_init.ets | 21 +- .../compiler/ets/class_cyclic_constructor.ets | 45 +- .../class_field_accessor_name_conflict.ets | 2 +- .../ast/compiler/ets/class_inheritance.ets | 4 +- .../test/ast/compiler/ets/class_literal.ets | 3 +- .../compiler/ets/class_return_as_object.ets | 2 +- .../ets/class_without_closing_parentheses.ets | 23 +- .../compiler/ets/classproperty_init_neg.ets | 2 +- .../compiler/ets/conditional-type-alias.ets | 13 +- .../ets/constExpressionAsTypeReference.ets | 3 +- .../ets/constExpressionAsTypeReference1.ets | 7 +- .../ets/constExpressionAsTypeReference2.ets | 5 +- .../ets/const_unfold_self_dependence01.ets | 3 +- .../ets/const_unfold_self_dependence02.ets | 3 +- .../ets/constantExpressionLowering.ets | 13 +- .../ets/constantExpressionLowering_2.ets | 5 +- .../constant_expression_test.ets | 5 +- .../enum_import_constant.ets | 2 +- .../conversion_Double-to-Int_typeerror.ets | 3 +- ...sion_Double-to-Int_w_try_stmt_typerror.ets | 5 +- .../ets/conversion_double_to_float.ets | 13 +- .../conversion_w_functions_w_try-stmts.ets | 3 +- .../float_literal_implicit_conversion.ets | 12 +- .../ast/compiler/ets/debugger-statement.ets | 2 +- .../ast/compiler/ets/declaration_merging.ets | 6 +- .../ast/compiler/ets/declareNameSpace.ets | 3 +- .../ast/compiler/ets/declareType_neg_1.ets | 9 +- .../ast/compiler/ets/declareType_neg_2.ets | 3 +- .../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 | 3 +- .../default_export/export_default_bad2.ets | 3 +- .../compiler/ets/default_param_declare.ets | 5 +- .../ast/compiler/ets/default_param_lambda.ets | 3 +- .../ets/default_test/export_default.ets | 13 +- .../ets/default_type_circular_dependency.ets | 19 +- .../ast/compiler/ets/deleteOperator_n.ets | 4 +- .../ast/compiler/ets/division-by-zero.ets | 9 +- .../ets/dynamic-field-declaration.ets | 10 +- .../compiler/ets/dynamic_optional_decl.ets | 51 + .../ets/emptyOptionalTypeAnnotation.ets | 7 +- .../compiler/ets/empty_array_expression.ets | 17 +- .../compiler/ets/empty_tuple_assignmemt.ets | 3 +- .../ast/compiler/ets/enum-double-to-int.ets | 4 +- .../ast/compiler/ets/enum-mixed-types.ets | 4 +- .../compiler/ets/enum-to-int-conversion.ets | 3 +- .../test/ast/compiler/ets/enumConversions.ets | 5 +- .../ets/enum_expressions/constant_char.ets | 4 +- .../constant_char_asexpression.ets | 25 +- .../test/ast/compiler/ets/enum_not_as_obj.ets | 6 +- .../compiler/ets/enum_not_constant_var.ets | 4 +- .../ast/compiler/ets/etsObjectToString0.ets | 3 +- .../ast/compiler/ets/etsObjectToString1.ets | 3 +- .../ast/compiler/ets/etsObjectToString2.ets | 3 +- .../ast/compiler/ets/etsObjectToString3.ets | 3 +- .../ast/compiler/ets/etsObjectToString4.ets | 3 +- .../ast/compiler/ets/etsObjectToString5.ets | 2 +- .../ets/export_type_class_multiple_times.ets | 3 +- .../export_type_interface_multiple_times.ets | 1 + .../invalid_operand_1.ets | 2 +- .../invalid_operand_2.ets | 2 +- .../invalid_operand_3.ets | 2 +- .../undefined_class_for_this_1.ets | 10 +- .../undefined_class_for_this_2.ets | 4 +- .../extensionAccessorMissingReceiver.ets | 7 +- ...sorNameDuplicatedWithExtensionFunction.ets | 4 +- ...sionAccessorNameDuplicatedWithFunction.ets | 4 +- ...ccessorNameDuplicatedWithInstanceField.ets | 5 +- ...meDuplicatedWithInterfaceInstanceField.ets | 9 +- ...nsionAccessorNameDuplicatedWithMethod1.ets | 5 +- ...nsionAccessorNameDuplicatedWithMethod2.ets | 5 +- ...orNameDuplicatedWithSuperInstanceField.ets | 5 +- ...AccessorNameDuplicatedWithSuperMethod1.ets | 5 +- ...AccessorNameDuplicatedWithSuperMethod2.ets | 5 +- .../extensionAccessorParams.ets | 5 +- .../extensionGetMustReturnValue.ets | 3 +- .../extensionGetterInWrongUsage.ets | 6 +- .../extensionGetterOnly.ets | 9 +- .../extensionGetterOnly2.ets | 9 +- .../extensionSetCantReturnValue.ets | 3 +- .../extensionSetterOnly.ets | 7 +- .../extensionSetterOnly2.ets | 9 +- .../getterAsFunctionCall.ets | 3 +- .../getterAsMethodCall.ets | 3 +- .../setterAsFunctionCall.ets | 3 +- .../setterAsMethodCall.ets | 3 +- .../test/ast/compiler/ets/extension_crash.ets | 13 +- ...on_duplicated_with_class_lambda_member.ets | 3 +- ...uplicated_with_interface_lambda_member.ets | 4 +- ...nsion_func_dupicated_name_with_builtin.ets | 5 +- ...xtension_function_access_private_field.ets | 3 +- ...ension_function_access_protected_field.ets | 5 +- .../extension_function_called_by_class.ets | 19 +- ...function_duplicated_with_private_field.ets | 19 +- .../extension_function_duplication.ets | 3 +- ...extension_function_for_unresolved_type.ets | 5 +- .../extension_function_miss_signature.ets | 7 +- .../extension_function_not_for_class_type.ets | 3 +- .../extension_function_params_neg1.ets | 3 +- .../extension_function_params_neg2.ets | 3 +- .../extension_function_primitive.ets | 3 +- .../extension_function_return_this_neg.ets | 3 +- .../extension_function_return_this_neg2.ets | 5 +- .../extension_function_return_this_neg3.ets | 5 +- .../extension_function_return_this_union.ets | 7 +- .../extension_function_return_this_union2.ets | 5 +- .../extension_function_return_this_union3.ets | 7 +- ...fferent_return_type_interface_function.ets | 3 +- ...n_function_shadowed_by_member_function.ets | 5 +- ...ion_duplicated_with_extension_function.ets | 3 +- ...unction_with_extension_style_signature.ets | 3 +- .../put_this_as_method_params.ets | 3 +- .../ets/first_match/access_modifiers.ets | 13 +- .../ets/first_match/access_modifiers_2.ets | 7 +- .../compiler/ets/first_match/arrayliteral.ets | 5 +- .../compiler/ets/first_match/constructor.ets | 9 +- .../ets/first_match/function_same_name.ets | 5 +- .../ets/first_match/invalid_declaration.ets | 25 +- .../ets/first_match/invalid_declaration_2.ets | 21 +- .../ets/first_match/invalid_declaration_3.ets | 9 +- .../ets/first_match/invalid_declaration_4.ets | 5 +- .../ets/first_match/invalid_declaration_5.ets | 13 +- .../ets/first_match/invalid_declare.ets | 15 +- .../ets/first_match/invalid_declare2.ets | 15 +- .../ets/first_match/invalid_identifier.ets | 45 +- .../ets/first_match/invalid_paramter.ets | 5 +- .../ets/first_match/modifier_async.ets | 5 +- .../ets/first_match/modifier_static.ets | 9 +- .../compiler/ets/first_match/namespace.ets | 19 +- .../ast/compiler/ets/first_match/override.ets | 3 +- .../compiler/ets/first_match/same_name.ets | 3 +- ets2panda/test/ast/compiler/ets/for_of.ets | 2 +- .../ets/for_of_missing_iterator_type.ets | 3 +- .../ets/forbidden_inherit_class_1.ets | 3 +- .../ets/forbidden_inherit_class_2.ets | 3 +- .../ets/forbidden_inherit_class_3.ets | 3 +- .../forof_iterator_doesnt_return_iteartor.ets | 7 +- .../ets/forof_iterator_missing_next.ets | 6 +- .../ets/forof_missing_iterator_method.ets | 5 +- ...forof_missing_iterator_method_with_sig.ets | 8 +- .../ast/compiler/ets/forof_prop_is_static.ets | 5 +- .../test/ast/compiler/ets/func_as_param.ets | 3 + .../ast/compiler/ets/function_namespace.ets | 11 +- .../ast/compiler/ets/function_property.ets | 3 +- .../ast/compiler/ets/function_signature.ets | 13 +- .../ets/function_signature_mismatch.ets | 5 +- .../ast/compiler/ets/function_subtyping_2.ets | 2 +- .../ast/compiler/ets/function_subtyping_3.ets | 2 +- .../ast/compiler/ets/function_typeerror.ets | 37 +- .../ast/compiler/ets/fuzz_invalid_method.ets | 13 +- .../compiler/ets/fuzz_invalid_property.ets | 21 +- .../test/ast/compiler/ets/fuzzingtest0.ets | 15 +- .../test/ast/compiler/ets/fuzzingtest1.ets | 9 +- .../test/ast/compiler/ets/fuzzingtest2.ets | 5 +- .../test/ast/compiler/ets/fuzzingtest3.ets | 15 +- .../test/ast/compiler/ets/fuzzingtest4.ets | 7 +- .../test/ast/compiler/ets/fuzzingtest5.ets | 5 +- .../test/ast/compiler/ets/fuzzingtest6.ets | 5 +- .../ets/genericObjectLiteral_neg_1.ets | 3 +- .../ets/genericObjectLiteral_neg_2.ets | 3 +- .../ets/genericObjectLiteral_neg_3.ets | 5 +- .../ast/compiler/ets/generic_callback.ets | 16 +- .../ets/generic_class_without_type_arg_1.ets | 3 +- .../ets/generic_class_without_type_arg_2.ets | 3 +- .../compiler/ets/generic_function_call_2.ets | 5 +- .../compiler/ets/generic_function_call_6.ets | 3 +- .../generic_method_with_default_short_neg.ets | 3 +- ...generic_method_with_promise_return_neg.ets | 5 +- .../compiler/ets/generic_typealias_2_neg.ets | 3 +- .../compiler/ets/generic_typealias_3_neg.ets | 3 +- .../compiler/ets/generic_typealias_4_neg.ets | 3 +- .../compiler/ets/generic_typealias_5_neg.ets | 3 +- .../ast/compiler/ets/generic_variance_2.ets | 3 +- .../ast/compiler/ets/generic_variance_3.ets | 3 +- .../ast/compiler/ets/generic_variance_4.ets | 3 +- .../ast/compiler/ets/generic_variance_5.ets | 3 +- .../ets/generics_implicit_lambda2.ets | 2 +- .../generics_primitive_type_param_neg_1.ets | 3 +- .../generics_primitive_type_param_neg_2.ets | 3 +- ets2panda/test/ast/compiler/ets/getType.ets | 21 +- .../test/ast/compiler/ets/getterNoReturn0.ets | 3 +- .../test/ast/compiler/ets/getterNoReturn1.ets | 3 +- .../ast/compiler/ets/greater_than_neg.ets | 9 +- .../ast/compiler/ets/identifierReference1.ets | 7 +- .../compiler/ets/identifierReference10.ets | 3 +- .../compiler/ets/identifierReference11.ets | 3 +- .../compiler/ets/identifierReference12.ets | 3 +- .../compiler/ets/identifierReference13.ets | 3 +- .../compiler/ets/identifierReference15.ets | 7 +- .../compiler/ets/identifierReference16.ets | 7 +- .../ast/compiler/ets/identifierReference2.ets | 3 +- .../ast/compiler/ets/identifierReference3.ets | 3 +- .../ast/compiler/ets/identifierReference5.ets | 3 +- .../ast/compiler/ets/identifierReference6.ets | 7 +- .../ast/compiler/ets/identifierReference7.ets | 5 +- .../ast/compiler/ets/identifierReference8.ets | 3 +- .../ast/compiler/ets/identifierReference9.ets | 3 +- .../compiler/ets/illegal_exponentiation_1.ets | 3 +- .../package_test_3/package_module_1_neg.ets | 3 +- .../package_test_3/package_module_2_neg.ets | 3 +- .../package_test_4/package_module_1.ets | 5 +- .../package_test_5/package_module_1.ets | 11 +- .../package_test_5/package_module_2_neg.ets | 11 +- .../package_test_6/package_module_1.ets | 3 +- .../package_test_6/package_module_2.ets | 3 +- .../package_test_7/package_module_1_neg.ets | 3 +- .../package_test_7/package_module_2_neg.ets | 3 +- .../package_test_8/import_multi_error.ets | 9 +- .../package_test_9/package_module.ets | 19 +- .../package_module_with_semantic_error.ets | 19 +- .../package_module_with_syntax_error.ets | 19 +- .../package_with_both_errors.ets | 19 +- .../scopes_multi_error.ets | 11 +- .../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 | 5 +- .../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 | 3 +- .../ets/import_export/import_type_star.ets | 7 +- .../compiler/ets/import_export/re_export.ets | 2 +- .../ets/import_tests/export_multi_error.ets | 10 +- .../import_chain_with_errors/import_1.ets | 12 +- .../import_chain_with_errors/import_2.ets | 5 +- .../import_chain_with_errors/master_file.ets | 21 +- .../import_distant_package/master_file.ets | 29 +- .../import_in_package_with_error.ets | 20 +- .../distant_package.ets | 5 +- .../package_with_errors_1.ets | 20 +- .../package_with_errors_2.ets | 20 +- .../import_within_scope/scope_import_1.ets | 3 +- .../import_within_scope/scope_import_2.ets | 3 +- .../import_within_scope/scope_import_3.ets | 2 +- .../export_type_several_times_1.ets | 2 + .../export_type_several_times_2.ets | 3 + .../import_function_wrong_name.ets | 3 +- .../import_interface_wrong_name.ets | 3 +- .../import_same_type_form_alias_1.ets | 3 +- .../import_same_type_form_alias_2.ets | 4 +- .../import_same_type_form_alias_3.ets | 9 +- .../namespace_import_wrong_access_name.ets | 3 +- .../selective_export_clashing_exports_3.ets | 3 +- .../selective_export_clashing_exports_4.ets | 3 +- .../ets/import_type_with_invalid_syntax.ets | 8 +- .../compiler/ets/incorrect_call_getter.ets | 10 +- .../ast/compiler/ets/index_callExpression.ets | 7 +- .../ast/compiler/ets/inferTypeLambda_0.ets | 5 +- .../ets/inferTypeOfArrayNegative2.ets | 11 +- .../ets/inferTypeOfArrayNegative3.ets | 7 +- .../ast/compiler/ets/infinityNarrowing.ets | 13 +- .../init_module_negative1.ets | 3 +- .../init_module_negative2.ets | 3 +- .../init_module_negative3.ets | 3 +- .../init_module_negative4.ets | 3 +- .../init_module_negative5.ets | 5 +- .../init_module_negative6.ets | 7 +- .../init_module_negative7.ets | 3 +- .../init_module_negative8.ets | 3 +- .../ets/initializer_block_namesapce04.ets | 11 +- .../ets/interface-constructor-signatures.ets | 23 +- .../ets/interfaceMethodNotOverridden.ets | 3 +- .../interface_ambient_call_signature_1.ets | 8 +- .../ets/interface_class_implement.ets | 3 +- .../ets/interface_class_implement_extend.ets | 5 +- .../test/ast/compiler/ets/interface_field.ets | 43 +- .../ast/compiler/ets/interface_literal.ets | 3 +- ...ace_object_literal_missing_assignment0.ets | 3 +- ...ace_object_literal_missing_assignment1.ets | 7 +- ...ace_object_literal_missing_assignment2.ets | 5 +- .../ast/compiler/ets/interface_partial.ets | 16 +- .../compiler/ets/interface_property_scope.ets | 15 +- .../invalidIndirectInheritanceFromClass.ets | 5 +- ...nvalidIndirectInheritanceFromInterface.ets | 5 +- .../ast/compiler/ets/invalidInheritance1.ets | 3 +- .../ast/compiler/ets/invalidInheritance2.ets | 5 +- .../ast/compiler/ets/invalidInheritance4.ets | 3 +- .../ets/invalidInheritanceFromClass.ets | 5 +- .../ets/invalidInheritanceFromInterface.ets | 5 +- ...alidMemberExpressionFromStaticContext1.ets | 3 +- ...alidMemberExpressionFromStaticContext2.ets | 3 +- ...alidMemberExpressionFromStaticContext3.ets | 3 +- ...alidMemberExpressionFromStaticContext4.ets | 3 +- ...alidMemberExpressionFromStaticContext5.ets | 3 +- ...alidMemberExpressionFromStaticContext6.ets | 3 +- ...alidMemberExpressionFromStaticContext7.ets | 3 +- ...alidMemberExpressionFromStaticContext8.ets | 3 +- .../compiler/ets/invalidPrivateAccess1.ets | 3 +- .../compiler/ets/invalidPrivateAccess2.ets | 5 +- .../compiler/ets/invalidPrivateAccess3.ets | 7 +- .../compiler/ets/invalidPrivateAccess4.ets | 5 +- .../compiler/ets/invalidPrivateAccess5.ets | 13 +- .../compiler/ets/invalidPrivateAccess6.ets | 7 +- .../compiler/ets/invalidProtectedAccess1.ets | 3 +- .../compiler/ets/invalidProtectedAccess2.ets | 5 +- .../compiler/ets/invalidProtectedAccess3.ets | 7 +- .../compiler/ets/invalid_access_modifier.ets | 17 +- .../ets/invalid_cast_generic_type_neg_0.ets | 3 +- .../ets/invalid_cast_generic_type_neg_1.ets | 3 +- .../ets/invalid_cast_generic_type_neg_2.ets | 3 +- .../compiler/ets/invalid_class_declare.ets | 5 +- .../compiler/ets/invalid_namespace_neg.ets | 5 +- .../compiler/ets/invalid_namespace_neg2.ets | 3 +- .../test/ast/compiler/ets/invalid_object.ets | 16 +- .../ets/invalid_param_in_constructor.ets | 17 +- .../ast/compiler/ets/invalid_param_pack.ets | 11 +- ...lid_switch_case_in_function_assignment.ets | 9 +- .../test/ast/compiler/ets/invalid_token.ets | 9 +- .../ets/invalid_trailing_lambda_call.ets | 24 +- .../compiler/ets/invalid_two_functions.ets | 7 +- ...rabletypes_with_protected_iterator_neg.ets | 5 +- .../compiler/ets/keyof_invalid_argument.ets | 77 +- .../keywords/issue26215_restricted_super.ets | 5 +- .../keywords/issue26215_restricted_this.ets | 5 +- ...sionWithoutBlockStatementDifferentType.ets | 3 +- ...tBlockStatementDifferentTypeInfunction.ets | 3 +- .../test/ast/compiler/ets/lambdaFunction3.ets | 2 +- .../test/ast/compiler/ets/lambdaFunction4.ets | 3 +- .../test/ast/compiler/ets/lambdaFunction5.ets | 5 +- ...lambda_param_type_cannot_be_determined.ets | 1 - .../test/ast/compiler/ets/lambda_override.ets | 5 +- .../ets/lambda_type_infer_async_1.ets | 3 +- .../ets/lambda_type_infer_async_2.ets | 3 +- .../ets/lambda_type_infer_async_3.ets | 3 +- .../ets/lambda_type_infer_async_4.ets | 3 +- .../ets/lambda_type_infer_to_rest_type.ets | 2 +- .../ast/compiler/ets/lambda_type_mismatch.ets | 6 +- .../compiler/ets/lambda_type_param_bad.ets | 2 +- .../ExtensionFunctypeUncompatible.ets | 7 +- .../MakeNormalFunctypeAsMethodCall.ets | 5 +- ...xtensionFuncTypeAsParamsNameDuplicated.ets | 3 +- ...tensionFuncTypeAsParamsNameDuplicated2.ets | 3 +- ...tensionFuncTypeAsParamsNameDuplicated3.ets | 3 +- ...literal_init_parameterless_constructor.ets | 2 +- .../test/ast/compiler/ets/localTypeAlias.ets | 55 +- .../test/ast/compiler/ets/local_enum02.ets | 5 +- .../test/ast/compiler/ets/local_enum03.ets | 5 +- .../compiler/ets/manyLocalsParamRegUsage.ets | 2174 +++++++++++++++++ .../compiler/ets/math_const_as_identifier.ets | 13 +- .../ast/compiler/ets/method-assignment.ets | 15 +- .../ast/compiler/ets/method-assignment_01.ets | 3 +- ...on-class-and-interface-in-signatures_1.ets | 3 +- ...on-class-and-interface-in-signatures_2.ets | 3 +- ...on-class-and-interface-in-signatures_3.ets | 3 +- ...on-class-and-interface-in-signatures_4.ets | 5 +- ...on-class-and-interface-in-signatures_6.ets | 7 +- .../method_call_confilict_in_union_types.ets | 29 +- .../compiler/ets/method_error_identifier.ets | 17 +- .../ets/missing_CTE_access_private.ets | 5 +- .../ets/missing_CTE_access_protected.ets | 5 +- .../ast/compiler/ets/mostSpecificMethod1.ets | 3 +- .../ast/compiler/ets/mostSpecificMethod2.ets | 3 +- ..._specific_method_with_empty_rest_param.ets | 3 +- .../compiler/ets/multiple_inheritance_neg.ets | 3 +- .../ets/multiple_inheritance_neg_2.ets | 3 +- ...ericWithNullableTypeParamToNonNullable.ets | 5 +- .../ets/nagative_trailingLambda_abort.ets | 17 +- .../ast/compiler/ets/namespace_class_decl.ets | 25 +- .../ets/namespace_export_invalid01.ets | 7 +- .../ets/namespace_export_invalid02.ets | 2 +- .../ast/compiler/ets/namespace_modifiers.ets | 13 +- .../ets/namespace_static_block_init_neg.ets | 3 +- .../namespace_access_violation.ets | 18 +- ...access_violation_circular_dependencies.ets | 2 +- .../namespace_access_violation_conflicts.ets | 5 +- .../namespace_access_violation_exports.ets | 2 +- ...pace_access_violation_import_conflicts.ets | 9 +- ...space_access_violation_merge_conflicts.ets | 3 +- ...mespace_access_violation_nested_scopes.ets | 22 +- ...ce_access_violation_non_exported_merge.ets | 2 +- ...pace_access_violation_scope_resolution.ets | 3 +- ...pace_access_violation_undefined_scopes.ets | 3 +- .../namespace_tests/namespace_as_type01.ets | 3 +- .../namespace_tests/namespace_as_type02.ets | 10 +- .../namespace_tests/namespace_as_type03.ets | 5 +- .../namespace_tests/namespace_as_type04.ets | 5 +- .../namespace_tests/namespace_as_type05.ets | 3 +- .../namespace_tests/namespace_as_type06.ets | 7 +- .../namespace_tests/namespace_as_type07.ets | 8 +- .../namespace_tests/namespace_as_type08.ets | 4 +- .../namespace_tests/namespace_as_type09.ets | 3 +- .../namespace_tests/namespace_as_type10.ets | 3 +- .../namespace_tests/namespace_as_type11.ets | 3 +- .../namespace_tests/namespace_as_type12.ets | 5 +- .../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 | 3 +- .../ets/negative_optional_constructor.ets | 17 +- .../test/ast/compiler/ets/negative_typo_1.ets | 9 +- .../test/ast/compiler/ets/never_type_cast.ets | 3 +- .../ets/newClassInstanceExpression.ets | 3 +- .../ets/new_expr_with_succesive_multi_dot.ets | 15 +- .../test/ast/compiler/ets/noInOperator.ets | 7 +- .../test/ast/compiler/ets/noIsOperator.ets | 3 +- .../test/ast/compiler/ets/no_match_sig.ets | 2 +- .../ast/compiler/ets/nonNullableKeyword.ets | 3 +- .../ast/compiler/ets/nonNullishType_n_1.ets | 3 +- .../ast/compiler/ets/nonNullishType_n_2.ets | 5 +- .../ast/compiler/ets/nonNullishType_n_3.ets | 7 +- .../compiler/ets/nonNullish_expr_is_null.ets | 4 +- .../ets/not_all_paths_return_value.ets | 5 +- .../complex_types.ets | 11 +- .../primitive_types.ets | 3 +- .../ets/null_coalescing_generic_1_neg.ets | 3 +- .../compiler/ets/null_coalescing_neg_01.ets | 13 +- .../ast/compiler/ets/null_pointer_error.ets | 11 +- .../ast/compiler/ets/null_pointer_error1.ets | 3 +- .../nullable_type_in_arithmeticmult_func.ets | 3 +- ...ype_in_arithmeticmult_func_w_undefined.ets | 3 +- .../nullable_type_in_arithmeticplus_func.ets | 3 +- ...ble_type_in_arithmeticplus_w_undefined.ets | 3 +- .../nullable_type_in_stringconcat_func.ets | 5 +- .../ast/compiler/ets/objectLiteralBadKey.ets | 3 +- .../ets/objectLiteralInaccessibleKey.ets | 3 +- .../compiler/ets/objectLiteralInterface3.ets | 3 +- .../ets/objectLiteralNoContextType.ets | 3 +- ...bjectLiteralNoParameterlessConstructor.ets | 3 +- .../compiler/ets/objectLiteralNoSuchKey.ets | 3 +- .../ets/objectLiteralPrivateConstructor.ets | 3 +- .../ets/objectLiteralWrongValueType.ets | 3 +- .../ets/objectLiteral_abstract_class.ets | 11 +- .../ets/objectLiteral_abstract_class_2.ets | 3 +- .../ets/object_literal_initialization.ets | 5 +- .../compiler/ets/optionalClassProperty1.ets | 3 +- .../test/ast/compiler/ets/optional_method.ets | 5 +- .../compiler/ets/overload-resolution-rest.ets | 2 +- .../class_overloaded_name_must_ident.ets | 3 +- ...constructor_overloaded_name_must_ident.ets | 3 +- ...on_overloaded_name_must_qualified_name.ets | 3 +- .../interface_overloaded_name_must_ident.ets | 3 +- .../overload/overload_duplicate_function.ets | 3 +- .../overload_duplicate_function_2.ets | 3 +- .../overload/overload_duplicate_method.ets | 2 +- .../overload_duplicate_overload_name_1.ets | 9 +- ...verload_overloaded_name_at_most_once_1.ets | 3 +- ...erload_overloaded_name_used_as_value_1.ets | 3 +- ...erload_overloaded_name_used_as_value_2.ets | 3 +- .../ets/overload/overload_union_call.ets | 3 +- .../ets/overload/overload_union_call_2.ets | 5 +- .../compiler/ets/overloadMethodNoReturn0.ets | 3 +- .../compiler/ets/overloadMethodNoReturn1.ets | 3 +- .../test/ast/compiler/ets/overload_crash.ets | 5 +- .../ets/overload_equivalent_generics.ets | 2 +- .../ets/overload_for_named_constructor.ets | 2 +- .../test/ast/compiler/ets/override11.ets | 5 +- .../test/ast/compiler/ets/override15.ets | 5 +- ets2panda/test/ast/compiler/ets/override3.ets | 5 +- ets2panda/test/ast/compiler/ets/override7.ets | 5 +- .../ets/overrideModifierNotOverriding.ets | 3 +- .../ets/package_invalid_initializer/P3/P3.ets | 15 +- .../package_invalid_initializer/main_test.ets | 9 +- .../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 | 3 +- .../ast/compiler/ets/parser_annotation_n.ets | 5 +- .../test/ast/compiler/ets/parser_format.ets | 11 +- .../test/ast/compiler/ets/parser_import.ets | 6 +- .../ets/partialTypeParameterParamInfer.ets | 3 +- .../ast/compiler/ets/partialType_1_neg.ets | 3 +- .../ast/compiler/ets/partialType_2_neg.ets | 3 +- .../ast/compiler/ets/partialType_3_neg.ets | 3 +- ...rtialType_check_in_RemoveUndefinedType.ets | 9 +- .../compiler/ets/privateMethodOverride.ets | 3 +- .../ets/private_field_declaration.ets | 4 +- .../ets/re-declare_in_local_scope.ets | 4 +- .../ets/readonly-type-reassignment0.ets | 3 +- .../ets/readonly-type-reassignment1.ets | 3 +- .../ets/readonly/label_readonly_true.ets | 12 +- .../compiler/ets/readonly/readonly_array.ets | 2 +- .../ets/readonly/readonly_as_args_type.ets | 5 +- .../ets/readonly/readonly_as_fields_type.ets | 11 +- .../ets/readonly/readonly_static_var.ets | 9 +- .../test/ast/compiler/ets/readonlyField.ets | 3 +- .../test/ast/compiler/ets/readonlyField_2.ets | 3 +- .../ets/readonlyIntfObjectLiteral_neg_1.ets | 2 +- .../ets/readonlyIntfObjectLiteral_neg_2.ets | 2 +- .../test/ast/compiler/ets/readonlyType_1.ets | 5 +- .../test/ast/compiler/ets/readonlyType_2.ets | 5 +- .../test/ast/compiler/ets/readonlyType_3.ets | 5 +- .../test/ast/compiler/ets/readonlyType_4.ets | 5 +- .../test/ast/compiler/ets/readonlyType_5.ets | 2 +- .../test/ast/compiler/ets/readonlyType_6.ets | 2 +- .../ast/compiler/ets/readonly_array01.ets | 5 +- .../ast/compiler/ets/readonly_array02.ets | 2 +- .../ets/recordWithLambdaFunction1.ets | 2 +- .../ets/recordWithLambdaFunction2.ets | 6 +- .../compiler/ets/record_with_getter_crash.ets | 7 +- .../ast/compiler/ets/recursive_class_neg.ets | 7 +- .../compiler/ets/recursive_function_neg_1.ets | 3 +- .../ets/recursive_interface_neg_1.ets | 3 +- .../ets/recursive_interface_neg_2.ets | 3 +- .../compiler/ets/recursive_method_neg_1.ets | 3 +- .../compiler/ets/recursive_method_neg_2.ets | 5 +- .../compiler/ets/recursive_union_neg_1.ets | 3 +- .../compiler/ets/recursive_union_neg_2.ets | 5 +- .../ets/redecl_func_arow_param_in_body.ets | 15 +- .../ets/redefine_class/redefine_array.ets | 2 +- .../ets/referenceEqualityNotCastable_n.ets | 2 +- .../ets/referenceEqualityNotReference_n.ets | 2 +- .../ast/compiler/ets/requiredType_10_neg.ets | 3 +- .../ast/compiler/ets/requiredType_2_neg.ets | 3 +- .../ast/compiler/ets/requiredType_3_neg.ets | 3 +- .../test/ast/compiler/ets/requiredType_6.ets | 3 +- .../ast/compiler/ets/requiredType_7_neg.ets | 3 +- .../ast/compiler/ets/requiredType_8_neg.ets | 3 +- .../ets/resolve_class_declaration.ets | 17 +- .../ets/resolve_func_name_union_type.ets | 5 +- .../ets/resolve_func_name_union_type_1.ets | 5 +- .../ast/compiler/ets/restvar_type_infer.ets | 13 +- ...eturnTypeAnnotation_typeParams_nullptr.ets | 10 +- .../compiler/ets/return_missing_argument.ets | 3 +- .../ets/return_protected_function.ets | 2 +- .../this_type_invalid_return_type.ets | 3 +- .../this_type_overridden_by_child_class.ets | 5 +- .../ast/compiler/ets/return_type_test.ets | 3 +- .../same_assembly_overload/callExpr_pos.ets | 4 +- .../identical_signature.ets | 4 +- .../overload_signature_neg_1.ets | 3 +- .../overload_signature_neg_2.ets | 3 +- .../same_assembly_overload/str_overload.ets | 3 +- .../ast/compiler/ets/same_name_field_err.ets | 3 +- .../import_ambient_const_neg.ets | 4 +- .../ast/compiler/ets/setPropertyTypeOf.ets | 7 +- .../compiler/ets/set_init_without_param.ets | 10 +- .../ets/setter_func_no_return_type.ets | 6 +- .../ast/compiler/ets/signature_argument.ets | 25 +- .../test/ast/compiler/ets/signature_param.ets | 35 +- .../test/ast/compiler/ets/smart_cast.ets | 3 +- .../ets/smart_cast_while_test_mod.ets | 5 +- .../compiler/ets/smart_cast_wuth_break.ets | 3 +- .../test/ast/compiler/ets/special_type.ets | 17 +- ...eadExpressionAsPropertyInObjectLiteral.ets | 16 +- .../compiler/ets/spreadMultiArrayInTuple.ets | 13 +- .../test/ast/compiler/ets/spread_record.ets | 19 +- .../ets/staticInitializerInInnerClass.ets | 7 +- .../compiler/ets/static_index_function1.ets | 9 +- .../compiler/ets/static_index_function2.ets | 7 +- .../compiler/ets/static_index_function3.ets | 5 +- .../ast/compiler/ets/string_enum_unary.ets | 7 +- .../compiler/ets/string_tuple_type_neg.ets | 21 +- .../compiler/ets/stwitch_with_non_case.ets | 3 +- ets2panda/test/ast/compiler/ets/subtype.ets | 3 +- .../ets/superReferenceFromStaticContext.ets | 3 +- .../compiler/ets/switch_case_null_tstype.ets | 15 +- .../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 | 5 +- ...s_expr_invalid_call_in_annotation_decl.ets | 3 +- .../compiler/ets/this_in_wrong_context.ets | 13 +- .../ast/compiler/ets/throwInFinallyBlock.ets | 3 +- .../test/ast/compiler/ets/tolocalString.ets | 3 +- .../test/ast/compiler/ets/trailing_lambda.ets | 10 +- .../ast/compiler/ets/tryCatchErrorFlow.ets | 3 +- .../ast/compiler/ets/tryCatchMissingParam.ets | 3 +- .../ets/try_catch_already_declared.ets | 3 +- .../ast/compiler/ets/tuple_types_10_neg.ets | 3 +- .../ast/compiler/ets/tuple_types_11_neg.ets | 3 +- .../ast/compiler/ets/tuple_types_13_neg.ets | 5 +- .../ast/compiler/ets/tuple_types_1_neg.ets | 3 +- .../ast/compiler/ets/tuple_types_2_neg.ets | 3 +- .../ast/compiler/ets/tuple_types_3_neg.ets | 3 +- .../ast/compiler/ets/tuple_types_4_neg.ets | 3 +- .../ast/compiler/ets/tuple_types_5_neg.ets | 11 +- .../ast/compiler/ets/tuple_types_9_neg.ets | 11 +- .../test/ast/compiler/ets/tuple_union_neg.ets | 3 +- .../ets/typeAliasWithConstraint_01.ets | 3 +- .../ets/typeAliasWithConstraint_02.ets | 3 +- .../ets/typeAliasWithConstraint_04.ets | 5 +- .../test/ast/compiler/ets/typeOfString.ets | 3 +- .../ets/typeVarReferenceFromStaticContext.ets | 3 +- .../compiler/ets/type_alise_with_lambda.ets | 7 +- .../test/ast/compiler/ets/type_as_value.ets | 2 +- .../not_constructible_types.ets | 19 +- .../param_typeannotation_null.ets | 3 +- .../property_typeerror.ets | 17 +- .../type_error_processing/type_handlers.ets | 19 +- .../type_error_processing/var_without_def.ets | 9 +- .../test/ast/compiler/ets/type_error_test.ets | 3 +- .../ast/compiler/ets/type_error_test2.ets | 28 +- .../test/ast/compiler/ets/type_parameter.ets | 7 +- .../ast/compiler/ets/typealias_as_value.ets | 2 +- .../ets/typealias_conflict_with_builtin.ets | 3 +- .../ets/typealias_default_type_01.ets | 2 +- .../ets/typealias_default_type_02.ets | 6 +- .../ets/typeof_on_primitive_and_ref_types.ets | 5 +- .../ast/compiler/ets/unexpected_param_01.ets | 20 +- .../ast/compiler/ets/unexpected_param_02.ets | 2 +- .../compiler/ets/unionCommonMember_neg.ets | 15 +- .../test/ast/compiler/ets/unionType_clone.ets | 27 +- .../compiler/ets/union_array_declaration.ets | 2 +- .../ast/compiler/ets/union_field_access.ets | 3 +- .../ast/compiler/ets/union_field_access_2.ets | 21 +- .../compiler/ets/union_generic_class_neg.ets | 9 +- .../test/ast/compiler/ets/union_method_4.ets | 9 +- .../ast/compiler/ets/union_overload_crash.ets | 3 +- .../compiler/ets/union_string_literals_1.ets | 3 +- .../compiler/ets/union_string_literals_2.ets | 5 +- .../compiler/ets/union_string_literals_3.ets | 3 +- .../compiler/ets/union_string_literals_4.ets | 3 +- .../compiler/ets/union_string_literals_5.ets | 3 +- .../compiler/ets/union_string_literals_6.ets | 3 +- .../compiler/ets/union_string_literals_7.ets | 5 +- .../compiler/ets/union_string_literals_8.ets | 5 +- .../test/ast/compiler/ets/union_type.ets | 3 +- .../ets/union_type_of_partial_type.ets | 21 +- .../test/ast/compiler/ets/union_types_2.ets | 3 +- .../test/ast/compiler/ets/union_types_4.ets | 3 +- .../ast/compiler/ets/union_types_forof_1.ets | 3 +- .../ets/unmatch_arg_for_trailing_lambda.ets | 11 +- .../ets/unresolve_class_with_type_infer.ets | 9 +- .../ast/compiler/ets/unresolved_reference.ets | 5 +- .../unresolved_reference_identifier/file1.ets | 5 +- .../main_test.ets | 5 +- .../test/ast/compiler/ets/update_const.ets | 3 +- .../flag_in_first_line_2_neg.ets | 3 +- .../flag_in_first_line_3_neg.ets | 3 +- .../flag_in_first_line_neg.ets | 3 +- .../flag_middle_importdecl_neg.ets | 3 +- .../package_2_neg/flag_before_package.ets | 5 +- .../package_3_neg/flag_before_package.ets | 7 +- .../package_neg/flag_package.ets | 3 +- .../package_neg/flag_package2.ets | 3 +- ...ility_type_can_not_found_etsobjecttype.ets | 7 +- ...signatures_throw_type_error_more_param.ets | 7 +- .../test/ast/compiler/ets/var_declaration.ets | 2 +- .../ets/variable_declaretion_neg_1.ets | 7 +- .../ast/compiler/ets/variance_typeparam.ets | 17 +- .../compiler/ets/variance_typeparam_array.ets | 29 +- .../compiler/ets/variance_typeparam_class.ets | 21 +- .../ets/variance_typeparam_lambda.ets | 24 +- .../ets/variance_typeparam_overload.ets | 5 +- .../compiler/ets/variance_typeparam_super.ets | 8 +- .../ets/variance_typeparam_transmit.ets | 11 +- .../compiler/ets/variance_typeparam_tuple.ets | 17 +- .../compiler/ets/variance_typeparam_union.ets | 41 +- .../ets/voidTypeInBinaryOperation.ets | 7 +- .../ets/void_as_return_type_neg_1.ets | 3 +- .../ets/void_as_return_type_neg_2.ets | 2 +- .../ets/void_as_typeAnnotation_neg_1.ets | 5 +- .../ast/compiler/ets/void_as_value_neg_1.ets | 3 +- .../ast/compiler/ets/void_as_value_neg_2.ets | 3 +- .../ast/compiler/ets/void_as_value_neg_3.ets | 3 +- .../ast/compiler/ets/void_as_value_neg_4.ets | 3 +- .../test/ast/compiler/ets/with-statement.ets | 10 +- ...ut_semicolon_before_struct_declaration.ets | 2 +- .../compiler/ets/wrong_variable_binding.ets | 4 +- .../test/ast/compiler/ets/xgc_ea/xgc_ea.ets | 10 +- .../ast/compiler/ts/arithmetic_operators_1.ts | 3 +- .../compiler/ts/arithmetic_operators_10.ts | 3 +- .../compiler/ts/arithmetic_operators_11.ts | 3 +- .../compiler/ts/arithmetic_operators_12.ts | 3 +- .../compiler/ts/arithmetic_operators_13.ts | 3 +- .../compiler/ts/arithmetic_operators_14.ts | 3 +- .../compiler/ts/arithmetic_operators_15.ts | 3 +- .../compiler/ts/arithmetic_operators_16.ts | 3 +- .../compiler/ts/arithmetic_operators_17.ts | 3 +- .../compiler/ts/arithmetic_operators_18.ts | 3 +- .../compiler/ts/arithmetic_operators_19.ts | 3 +- .../ast/compiler/ts/arithmetic_operators_2.ts | 3 +- .../compiler/ts/arithmetic_operators_20.ts | 3 +- .../compiler/ts/arithmetic_operators_21.ts | 3 +- .../compiler/ts/arithmetic_operators_22.ts | 3 +- .../compiler/ts/arithmetic_operators_23.ts | 3 +- .../compiler/ts/arithmetic_operators_24.ts | 3 +- .../compiler/ts/arithmetic_operators_25.ts | 3 +- .../compiler/ts/arithmetic_operators_26.ts | 3 +- .../compiler/ts/arithmetic_operators_27.ts | 3 +- .../compiler/ts/arithmetic_operators_28.ts | 3 +- .../compiler/ts/arithmetic_operators_29.ts | 3 +- .../ast/compiler/ts/arithmetic_operators_3.ts | 3 +- .../compiler/ts/arithmetic_operators_30.ts | 3 +- .../compiler/ts/arithmetic_operators_31.ts | 3 +- .../compiler/ts/arithmetic_operators_32.ts | 3 +- .../compiler/ts/arithmetic_operators_33.ts | 3 +- .../compiler/ts/arithmetic_operators_34.ts | 3 +- .../compiler/ts/arithmetic_operators_35.ts | 3 +- .../compiler/ts/arithmetic_operators_36.ts | 3 +- .../compiler/ts/arithmetic_operators_37.ts | 3 +- .../compiler/ts/arithmetic_operators_38.ts | 3 +- .../compiler/ts/arithmetic_operators_39.ts | 3 +- .../ast/compiler/ts/arithmetic_operators_4.ts | 3 +- .../compiler/ts/arithmetic_operators_40.ts | 3 +- .../compiler/ts/arithmetic_operators_41.ts | 3 +- .../compiler/ts/arithmetic_operators_42.ts | 3 +- .../compiler/ts/arithmetic_operators_43.ts | 3 +- .../compiler/ts/arithmetic_operators_44.ts | 3 +- .../compiler/ts/arithmetic_operators_45.ts | 3 +- .../compiler/ts/arithmetic_operators_46.ts | 3 +- .../compiler/ts/arithmetic_operators_47.ts | 3 +- .../compiler/ts/arithmetic_operators_48.ts | 3 +- .../compiler/ts/arithmetic_operators_49.ts | 3 +- .../ast/compiler/ts/arithmetic_operators_5.ts | 3 +- .../compiler/ts/arithmetic_operators_50.ts | 3 +- .../compiler/ts/arithmetic_operators_51.ts | 3 +- .../compiler/ts/arithmetic_operators_52.ts | 3 +- .../compiler/ts/arithmetic_operators_53.ts | 3 +- .../compiler/ts/arithmetic_operators_54.ts | 3 +- .../compiler/ts/arithmetic_operators_55.ts | 3 +- .../compiler/ts/arithmetic_operators_56.ts | 3 +- .../compiler/ts/arithmetic_operators_57.ts | 3 +- .../compiler/ts/arithmetic_operators_58.ts | 3 +- .../compiler/ts/arithmetic_operators_59.ts | 3 +- .../ast/compiler/ts/arithmetic_operators_6.ts | 3 +- .../compiler/ts/arithmetic_operators_60.ts | 3 +- .../compiler/ts/arithmetic_operators_61.ts | 3 +- .../compiler/ts/arithmetic_operators_62.ts | 3 +- .../compiler/ts/arithmetic_operators_63.ts | 3 +- .../compiler/ts/arithmetic_operators_64.ts | 3 +- .../ast/compiler/ts/arithmetic_operators_7.ts | 3 +- .../ast/compiler/ts/arithmetic_operators_8.ts | 3 +- .../ast/compiler/ts/arithmetic_operators_9.ts | 3 +- .../ast/compiler/ts/arrayDestructuring1.ts | 3 +- .../ast/compiler/ts/arrayDestructuring10.ts | 3 +- .../ast/compiler/ts/arrayDestructuring11.ts | 3 +- .../ast/compiler/ts/arrayDestructuring12.ts | 3 +- .../ast/compiler/ts/arrayDestructuring13.ts | 3 +- .../ast/compiler/ts/arrayDestructuring14.ts | 3 +- .../ast/compiler/ts/arrayDestructuring15.ts | 3 +- .../ast/compiler/ts/arrayDestructuring16.ts | 3 +- .../ast/compiler/ts/arrayDestructuring17.ts | 3 +- .../ast/compiler/ts/arrayDestructuring18.ts | 3 +- .../ast/compiler/ts/arrayDestructuring19.ts | 3 +- .../ast/compiler/ts/arrayDestructuring2.ts | 3 +- .../ast/compiler/ts/arrayDestructuring20.ts | 3 +- .../ast/compiler/ts/arrayDestructuring21.ts | 3 +- .../ast/compiler/ts/arrayDestructuring22.ts | 3 +- .../ast/compiler/ts/arrayDestructuring23.ts | 3 +- .../ast/compiler/ts/arrayDestructuring24.ts | 3 +- .../ast/compiler/ts/arrayDestructuring25.ts | 3 +- .../ast/compiler/ts/arrayDestructuring26.ts | 3 +- .../ast/compiler/ts/arrayDestructuring27.ts | 3 +- .../ast/compiler/ts/arrayDestructuring28.ts | 3 +- .../ast/compiler/ts/arrayDestructuring29.ts | 3 +- .../ast/compiler/ts/arrayDestructuring3.ts | 3 +- .../ast/compiler/ts/arrayDestructuring30.ts | 3 +- .../ast/compiler/ts/arrayDestructuring31.ts | 3 +- .../ast/compiler/ts/arrayDestructuring32.ts | 3 +- .../ast/compiler/ts/arrayDestructuring33.ts | 3 +- .../ast/compiler/ts/arrayDestructuring34.ts | 3 +- .../ast/compiler/ts/arrayDestructuring35.ts | 3 +- .../ast/compiler/ts/arrayDestructuring36.ts | 3 +- .../ast/compiler/ts/arrayDestructuring37.ts | 3 +- .../ast/compiler/ts/arrayDestructuring38.ts | 3 +- .../ast/compiler/ts/arrayDestructuring39.ts | 3 +- .../ast/compiler/ts/arrayDestructuring4.ts | 3 +- .../ast/compiler/ts/arrayDestructuring40.ts | 3 +- .../ast/compiler/ts/arrayDestructuring41.ts | 3 +- .../ast/compiler/ts/arrayDestructuring42.ts | 3 +- .../ast/compiler/ts/arrayDestructuring43.ts | 3 +- .../ast/compiler/ts/arrayDestructuring44.ts | 3 +- .../ast/compiler/ts/arrayDestructuring5.ts | 3 +- .../ast/compiler/ts/arrayDestructuring6.ts | 3 +- .../ast/compiler/ts/arrayDestructuring7.ts | 3 +- .../ast/compiler/ts/arrayDestructuring8.ts | 3 +- .../ast/compiler/ts/arrayDestructuring9.ts | 3 +- ets2panda/test/ast/compiler/ts/array_1.ts | 3 +- ets2panda/test/ast/compiler/ts/array_10.ts | 3 +- ets2panda/test/ast/compiler/ts/array_11.ts | 3 +- ets2panda/test/ast/compiler/ts/array_12.ts | 3 +- ets2panda/test/ast/compiler/ts/array_13.ts | 3 +- ets2panda/test/ast/compiler/ts/array_14.ts | 3 +- ets2panda/test/ast/compiler/ts/array_15.ts | 3 +- ets2panda/test/ast/compiler/ts/array_16.ts | 3 +- ets2panda/test/ast/compiler/ts/array_17.ts | 3 +- ets2panda/test/ast/compiler/ts/array_18.ts | 3 +- ets2panda/test/ast/compiler/ts/array_19.ts | 3 +- ets2panda/test/ast/compiler/ts/array_2.ts | 3 +- ets2panda/test/ast/compiler/ts/array_20.ts | 3 +- ets2panda/test/ast/compiler/ts/array_21.ts | 3 +- ets2panda/test/ast/compiler/ts/array_22.ts | 3 +- ets2panda/test/ast/compiler/ts/array_23.ts | 3 +- ets2panda/test/ast/compiler/ts/array_24.ts | 3 +- ets2panda/test/ast/compiler/ts/array_3.ts | 3 +- ets2panda/test/ast/compiler/ts/array_4.ts | 3 +- ets2panda/test/ast/compiler/ts/array_5.ts | 3 +- ets2panda/test/ast/compiler/ts/array_6.ts | 3 +- ets2panda/test/ast/compiler/ts/array_7.ts | 3 +- ets2panda/test/ast/compiler/ts/array_8.ts | 3 +- ets2panda/test/ast/compiler/ts/array_9.ts | 3 +- .../ast/compiler/ts/array_expression_1.ts | 3 +- .../test/ast/compiler/ts/as_expression_1.ts | 3 +- .../test/ast/compiler/ts/as_expression_10.ts | 3 +- .../test/ast/compiler/ts/as_expression_11.ts | 3 +- .../test/ast/compiler/ts/as_expression_12.ts | 3 +- .../test/ast/compiler/ts/as_expression_13.ts | 3 +- .../test/ast/compiler/ts/as_expression_14.ts | 3 +- .../test/ast/compiler/ts/as_expression_15.ts | 3 +- .../test/ast/compiler/ts/as_expression_2.ts | 3 +- .../test/ast/compiler/ts/as_expression_3.ts | 3 +- .../test/ast/compiler/ts/as_expression_4.ts | 3 +- .../test/ast/compiler/ts/as_expression_5.ts | 3 +- .../test/ast/compiler/ts/as_expression_6.ts | 3 +- .../test/ast/compiler/ts/as_expression_7.ts | 3 +- .../test/ast/compiler/ts/as_expression_8.ts | 3 +- .../test/ast/compiler/ts/as_expression_9.ts | 3 +- .../test/ast/compiler/ts/assignment_never.ts | 3 +- .../test/ast/compiler/ts/call_expression_1.ts | 3 +- .../ast/compiler/ts/cannotAssignToConst.ts | 3 +- .../compiler/ts/constUsedBeforeDeclaration.ts | 3 +- .../test/ast/compiler/ts/functionCall_1.ts | 3 +- .../test/ast/compiler/ts/functionCall_10.ts | 3 +- .../test/ast/compiler/ts/functionCall_11.ts | 3 +- .../test/ast/compiler/ts/functionCall_12.ts | 3 +- .../test/ast/compiler/ts/functionCall_13.ts | 3 +- .../test/ast/compiler/ts/functionCall_14.ts | 3 +- .../test/ast/compiler/ts/functionCall_15.ts | 3 +- .../test/ast/compiler/ts/functionCall_2.ts | 3 +- .../test/ast/compiler/ts/functionCall_3.ts | 3 +- .../test/ast/compiler/ts/functionCall_4.ts | 3 +- .../test/ast/compiler/ts/functionCall_5.ts | 3 +- .../test/ast/compiler/ts/functionCall_6.ts | 3 +- .../test/ast/compiler/ts/functionCall_7.ts | 3 +- .../test/ast/compiler/ts/functionCall_8.ts | 3 +- .../test/ast/compiler/ts/functionCall_9.ts | 3 +- .../test/ast/compiler/ts/functionOverload3.ts | 3 +- .../ast/compiler/ts/functionWithPattern1.ts | 2 +- .../ast/compiler/ts/functionWithPattern10.ts | 3 +- .../ast/compiler/ts/functionWithPattern11.ts | 3 +- .../ast/compiler/ts/functionWithPattern12.ts | 3 +- .../ast/compiler/ts/functionWithPattern2.ts | 2 +- .../ast/compiler/ts/functionWithPattern3.ts | 2 +- .../ast/compiler/ts/functionWithPattern4.ts | 2 +- .../ast/compiler/ts/functionWithPattern5.ts | 3 +- .../ast/compiler/ts/functionWithPattern6.ts | 3 +- .../ast/compiler/ts/functionWithPattern7.ts | 3 +- .../ast/compiler/ts/functionWithPattern8.ts | 2 +- .../ast/compiler/ts/functionWithPattern9.ts | 3 +- .../ast/compiler/ts/function_declaration_1.ts | 3 +- .../compiler/ts/function_declaration_10.ts | 3 +- .../compiler/ts/function_declaration_11.ts | 3 +- .../ast/compiler/ts/function_declaration_2.ts | 3 +- .../ast/compiler/ts/function_declaration_3.ts | 3 +- .../ast/compiler/ts/function_declaration_4.ts | 3 +- .../ast/compiler/ts/function_declaration_5.ts | 3 +- .../ast/compiler/ts/function_declaration_6.ts | 3 +- .../ast/compiler/ts/function_declaration_7.ts | 3 +- .../ast/compiler/ts/function_declaration_8.ts | 3 +- .../ast/compiler/ts/function_declaration_9.ts | 3 +- .../ts/identifierWithoutDeclaration.ts | 3 +- .../ts/identifier_optional_negative.ts | 3 +- ets2panda/test/ast/compiler/ts/in_1.ts | 3 +- ets2panda/test/ast/compiler/ts/in_10.ts | 3 +- ets2panda/test/ast/compiler/ts/in_11.ts | 3 +- ets2panda/test/ast/compiler/ts/in_12.ts | 3 +- ets2panda/test/ast/compiler/ts/in_13.ts | 3 +- ets2panda/test/ast/compiler/ts/in_14.ts | 3 +- ets2panda/test/ast/compiler/ts/in_15.ts | 3 +- ets2panda/test/ast/compiler/ts/in_2.ts | 3 +- ets2panda/test/ast/compiler/ts/in_3.ts | 3 +- ets2panda/test/ast/compiler/ts/in_4.ts | 3 +- ets2panda/test/ast/compiler/ts/in_5.ts | 3 +- ets2panda/test/ast/compiler/ts/in_6.ts | 3 +- ets2panda/test/ast/compiler/ts/in_7.ts | 3 +- ets2panda/test/ast/compiler/ts/in_8.ts | 3 +- ets2panda/test/ast/compiler/ts/in_9.ts | 3 +- .../test/ast/compiler/ts/instanceof_1.ts | 3 +- .../test/ast/compiler/ts/instanceof_10.ts | 3 +- .../test/ast/compiler/ts/instanceof_11.ts | 3 +- .../test/ast/compiler/ts/instanceof_12.ts | 3 +- .../test/ast/compiler/ts/instanceof_13.ts | 3 +- .../test/ast/compiler/ts/instanceof_14.ts | 3 +- .../test/ast/compiler/ts/instanceof_2.ts | 3 +- .../test/ast/compiler/ts/instanceof_3.ts | 3 +- .../test/ast/compiler/ts/instanceof_4.ts | 3 +- .../test/ast/compiler/ts/instanceof_5.ts | 3 +- .../test/ast/compiler/ts/instanceof_6.ts | 3 +- .../test/ast/compiler/ts/instanceof_7.ts | 3 +- .../test/ast/compiler/ts/instanceof_8.ts | 3 +- .../test/ast/compiler/ts/instanceof_9.ts | 3 +- .../ast/compiler/ts/interfaceAssignment1.ts | 3 +- .../ast/compiler/ts/interfaceAssignment2.ts | 3 +- .../ast/compiler/ts/interfaceAssignment3.ts | 3 +- .../ast/compiler/ts/interfaceAssignment4.ts | 3 +- .../ast/compiler/ts/interfaceAssignment5.ts | 3 +- .../ast/compiler/ts/interfaceAssignment6.ts | 3 +- .../ast/compiler/ts/interfaceAssignment7.ts | 3 +- .../ast/compiler/ts/interfaceAssignment8.ts | 3 +- .../ast/compiler/ts/interfaceInheritance1.ts | 3 +- .../ast/compiler/ts/interfaceInheritance2.ts | 3 +- .../ast/compiler/ts/interfaceInheritance3.ts | 3 +- .../ast/compiler/ts/interfaceInheritance4.ts | 3 +- ...cePropertyReferenceContainingInterface1.ts | 3 +- ...erfacePropertyWithIncompatibleIndexInfo.ts | 3 +- .../ast/compiler/ts/interfaceUsedAsValue.ts | 3 +- .../interfaceWithNonCompatibleIndexInfos.ts | 3 +- .../compiler/ts/letUsedBeforeDeclaration.ts | 3 +- .../test/ast/compiler/ts/memberExpTest_1.ts | 3 +- .../test/ast/compiler/ts/memberExpTest_2.ts | 3 +- .../test/ast/compiler/ts/memberExpTest_3.ts | 3 +- .../test/ast/compiler/ts/memberExpTest_4.ts | 3 +- .../test/ast/compiler/ts/memberExpTest_5.ts | 3 +- .../test/ast/compiler/ts/memberExpTest_6.ts | 3 +- .../ast/compiler/ts/member_expression_1.ts | 3 +- .../ast/compiler/ts/member_expression_10.ts | 3 +- .../ast/compiler/ts/member_expression_11.ts | 3 +- .../ast/compiler/ts/member_expression_12.ts | 3 +- .../ast/compiler/ts/member_expression_13.ts | 3 +- .../ast/compiler/ts/member_expression_14.ts | 3 +- .../ast/compiler/ts/member_expression_15.ts | 3 +- .../ast/compiler/ts/member_expression_16.ts | 3 +- .../ast/compiler/ts/member_expression_17.ts | 3 +- .../ast/compiler/ts/member_expression_18.ts | 3 +- .../ast/compiler/ts/member_expression_19.ts | 3 +- .../ast/compiler/ts/member_expression_2.ts | 3 +- .../ast/compiler/ts/member_expression_20.ts | 3 +- .../ast/compiler/ts/member_expression_21.ts | 3 +- .../ast/compiler/ts/member_expression_22.ts | 3 +- .../ast/compiler/ts/member_expression_23.ts | 3 +- .../ast/compiler/ts/member_expression_24.ts | 3 +- .../ast/compiler/ts/member_expression_25.ts | 3 +- .../ast/compiler/ts/member_expression_26.ts | 3 +- .../ast/compiler/ts/member_expression_27.ts | 3 +- .../ast/compiler/ts/member_expression_28.ts | 3 +- .../ast/compiler/ts/member_expression_29.ts | 3 +- .../ast/compiler/ts/member_expression_3.ts | 3 +- .../ast/compiler/ts/member_expression_30.ts | 3 +- .../ast/compiler/ts/member_expression_31.ts | 3 +- .../ast/compiler/ts/member_expression_32.ts | 3 +- .../ast/compiler/ts/member_expression_33.ts | 3 +- .../ast/compiler/ts/member_expression_34.ts | 3 +- .../ast/compiler/ts/member_expression_35.ts | 3 +- .../ast/compiler/ts/member_expression_36.ts | 3 +- .../ast/compiler/ts/member_expression_37.ts | 3 +- .../ast/compiler/ts/member_expression_38.ts | 3 +- .../ast/compiler/ts/member_expression_39.ts | 3 +- .../ast/compiler/ts/member_expression_4.ts | 3 +- .../ast/compiler/ts/member_expression_40.ts | 3 +- .../ast/compiler/ts/member_expression_41.ts | 3 +- .../ast/compiler/ts/member_expression_42.ts | 3 +- .../ast/compiler/ts/member_expression_43.ts | 3 +- .../ast/compiler/ts/member_expression_44.ts | 3 +- .../ast/compiler/ts/member_expression_45.ts | 3 +- .../ast/compiler/ts/member_expression_46.ts | 3 +- .../ast/compiler/ts/member_expression_47.ts | 3 +- .../ast/compiler/ts/member_expression_48.ts | 3 +- .../ast/compiler/ts/member_expression_49.ts | 3 +- .../ast/compiler/ts/member_expression_5.ts | 3 +- .../ast/compiler/ts/member_expression_50.ts | 3 +- .../ast/compiler/ts/member_expression_51.ts | 3 +- .../ast/compiler/ts/member_expression_52.ts | 3 +- .../ast/compiler/ts/member_expression_53.ts | 3 +- .../ast/compiler/ts/member_expression_54.ts | 3 +- .../ast/compiler/ts/member_expression_55.ts | 3 +- .../ast/compiler/ts/member_expression_56.ts | 3 +- .../ast/compiler/ts/member_expression_57.ts | 3 +- .../ast/compiler/ts/member_expression_58.ts | 3 +- .../ast/compiler/ts/member_expression_59.ts | 3 +- .../ast/compiler/ts/member_expression_6.ts | 3 +- .../ast/compiler/ts/member_expression_60.ts | 3 +- .../ast/compiler/ts/member_expression_61.ts | 3 +- .../ast/compiler/ts/member_expression_62.ts | 3 +- .../ast/compiler/ts/member_expression_63.ts | 3 +- .../ast/compiler/ts/member_expression_64.ts | 3 +- .../ast/compiler/ts/member_expression_65.ts | 3 +- .../ast/compiler/ts/member_expression_66.ts | 3 +- .../ast/compiler/ts/member_expression_67.ts | 3 +- .../ast/compiler/ts/member_expression_68.ts | 3 +- .../ast/compiler/ts/member_expression_69.ts | 3 +- .../ast/compiler/ts/member_expression_7.ts | 3 +- .../ast/compiler/ts/member_expression_70.ts | 3 +- .../ast/compiler/ts/member_expression_71.ts | 3 +- .../ast/compiler/ts/member_expression_72.ts | 3 +- .../ast/compiler/ts/member_expression_73.ts | 3 +- .../ast/compiler/ts/member_expression_74.ts | 3 +- .../ast/compiler/ts/member_expression_75.ts | 3 +- .../ast/compiler/ts/member_expression_76.ts | 3 +- .../ast/compiler/ts/member_expression_77.ts | 3 +- .../ast/compiler/ts/member_expression_8.ts | 3 +- .../ast/compiler/ts/member_expression_80.ts | 3 +- .../ast/compiler/ts/member_expression_81.ts | 3 +- .../ast/compiler/ts/member_expression_82.ts | 3 +- .../test/ast/compiler/ts/new_expression_1.ts | 3 +- .../test/ast/compiler/ts/new_expression_10.ts | 3 +- .../ast/compiler/ts/new_expression_100.ts | 3 +- .../ast/compiler/ts/new_expression_101.ts | 3 +- .../ast/compiler/ts/new_expression_102.ts | 3 +- .../ast/compiler/ts/new_expression_103.ts | 3 +- .../ast/compiler/ts/new_expression_104.ts | 3 +- .../ast/compiler/ts/new_expression_105.ts | 3 +- .../ast/compiler/ts/new_expression_106.ts | 3 +- .../ast/compiler/ts/new_expression_107.ts | 3 +- .../ast/compiler/ts/new_expression_108.ts | 3 +- .../ast/compiler/ts/new_expression_109.ts | 3 +- .../test/ast/compiler/ts/new_expression_11.ts | 3 +- .../ast/compiler/ts/new_expression_110.ts | 3 +- .../ast/compiler/ts/new_expression_111.ts | 3 +- .../ast/compiler/ts/new_expression_112.ts | 3 +- .../ast/compiler/ts/new_expression_113.ts | 3 +- .../ast/compiler/ts/new_expression_114.ts | 3 +- .../ast/compiler/ts/new_expression_115.ts | 3 +- .../ast/compiler/ts/new_expression_116.ts | 3 +- .../ast/compiler/ts/new_expression_117.ts | 3 +- .../ast/compiler/ts/new_expression_118.ts | 3 +- .../ast/compiler/ts/new_expression_119.ts | 3 +- .../test/ast/compiler/ts/new_expression_12.ts | 3 +- .../ast/compiler/ts/new_expression_120.ts | 3 +- .../ast/compiler/ts/new_expression_121.ts | 3 +- .../ast/compiler/ts/new_expression_122.ts | 3 +- .../ast/compiler/ts/new_expression_123.ts | 3 +- .../ast/compiler/ts/new_expression_124.ts | 3 +- .../ast/compiler/ts/new_expression_125.ts | 3 +- .../ast/compiler/ts/new_expression_126.ts | 3 +- .../ast/compiler/ts/new_expression_127.ts | 3 +- .../ast/compiler/ts/new_expression_128.ts | 3 +- .../ast/compiler/ts/new_expression_129.ts | 3 +- .../test/ast/compiler/ts/new_expression_13.ts | 3 +- .../ast/compiler/ts/new_expression_130.ts | 3 +- .../ast/compiler/ts/new_expression_131.ts | 3 +- .../ast/compiler/ts/new_expression_132.ts | 3 +- .../ast/compiler/ts/new_expression_133.ts | 3 +- .../ast/compiler/ts/new_expression_134.ts | 3 +- .../ast/compiler/ts/new_expression_135.ts | 3 +- .../ast/compiler/ts/new_expression_136.ts | 3 +- .../ast/compiler/ts/new_expression_137.ts | 3 +- .../ast/compiler/ts/new_expression_138.ts | 3 +- .../ast/compiler/ts/new_expression_139.ts | 3 +- .../test/ast/compiler/ts/new_expression_14.ts | 3 +- .../ast/compiler/ts/new_expression_140.ts | 3 +- .../ast/compiler/ts/new_expression_141.ts | 3 +- .../ast/compiler/ts/new_expression_142.ts | 3 +- .../ast/compiler/ts/new_expression_143.ts | 3 +- .../ast/compiler/ts/new_expression_144.ts | 3 +- .../ast/compiler/ts/new_expression_145.ts | 3 +- .../ast/compiler/ts/new_expression_146.ts | 3 +- .../ast/compiler/ts/new_expression_147.ts | 3 +- .../ast/compiler/ts/new_expression_148.ts | 3 +- .../ast/compiler/ts/new_expression_149.ts | 3 +- .../test/ast/compiler/ts/new_expression_15.ts | 3 +- .../ast/compiler/ts/new_expression_150.ts | 3 +- .../ast/compiler/ts/new_expression_151.ts | 3 +- .../ast/compiler/ts/new_expression_152.ts | 3 +- .../ast/compiler/ts/new_expression_153.ts | 3 +- .../ast/compiler/ts/new_expression_154.ts | 3 +- .../ast/compiler/ts/new_expression_155.ts | 3 +- .../ast/compiler/ts/new_expression_156.ts | 3 +- .../ast/compiler/ts/new_expression_157.ts | 3 +- .../ast/compiler/ts/new_expression_158.ts | 3 +- .../ast/compiler/ts/new_expression_159.ts | 3 +- .../test/ast/compiler/ts/new_expression_16.ts | 3 +- .../ast/compiler/ts/new_expression_160.ts | 3 +- .../ast/compiler/ts/new_expression_161.ts | 3 +- .../ast/compiler/ts/new_expression_162.ts | 3 +- .../ast/compiler/ts/new_expression_163.ts | 3 +- .../ast/compiler/ts/new_expression_164.ts | 3 +- .../test/ast/compiler/ts/new_expression_17.ts | 3 +- .../test/ast/compiler/ts/new_expression_18.ts | 3 +- .../test/ast/compiler/ts/new_expression_19.ts | 3 +- .../test/ast/compiler/ts/new_expression_2.ts | 3 +- .../test/ast/compiler/ts/new_expression_20.ts | 3 +- .../test/ast/compiler/ts/new_expression_21.ts | 3 +- .../test/ast/compiler/ts/new_expression_22.ts | 3 +- .../test/ast/compiler/ts/new_expression_23.ts | 3 +- .../test/ast/compiler/ts/new_expression_24.ts | 3 +- .../test/ast/compiler/ts/new_expression_25.ts | 3 +- .../test/ast/compiler/ts/new_expression_26.ts | 3 +- .../test/ast/compiler/ts/new_expression_27.ts | 3 +- .../test/ast/compiler/ts/new_expression_28.ts | 3 +- .../test/ast/compiler/ts/new_expression_29.ts | 3 +- .../test/ast/compiler/ts/new_expression_3.ts | 3 +- .../test/ast/compiler/ts/new_expression_30.ts | 3 +- .../test/ast/compiler/ts/new_expression_31.ts | 3 +- .../test/ast/compiler/ts/new_expression_32.ts | 3 +- .../test/ast/compiler/ts/new_expression_33.ts | 3 +- .../test/ast/compiler/ts/new_expression_34.ts | 3 +- .../test/ast/compiler/ts/new_expression_35.ts | 3 +- .../test/ast/compiler/ts/new_expression_36.ts | 3 +- .../test/ast/compiler/ts/new_expression_37.ts | 3 +- .../test/ast/compiler/ts/new_expression_38.ts | 3 +- .../test/ast/compiler/ts/new_expression_39.ts | 3 +- .../test/ast/compiler/ts/new_expression_4.ts | 3 +- .../test/ast/compiler/ts/new_expression_40.ts | 3 +- .../test/ast/compiler/ts/new_expression_41.ts | 3 +- .../test/ast/compiler/ts/new_expression_42.ts | 3 +- .../test/ast/compiler/ts/new_expression_43.ts | 3 +- .../test/ast/compiler/ts/new_expression_44.ts | 3 +- .../test/ast/compiler/ts/new_expression_45.ts | 3 +- .../test/ast/compiler/ts/new_expression_46.ts | 3 +- .../test/ast/compiler/ts/new_expression_47.ts | 3 +- .../test/ast/compiler/ts/new_expression_48.ts | 3 +- .../test/ast/compiler/ts/new_expression_49.ts | 3 +- .../test/ast/compiler/ts/new_expression_5.ts | 3 +- .../test/ast/compiler/ts/new_expression_50.ts | 3 +- .../test/ast/compiler/ts/new_expression_51.ts | 3 +- .../test/ast/compiler/ts/new_expression_52.ts | 3 +- .../test/ast/compiler/ts/new_expression_53.ts | 3 +- .../test/ast/compiler/ts/new_expression_54.ts | 3 +- .../test/ast/compiler/ts/new_expression_55.ts | 3 +- .../test/ast/compiler/ts/new_expression_56.ts | 3 +- .../test/ast/compiler/ts/new_expression_57.ts | 3 +- .../test/ast/compiler/ts/new_expression_58.ts | 3 +- .../test/ast/compiler/ts/new_expression_59.ts | 3 +- .../test/ast/compiler/ts/new_expression_6.ts | 3 +- .../test/ast/compiler/ts/new_expression_60.ts | 3 +- .../test/ast/compiler/ts/new_expression_61.ts | 3 +- .../test/ast/compiler/ts/new_expression_62.ts | 3 +- .../test/ast/compiler/ts/new_expression_63.ts | 3 +- .../test/ast/compiler/ts/new_expression_64.ts | 3 +- .../test/ast/compiler/ts/new_expression_65.ts | 3 +- .../test/ast/compiler/ts/new_expression_66.ts | 3 +- .../test/ast/compiler/ts/new_expression_67.ts | 3 +- .../test/ast/compiler/ts/new_expression_68.ts | 3 +- .../test/ast/compiler/ts/new_expression_69.ts | 3 +- .../test/ast/compiler/ts/new_expression_7.ts | 3 +- .../test/ast/compiler/ts/new_expression_70.ts | 3 +- .../test/ast/compiler/ts/new_expression_71.ts | 3 +- .../test/ast/compiler/ts/new_expression_72.ts | 3 +- .../test/ast/compiler/ts/new_expression_73.ts | 3 +- .../test/ast/compiler/ts/new_expression_74.ts | 3 +- .../test/ast/compiler/ts/new_expression_75.ts | 3 +- .../test/ast/compiler/ts/new_expression_76.ts | 3 +- .../test/ast/compiler/ts/new_expression_77.ts | 3 +- .../test/ast/compiler/ts/new_expression_78.ts | 3 +- .../test/ast/compiler/ts/new_expression_79.ts | 3 +- .../test/ast/compiler/ts/new_expression_8.ts | 3 +- .../test/ast/compiler/ts/new_expression_80.ts | 3 +- .../test/ast/compiler/ts/new_expression_81.ts | 3 +- .../test/ast/compiler/ts/new_expression_82.ts | 3 +- .../test/ast/compiler/ts/new_expression_83.ts | 3 +- .../test/ast/compiler/ts/new_expression_84.ts | 3 +- .../test/ast/compiler/ts/new_expression_85.ts | 3 +- .../test/ast/compiler/ts/new_expression_86.ts | 3 +- .../test/ast/compiler/ts/new_expression_87.ts | 3 +- .../test/ast/compiler/ts/new_expression_88.ts | 3 +- .../test/ast/compiler/ts/new_expression_89.ts | 3 +- .../test/ast/compiler/ts/new_expression_9.ts | 3 +- .../test/ast/compiler/ts/new_expression_90.ts | 3 +- .../test/ast/compiler/ts/new_expression_91.ts | 3 +- .../test/ast/compiler/ts/new_expression_92.ts | 3 +- .../test/ast/compiler/ts/new_expression_93.ts | 3 +- .../test/ast/compiler/ts/new_expression_94.ts | 3 +- .../test/ast/compiler/ts/new_expression_95.ts | 3 +- .../test/ast/compiler/ts/new_expression_96.ts | 3 +- .../test/ast/compiler/ts/new_expression_97.ts | 3 +- .../test/ast/compiler/ts/new_expression_98.ts | 3 +- .../test/ast/compiler/ts/new_expression_99.ts | 3 +- .../ast/compiler/ts/objectDestructuring1.ts | 3 +- .../ast/compiler/ts/objectDestructuring10.ts | 3 +- .../ast/compiler/ts/objectDestructuring11.ts | 3 +- .../ast/compiler/ts/objectDestructuring12.ts | 3 +- .../ast/compiler/ts/objectDestructuring13.ts | 3 +- .../ast/compiler/ts/objectDestructuring14.ts | 3 +- .../ast/compiler/ts/objectDestructuring15.ts | 3 +- .../ast/compiler/ts/objectDestructuring16.ts | 3 +- .../ast/compiler/ts/objectDestructuring17.ts | 3 +- .../ast/compiler/ts/objectDestructuring18.ts | 3 +- .../ast/compiler/ts/objectDestructuring19.ts | 3 +- .../ast/compiler/ts/objectDestructuring2.ts | 3 +- .../ast/compiler/ts/objectDestructuring20.ts | 3 +- .../ast/compiler/ts/objectDestructuring21.ts | 3 +- .../ast/compiler/ts/objectDestructuring22.ts | 3 +- .../ast/compiler/ts/objectDestructuring23.ts | 3 +- .../ast/compiler/ts/objectDestructuring24.ts | 3 +- .../ast/compiler/ts/objectDestructuring25.ts | 3 +- .../ast/compiler/ts/objectDestructuring26.ts | 3 +- .../ast/compiler/ts/objectDestructuring27.ts | 3 +- .../ast/compiler/ts/objectDestructuring28.ts | 3 +- .../ast/compiler/ts/objectDestructuring29.ts | 3 +- .../ast/compiler/ts/objectDestructuring3.ts | 3 +- .../ast/compiler/ts/objectDestructuring30.ts | 3 +- .../ast/compiler/ts/objectDestructuring31.ts | 3 +- .../ast/compiler/ts/objectDestructuring32.ts | 3 +- .../ast/compiler/ts/objectDestructuring33.ts | 3 +- .../ast/compiler/ts/objectDestructuring34.ts | 3 +- .../ast/compiler/ts/objectDestructuring35.ts | 3 +- .../ast/compiler/ts/objectDestructuring36.ts | 3 +- .../ast/compiler/ts/objectDestructuring37.ts | 3 +- .../ast/compiler/ts/objectDestructuring38.ts | 3 +- .../ast/compiler/ts/objectDestructuring39.ts | 3 +- .../ast/compiler/ts/objectDestructuring4.ts | 3 +- .../ast/compiler/ts/objectDestructuring40.ts | 3 +- .../ast/compiler/ts/objectDestructuring41.ts | 3 +- .../ast/compiler/ts/objectDestructuring5.ts | 3 +- .../ast/compiler/ts/objectDestructuring6.ts | 3 +- .../ast/compiler/ts/objectDestructuring7.ts | 3 +- .../ast/compiler/ts/objectDestructuring8.ts | 3 +- .../ast/compiler/ts/objectDestructuring9.ts | 3 +- .../ts/objectLiteralAssignability1.ts | 3 +- .../ts/objectLiteralAssignability10.ts | 3 +- .../ts/objectLiteralAssignability11.ts | 3 +- .../ts/objectLiteralAssignability12.ts | 3 +- .../ts/objectLiteralAssignability13.ts | 3 +- .../ts/objectLiteralAssignability14.ts | 3 +- .../ts/objectLiteralAssignability15.ts | 3 +- .../ts/objectLiteralAssignability16.ts | 3 +- .../ts/objectLiteralAssignability17.ts | 3 +- .../ts/objectLiteralAssignability18.ts | 3 +- .../ts/objectLiteralAssignability19.ts | 3 +- .../ts/objectLiteralAssignability2.ts | 3 +- .../ts/objectLiteralAssignability20.ts | 2 +- .../ts/objectLiteralAssignability3.ts | 3 +- .../ts/objectLiteralAssignability4.ts | 3 +- .../ts/objectLiteralAssignability5.ts | 3 +- .../ts/objectLiteralAssignability6.ts | 3 +- .../ts/objectLiteralAssignability7.ts | 3 +- .../ts/objectLiteralAssignability8.ts | 3 +- .../ts/objectLiteralAssignability9.ts | 3 +- .../ast/compiler/ts/object_expression_1.ts | 3 +- .../test/ast/compiler/ts/recursiveFunction.ts | 3 +- .../ts/recursiveTypeofWithProperty.ts | 3 +- .../ast/compiler/ts/switch_statement_bad.ts | 3 +- .../test/ast/compiler/ts/test-interface4.ts | 3 +- .../test/ast/compiler/ts/test-interface5.ts | 3 +- .../test/ast/compiler/ts/test-interface6.ts | 3 +- .../test/ast/compiler/ts/test-interface7.ts | 3 +- .../ast/compiler/ts/test-type-literal4.ts | 3 +- .../ast/compiler/ts/test-type-literal5.ts | 3 +- .../ast/compiler/ts/test-type-literal6.ts | 3 +- .../ast/compiler/ts/test-type-literal7.ts | 3 +- .../ts/test_variable_declaration_null.ts | 3 +- .../ast/compiler/ts/tupleAssignability1.ts | 3 +- .../ast/compiler/ts/tupleAssignability10.ts | 3 +- .../ast/compiler/ts/tupleAssignability11.ts | 3 +- .../ast/compiler/ts/tupleAssignability12.ts | 3 +- .../ast/compiler/ts/tupleAssignability13.ts | 3 +- .../ast/compiler/ts/tupleAssignability14.ts | 3 +- .../ast/compiler/ts/tupleAssignability15.ts | 3 +- .../ast/compiler/ts/tupleAssignability16.ts | 3 +- .../ast/compiler/ts/tupleAssignability17.ts | 3 +- .../ast/compiler/ts/tupleAssignability18.ts | 3 +- .../ast/compiler/ts/tupleAssignability19.ts | 3 +- .../ast/compiler/ts/tupleAssignability2.ts | 3 +- .../ast/compiler/ts/tupleAssignability20.ts | 3 +- .../ast/compiler/ts/tupleAssignability21.ts | 3 +- .../ast/compiler/ts/tupleAssignability22.ts | 3 +- .../ast/compiler/ts/tupleAssignability23.ts | 3 +- .../ast/compiler/ts/tupleAssignability24.ts | 3 +- .../ast/compiler/ts/tupleAssignability3.ts | 3 +- .../ast/compiler/ts/tupleAssignability4.ts | 3 +- .../ast/compiler/ts/tupleAssignability5.ts | 3 +- .../ast/compiler/ts/tupleAssignability6.ts | 3 +- .../ast/compiler/ts/tupleAssignability7.ts | 3 +- .../ast/compiler/ts/tupleAssignability8.ts | 3 +- .../ast/compiler/ts/tupleAssignability9.ts | 3 +- .../ast/compiler/ts/typeAliasUsedAsValue.ts | 3 +- .../compiler/ts/undefined_variable_name.ts | 3 +- .../test/ast/compiler/ts/varRedeclaration1.ts | 3 +- .../ast/compiler/ts/varRedeclaration10.ts | 3 +- .../ast/compiler/ts/varRedeclaration11.ts | 3 +- .../ast/compiler/ts/varRedeclaration12.ts | 3 +- .../ast/compiler/ts/varRedeclaration13.ts | 3 +- .../ast/compiler/ts/varRedeclaration14.ts | 3 +- .../ast/compiler/ts/varRedeclaration15.ts | 3 +- .../test/ast/compiler/ts/varRedeclaration2.ts | 3 +- .../test/ast/compiler/ts/varRedeclaration3.ts | 3 +- .../test/ast/compiler/ts/varRedeclaration4.ts | 3 +- .../test/ast/compiler/ts/varRedeclaration5.ts | 3 +- .../test/ast/compiler/ts/varRedeclaration6.ts | 3 +- .../test/ast/compiler/ts/varRedeclaration7.ts | 3 +- .../test/ast/compiler/ts/varRedeclaration8.ts | 3 +- .../test/ast/compiler/ts/varRedeclaration9.ts | 2 +- .../ast/parser/as/test_class_property1.ts | 3 +- .../test/ast/parser/as/test_declare_method.ts | 3 +- .../test/ast/parser/as/test_decorator.ts | 5 +- .../test/ast/parser/as/test_decorators2.ts | 3 +- .../test/ast/parser/as/test_decorators3.ts | 3 +- .../test/ast/parser/as/test_interface1.ts | 3 +- .../test/ast/parser/as/test_interface2.ts | 3 +- .../test/ast/parser/as/test_interface3.ts | 3 +- .../test/ast/parser/as/test_interface4.ts | 3 +- .../test/ast/parser/as/test_interface5.ts | 3 +- .../ast/parser/as/test_object_literal1.ts | 3 +- .../ast/parser/as/test_object_literal2.ts | 3 +- .../ast/parser/as/test_object_literal3.ts | 3 +- .../ast/parser/as/test_object_literal4.ts | 3 +- .../ast/parser/as/test_type_annotation1.ts | 4 +- .../ast/parser/as/test_type_annotation2.ts | 4 +- .../ast/parser/as/test_type_annotation3.ts | 3 +- .../ast/parser/as/test_type_annotation4.ts | 4 +- .../ast/parser/as/test_type_annotation5.ts | 3 +- .../ast/parser/as/test_type_annotation6.ts | 4 +- .../test/ast/parser/ets/AllowSequence.ets | 3 +- .../ast/parser/ets/DeclareAsyncFunction.ets | 4 +- .../ast/parser/ets/Dollar_doller_invalid1.ets | 3 +- .../ast/parser/ets/Dollar_doller_invalid2.ets | 6 +- .../ast/parser/ets/Dollar_doller_invalid3.ets | 3 +- .../FunctionalTypeAsArrayElement.ets | 3 +- .../ets/FixedArray/InvalidStatements3.ets | 39 +- .../ets/FixedArray/MultipleParserErrors.ets | 255 +- .../ast/parser/ets/FixedArray/StringFasta.ets | 109 +- .../ast/parser/ets/FixedArray/array_2.ets | 9 +- .../ets/FixedArray/array_missing_element.ets | 11 +- .../ast/parser/ets/FixedArray/array_type.ets | 9 +- .../test/ast/parser/ets/FixedArray/enum11.ets | 7 +- .../ets_never_type_without_affect_other.ets | 5 +- .../ets/FixedArray/forOfCustomIterator1.ets | 7 +- .../ets/FixedArray/forOfCustomIterator2.ets | 7 +- .../ast/parser/ets/FixedArray/for_of_02.ets | 3 +- .../ast/parser/ets/FixedArray/for_of_03.ets | 5 +- .../ets/FixedArray/functionTypeParam_neg2.ets | 33 +- .../parser/ets/FixedArray/function_decl.ets | 3 +- .../FixedArray/illegal_union_member_exp.ets | 2 +- .../parser/ets/FixedArray/invalidTypes.ets | 95 +- .../ets/FixedArray/main_entry_point_3.ets | 3 +- .../ets/FixedArray/main_entry_point_4.ets | 3 +- .../ets/FixedArray/main_entry_point_5.ets | 3 +- .../ast/parser/ets/FixedArray/method_full.ets | 11 +- .../FixedArray/n_arrayHoldingNullValue.ets | 5 +- .../ets/FixedArray/nonIntegralIndex.ets | 3 +- .../predefined_non_primitive_types.ets | 9 +- .../Readonly-with-ArrayType-test1.ets | 5 +- .../Readonly-with-ArrayType-test4.ets | 3 +- .../ets/FixedArray/record_object_value.ets | 12 +- .../ets/FixedArray/rest_parameter_04.ets | 9 +- .../ets/FixedArray/spreadArrayInTuple.ets | 9 +- .../spreadexpr_in_newexpr_neg01.ets | 19 +- .../spreadexpr_in_newexpr_neg02.ets | 3 +- .../parser/ets/FixedArray/static_field_3.ets | 3 +- .../ets/FixedArray/static_func_call_8.ets | 3 +- .../ets/FixedArray/superInConstructor3.ets | 3 +- .../ets/FixedArray/trailing_comma_1.ets | 65 +- .../ets/FixedArray/tuple_type_2_neg.ets | 23 +- .../FixedArray/type_argument_conversion.ets | 11 +- .../parser/ets/FixedArray/unclosed_loop.ets | 8 +- .../ets/FixedArray/unexpected_token_26.ets | 3 +- .../ets/FixedArray/unexpected_token_31.ets | 27 +- .../ets/FixedArray/unexpected_token_36.ets | 19 +- .../ets/FixedArray/unexpected_token_38.ets | 15 +- .../ets/FixedArray/unexpected_token_39.ets | 3 +- .../ets/FixedArray/unexpected_token_42.ets | 5 +- .../ets/FixedArray/unexpected_token_47.ets | 9 +- .../wrong-union-array-assignment.ets | 3 +- .../ets/FunctionalTypeAsArrayElement.ets | 3 +- .../parser/ets/InferTypeParamFromParam2.ets | 3 +- .../ast/parser/ets/InitialCheckForGeneric.ets | 5 +- .../ets/InterfaceWithDefaultFunction1.ets | 3 +- .../ets/InterfaceWithDefaultFunction2.ets | 3 +- .../ets/Interface_variable_identifier.ets | 9 +- .../test/ast/parser/ets/InvalidClasses.ets | 105 +- .../ast/parser/ets/InvalidExpressions.ets | 109 +- .../ast/parser/ets/InvalidExpressions1.ets | 85 +- .../test/ast/parser/ets/InvalidParserImpl.ets | 9 +- .../ast/parser/ets/InvalidStatements1.ets | 37 +- .../ast/parser/ets/InvalidStatements2.ets | 25 +- .../ast/parser/ets/InvalidStatements3.ets | 39 +- .../test/ast/parser/ets/InvalidTyped.ets | 47 +- .../ets/Multiline_string_escape_char.ets | 7 +- .../ast/parser/ets/MultipleClassErrors.ets | 19 +- .../ast/parser/ets/MultipleFunctionErrors.ets | 11 +- .../ast/parser/ets/MultipleParserErrors.ets | 249 +- ets2panda/test/ast/parser/ets/SmartCast_1.ets | 2 +- ets2panda/test/ast/parser/ets/SmartCast_2.ets | 2 +- ets2panda/test/ast/parser/ets/SmartCast_3.ets | 3 +- ets2panda/test/ast/parser/ets/SmartCast_4.ets | 3 +- ets2panda/test/ast/parser/ets/StringFasta.ets | 109 +- ets2panda/test/ast/parser/ets/StructTest1.ets | 3 +- ets2panda/test/ast/parser/ets/StructTest2.ets | 3 +- ets2panda/test/ast/parser/ets/StructTest3.ets | 3 +- .../test/ast/parser/ets/TypeInferFunc.ets | 2 +- .../test/ast/parser/ets/UnexpectedToken.ets | 23 +- .../parser/ets/abstract_class_modidier.ets | 3 +- .../test/ast/parser/ets/access_modifier_1.ets | 3 +- .../test/ast/parser/ets/access_modifier_4.ets | 3 +- .../test/ast/parser/ets/accessor_call.ets | 3 +- .../test/ast/parser/ets/accessor_void.ets | 3 +- .../parser/ets/accessor_with_this_param.ets | 11 +- .../parser/ets/ambient_class_missing_body.ets | 2 +- .../ast/parser/ets/ambient_declaration.ets | 9 +- .../ast/parser/ets/ambient_indexer_10.ets | 3 +- .../test/ast/parser/ets/ambient_indexer_2.ets | 2 +- .../test/ast/parser/ets/ambient_indexer_3.ets | 19 +- .../test/ast/parser/ets/ambient_indexer_4.ets | 9 +- .../test/ast/parser/ets/ambient_indexer_5.ets | 7 +- .../test/ast/parser/ets/ambient_indexer_7.ets | 7 +- .../test/ast/parser/ets/ambient_indexer_8.ets | 11 +- .../test/ast/parser/ets/ambient_indexer_9.ets | 3 +- .../ets/ambient_iterable_declaration.ets | 3 +- .../test/ast/parser/ets/ambiguous_call_1.ets | 3 +- .../test/ast/parser/ets/ambiguous_call_2.ets | 5 +- .../test/ast/parser/ets/ambiguous_call_3.ets | 3 +- .../ets/anno_interface_invalid_error.ets | 7 +- .../annotationDecl_bad_initializer01.ets | 7 +- .../annotationDecl_bad_initializer02.ets | 5 +- .../annotationDecl_bad_initializer03.ets | 4 +- .../annotationDecl_bad_initializer04.ets | 4 +- .../annotationDecl_bad_initializer05.ets | 4 +- .../annotationDecl_bad_initializer06.ets | 3 +- .../annotationDecl_classDecl_conflict.ets | 5 +- .../annotationDecl_enum_conflict.ets | 3 +- .../annotationDecl_field_with_modifiers01.ets | 3 +- .../annotationDecl_field_with_modifiers02.ets | 3 +- .../annotationDecl_field_with_modifiers03.ets | 3 +- .../annotationDecl_field_with_modifiers04.ets | 3 +- .../annotationDecl_interface_conflict.ets | 5 +- .../annotationDecl_locally.ets | 5 +- ...nnotationDecl_missing_typeAnnotation01.ets | 3 +- ...nnotationDecl_missing_typeAnnotation02.ets | 3 +- ...nnotationDecl_missing_typeAnnotation03.ets | 3 +- .../annotationDecl_parser_bad_token01.ets | 3 +- .../annotationDecl_parser_bad_token02.ets | 11 +- .../annotationDecl_parser_bad_token03.ets | 11 +- .../annotationDecl_parser_bad_token04.ets | 3 +- .../annotationDecl_parser_bad_token05.ets | 3 +- .../annotationDecl_parser_bad_token06.ets | 9 +- .../annotationDecl_parser_bad_token07.ets | 5 +- .../annotationDecl_redefined.ets | 3 +- .../annotationDecl_with_access_modifier01.ets | 7 +- .../annotationDecl_with_access_modifier02.ets | 7 +- .../annotationDecl_with_access_modifier03.ets | 5 +- .../annotationDecl_with_innerclass.ets | 13 +- .../annotationDecl_with_method.ets | 15 +- .../annotationUsage_bad_param01.ets | 7 +- .../annotationUsage_bad_param02.ets | 7 +- .../annotationUsage_bad_param03.ets | 5 +- .../annotationUsage_bad_param04.ets | 5 +- .../annotationUsage_bad_param05.ets | 3 +- .../annotationUsage_bad_param06.ets | 6 +- .../annotationUsage_bad_param07.ets | 7 +- ...ationUsage_bad_param_for_classproperty.ets | 13 +- ...tionUsage_bad_param_for_function_param.ets | 7 +- ...age_bad_param_for_global_variable_decl.ets | 7 +- ...nnotationUsage_bad_param_for_interface.ets | 7 +- ...ionUsage_bad_param_for_interfacemethod.ets | 7 +- ...nUsage_bad_param_for_interfaceproperty.ets | 9 +- .../annotationUsage_bad_param_for_lambda.ets | 4 +- ...sage_bad_param_for_local_variable_decl.ets | 7 +- ...notationUsage_bad_param_for_type_alias.ets | 11 +- .../annotationUsage_for_invalid_expr.ets | 5 +- ...tionUsage_missing_AT_for_classproperty.ets | 11 +- ...ionUsage_missing_AT_for_function_param.ets | 82 +- .../annotationUsage_missing_initializer01.ets | 3 +- .../annotationUsage_on_annotationDecl.ets | 3 +- .../annotationUsage_parser_bad_token01.ets | 11 +- .../annotationUsage_parser_bad_token02.ets | 5 +- .../annotationUsage_parser_bad_token03.ets | 9 +- .../annotationUsage_parser_bad_token04.ets | 9 +- .../annotationUsage_parser_bad_token05.ets | 9 +- .../annotations_tests/annotationUsage_tmp.ets | 7 +- .../annotation_default_export.ets | 3 +- .../annotation_rename_export.ets | 3 +- .../annotation_rename_import.ets | 3 +- .../annotation_usage_wrong_ref.ets | 2 +- .../test/ast/parser/ets/anonymous_class.ets | 5 +- .../parser/ets/arithmetic/ops_overflow.ets | 21 +- ets2panda/test/ast/parser/ets/array_2.ets | 9 +- .../parser/ets/array_literal_inference.ets | 2 +- .../ast/parser/ets/array_missing_element.ets | 11 +- .../test/ast/parser/ets/array_new_failed.ets | 3 +- ets2panda/test/ast/parser/ets/array_type.ets | 9 +- ...y_union_type_not_contains_nullish_type.ets | 3 +- ets2panda/test/ast/parser/ets/arrow_1.ets | 3 +- .../ets/assert_with_not_boolean_type_1.ets | 4 +- .../ets/assert_with_not_boolean_type_2.ets | 5 +- .../test/ast/parser/ets/assign-func-iface.ets | 3 +- ets2panda/test/ast/parser/ets/assign_bad.ets | 13 +- ...functional_variable_to_functional_type.ets | 3 +- ...nctional_variable_to_functional_type_1.ets | 3 +- .../parser/ets/assignment_with_wrong_type.ets | 3 +- .../ets/asteriks_in_selective_binding.ets | 9 +- .../ast/parser/ets/async_abstract_bad.ets | 3 +- ets2panda/test/ast/parser/ets/async_ctor.ets | 3 +- .../parser/ets/async_func_return_type_bad.ets | 3 +- .../ast/parser/ets/async_function_bad.ets | 21 +- .../test/ast/parser/ets/async_method_bad.ets | 7 +- ets2panda/test/ast/parser/ets/async_this.ets | 2 +- .../ast/parser/ets/await_argument_null.ets | 7 +- .../test/ast/parser/ets/await_object_bad.ets | 5 +- .../test/ast/parser/ets/await_promise_bad.ets | 5 +- ...all_expression_for_non_functional_type.ets | 5 +- ets2panda/test/ast/parser/ets/calls.ets | 3 +- .../ast/parser/ets/cast_expressions10.ets | 6 +- .../test/ast/parser/ets/cast_expressions2.ets | 3 +- .../test/ast/parser/ets/cast_expressions7.ets | 6 +- .../test/ast/parser/ets/cast_expressions9.ets | 2 +- .../ast/parser/ets/circular_class_extends.ets | 3 +- .../ets/circular_in_class_functions.ets | 11 +- .../ast/parser/ets/circular_type_in_alias.ets | 35 +- .../ets/circulary_interface_declaration.ets | 3 +- .../class-instance-field-redeclaration.ets | 3 +- .../ets/class-static-field-redeclaration.ets | 3 +- .../ast/parser/ets/classAsFunctionParam.ets | 7 +- .../test/ast/parser/ets/class_as_object_1.ets | 6 +- .../test/ast/parser/ets/class_composite_1.ets | 5 +- .../ets/class_composite_invalid_target.ets | 3 +- .../class_interface_enum_only_top_level_1.ets | 3 +- .../class_interface_enum_only_top_level_2.ets | 3 +- .../class_interface_enum_only_top_level_3.ets | 3 +- .../class_interface_enum_only_top_level_5.ets | 3 +- .../test/ast/parser/ets/class_keyword.ets | 7 +- ..._late_initialization_conflict_modifier.ets | 9 +- ...late_initialization_with_initalizer_01.ets | 3 +- ...late_initialization_with_initalizer_02.ets | 9 +- ...late_initialization_with_initalizer_03.ets | 5 +- ...te_initialization_with_invalid_type_01.ets | 8 +- ...te_initialization_with_invalid_type_02.ets | 10 +- ...te_initialization_with_invalid_type_03.ets | 5 +- ...te_initialization_with_invalid_type_04.ets | 3 +- .../parser/ets/class_optional_property.ets | 3 +- .../ast/parser/ets/class_property_access.ets | 3 +- ...c_late_initialization_assignment_error.ets | 3 +- .../ast/parser/ets/class_variable_empty.ets | 9 +- .../test/ast/parser/ets/comma_only_in_for.ets | 3 +- .../ast/parser/ets/comma_only_in_for_2.ets | 3 +- .../ast/parser/ets/constFloatInSwitch.ets | 5 +- .../ets/constant_expression_divide_zero.ets | 5 +- .../parser/ets/constructorFunctionType_n.ets | 3 +- .../parser/ets/constructor_default_super.ets | 3 +- .../ets/constructor_functionbody_nullptr.ets | 3 +- .../parser/ets/constructor_super_call2.ets | 3 +- .../ets/constructor_type_inference_crash.ets | 9 +- .../ets/constructor_type_parameters.ets | 3 +- .../parser/ets/constructor_with_return_1.ets | 3 +- .../parser/ets/constructor_with_return_3.ets | 3 +- .../test/ast/parser/ets/constructors.ets | 3 +- .../continue_while_target_outside_lambda.ets | 3 +- .../test/ast/parser/ets/cycle_constructor.ets | 8 +- .../test/ast/parser/ets/decl_in_param.ets | 7 +- .../parser/ets/declare_ambient_context.ets | 3 +- .../ast/parser/ets/declare_annotation.ets | 19 +- .../ast/parser/ets/declare_class_bad_1.ets | 7 +- .../ast/parser/ets/declare_class_bad_2.ets | 3 +- .../ast/parser/ets/declare_class_bad_3.ets | 7 +- .../ast/parser/ets/declare_class_bad_4.ets | 3 +- .../ast/parser/ets/declare_class_bad_5.ets | 24 +- .../test/ast/parser/ets/declare_class_neg.ets | 7 +- .../test/ast/parser/ets/declare_func_bad.ets | 3 +- .../ast/parser/ets/declare_namespace_5.ets | 19 +- .../ast/parser/ets/default_parameter2.ets | 5 +- .../ast/parser/ets/default_parameter3.ets | 3 +- .../ets/default_parameters_multi_error.ets | 4 +- .../ast/parser/ets/differentTypeCompare.ets | 3 +- .../ast/parser/ets/distinguishable-decl-1.ets | 3 +- ets2panda/test/ast/parser/ets/do_while.ets | 13 +- .../parser/ets/do_while_with_empty_body.ets | 17 +- .../ets/do_while_with_empty_condition.ets | 7 +- ...sis_invocation_setter_supposed_to_fail.ets | 15 +- ...arenthesis_invocation_supposed_to_fail.ets | 17 +- .../ast/parser/ets/duplicated_identifier.ets | 3 +- .../dynamic_class_ctor_decl_import_bad.ets | 7 +- .../dynamic_class_field_decl_import_bad_1.ets | 3 +- .../dynamic_class_field_decl_import_bad_2.ets | 3 +- .../dynamic_class_interface.ets | 16 +- ...dynamic_class_method_decl_import_bad_1.ets | 5 +- ...dynamic_class_method_decl_import_bad_2.ets | 3 +- .../dynamic_func_decl_import_bad.ets | 5 +- .../readonly_dynamic_class_interface.ets | 7 +- ...static_class_extends_dynamic_class_bad.ets | 3 +- ...tatic_class_impl_dynamic_interface_bad.ets | 3 +- ...nterface_extends_dynamic_interface_bad.ets | 3 +- .../parser/ets/dynmicImportUnimplemented.ets | 5 +- .../ets/empty_array_map_inference_fail.ets | 9 +- ets2panda/test/ast/parser/ets/enum.ets | 3 +- ets2panda/test/ast/parser/ets/enum11.ets | 7 +- ets2panda/test/ast/parser/ets/enum12.ets | 3 +- ets2panda/test/ast/parser/ets/enum13.ets | 3 +- ets2panda/test/ast/parser/ets/enum14.ets | 3 +- ets2panda/test/ast/parser/ets/enum15.ets | 6 +- ets2panda/test/ast/parser/ets/enum16.ets | 11 +- ets2panda/test/ast/parser/ets/enum17.ets | 5 +- ets2panda/test/ast/parser/ets/enum18.ets | 5 +- ets2panda/test/ast/parser/ets/enum2.ets | 9 +- ets2panda/test/ast/parser/ets/enum20.ets | 9 +- ets2panda/test/ast/parser/ets/enum22.ets | 3 +- ets2panda/test/ast/parser/ets/enum23.ets | 2 +- ets2panda/test/ast/parser/ets/enum24.ets | 3 +- ets2panda/test/ast/parser/ets/enum26.ets | 7 +- ets2panda/test/ast/parser/ets/enum27.ets | 5 +- ets2panda/test/ast/parser/ets/enum28.ets | 3 +- ets2panda/test/ast/parser/ets/enum29.ets | 5 +- ets2panda/test/ast/parser/ets/enum31.ets | 5 +- ets2panda/test/ast/parser/ets/enum32.ets | 9 +- ets2panda/test/ast/parser/ets/enum34.ets | 3 +- ets2panda/test/ast/parser/ets/enum5.ets | 7 +- ets2panda/test/ast/parser/ets/enum6.ets | 3 +- ets2panda/test/ast/parser/ets/enum7.ets | 3 +- ets2panda/test/ast/parser/ets/enum8.ets | 3 +- .../test/ast/parser/ets/enumAnnotation3.ets | 3 +- .../test/ast/parser/ets/enumAnnotation4.ets | 2 +- .../test/ast/parser/ets/enumAnnotation5.ets | 4 +- .../test/ast/parser/ets/enumAnnotation6.ets | 3 +- .../ets/enum_default_invalid_value_type.ets | 7 +- .../ast/parser/ets/enum_default_negative.ets | 21 +- .../ast/parser/ets/enum_default_negative1.ets | 8 +- .../ets/enum_multi_error/enum_empty.ets | 8 +- .../enum_not_pair_brackets.ets | 4 +- .../enum_multi_error/enum_with_identifier.ets | 6 +- .../ets_never_type_without_affect_other.ets | 5 +- .../ast/parser/ets/export_after_statement.ets | 5 +- ets2panda/test/ast/parser/ets/export_as.ets | 7 +- .../test/ast/parser/ets/export_assignment.ets | 9 +- .../ets/export_default_multiple_specifier.ets | 3 +- .../extension_function_error1.ets | 9 +- .../extension_function_error2.ets | 27 +- .../extension_function_not_in_toplevel.ets | 7 +- ets2panda/test/ast/parser/ets/fields.ets | 3 +- .../ast/parser/ets/forOfCustomIterator1.ets | 7 +- .../ast/parser/ets/forOfCustomIterator2.ets | 7 +- ets2panda/test/ast/parser/ets/forOfType.ets | 3 +- .../test/ast/parser/ets/for_await_of_loop.ets | 11 +- ets2panda/test/ast/parser/ets/for_in.ets | 6 +- ets2panda/test/ast/parser/ets/for_of_02.ets | 4 +- ets2panda/test/ast/parser/ets/for_of_03.ets | 5 +- ets2panda/test/ast/parser/ets/for_of_04.ets | 23 +- .../ast/parser/ets/for_of_loop_variable.ets | 9 +- .../ast/parser/ets/for_with_empty_body.ets | 3 +- .../ast/parser/ets/functionTypeParam_neg.ets | 3 +- .../ast/parser/ets/functionTypeParam_neg2.ets | 33 +- .../ast/parser/ets/functionTypeRethrows.ets | 5 +- .../ets/functionTypeWithDefaultParam1.ets | 3 +- .../ets/functionTypeWithDefaultParam2.ets | 3 +- .../test/ast/parser/ets/function_decl.ets | 3 +- .../ets/function_implicit_return_type.ets | 7 +- .../ets/function_implicit_return_type2.ets | 3 +- .../ets/function_implicit_return_type3.ets | 2 +- .../ets/function_implicit_return_type4.ets | 5 +- .../ast/parser/ets/generator_function.ets | 3 +- .../ast/parser/ets/genericDefaultParam_2.ets | 3 +- .../ast/parser/ets/genericDefaultParam_4.ets | 5 +- .../ets/generic_defined_before_use_neg_1.ets | 3 +- .../ets/generic_defined_before_use_neg_2.ets | 3 +- .../ets/generic_defined_before_use_neg_3.ets | 3 +- .../ets/generic_defined_before_use_neg_4.ets | 3 +- .../ets/generic_defined_before_use_neg_5.ets | 3 +- .../ets/generic_defined_before_use_neg_6.ets | 3 +- .../test/ast/parser/ets/generic_error.ets | 3 +- .../ast/parser/ets/generic_lambda_err1.ets | 29 + .../ast/parser/ets/generic_lambda_err2.ets | 40 + .../ast/parser/ets/generic_lambda_err3.ets | 48 + .../ets/generic_type_alias_clone_fix.ets | 7 +- ets2panda/test/ast/parser/ets/generics_1.ets | 3 +- .../ets/generics_type_param_constraint_8.ets | 3 +- ...rics_type_param_no_typeargs_no_default.ets | 7 +- ...cs_type_param_no_typeargs_no_default_2.ets | 5 +- .../ast/parser/ets/get_unexpected_void.ets | 5 +- .../ast/parser/ets/getterOverrideGen_n.ets | 3 +- .../test/ast/parser/ets/getter_native.ets | 3 +- .../ast/parser/ets/getter_not_abstract.ets | 7 +- .../ets/getter_setter_access_modifiers_2.ets | 9 +- .../parser/ets/getter_setter_endless_loop.ets | 5 +- .../ets/getter_setter_modifier_diff.ets | 3 +- .../ets/getter_setter_modifier_limited.ets | 2 +- .../ast/parser/ets/global_const_vars1.ets | 3 +- .../ast/parser/ets/global_const_vars2.ets | 3 +- .../ast/parser/ets/global_const_vars4.ets | 3 +- .../ast/parser/ets/global_scope_boolean.ets | 2 +- .../ast/parser/ets/global_scope_string.ets | 2 +- .../parser/ets/illegal_break_statement.ets | 11 +- .../parser/ets/illegal_continue_statement.ets | 19 +- .../parser/ets/illegal_line_after_throw.ets | 5 +- .../parser/ets/illegal_union_member_exp.ets | 2 +- .../test/ast/parser/ets/import_assertion.ets | 10 +- .../ets/import_no_empty_binding_list.ets | 7 +- .../ast/parser/ets/import_no_side_effect.ets | 3 +- .../test/ast/parser/ets/import_require.ets | 9 +- .../ets/import_tests/Import_error_token_1.ets | 11 +- .../ets/import_tests/check_exported_1.ets | 3 +- .../ets/import_tests/default_import2.ets | 3 +- .../ets/import_tests/default_import3.ets | 11 +- .../import_tests/export_and_import_class.ets | 1 + .../export_and_import_top_level.ets | 1 + .../ets/import_tests/export_no_comma.ets | 5 +- .../import_tests/export_trailing_comma.ets | 3 +- .../import_alias/import_alias_2.ets | 3 +- .../import_alias/import_alias_3.ets | 3 +- .../import_alias/import_alias_4.ets | 3 +- .../parser/ets/import_tests/import_all_2.ets | 3 +- .../ets/import_tests/import_all_alias_2.ets | 5 +- .../ets/import_tests/import_all_alias_neg.ets | 5 +- .../ets/import_tests/import_folder_n.ets | 3 +- .../parser/ets/import_tests/import_name_2.ets | 3 +- .../parser/ets/import_tests/import_name_3.ets | 3 +- .../ets/import_tests/import_name_alias_2.ets | 5 +- .../import_tests/import_name_conflict_1.ets | 3 +- .../import_tests/import_name_conflict_10.ets | 3 +- .../import_tests/import_name_conflict_11.ets | 3 +- .../import_tests/import_name_conflict_12.ets | 3 +- .../import_tests/import_name_conflict_2.ets | 3 +- .../import_tests/import_name_conflict_4.ets | 3 +- .../import_tests/import_name_conflict_5.ets | 3 +- .../import_tests/import_name_conflict_6.ets | 3 +- .../import_tests/import_name_conflict_7.ets | 3 +- .../import_tests/import_name_conflict_8.ets | 3 +- .../import_tests/import_name_conflict_9.ets | 3 +- .../import_name_conflicts/main_1.ets | 3 +- .../import_name_conflicts/main_2.ets | 3 +- .../import_name_conflicts/main_3.ets | 3 +- .../import_name_conflicts/main_4.ets | 3 +- .../import_name_conflicts/main_5.ets | 3 +- .../import_name_conflicts/main_6.ets | 3 +- .../import_name_conflicts/main_7.ets | 3 +- .../import_name_conflicts/main_8.ets | 3 +- .../ets/import_tests/import_no_comma.ets | 13 +- .../import_type_error_in_class.ets | 3 +- .../import_type_error_top_level.ets | 3 +- .../default_export_invalid_syntax_3.ets | 3 +- .../default_export_invalid_syntax_4.ets | 3 +- .../modules/invalid_namespace_import.ets | 3 +- .../modules/invalid_namespace_import2.ets | 13 +- .../modules/too_many_default_exports.ets | 3 +- .../modules/too_many_default_exports_2.ets | 3 +- .../different-header/subpackage_module_1.ets | 3 +- .../different-header/subpackage_module_2.ets | 3 +- .../ets/import_tests/type/import_type_1.ets | 5 +- .../ets/import_tests/type/import_type_2.ets | 3 +- .../parser/ets/import_tests/type/type_3.ets | 3 +- .../import_decl_after_decl_n.ets | 3 +- .../import_decl_in_block_n.ets | 3 +- ...ment-on-nullish-type-undefined-invalid.ets | 7 +- .../increment-on-nullish-type-undefined.ets | 5 +- .../ets/index_not_support_such_type.ets | 19 +- .../parser/ets/index_signature_error_1.ets | 7 +- .../parser/ets/index_signature_error_2.ets | 7 +- .../ast/parser/ets/indexed_access_type_1.ets | 5 +- .../ast/parser/ets/indexed_access_type_2.ets | 3 +- .../ast/parser/ets/inheritance-cyclic.ets | 3 +- .../ast/parser/ets/instanceof_on_type.ets | 7 +- .../ets/instanceof_with_not_object_type.ets | 3 +- ...t_class_with_array_creation_expression.ets | 3 +- ...terface_with_array_creation_expression.ets | 3 +- .../ets/interface-override-function.ets | 3 +- ets2panda/test/ast/parser/ets/interface.ets | 3 +- .../test/ast/parser/ets/interfaceAbstract.ets | 3 +- .../parser/ets/interfaceExtendInterfaces1.ets | 3 +- .../parser/ets/interfaceExtendInterfaces2.ets | 7 +- .../ets/interfaceMethodNativeModifier.ets | 3 +- .../ets/interfaceMethodPrivatePrivate.ets | 7 +- .../interfaceMethodPrivateStaticModifier.ets | 7 +- .../ets/interfaceMethodReadonlyModifier.ets | 10 +- .../ets/interfaceMethodStaticModifier.ets | 3 +- .../ets/interface_ambient_call_signature.ets | 2 +- .../interface_ambient_call_signature_1.ets | 2 +- .../ets/interface_ambient_indexer_1.ets | 3 +- .../ets/interface_ambient_indexer_2.ets | 25 +- .../parser/ets/interface_ambient_iterable.ets | 3 +- .../parser/ets/interface_extends_class.ets | 3 +- .../parser/ets/interface_instantiation.ets | 3 +- ..._late_initialization_conflict_modifier.ets | 5 +- .../ets/interface_member_initialization.ets | 9 +- .../parser/ets/interface_parser_error_1.ets | 59 +- .../parser/ets/interface_parser_error_2.ets | 11 +- .../ets/interface_private_function_1.ets | 5 +- .../ets/interface_property_modifiers.ets | 11 +- ...c_late_initialization_assignment_error.ets | 3 +- .../ets/interface_with_different_type.ets | 3 +- ets2panda/test/ast/parser/ets/interfaces2.ets | 3 +- ets2panda/test/ast/parser/ets/interfaces3.ets | 7 +- .../ast/parser/ets/intersection_types.ets | 2 +- .../test/ast/parser/ets/invalidEnums.ets | 33 +- .../test/ast/parser/ets/invalidEnums1.ets | 9 +- .../test/ast/parser/ets/invalidTypes.ets | 76 +- .../ast/parser/ets/invalid_access_static.ets | 3 +- .../ast/parser/ets/invalid_access_static2.ets | 3 +- .../parser/ets/invalid_decorator_usage.ets | 35 +- .../parser/ets/invalid_destructing_target.ets | 5 +- .../parser/ets/invalid_lambda_parameter.ets | 5 +- .../parser/ets/invalid_object_expression.ets | 17 +- .../ast/parser/ets/invalid_object_literal.ets | 7 +- .../parser/ets/invalid_punctuator_format.ets | 17 +- .../invalid_recursive_generic_union_type.ets | 11 +- .../ets/invalid_syntax_in_object_literal.ets | 5 +- .../test/ast/parser/ets/invalid_type.ets | 7 +- .../parser/ets/invalid_type_assignment.ets | 4 +- .../ast/parser/ets/iterator_override_next.ets | 5 +- .../test/ast/parser/ets/keyof_annotation.ets | 13 +- .../ast/parser/ets/keyof_applied_to_other.ets | 11 +- .../test/ast/parser/ets/keyof_array_tuple.ets | 17 +- .../test/ast/parser/ets/keyof_constraint.ets | 7 +- ets2panda/test/ast/parser/ets/keyof_never.ets | 7 +- .../test/ast/parser/ets/keyof_parameter.ets | 13 +- .../ast/parser/ets/keyof_predefined_type.ets | 5 +- .../ets/keyof_private_and_protected.ets | 17 +- .../test/ast/parser/ets/keyof_smartcast.ets | 9 +- .../ast/parser/ets/keyof_type_parameter.ets | 7 +- ets2panda/test/ast/parser/ets/keyof_union.ets | 13 +- .../ets/keyword_after_readonly_interface.ets | 17 +- ets2panda/test/ast/parser/ets/labeled.ets | 15 +- .../ast/parser/ets/labeledBlockStatement.ets | 3 +- .../parser/ets/lambda-arrow-after-braces.ets | 8 +- .../ets/lambda-type-inference-bad-arrow.ets | 10 +- .../parser/ets/lambda-type-inference-neg.ets | 3 +- .../parser/ets/lambda-type-inference-neg2.ets | 3 +- .../lambda-type-inference-overloaded-1.ets | 6 +- .../ets/lambdaWithWrongOptionalParameter.ets | 4 +- .../ets/lambda_function_index_access_neg.ets | 33 +- .../parser/ets/lambda_infer_type_neg_1.ets | 5 +- .../parser/ets/lambda_infer_type_neg_2.ets | 2 +- .../lambda_n/lambda_n_too_many_arg_neg_1.ets | 5 +- .../lambda_n/lambda_n_too_many_arg_neg_2.ets | 5 +- .../lambda_n/lambda_n_too_many_arg_neg_3.ets | 5 +- .../lambda_n/lambda_n_too_many_arg_neg_4.ets | 5 +- .../lambda_n/lambda_n_too_many_arg_neg_5.ets | 5 +- ...ambda_omit_parentheses_parameter_neg_1.ets | 7 +- ...ambda_omit_parentheses_parameter_neg_3.ets | 3 +- ...mbda_omit_parentheses_type_alias_neg_1.ets | 5 +- .../parser/ets/lambda_optional_param_2.ets | 2 +- .../parser/ets/lambda_optional_param_3.ets | 4 +- .../parser/ets/lambda_type_parameter_neg.ets | 11 +- ets2panda/test/ast/parser/ets/lexer001.ets | 2 +- ets2panda/test/ast/parser/ets/lexer002.ets | 2 +- ets2panda/test/ast/parser/ets/lexer003.ets | 15 +- .../parser/ets/lexical_dec_not_allowed.ets | 7 +- .../parser/ets/literals/float-literal_neg.ets | 7 +- .../local-class-access-modifier-private.ets | 3 +- .../local-class-access-modifier-protected.ets | 3 +- .../local-class-access-modifier-public.ets | 3 +- ...-class-member-access-modifier-private1.ets | 5 +- ...-class-member-access-modifier-private2.ets | 5 +- ...lass-member-access-modifier-protected1.ets | 5 +- ...lass-member-access-modifier-protected2.ets | 5 +- ...l-class-member-access-modifier-public1.ets | 5 +- ...l-class-member-access-modifier-public2.ets | 5 +- ets2panda/test/ast/parser/ets/local-enum.ets | 3 +- ...ocal-interface-access-modifier-private.ets | 3 +- ...al-interface-access-modifier-protected.ets | 3 +- ...local-interface-access-modifier-public.ets | 3 +- ...erface-member-access-modifier-private1.ets | 7 +- ...erface-member-access-modifier-private2.ets | 7 +- ...face-member-access-modifier-protected1.ets | 5 +- .../test/ast/parser/ets/localTypeAlias_n.ets | 5 +- .../parser/ets/local_class_already_class.ets | 5 +- .../ets/local_class_already_interface.ets | 5 +- .../ets/local_class_already_variable.ets | 3 +- .../ets/local_class_in_classfunction.ets | 21 +- ets2panda/test/ast/parser/ets/local_enum.ets | 19 +- .../test/ast/parser/ets/local_interface.ets | 20 +- .../ets/local_interface_already_class.ets | 4 +- .../ets/local_interface_already_interface.ets | 5 +- .../ets/local_interface_already_variable..ets | 3 +- .../test/ast/parser/ets/local_type_alias.ets | 23 +- ets2panda/test/ast/parser/ets/loops.ets | 3 +- .../ast/parser/ets/main_entry_point_2.ets | 3 +- .../ast/parser/ets/main_entry_point_3.ets | 3 +- .../ast/parser/ets/main_entry_point_4.ets | 3 +- .../ast/parser/ets/main_entry_point_5.ets | 5 +- ets2panda/test/ast/parser/ets/method_full.ets | 11 +- .../parser/ets/method_modifier_check_1.ets | 5 +- .../parser/ets/method_modifier_check_10.ets | 5 +- .../parser/ets/method_modifier_check_11.ets | 3 +- .../parser/ets/method_modifier_check_12.ets | 3 +- .../parser/ets/method_modifier_check_13.ets | 3 +- .../parser/ets/method_modifier_check_15.ets | 4 +- .../parser/ets/method_modifier_check_16.ets | 3 +- .../parser/ets/method_modifier_check_17.ets | 3 +- .../parser/ets/method_modifier_check_2.ets | 5 +- .../parser/ets/method_modifier_check_3.ets | 5 +- .../parser/ets/method_modifier_check_4.ets | 5 +- .../parser/ets/method_modifier_check_5.ets | 5 +- .../parser/ets/method_modifier_check_6.ets | 5 +- .../parser/ets/method_modifier_check_7.ets | 3 +- .../parser/ets/method_modifier_check_9.ets | 3 +- ets2panda/test/ast/parser/ets/methods.ets | 3 +- .../ast/parser/ets/minus_sign_as_index_1.ets | 14 +- .../parser/ets/missing_implementation_1.ets | 3 +- .../parser/ets/missing_implementation_2.ets | 3 +- .../parser/ets/missing_in_for_statement_1.ets | 15 +- .../parser/ets/missing_in_for_statement_2.ets | 15 +- .../parser/ets/missing_in_if_statement_1.ets | 3 +- .../parser/ets/missing_in_if_statement_2.ets | 5 +- ...peerror_function_implicit_return_value.ets | 4 +- .../test/ast/parser/ets/multiple_fields.ets | 3 +- .../parser/ets/n_arrayHoldingNullValue.ets | 5 +- ...ssignNullableFromFunctionToNonNullable.ets | 3 +- .../parser/ets/n_nullableTypeMissingNull.ets | 3 +- .../parser/ets/n_returnNullFromFunction.ets | 3 +- .../ast/parser/ets/n_returnNullFromMethod.ets | 3 +- ets2panda/test/ast/parser/ets/named_types.ets | 13 +- .../test/ast/parser/ets/named_types_1.ets | 2 +- .../test/ast/parser/ets/named_types_2.ets | 5 +- .../ast/parser/ets/namespace_bad_token.ets | 4 +- .../ast/parser/ets/namespace_badtoken01.ets | 3 +- .../ast/parser/ets/namespace_badtoken02.ets | 3 +- .../ast/parser/ets/namespace_badtoken03.ets | 3 +- .../ast/parser/ets/namespace_badtoken04.ets | 5 +- .../ets/native_constructor_empty_body.ets | 6 +- .../ets/native_constructor_non_empty_body.ets | 4 +- .../native_function_without_return_type.ets | 3 +- .../test/ast/parser/ets/nested_function.ets | 5 +- .../test/ast/parser/ets/nested_function_1.ets | 5 +- .../parser/ets/nested_function_in_method.ets | 5 +- .../ast/parser/ets/new_object_undefined.ets | 5 +- .../ast/parser/ets/no-call-signatures.ets | 6 +- .../parser/ets/no-constructor-signatures.ets | 4 +- .../test/ast/parser/ets/no-generic-lambda.ets | 9 +- .../test/ast/parser/ets/no_prototype.ets | 23 +- ets2panda/test/ast/parser/ets/nolint_bad.ets | 7 +- .../parser/ets/non-ambient_call_signature.ets | 3 +- .../ast/parser/ets/nonPublicInterfaceProp.ets | 3 +- .../parser/ets/non_constant_expression.ets | 3 +- .../parser/ets/non_proper_index_method.ets | 19 +- .../parser/ets/non_proper_iterator_method.ets | 5 +- .../test/ast/parser/ets/notnullable_neg.ets | 45 +- .../ast/parser/ets/null-coalesc-negative.ets | 5 +- .../test/ast/parser/ets/null_invalid.ets | 3 +- .../parser/ets/object_literal_dup_keys_0.ets | 2 +- .../parser/ets/object_literal_dup_keys_2.ets | 2 +- .../parser/ets/object_literal_withfunc.ets | 13 +- .../parser/ets/operator_logical_and_euqal.ets | 3 +- .../ets/operator_logical_nullish_equal.ets | 3 +- .../parser/ets/operator_logical_or_equal.ets | 3 +- .../parser/ets/optional-chaining-array.ets | 3 +- .../optional_chaining_invalid_property.ets | 3 +- .../test/ast/parser/ets/optional_field.ets | 4 +- ...onal_field_interfaceUnionNotCompatible.ets | 5 +- .../parser/ets/optional_field_variable.ets | 4 +- .../ets/optional_field_variable_forof.ets | 3 +- .../ets/overload_function_match_neg.ets | 7 +- .../ets/overloaded_method_as_value_neg.ets | 25 +- .../parser/ets/overrideFuncWithGetter_n.ets | 7 +- .../test/ast/parser/ets/override_method.ets | 7 +- .../parser/ets/partialGenericInterface_2.ets | 5 +- .../parser/ets/partialGenericInterface_n.ets | 3 +- .../ast/parser/ets/partialInterface_n0.ets | 5 +- .../ast/parser/ets/partialInterface_n1.ets | 5 +- .../test/ast/parser/ets/partialType_4.ets | 13 +- .../test/ast/parser/ets/partial_interface.ets | 7 +- .../ast/parser/ets/partial_type_param1.ets | 7 +- .../ast/parser/ets/partial_type_param2.ets | 7 +- .../ets/predefined_non_primitive_types.ets | 9 +- .../ets/privateSuperConstructorCall.ets | 5 +- .../parser/ets/property-access-field-1.ets | 3 +- .../parser/ets/property-access-field-2.ets | 3 +- .../parser/ets/property-access-method-1.ets | 3 +- .../parser/ets/property-access-method-2.ets | 3 +- .../ast/parser/ets/re_export/import_16.ets | 3 +- .../ast/parser/ets/re_export/import_17.ets | 3 +- .../ast/parser/ets/re_export/import_20.ets | 3 +- .../ast/parser/ets/re_export/import_5.ets | 3 +- .../ast/parser/ets/re_export/re_export_4.ets | 3 +- .../ets/re_export/re_export_circular.ets | 3 +- .../ets/readonly-array/readonly-array-arg.ets | 29 +- .../readonly-array/readonly-array-field.ets | 29 +- .../ets/readonly-array/readonly-array-var.ets | 29 +- .../Readonly-Array-test1.ets | 3 +- .../Readonly-Array-test2.ets | 3 +- .../Readonly-Array-test3.ets | 5 +- .../Readonly-with-ArrayType-test1.ets | 5 +- .../Readonly-with-ArrayType-test2.ets | 7 +- .../Readonly-with-ArrayType-test3.ets | 3 +- .../Readonly-with-ArrayType-test4.ets | 3 +- .../readonly-parameter-and-Readonly-test1.ets | 3 +- .../readonly-parameter-and-Readonly-test2.ets | 21 +- .../readonly-parameter-test1.ets | 3 +- .../readonly-parameter-test2.ets | 3 +- .../readonly-parameter-test3.ets | 3 +- .../readonly-parameter-test4.ets | 5 +- .../readonly-parameter-test5.ets | 7 +- .../readonly-parameter-test6.ets | 5 +- .../ets/readonlyFunctionTypeAnnotation.ets | 18 +- .../ets/readonlyGetterSetterReassignment1.ets | 3 +- .../ets/readonlyGetterSetterReassignment2.ets | 5 +- .../parser/ets/readonly_interface_method.ets | 5 +- .../readonly_reference_CTE_err_elimilate.ets | 5 +- .../parser/ets/readonly_union_negative.ets | 32 +- .../test/ast/parser/ets/recordIndexing.ets | 23 +- .../ast/parser/ets/recordKeyTypeCheck01.ets | 3 +- .../ast/parser/ets/recordKeyTypeCheck02.ets | 3 +- .../ast/parser/ets/recordKeyTypeCheck03.ets | 3 +- .../ast/parser/ets/recordKeyTypeCheck04.ets | 3 +- .../test/ast/parser/ets/record_dup_key_01.ets | 3 +- .../test/ast/parser/ets/record_dup_key_02.ets | 3 +- .../test/ast/parser/ets/record_init_check.ets | 3 +- .../ast/parser/ets/record_object_value.ets | 12 +- .../ets/recursive_clousre_reference_error.ets | 5 +- .../ets/recursive_exported_structure.ets | 23 +- .../parser/ets/required_multiple_fields.ets | 19 +- .../parser/ets/required_multiple_fields_2.ets | 5 +- .../test/ast/parser/ets/reserved_type.ets | 19 +- ets2panda/test/ast/parser/ets/rest_never.ets | 4 +- .../test/ast/parser/ets/rest_no_default.ets | 5 +- .../test/ast/parser/ets/rest_no_optional.ets | 3 +- .../test/ast/parser/ets/rest_parameter_03.ets | 2 +- .../test/ast/parser/ets/rest_parameter_04.ets | 9 +- .../test/ast/parser/ets/rest_parameter_05.ets | 5 +- .../test/ast/parser/ets/rest_parameter_06.ets | 5 +- .../test/ast/parser/ets/rest_parameter_07.ets | 5 +- .../test/ast/parser/ets/rest_parameter_08.ets | 19 +- .../test/ast/parser/ets/rest_parameter_09.ets | 5 +- .../test/ast/parser/ets/rest_parameter_10.ets | 5 +- .../test/ast/parser/ets/rest_parameter_11.ets | 5 +- .../test/ast/parser/ets/rest_parameter_12.ets | 13 +- .../test/ast/parser/ets/rest_parameter_13.ets | 23 +- .../test/ast/parser/ets/rest_parameter_14.ets | 5 +- .../ets/return_null_and_type_not_match.ets | 5 +- .../ast/parser/ets/return_type_non_match.ets | 5 +- .../ast/parser/ets/return_while_warning.ets | 2 +- .../parser/ets/returntype_override_object.ets | 4 +- .../ets/returntype_override_primitive.ets | 2 - .../parser/ets/segmentation_fault_test1.ets | 2 +- .../selective_export/selective_export_bad.ets | 3 +- .../ast/parser/ets/set_unexpected_nonvoid.ets | 5 +- .../test/ast/parser/ets/setter_native.ets | 3 +- ...er_with_more_than_one_formal_parameter.ets | 5 +- .../ast/parser/ets/setter_with_non_void.ets | 3 +- .../parser/ets/setter_with_return_type.ets | 3 +- .../ets/single_export/single_export_as_n.ets | 7 +- .../single_export_expression.ets | 3 +- .../single_export/single_export_from_n.ets | 9 +- .../single_export/single_export_lambda.ets | 3 +- .../ets/single_export/single_export_n.ets | 5 +- .../ast/parser/ets/single_statement_1.ets | 23 +- .../ast/parser/ets/single_statement_2.ets | 23 +- .../ast/parser/ets/special_signatures.ets | 7 +- .../ast/parser/ets/spreadArrayInTuple.ets | 9 +- .../ets/spreadExpressionNotArrayType.ets | 3 +- .../ets/spread_parameter_only_with_rest_1.ets | 9 +- .../ets/spread_parameter_only_with_rest_2.ets | 17 +- .../ets/spread_parameter_only_with_rest_3.ets | 17 +- .../ets/spreadexpr_in_newexpr_neg01.ets | 18 +- .../ets/spreadexpr_in_newexpr_neg02.ets | 3 +- .../test/ast/parser/ets/static_block.ets | 5 +- .../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 | 3 +- .../test/ast/parser/ets/static_field_4.ets | 5 +- .../test/ast/parser/ets/static_field_5.ets | 3 +- .../ast/parser/ets/static_func_call_1.ets | 3 +- .../ast/parser/ets/static_func_call_10.ets | 3 +- .../ast/parser/ets/static_func_call_2.ets | 3 +- .../ast/parser/ets/static_func_call_3.ets | 3 +- .../ast/parser/ets/static_func_call_4.ets | 3 +- .../ast/parser/ets/static_func_call_5.ets | 3 +- .../ast/parser/ets/static_func_call_6.ets | 3 +- .../ast/parser/ets/static_func_call_7.ets | 3 +- .../ast/parser/ets/static_func_call_8.ets | 3 +- .../ast/parser/ets/static_func_call_9.ets | 5 +- .../parser/ets/static_function_override_4.ets | 3 +- .../static_invoke_coexist_invoke_method.ets | 3 +- .../static_invoke_coexist_invoke_method_1.ets | 3 +- .../static_invoke_mismatch_signature.ets | 5 +- .../static_invoke_mismatch_signature_1.ets | 5 +- .../static_invoke_mismatch_signature_2.ets | 5 +- .../test/ast/parser/ets/string_literal_01.ets | 7 +- .../parser/ets/string_literal_const_cast.ets | 11 +- .../test/ast/parser/ets/struct_export1.ets | 3 +- .../ast/parser/ets/struct_extends_class.ets | 3 +- .../parser/ets/struct_extends_interface.ets | 5 +- .../ast/parser/ets/struct_extends_struct.ets | 7 +- .../ets/struct_implements_interface.ets | 3 +- .../test/ast/parser/ets/struct_in_class.ets | 5 +- .../ast/parser/ets/struct_in_interface.ets | 23 +- .../test/ast/parser/ets/struct_in_struct.ets | 7 +- .../parser/ets/struct_invalid_abstract.ets | 3 +- .../ast/parser/ets/struct_invalid_local.ets | 3 +- .../ast/parser/ets/struct_invalid_nested2.ets | 5 +- .../test/ast/parser/ets/struct_keywords1.ets | 3 +- .../test/ast/parser/ets/struct_keywords2.ets | 3 +- .../test/ast/parser/ets/struct_keywords3.ets | 5 +- .../parser/ets/struct_with_annotations.ets | 3 +- .../ets/struct_with_component_annotation.ets | 5 +- .../ast/parser/ets/superInConstructor1.ets | 3 +- .../ast/parser/ets/superInConstructor2.ets | 3 +- .../ast/parser/ets/superInConstructor3.ets | 3 +- .../test/ast/parser/ets/superStaticCall.ets | 3 +- ets2panda/test/ast/parser/ets/super_field.ets | 3 +- .../test/ast/parser/ets/switch_alive_2.ets | 3 +- .../test/ast/parser/ets/switch_alive_3.ets | 3 +- ...witch_const_int_compare_char_duplicate.ets | 3 +- ets2panda/test/ast/parser/ets/switch_enum.ets | 3 +- .../test/ast/parser/ets/switch_enum2.ets | 3 +- .../parser/ets/switch_enum_case_duplicate.ets | 3 +- .../ets/switch_enum_string_case_duplicate.ets | 3 +- .../test/ast/parser/ets/switch_invalid.ets | 99 +- .../ets/switch_num_compare_char_duplicate.ets | 2 +- .../switch_readonly_member_different_enum.ets | 9 +- ...witch_readonly_member_different_enum_2.ets | 5 +- .../ets/switch_readonly_member_enum.ets | 5 +- .../switch_readonly_member_enum_duplicate.ets | 5 +- ...witch_readonly_member_number_duplicate.ets | 3 +- .../test/ast/parser/ets/swtich_not_const.ets | 3 +- .../test/ast/parser/ets/test_type_alias1.ets | 9 +- .../test/ast/parser/ets/test_type_alias10.ets | 3 +- .../test/ast/parser/ets/test_type_alias2.ets | 3 +- .../test/ast/parser/ets/test_type_alias3.ets | 3 +- .../test/ast/parser/ets/test_type_alias4.ets | 3 +- .../test/ast/parser/ets/thisInConstructor.ets | 3 +- .../ets/this_type_class_field_invalid.ets | 3 +- ...is_type_class_method_parameter_invalid.ets | 3 +- ..._class_static_method_parameter_invalid.ets | 3 +- ...ype_class_static_method_return_invalid.ets | 5 +- .../this_type_function_parameter_invalid.ets | 3 +- .../ets/this_type_function_return_invalid.ets | 7 +- .../ets/this_type_instanceof_invalid.ets | 23 +- ...declaration_parameter_in_class_invalid.ets | 3 +- ...e_lambda_declaration_parameter_invalid.ets | 3 +- ...da_declaration_return_in_class_invalid.ets | 3 +- ...type_lambda_declaration_return_invalid.ets | 3 +- ..._definition_parameter_in_class_invalid.ets | 3 +- ...pe_lambda_definition_parameter_invalid.ets | 4 +- ...bda_definition_return_in_class_invalid.ets | 3 +- ..._type_lambda_definition_return_invalid.ets | 6 +- .../ast/parser/ets/topLevelStaticClass.ets | 3 +- .../test/ast/parser/ets/trailing_comma_1.ets | 65 +- .../test/ast/parser/ets/trailing_comma_2.ets | 11 +- .../double_trailing_lambda_1.ets | 2 +- .../empty_vs_nonempty_lambda.ets | 4 +- .../extra_trailing_lambda_1.ets | 7 +- .../extra_trailing_lambda_2.ets | 3 +- .../invalid_rest_param_for_await.ets | 11 +- .../invalid_rest_param_for_await_fuzz.ets | 119 +- ...rest_param_for_rest_as_trailing_lambda.ets | 3 +- ...ing_lambda_mismatch_lambda_signature_1.ets | 3 +- ...ing_lambda_mismatch_lambda_signature_2.ets | 3 +- ..._lambda_not_transform_trailing_block_1.ets | 3 +- ...lambda_not_transform_trailing_block_10.ets | 3 +- ..._lambda_not_transform_trailing_block_2.ets | 5 +- ..._lambda_not_transform_trailing_block_3.ets | 7 +- ..._lambda_not_transform_trailing_block_4.ets | 7 +- ..._lambda_not_transform_trailing_block_5.ets | 7 +- ..._lambda_not_transform_trailing_block_6.ets | 3 +- ..._lambda_not_transform_trailing_block_8.ets | 3 +- ..._lambda_not_transform_trailing_block_9.ets | 3 +- .../trailing_lambda_omit_call_parentheses.ets | 3 +- .../test/ast/parser/ets/tryBlockOnly.ets | 3 +- .../test/ast/parser/ets/try_catch_alive_1.ets | 3 +- .../test/ast/parser/ets/try_catch_alive_2.ets | 3 +- .../test/ast/parser/ets/try_catch_alive_3.ets | 3 +- .../test/ast/parser/ets/try_catch_alive_4.ets | 3 +- .../test/ast/parser/ets/try_catch_alive_5.ets | 3 +- .../test/ast/parser/ets/try_catch_alive_6.ets | 5 +- .../test/ast/parser/ets/try_catch_alive_7.ets | 3 +- .../test/ast/parser/ets/try_catch_alive_8.ets | 5 +- .../test/ast/parser/ets/try_catch_alive_9.ets | 5 +- .../test/ast/parser/ets/ts-type-assertion.ets | 13 +- ets2panda/test/ast/parser/ets/tsas_binop.ets | 7 +- .../ast/parser/ets/tupleIndexWithLargeInt.ets | 3 +- .../ast/parser/ets/tuple_trailing_comma.ets | 23 +- .../test/ast/parser/ets/tuple_type_2_neg.ets | 17 +- .../test/ast/parser/ets/tuple_type_3_neg.ets | 9 +- .../test/ast/parser/ets/tuple_type_4_neg.ets | 17 +- .../parser/ets/type_alias_invalid_name.ets | 3 +- .../parser/ets/type_argument_conversion.ets | 11 +- .../ets/type_decution_unnecessary_boxing.ets | 3 +- .../type_kw_on_identifiers/export.ets | 9 +- .../type_kw_on_identifiers/import.ets | 11 +- 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 | 7 +- .../ast/parser/ets/type_from_utility_type.ets | 16 +- .../ets/type_node_clone_assertion_fix.ets | 6 +- .../ets/type_param_contraint_override.ets | 5 +- .../test/ast/parser/ets/type_references.ets | 7 +- .../test/ast/parser/ets/type_variance2.ets | 5 +- .../test/ast/parser/ets/type_variance3.ets | 3 +- .../test/ast/parser/ets/type_variance4.ets | 3 +- .../ets/typeinference_function_generic.ets | 3 +- .../parser/ets/typenode_clone_brokentype.ets | 29 +- .../ets/typenode_clone_comprehensive.ets | 111 +- .../parser/ets/typenode_clone_primitives.ets | 25 +- .../ast/parser/ets/typeof_in_annotation.ets | 9 +- ...ypeparameter_constraint_circular-neg_0.ets | 3 +- ...ypeparameter_constraint_circular-neg_1.ets | 3 +- ets2panda/test/ast/parser/ets/types_decls.ets | 17 +- .../ets/types_no_object_lit_to_decl.ets | 5 +- .../ets/types_no_object_lit_to_decl_2.ets | 5 +- .../test/ast/parser/ets/unclosed_loop.ets | 8 +- .../ast/parser/ets/undefinedNullNotObject.ets | 3 +- .../ast/parser/ets/unexpected_token_1.ets | 7 +- .../ast/parser/ets/unexpected_token_10.ets | 9 +- .../ast/parser/ets/unexpected_token_11.ets | 3 +- .../ast/parser/ets/unexpected_token_12.ets | 11 +- .../ast/parser/ets/unexpected_token_13.ets | 5 +- .../ast/parser/ets/unexpected_token_14.ets | 13 +- .../ast/parser/ets/unexpected_token_15.ets | 5 +- .../ast/parser/ets/unexpected_token_16.ets | 5 +- .../ast/parser/ets/unexpected_token_17.ets | 5 +- .../ast/parser/ets/unexpected_token_18.ets | 3 +- .../ast/parser/ets/unexpected_token_19.ets | 5 +- .../ast/parser/ets/unexpected_token_2.ets | 7 +- .../ast/parser/ets/unexpected_token_20.ets | 3 +- .../ast/parser/ets/unexpected_token_21.ets | 7 +- .../ast/parser/ets/unexpected_token_22.ets | 8 +- .../ast/parser/ets/unexpected_token_23.ets | 3 +- .../ast/parser/ets/unexpected_token_24.ets | 7 +- .../ast/parser/ets/unexpected_token_25.ets | 19 +- .../ast/parser/ets/unexpected_token_26.ets | 3 +- .../ast/parser/ets/unexpected_token_27.ets | 5 +- .../ast/parser/ets/unexpected_token_28.ets | 17 +- .../ast/parser/ets/unexpected_token_29.ets | 17 +- .../ast/parser/ets/unexpected_token_3.ets | 9 +- .../ast/parser/ets/unexpected_token_30.ets | 7 +- .../ast/parser/ets/unexpected_token_31.ets | 27 +- .../ast/parser/ets/unexpected_token_32.ets | 8 +- .../ast/parser/ets/unexpected_token_33.ets | 15 +- .../ast/parser/ets/unexpected_token_34.ets | 4 +- .../ast/parser/ets/unexpected_token_35.ets | 13 +- .../ast/parser/ets/unexpected_token_36.ets | 19 +- .../ast/parser/ets/unexpected_token_37.ets | 19 +- .../ast/parser/ets/unexpected_token_38.ets | 11 +- .../ast/parser/ets/unexpected_token_39.ets | 3 +- .../ast/parser/ets/unexpected_token_4.ets | 7 +- .../ast/parser/ets/unexpected_token_40.ets | 7 +- .../ast/parser/ets/unexpected_token_41.ets | 11 +- .../ast/parser/ets/unexpected_token_42.ets | 5 +- .../ast/parser/ets/unexpected_token_43.ets | 13 +- .../ast/parser/ets/unexpected_token_44.ets | 3 +- .../ast/parser/ets/unexpected_token_45.ets | 4 +- .../ast/parser/ets/unexpected_token_46.ets | 9 +- .../ast/parser/ets/unexpected_token_47.ets | 9 +- .../ast/parser/ets/unexpected_token_48.ets | 7 +- .../ast/parser/ets/unexpected_token_49.ets | 11 +- .../ast/parser/ets/unexpected_token_5.ets | 9 +- .../ast/parser/ets/unexpected_token_50.ets | 11 +- .../ast/parser/ets/unexpected_token_51.ets | 5 +- .../ast/parser/ets/unexpected_token_52.ets | 27 +- .../ast/parser/ets/unexpected_token_53.ets | 29 +- .../ast/parser/ets/unexpected_token_54.ets | 5 +- .../ast/parser/ets/unexpected_token_55.ets | 31 +- .../ast/parser/ets/unexpected_token_56.ets | 27 +- .../ast/parser/ets/unexpected_token_57.ets | 4 +- .../ast/parser/ets/unexpected_token_58.ets | 4 +- .../ast/parser/ets/unexpected_token_59.ets | 4 +- .../ast/parser/ets/unexpected_token_6.ets | 3 +- .../ast/parser/ets/unexpected_token_60.ets | 3 +- .../ast/parser/ets/unexpected_token_61.ets | 5 +- .../ast/parser/ets/unexpected_token_62.ets | 90 +- .../ast/parser/ets/unexpected_token_63.ets | 67 +- .../ast/parser/ets/unexpected_token_7.ets | 3 +- .../ast/parser/ets/unexpected_token_8.ets | 3 +- .../ast/parser/ets/unexpected_token_9.ets | 5 +- .../ast/parser/ets/union_static_method.ets | 3 +- .../ast/parser/ets/unreachable_fuzz_error.ets | 19 +- .../ast/parser/ets/update_funcscope_error.ets | 34 +- .../test/ast/parser/ets/user_defined_10.ets | 5 +- .../test/ast/parser/ets/user_defined_11.ets | 3 +- .../test/ast/parser/ets/user_defined_12.ets | 3 +- .../test/ast/parser/ets/user_defined_13.ets | 3 +- .../test/ast/parser/ets/user_defined_14.ets | 5 +- .../test/ast/parser/ets/user_defined_15.ets | 3 +- .../test/ast/parser/ets/user_defined_16.ets | 5 +- .../test/ast/parser/ets/user_defined_17.ets | 5 +- .../test/ast/parser/ets/user_defined_18.ets | 5 +- .../test/ast/parser/ets/user_defined_19.ets | 7 +- .../test/ast/parser/ets/user_defined_20.ets | 5 +- .../test/ast/parser/ets/user_defined_21.ets | 3 +- .../test/ast/parser/ets/user_defined_23.ets | 3 +- .../test/ast/parser/ets/user_defined_24.ets | 5 +- .../test/ast/parser/ets/user_defined_25.ets | 11 +- .../test/ast/parser/ets/user_defined_5.ets | 3 +- .../test/ast/parser/ets/user_defined_7.ets | 11 +- .../test/ast/parser/ets/user_defined_8.ets | 5 +- .../test/ast/parser/ets/user_defined_9.ets | 3 +- .../ast/parser/ets/visible_signatures_1.ets | 7 +- .../ets/visit_member_class_null_to_never.ets | 3 +- .../ast/parser/ets/while_with_empty_body.ets | 5 +- .../parser/ets/while_with_empty_condition.ets | 7 +- .../parser/ets/windows_multiline_comments.ets | 3 +- .../ets/wrong-union-array-assignment.ets | 3 +- .../parser/ets/wrongReadonlyUtilityType.ets | 11 +- .../ast/parser/ets/wrong_context_class_1.ets | 5 +- .../ast/parser/ets/wrong_context_class_2.ets | 5 +- .../ast/parser/ets/wrong_context_class_3.ets | 5 +- .../ast/parser/ets/wrong_context_class_4.ets | 5 +- .../parser/ets/wrong_context_function_1.ets | 3 +- .../parser/ets/wrong_context_function_2.ets | 3 +- .../parser/ets/wrong_context_function_3.ets | 3 +- .../parser/ets/wrong_context_function_4.ets | 5 +- .../test/ast/parser/js/InvalidExpressions.js | 156 +- .../test/ast/parser/js/InvalidParserImpl.js | 37 +- .../ast/parser/js/for_of_loop_variable.js | 3 +- ...alid-left-hand-side-in-prefix-operation.js | 4 +- .../ast/parser/js/module/import_meta_1.js | 7 +- .../ast/parser/js/module/import_meta_2.js | 10 +- .../ast/parser/js/module/import_meta_3.js | 4 +- .../parser/js/module/unexpected_token_10.js | 7 +- .../parser/js/module/unexpected_token_9.js | 7 +- .../test/ast/parser/js/new-expression.js | 3 +- .../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 | 3 +- .../ast/parser/js/private_sqbracket_bad.js | 11 +- .../test/ast/parser/js/private_string_bad.js | 5 +- ets2panda/test/ast/parser/js/rest_params_1.js | 4 +- .../parser/js/static_property_prototype.js | 3 +- .../ast/parser/js/test-array-expression-1.js | 7 +- .../ast/parser/js/test-array-expression-2.js | 3 +- .../ast/parser/js/test-class-definition1.js | 3 +- .../ast/parser/js/test-class-definition2.js | 3 +- .../ast/parser/js/test-class-definition3.js | 3 +- .../ast/parser/js/test-class-definition4.js | 3 +- .../ast/parser/js/test-class-definition5.js | 3 +- .../ast/parser/js/test-class-static-block1.js | 5 +- .../ast/parser/js/test-class-static-block2.js | 3 +- .../ast/parser/js/test-class-static-block3.js | 3 +- .../ast/parser/js/test-class-static-block4.js | 3 +- .../ast/parser/js/test-class-static-block5.js | 3 +- .../ast/parser/js/test-class-static-block6.js | 3 +- .../ast/parser/js/test-const-without-init.js | 3 +- .../ast/parser/js/test-continue-in-switch.js | 3 +- .../ast/parser/js/test-delete-identifier.js | 3 +- .../test/ast/parser/js/test-do-while-1.js | 3 +- .../ast/parser/js/test-escaped-keyword.js | 3 +- .../test-expression-after-unary-expression.js | 3 +- ets2panda/test/ast/parser/js/test-for-1.js | 6 +- ets2panda/test/ast/parser/js/test-for-2.js | 5 +- ets2panda/test/ast/parser/js/test-for-3.js | 3 +- ets2panda/test/ast/parser/js/test-for-4.js | 3 +- .../js/test-function-scope-violation-1.js | 3 +- .../js/test-function-scope-violation-2.js | 3 +- ets2panda/test/ast/parser/js/test-if-1.js | 9 +- ets2panda/test/ast/parser/js/test-if-2.js | 5 +- .../test/ast/parser/js/test-import-decl.js | 5 +- .../test/ast/parser/js/test-imported-decl1.js | 3 +- .../ast/parser/js/test-labelled-statement1.js | 3 +- .../ast/parser/js/test-labelled-statement2.js | 7 +- .../ast/parser/js/test-let-redeclaration.js | 3 +- .../ast/parser/js/test-member-expression-1.js | 9 +- .../ast/parser/js/test-member-expression-2.js | 3 +- .../ast/parser/js/test-member-expression-3.js | 3 +- .../parser/js/test-missing-catch-argument.js | 3 +- .../ast/parser/js/test-multi-line-string.js | 5 +- .../js/test-multiple-update-expression.js | 3 +- .../ast/parser/js/test-nullish-coalescing1.js | 3 +- .../ast/parser/js/test-nullish-coalescing2.js | 3 +- .../ast/parser/js/test-numeric-separator1.js | 5 +- .../ast/parser/js/test-numeric-separator2.js | 3 +- .../ast/parser/js/test-object-expression1.js | 3 +- .../ast/parser/js/test-object-expression2.js | 13 +- .../ast/parser/js/test-object-expression3.js | 3 +- .../ast/parser/js/test-object-expression4.js | 3 +- .../ast/parser/js/test-object-expression5.js | 3 +- .../test/ast/parser/js/test-object-proto.js | 3 +- .../js/test-one-default-export-allowed.js | 3 +- .../test/ast/parser/js/test-optional-chain.js | 3 +- .../test/ast/parser/js/test-private-field1.js | 5 +- .../ast/parser/js/test-private-field10.js | 7 +- .../ast/parser/js/test-private-field11.js | 5 +- .../ast/parser/js/test-private-field12.js | 3 +- .../ast/parser/js/test-private-field13.js | 3 +- .../ast/parser/js/test-private-field14.js | 3 +- .../ast/parser/js/test-private-field15.js | 3 +- .../ast/parser/js/test-private-field16.js | 3 +- .../test/ast/parser/js/test-private-field2.js | 3 +- .../test/ast/parser/js/test-private-field3.js | 3 +- .../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 | 5 +- .../test/ast/parser/js/test-private-field7.js | 7 +- .../test/ast/parser/js/test-private-field8.js | 3 +- .../test/ast/parser/js/test-private-field9.js | 3 +- .../ast/parser/js/test-super-expression.js | 3 +- ets2panda/test/ast/parser/js/test-switch-1.js | 12 +- ets2panda/test/ast/parser/js/test-switch-2.js | 10 +- ets2panda/test/ast/parser/js/test-switch-3.js | 3 +- ets2panda/test/ast/parser/js/test-switch-4.js | 5 +- ets2panda/test/ast/parser/js/test-switch-5.js | 3 +- ets2panda/test/ast/parser/js/test-switch-6.js | 3 +- .../ast/parser/js/test-template-literal-1.js | 9 +- .../ast/parser/js/test-template-literal-2.js | 3 +- ...test-throw-statement-without-expression.js | 3 +- .../js/test-try-catch-lexical-declaration.js | 3 +- .../js/test-try-without-catch-and-finally.js | 4 +- .../test/ast/parser/js/test-use-strict-1.js | 3 +- .../test/ast/parser/js/test-use-strict-2.js | 5 +- .../parser/js/test-wrong-function-decl-1.js | 12 +- .../parser/js/test-wrong-function-decl-2.js | 6 +- .../parser/js/test-wrong-function-decl-3.js | 5 +- ets2panda/test/ast/parser/js/test_yield.js | 3 +- .../test/ast/parser/js/this-expression.js | 5 +- .../test/ast/parser/js/trailing_comma_1.js | 24 +- .../test/ast/parser/js/trailing_comma_2.js | 3 +- .../test/ast/parser/js/unexpected_token_1.js | 6 +- .../test/ast/parser/js/unexpected_token_10.js | 7 +- .../test/ast/parser/js/unexpected_token_2.js | 3 +- .../test/ast/parser/js/unexpected_token_3.js | 15 +- .../test/ast/parser/js/unexpected_token_4.js | 3 +- .../test/ast/parser/js/unexpected_token_5.js | 9 +- .../test/ast/parser/js/unexpected_token_6.js | 7 +- .../test/ast/parser/js/unexpected_token_7.js | 11 +- .../test/ast/parser/js/unexpected_token_8.js | 3 +- .../test/ast/parser/ts/InvalidExpressions.ts | 44 +- ets2panda/test/ast/parser/ts/InvalidLexer.ts | 25 +- .../test/ast/parser/ts/InvalidParserImpl.ts | 5 +- .../test/ast/parser/ts/InvalidStatements.ts | 63 +- .../test/ast/parser/ts/catch_or_finally_1.ts | 25 +- .../test/ast/parser/ts/test-as-expression.ts | 3 +- .../ast/parser/ts/test-class-constructor1.ts | 3 +- .../ast/parser/ts/test-class-constructor2.ts | 5 +- .../ast/parser/ts/test-class-constructor3.ts | 5 +- .../ast/parser/ts/test-class-constructor5.ts | 3 +- .../ast/parser/ts/test-class-definiton1.ts | 3 +- .../ast/parser/ts/test-class-definiton10.ts | 3 +- .../ast/parser/ts/test-class-definiton11.ts | 7 +- .../ast/parser/ts/test-class-definiton12.ts | 7 +- .../ast/parser/ts/test-class-definiton13.ts | 7 +- .../ast/parser/ts/test-class-definiton14.ts | 7 +- .../ast/parser/ts/test-class-definiton15.ts | 3 +- .../ast/parser/ts/test-class-definiton16.ts | 3 +- .../ast/parser/ts/test-class-definiton17.ts | 3 +- .../ast/parser/ts/test-class-definiton2.ts | 3 +- .../ast/parser/ts/test-class-definiton3.ts | 5 +- .../ast/parser/ts/test-class-definiton4.ts | 3 +- .../ast/parser/ts/test-class-definiton5.ts | 3 +- .../ast/parser/ts/test-class-definiton6.ts | 3 +- .../ast/parser/ts/test-class-definiton8.ts | 7 +- .../ast/parser/ts/test-class-definiton9.ts | 3 +- .../ast/parser/ts/test-enum-declaration2.ts | 3 +- .../ast/parser/ts/test-enum-declaration3.ts | 5 +- .../ast/parser/ts/test-enum-declaration4.ts | 3 +- .../ast/parser/ts/test-enum-declaration5.ts | 3 +- .../test/ast/parser/ts/test-func-decl1.ts | 3 +- .../test/ast/parser/ts/test-func-param1.ts | 3 +- .../test/ast/parser/ts/test-func-param2.ts | 2 +- .../test/ast/parser/ts/test-func-param3.ts | 2 +- .../test/ast/parser/ts/test-func-param4.ts | 3 +- .../test/ast/parser/ts/test-func-param5.ts | 3 +- .../test/ast/parser/ts/test-func-param6.ts | 3 +- .../test/ast/parser/ts/test-func-param7.ts | 3 +- .../test/ast/parser/ts/test-func-param8.ts | 3 +- .../test/ast/parser/ts/test-interface2.ts | 5 +- .../test/ast/parser/ts/test-interface3.ts | 7 +- .../test/ast/parser/ts/test-intersection1.ts | 3 +- .../test/ast/parser/ts/test-intersection2.ts | 3 +- .../test/ast/parser/ts/test-intersection3.ts | 3 +- .../ast/parser/ts/test-keyword-declare1.ts | 3 +- .../ast/parser/ts/test-keyword-declare10.ts | 3 +- .../ast/parser/ts/test-keyword-declare11.ts | 3 +- .../ast/parser/ts/test-keyword-declare12.ts | 3 +- .../ast/parser/ts/test-keyword-declare13.ts | 3 +- .../ast/parser/ts/test-keyword-declare2.ts | 3 +- .../ast/parser/ts/test-keyword-declare3.ts | 3 +- .../ast/parser/ts/test-keyword-declare4.ts | 3 +- .../ast/parser/ts/test-keyword-declare8.ts | 3 +- .../ast/parser/ts/test-keyword-declare9.ts | 3 +- .../ast/parser/ts/test-member-expression1.ts | 3 +- .../ast/parser/ts/test-member-expression2.ts | 3 +- .../parser/ts/test-ts-conditional-type1.ts | 3 +- .../parser/ts/test-ts-conditional-type2.ts | 3 +- .../parser/ts/test-ts-conditional-type3.ts | 3 +- .../parser/ts/test-ts-conditional-type4.ts | 3 +- .../parser/ts/test-ts-conditional-type5.ts | 3 +- .../parser/ts/test-ts-conditional-type6.ts | 3 +- .../parser/ts/test-ts-conditional-type7.ts | 3 +- .../parser/ts/test-ts-constructor-type1.ts | 3 +- .../parser/ts/test-ts-constructor-type2.ts | 3 +- .../parser/ts/test-ts-constructor-type3.ts | 3 +- .../parser/ts/test-ts-constructor-type4.ts | 3 +- .../ast/parser/ts/test-ts-mapped-type1.ts | 3 +- .../ast/parser/ts/test-ts-mapped-type2.ts | 3 +- .../ast/parser/ts/test-ts-mapped-type3.ts | 3 +- .../ast/parser/ts/test-ts-mapped-type4.ts | 3 +- .../ast/parser/ts/test-ts-mapped-type5.ts | 3 +- .../ast/parser/ts/test-ts-mapped-type6.ts | 3 +- .../ast/parser/ts/test-ts-mapped-type7.ts | 3 +- .../parser/ts/test-ts-parameter-property1.ts | 3 +- .../parser/ts/test-ts-parameter-property10.ts | 3 +- .../parser/ts/test-ts-parameter-property11.ts | 3 +- .../parser/ts/test-ts-parameter-property12.ts | 3 +- .../parser/ts/test-ts-parameter-property2.ts | 3 +- .../parser/ts/test-ts-parameter-property3.ts | 5 +- .../parser/ts/test-ts-parameter-property4.ts | 3 +- .../parser/ts/test-ts-parameter-property5.ts | 3 +- .../parser/ts/test-ts-parameter-property6.ts | 3 +- .../parser/ts/test-ts-parameter-property7.ts | 3 +- .../parser/ts/test-ts-parameter-property8.ts | 3 +- .../parser/ts/test-ts-parameter-property9.ts | 3 +- .../ast/parser/ts/test-ts-type-predicate2.ts | 3 +- .../ast/parser/ts/test-ts-type-predicate3.ts | 5 +- .../ast/parser/ts/test-ts-type-predicate4.ts | 3 +- .../ast/parser/ts/test-ts-type-predicate5.ts | 5 +- .../ast/parser/ts/test-ts-type-predicate6.ts | 3 +- .../ast/parser/ts/test-ts-type-predicate7.ts | 7 +- .../ast/parser/ts/test-ts-type-predicate8.ts | 5 +- .../test/ast/parser/ts/test-tuple-type1.ts | 3 +- .../test/ast/parser/ts/test-tuple-type2.ts | 3 +- .../test/ast/parser/ts/test-tuple-type3.ts | 3 +- .../test/ast/parser/ts/test-tuple-type4.ts | 3 +- .../test/ast/parser/ts/test-type-alias1.ts | 3 +- .../test/ast/parser/ts/test-type-alias2.ts | 3 +- .../test/ast/parser/ts/test-type-alias3.ts | 3 +- .../test/ast/parser/ts/test-type-literal1.ts | 3 +- .../test/ast/parser/ts/test-type-literal2.ts | 5 +- .../test/ast/parser/ts/test-type-literal3.ts | 3 +- .../test/ast/parser/ts/test-type-query1.ts | 3 +- .../test/ast/parser/ts/test-type-query2.ts | 4 +- .../ast/parser/ts/test_class_constructor.ts | 3 +- .../test/ast/parser/ts/test_decorator1.ts | 3 +- .../test/ast/parser/ts/test_decorator2.ts | 3 +- .../test/ast/parser/ts/test_decorator4.ts | 3 +- .../test/ast/parser/ts/test_decorator5.ts | 3 +- .../test/ast/parser/ts/test_decorator6.ts | 5 +- .../test/ast/parser/ts/test_decorator7.ts | 3 +- .../test/ast/parser/ts/test_decorator8.ts | 3 +- .../test/ast/parser/ts/test_generators.ts | 5 +- .../ast/parser/ts/test_insufficient_param.ts | 3 +- .../ast/parser/ts/test_invalid_left_side.ts | 3 +- ..._lexical_dec_not_allowed_async_function.ts | 3 +- .../ts/test_lexical_dec_not_allowed_class.ts | 3 +- ets2panda/test/ast/parser/ts/test_module1.ts | 3 +- ets2panda/test/ast/parser/ts/test_module2.ts | 3 +- ets2panda/test/ast/parser/ts/test_module3.ts | 3 +- ets2panda/test/ast/parser/ts/test_module4.ts | 3 +- ets2panda/test/ast/parser/ts/test_module5.ts | 3 +- ets2panda/test/ast/parser/ts/test_module6.ts | 3 +- .../ast/parser/ts/test_rest_param_not_last.ts | 3 +- .../ts/test_restparam_id_in_dec_context.ts | 3 +- .../ts/test_static_property_prototype.ts | 3 +- .../ast/parser/ts/test_strict_mode_func.ts | 3 +- .../test/ast/parser/ts/test_this_type1.ts | 3 +- .../test/ast/parser/ts/test_this_type2.ts | 3 +- .../ast/parser/ts/test_unexpected_token.ts | 3 +- .../test/ast/parser/ts/test_yield_escaped.ts | 11 +- .../test/ast/parser/ts/trailing_comma_1.ts | 3 +- .../test/ast/parser/ts/trailing_comma_2.ts | 3 +- .../test/ast/parser/ts/trailing_comma_3.ts | 3 +- .../test/ast/parser/ts/trailing_comma_4.ts | 15 +- .../test/ast/parser/ts/unexpected_token_1.ts | 3 +- .../test/ast/parser/ts/unexpected_token_10.ts | 3 +- .../test/ast/parser/ts/unexpected_token_11.ts | 5 +- .../test/ast/parser/ts/unexpected_token_12.ts | 7 +- .../test/ast/parser/ts/unexpected_token_13.ts | 7 +- .../test/ast/parser/ts/unexpected_token_14.ts | 4 +- .../test/ast/parser/ts/unexpected_token_15.ts | 3 +- .../test/ast/parser/ts/unexpected_token_16.ts | 2 +- .../test/ast/parser/ts/unexpected_token_17.ts | 15 +- .../test/ast/parser/ts/unexpected_token_2.ts | 3 +- .../test/ast/parser/ts/unexpected_token_3.ts | 7 +- .../test/ast/parser/ts/unexpected_token_4.ts | 13 +- .../test/ast/parser/ts/unexpected_token_5.ts | 5 +- .../test/ast/parser/ts/unexpected_token_6.ts | 4 +- .../test/ast/parser/ts/unexpected_token_7.ts | 9 +- .../test/ast/parser/ts/unexpected_token_8.ts | 6 +- .../test/ast/parser/ts/unexpected_token_9.ts | 8 +- ...ditionalExpressionCallVoidNeg-expected.txt | 2 +- .../compiler/ets/FunctionType2-expected.txt | 2 +- ...actNewClassInstanceExpression-expected.txt | 14 +- .../ets/catch-soft-keyword-expected.txt | 2 +- .../compiler/ets/catchParamScope-expected.txt | 2 +- .../ets/dynamic-equality-expected.txt | 6 +- .../compiler/ets/dynamicJsImport-expected.txt | 12 +- .../compiler/ets/dynamicLambda-expected.txt | 6 +- .../ets/dynamicLambdaJSValue-expected.txt | 6 +- .../ets/dynamicLambdaJSValueCast-expected.txt | 4 +- .../ets/dynamicObjectLiteral-expected.txt | 4 +- .../compiler/ets/dynamic_call-expected.txt | 4 +- .../ets/dynamic_instanceof_error-expected.txt | 4 +- .../ets/func-ref-private-expected.txt | 2 +- ...with_ambiguous_rest_parameter-expected.txt | 6 +- .../ets/inferTypeOfArray-expected.txt | 8 +- .../instanceof_dyndecl_dynvalue-expected.txt | 4 +- .../instanceof_dynvalue_dynvalue-expected.txt | 6 +- .../instanceof_dynvalue_jsvalue-expected.txt | 4 +- ...instanceof_etsobject_dynvalue-expected.txt | 306 +-- .../instanceof_etsobject_jsvalue-expected.txt | 302 +-- .../instanceof_jsvalue_dynvalue-expected.txt | 4 +- .../instanceof_object_dynvalue-expected.txt | 4 +- .../ets/instanceof_x_dyndecl-expected.txt | 306 +-- .../ets/instanceof_x_etstype-expected.txt | 1388 +++++------ .../ets/instanceof_x_object-expected.txt | 306 +-- .../compiler/ets/requiredType_11-expected.txt | 2 +- .../compiler/ets/requiredType_9-expected.txt | 4 +- .../ets/tryDefaultCatches-expected.txt | 2 +- .../parser/as/test_class_method-expected.txt | 11 +- .../as/test_class_property-expected.txt | 6 +- .../parser/as/test_decorators1-expected.txt | 153 +- .../parser/as/test_decorators4-expected.txt | 272 +-- .../parser/as/test_interface-expected.txt | 32 +- .../as/test_object_literal-expected.txt | 4 +- .../as/test_type_annotation-expected.txt | 598 +++-- .../dynamic_decl_import-expected.txt | 1644 ++++++------- .../dynamic_iface_decl_bad-expected.txt | 302 +-- .../modules/instanceof-expected.txt | 96 +- .../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 +- .../test/parser/ets/switch2-expected.txt | 6 +- .../ets/switch_char_compare_num-expected.txt | 2 +- .../ets/test_jsvalue_get_double-expected.txt | 2 +- .../test_jsvalue_get_property_1-expected.txt | 2 +- .../test_jsvalue_get_property_2-expected.txt | 2 +- .../ets/test_jsvalue_set_double-expected.txt | 2 +- .../parser/ets/test_type_alias6-expected.txt | 4 +- .../test/parser/ets/type_alias_1-expected.txt | 2 +- .../test-conditional-expression-expected.txt | 4 +- .../parser/js/test-private-field-expected.txt | 2 +- .../parser/ts/test-func-param-expected.txt | 1 - .../ts/test-keyword-declare-expected.txt | 1 - .../ts/test-keyword-declare7-expected.txt | 1 - .../parser/ts/test-tuple-type-expected.txt | 1 - .../parser/ts/test-type-literal-expected.txt | 1 - .../parser/ts/test_decorator-expected.txt | 865 ------- .../parser/ts/test_decorator3-expected.txt | 452 ---- .../test/parser/ts/test_generic-expected.txt | 1 - .../incorrect-include/expected.json | 2 +- ets2panda/util/diagnostic.cpp | 43 +- ets2panda/util/diagnostic.h | 2 + ets2panda/util/diagnostic/semantic.yaml | 2 +- ets2panda/util/diagnostic/warning.yaml | 9 + ets2panda/util/diagnosticEngine.cpp | 12 +- ets2panda/util/helpers.cpp | 13 +- ets2panda/util/helpers.h | 2 +- ets2panda/util/options.cpp | 9 +- 2802 files changed, 15214 insertions(+), 12034 deletions(-) create mode 100644 ets2panda/test/ast/compiler/ets/dynamic_optional_decl.ets create mode 100644 ets2panda/test/ast/compiler/ets/manyLocalsParamRegUsage.ets 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/parser/ETSparser.cpp b/ets2panda/parser/ETSparser.cpp index 9e1d99f680..3bedbd204b 100644 --- a/ets2panda/parser/ETSparser.cpp +++ b/ets2panda/parser/ETSparser.cpp @@ -1514,8 +1514,7 @@ void ETSParser::ParseNamedSpecifiesDefaultImport(ArenaVector *result, - ArenaVector *resultExportDefault, - const std::string &fileName) + ArenaVector *resultExportDefault) { if (Lexer()->GetToken().Type() != lexer::TokenType::LITERAL_IDENT) { ir::Expression *constantExpression = ParseUnaryOrPrefixUpdateExpression(); @@ -1554,7 +1553,7 @@ bool ETSParser::ParseNamedSpecifiesImport(ArenaVector *re ES2PANDA_ASSERT(specifier != nullptr); specifier->SetRange({imported->Start(), local->End()}); - util::Helpers::CheckImportedName(*result, specifier, fileName); + util::Helpers::CheckImportedName(*result, specifier, DiagnosticEngine()); result->emplace_back(specifier); return true; @@ -1595,7 +1594,7 @@ SpecifiersInfo ETSParser::ParseNamedSpecifiers(const ir::ImportKinds importKind) if (!IsDefaultImport()) { typeKeywordOnSpecifier = false; - return ParseNamedSpecifiesImport(&result, &resultExportDefault, fileName); + return ParseNamedSpecifiesImport(&result, &resultExportDefault); } ParseNamedSpecifiesDefaultImport(&resultDefault, fileName); typeKeywordOnSpecifier = false; diff --git a/ets2panda/parser/ETSparser.h b/ets2panda/parser/ETSparser.h index 4e78635efd..ad56a0fbd3 100644 --- a/ets2panda/parser/ETSparser.h +++ b/ets2panda/parser/ETSparser.h @@ -201,8 +201,7 @@ private: void ParseNamedSpecifiesDefaultImport(ArenaVector *resultDefault, const std::string &fileName); bool ParseNamedSpecifiesImport(ArenaVector *result, - ArenaVector *resultExportDefault, - const std::string &fileName); + ArenaVector *resultExportDefault); SpecifiersInfo ParseNamedSpecifiers(const ir::ImportKinds importKind); ir::ExportNamedDeclaration *ParseSingleExport(ir::ModifierFlags modifiers); ir::ExportNamedDeclaration *ParseSingleExportForAnonymousConst(ir::ModifierFlags modifiers); diff --git a/ets2panda/test/ast/compiler/ets/AnnotationForTypeAliaDecl.ets b/ets2panda/test/ast/compiler/ets/AnnotationForTypeAliaDecl.ets index 52168f2026..66cfc26b28 100644 --- a/ets2panda/test/ast/compiler/ets/AnnotationForTypeAliaDecl.ets +++ b/ets2panda/test/ast/compiler/ets/AnnotationForTypeAliaDecl.ets @@ -61,13 +61,14 @@ function main(): void { } -/* @@? 47:5 Error SyntaxError: Illegal start of Type Alias expression. */ -/* @@? 47:5 Error SyntaxError: Annotations are not allowed on this type of declaration. */ -/* @@? 50:5 Error SyntaxError: Illegal start of Type Alias expression. */ -/* @@? 50:5 Error SyntaxError: Annotations are not allowed on this type of declaration. */ -/* @@? 53:5 Error SyntaxError: Illegal start of Type Alias expression. */ -/* @@? 53:5 Error SyntaxError: Annotations are not allowed on this type of declaration. */ -/* @@? 56:5 Error SyntaxError: Illegal start of Type Alias expression. */ -/* @@? 56:5 Error SyntaxError: Annotations are not allowed on this type of declaration. */ -/* @@? 60:5 Error SyntaxError: Illegal start of Type Alias expression. */ -/* @@? 60:5 Error SyntaxError: Annotations are not allowed on this type of declaration. */ + +/* @@? 47:5 Error Syntax error ESY0040: Illegal start of Type Alias expression. */ +/* @@? 47:5 Error Syntax error ESY0028: Annotations are not allowed on this type of declaration. */ +/* @@? 50:5 Error Syntax error ESY0040: Illegal start of Type Alias expression. */ +/* @@? 50:5 Error Syntax error ESY0028: Annotations are not allowed on this type of declaration. */ +/* @@? 53:5 Error Syntax error ESY0040: Illegal start of Type Alias expression. */ +/* @@? 53:5 Error Syntax error ESY0028: Annotations are not allowed on this type of declaration. */ +/* @@? 56:5 Error Syntax error ESY0040: Illegal start of Type Alias expression. */ +/* @@? 56:5 Error Syntax error ESY0028: Annotations are not allowed on this type of declaration. */ +/* @@? 60:5 Error Syntax error ESY0040: Illegal start of Type Alias expression. */ +/* @@? 60:5 Error Syntax error ESY0028: Annotations are not allowed on this type of declaration. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/Const_Literal_As_TypeAnnotation_1.ets b/ets2panda/test/ast/compiler/ets/Const_Literal_As_TypeAnnotation_1.ets index 6bcecc08b1..1f9018655d 100644 --- a/ets2panda/test/ast/compiler/ets/Const_Literal_As_TypeAnnotation_1.ets +++ b/ets2panda/test/ast/compiler/ets/Const_Literal_As_TypeAnnotation_1.ets @@ -17,8 +17,9 @@ const e = 123 @interface Ajno { b:e: string[][X (c + d)],% -/* @@? 18:7 Error TypeError: Cannot find type 'e'. */ -/* @@? 18:17 Error SyntaxError: Unexpected token ']'. */ -/* @@? 18:29 Error SyntaxError: Unexpected token, expected ']'. */ -/* @@? 25:1 Error SyntaxError: Unexpected token 'end of stream'. */ + +/* @@? 18:7 Error Semantic error ESE0371: Cannot find type 'e'. */ +/* @@? 18:17 Error Syntax error ESY0227: Unexpected token ']'. */ +/* @@? 18:29 Error Syntax error ESY0228: Unexpected token, expected ']'. */ +/* @@? 25:78 Error Syntax error ESY0227: Unexpected token 'end of stream'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/Const_Literal_As_TypeAnnotation_2.ets b/ets2panda/test/ast/compiler/ets/Const_Literal_As_TypeAnnotation_2.ets index 733c4a5ea3..34f258f144 100644 --- a/ets2panda/test/ast/compiler/ets/Const_Literal_As_TypeAnnotation_2.ets +++ b/ets2panda/test/ast/compiler/ets/Const_Literal_As_TypeAnnotation_2.ets @@ -17,8 +17,9 @@ const e = true @interface Ajno { b:e: string[][X (c + d)],% -/* @@? 18:7 Error TypeError: Cannot find type 'e'. */ -/* @@? 18:17 Error SyntaxError: Unexpected token ']'. */ -/* @@? 18:29 Error SyntaxError: Unexpected token, expected ']'. */ -/* @@? 25:1 Error SyntaxError: Unexpected token 'end of stream'. */ + +/* @@? 18:7 Error Semantic error ESE0371: Cannot find type 'e'. */ +/* @@? 18:17 Error Syntax error ESY0227: Unexpected token ']'. */ +/* @@? 18:29 Error Syntax error ESY0228: Unexpected token, expected ']'. */ +/* @@? 25:78 Error Syntax error ESY0227: Unexpected token 'end of stream'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/DeclareCheckAssign.ets b/ets2panda/test/ast/compiler/ets/DeclareCheckAssign.ets index 7e3feec7a6..83900a0d6f 100644 --- a/ets2panda/test/ast/compiler/ets/DeclareCheckAssign.ets +++ b/ets2panda/test/ast/compiler/ets/DeclareCheckAssign.ets @@ -43,24 +43,25 @@ declare const x31 = 0x5 declare const x41 = 0b101 declare const x51 = "abc" -/* @@? 16:37 Error TypeError: Initializers are not allowed in ambient contexts: byte_1 */ -/* @@? 16:66 Error TypeError: Initializers are not allowed in ambient contexts: byte_2 */ -/* @@? 17:38 Error TypeError: Initializers are not allowed in ambient contexts: byte_12 */ -/* @@? 17:38 Error TypeError: Type 'Int' cannot be assigned to type 'Byte' */ -/* @@? 17:64 Error TypeError: Type 'Int' cannot be assigned to type 'Byte' */ -/* @@? 17:64 Error TypeError: Initializers are not allowed in ambient contexts: byte_22 */ -/* @@? 18:38 Error TypeError: Initializers are not allowed in ambient contexts: byte_13 */ -/* @@? 18:70 Error TypeError: Initializers are not allowed in ambient contexts: byte_23 */ -/* @@? 19:38 Error TypeError: Initializers are not allowed in ambient contexts: byte_14 */ -/* @@? 24:36 Error TypeError: Initializers are not allowed in ambient contexts: int_16 */ -/* @@? 26:39 Error TypeError: Initializers are not allowed in ambient contexts: int_18 */ -/* @@? 27:25 Error TypeError: Initializers are not allowed in ambient contexts: x1 */ -/* @@? 28:25 Error TypeError: Initializers are not allowed in ambient contexts: x2 */ -/* @@? 29:27 Error TypeError: Initializers are not allowed in ambient contexts: y1 */ -/* @@? 30:28 Error TypeError: Initializers are not allowed in ambient contexts: y2 */ -/* @@? 31:25 Error TypeError: Initializers are not allowed in ambient contexts: x3 */ -/* @@? 32:25 Error TypeError: Initializers are not allowed in ambient contexts: x4 */ -/* @@? 33:28 Error TypeError: Initializers are not allowed in ambient contexts: x5 */ -/* @@? 34:27 Error TypeError: Initializers are not allowed in ambient contexts: x6 */ -/* @@? 35:20 Error TypeError: A 'const' initializer in an ambient context must be a string or numeric literal: x7 */ -/* @@? 36:20 Error TypeError: A 'const' initializer in an ambient context must be a string or numeric literal: x8 */ + +/* @@? 16:37 Error Semantic error ESE0153: Initializers are not allowed in ambient contexts: byte_1 */ +/* @@? 16:66 Error Semantic error ESE0153: Initializers are not allowed in ambient contexts: byte_2 */ +/* @@? 17:38 Error Semantic error ESE0153: Initializers are not allowed in ambient contexts: byte_12 */ +/* @@? 17:38 Error Semantic error ESE0318: Type 'Int' cannot be assigned to type 'Byte' */ +/* @@? 17:64 Error Semantic error ESE0318: Type 'Int' cannot be assigned to type 'Byte' */ +/* @@? 17:64 Error Semantic error ESE0153: Initializers are not allowed in ambient contexts: byte_22 */ +/* @@? 18:38 Error Semantic error ESE0153: Initializers are not allowed in ambient contexts: byte_13 */ +/* @@? 18:70 Error Semantic error ESE0153: Initializers are not allowed in ambient contexts: byte_23 */ +/* @@? 19:38 Error Semantic error ESE0153: Initializers are not allowed in ambient contexts: byte_14 */ +/* @@? 24:36 Error Semantic error ESE0153: Initializers are not allowed in ambient contexts: int_16 */ +/* @@? 26:39 Error Semantic error ESE0153: Initializers are not allowed in ambient contexts: int_18 */ +/* @@? 27:25 Error Semantic error ESE0153: Initializers are not allowed in ambient contexts: x1 */ +/* @@? 28:25 Error Semantic error ESE0153: Initializers are not allowed in ambient contexts: x2 */ +/* @@? 29:27 Error Semantic error ESE0153: Initializers are not allowed in ambient contexts: y1 */ +/* @@? 30:28 Error Semantic error ESE0153: Initializers are not allowed in ambient contexts: y2 */ +/* @@? 31:25 Error Semantic error ESE0153: Initializers are not allowed in ambient contexts: x3 */ +/* @@? 32:25 Error Semantic error ESE0153: Initializers are not allowed in ambient contexts: x4 */ +/* @@? 33:28 Error Semantic error ESE0153: Initializers are not allowed in ambient contexts: x5 */ +/* @@? 34:27 Error Semantic error ESE0153: Initializers are not allowed in ambient contexts: x6 */ +/* @@? 35:20 Error Semantic error ESE0175: A 'const' initializer in an ambient context must be a string or numeric literal: x7 */ +/* @@? 36:20 Error Semantic error ESE0175: A 'const' initializer in an ambient context must be a string or numeric literal: x8 */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/FixedArray/annotation_tests/ambient_annotations_bad_type01.ets b/ets2panda/test/ast/compiler/ets/FixedArray/annotation_tests/ambient_annotations_bad_type01.ets index 17cacc3580..1c2b173c6f 100644 --- a/ets2panda/test/ast/compiler/ets/FixedArray/annotation_tests/ambient_annotations_bad_type01.ets +++ b/ets2panda/test/ast/compiler/ets/FixedArray/annotation_tests/ambient_annotations_bad_type01.ets @@ -31,23 +31,23 @@ import * as Src from "./annotation_src" ] } -/* @@@ label1 Error TypeError: The initial value does not match the expected value. */ -/* @@@ label Error TypeError: Initializer for field 'authorName' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ -/* @@@ label3 Error TypeError: The initial value does not match the expected value. */ -/* @@@ label2 Error TypeError: Initializer for field 'authorAge' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ -/* @@@ label5 Error TypeError: The initial value does not match the expected value. */ -/* @@@ label4 Error TypeError: Initializer for field 'testBool' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ -/* @@@ label7 Error TypeError: The initial value does not match the expected value. */ -/* @@@ label6 Error TypeError: Initializer for field 'favorColor' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ -/* @@@ label10 Error TypeError: The initial value does not match the expected value. */ -/* @@@ label9 Error TypeError: The initial value does not match the expected value. */ -/* @@@ label8 Error TypeError: Initializer for field 'color' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ -/* @@@ label13 Error TypeError: The initial value does not match the expected value. */ -/* @@@ label12 Error TypeError: The initial value does not match the expected value. */ -/* @@@ label11 Error TypeError: Initializer for field 'reviewers' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ -/* @@@ label16 Error TypeError: The initial value does not match the expected value. */ -/* @@@ label15 Error TypeError: The initial value does not match the expected value. */ -/* @@@ label14 Error TypeError: Initializer for field 'reviewersAge' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ -/* @@@ label19 Error TypeError: The initial value does not match the expected value. */ -/* @@@ label18 Error TypeError: The initial value does not match the expected value. */ -/* @@@ label17 Error TypeError: Initializer for field 'testBools' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ \ No newline at end of file +/* @@@ label Error Semantic error ESE0039: Initializer for field 'authorName' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ +/* @@@ label1 Error Semantic error ESE0036: The initial value does not match the expected value. */ +/* @@@ label2 Error Semantic error ESE0039: Initializer for field 'authorAge' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ +/* @@@ label3 Error Semantic error ESE0036: The initial value does not match the expected value. */ +/* @@@ label4 Error Semantic error ESE0039: Initializer for field 'testBool' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ +/* @@@ label5 Error Semantic error ESE0036: The initial value does not match the expected value. */ +/* @@@ label6 Error Semantic error ESE0039: Initializer for field 'favorColor' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ +/* @@@ label7 Error Semantic error ESE0036: The initial value does not match the expected value. */ +/* @@@ label8 Error Semantic error ESE0039: Initializer for field 'color' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ +/* @@@ label9 Error Semantic error ESE0036: The initial value does not match the expected value. */ +/* @@@ label10 Error Semantic error ESE0036: The initial value does not match the expected value. */ +/* @@@ label11 Error Semantic error ESE0039: Initializer for field 'reviewers' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ +/* @@@ label12 Error Semantic error ESE0036: The initial value does not match the expected value. */ +/* @@@ label13 Error Semantic error ESE0036: The initial value does not match the expected value. */ +/* @@@ label14 Error Semantic error ESE0039: Initializer for field 'reviewersAge' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ +/* @@@ label15 Error Semantic error ESE0036: The initial value does not match the expected value. */ +/* @@@ label16 Error Semantic error ESE0036: The initial value does not match the expected value. */ +/* @@@ label17 Error Semantic error ESE0039: Initializer for field 'testBools' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ +/* @@@ label18 Error Semantic error ESE0036: The initial value does not match the expected value. */ +/* @@@ label19 Error Semantic error ESE0036: The initial value does not match the expected value. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/FixedArray/annotation_tests/ambient_annotations_bad_type02.ets b/ets2panda/test/ast/compiler/ets/FixedArray/annotation_tests/ambient_annotations_bad_type02.ets index 2f549a22c0..0d13c05dad 100644 --- a/ets2panda/test/ast/compiler/ets/FixedArray/annotation_tests/ambient_annotations_bad_type02.ets +++ b/ets2panda/test/ast/compiler/ets/FixedArray/annotation_tests/ambient_annotations_bad_type02.ets @@ -31,11 +31,11 @@ import {ClassAuthor, Color} from "./annotation_src" ] } -/* @@@ label1 Error TypeError: Field 'authorAge' has a type mismatch with the ambient annotation 'ClassAuthor'. */ -/* @@@ label2 Error TypeError: The initial value does not match the expected value. */ -/* @@@ label Error TypeError: Initializer for field 'authorAge' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ -/* @@@ label4 Error TypeError: Field 'testBool' has a type mismatch with the ambient annotation 'ClassAuthor'. */ -/* @@@ label3 Error TypeError: Initializer for field 'testBool' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ -/* @@@ label5 Error TypeError: Initializer for field 'favorColor' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ -/* @@@ label6 Error TypeError: Initializer for field 'color' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ -/* @@@ label7 Error TypeError: Field 'reviewersAge' has a type mismatch with the ambient annotation 'ClassAuthor'. */ \ No newline at end of file +/* @@@ label Error Semantic error ESE0039: Initializer for field 'authorAge' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ +/* @@@ label1 Error Semantic error ESE0038: Field 'authorAge' has a type mismatch with the ambient annotation 'ClassAuthor'. */ +/* @@@ label2 Error Semantic error ESE0036: The initial value does not match the expected value. */ +/* @@@ label3 Error Semantic error ESE0039: Initializer for field 'testBool' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ +/* @@@ label4 Error Semantic error ESE0038: Field 'testBool' has a type mismatch with the ambient annotation 'ClassAuthor'. */ +/* @@@ label5 Error Semantic error ESE0039: Initializer for field 'favorColor' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ +/* @@@ label6 Error Semantic error ESE0039: Initializer for field 'color' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ +/* @@@ label7 Error Semantic error ESE0038: Field 'reviewersAge' has a type mismatch with the ambient annotation 'ClassAuthor'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/FixedArray/annotation_tests/annotationDecl_bad_initializer08.ets b/ets2panda/test/ast/compiler/ets/FixedArray/annotation_tests/annotationDecl_bad_initializer08.ets index abbbc6bcca..3b7f332a3a 100644 --- a/ets2panda/test/ast/compiler/ets/FixedArray/annotation_tests/annotationDecl_bad_initializer08.ets +++ b/ets2panda/test/ast/compiler/ets/FixedArray/annotation_tests/annotationDecl_bad_initializer08.ets @@ -24,10 +24,11 @@ enum Size{S, M, L, XL, XXL} testProperty5: FixedArray = [Color.GREEN, Color.BLUE] } -/* @@? 20:29 Error TypeError: Type 'Int' cannot be assigned to type 'String' */ -/* @@? 21:30 Error TypeError: Type '"false"' cannot be assigned to type 'Boolean' */ -/* @@? 22:39 Error TypeError: Array element at index 0 with type 'Double' is not compatible with the target array element type 'Int' */ -/* @@? 22:44 Error TypeError: Array element at index 1 with type 'Double' is not compatible with the target array element type 'Int' */ -/* @@? 23:28 Error TypeError: Type 'Size' cannot be assigned to type 'Color' */ -/* @@? 24:40 Error TypeError: Array element at index 0 with type 'Color' is not compatible with the target array element type 'Size' */ -/* @@? 24:53 Error TypeError: Array element at index 1 with type 'Color' is not compatible with the target array element type 'Size' */ + +/* @@? 20:29 Error Semantic error ESE0318: Type 'Int' cannot be assigned to type 'String' */ +/* @@? 21:30 Error Semantic error ESE0318: Type '"false"' cannot be assigned to type 'Boolean' */ +/* @@? 22:39 Error Semantic error ESE0227: Array element at index 0 with type 'Double' is not compatible with the target array element type 'Int' */ +/* @@? 22:44 Error Semantic error ESE0227: Array element at index 1 with type 'Double' is not compatible with the target array element type 'Int' */ +/* @@? 23:28 Error Semantic error ESE0318: Type 'Size' cannot be assigned to type 'Color' */ +/* @@? 24:40 Error Semantic error ESE0227: Array element at index 0 with type 'Color' is not compatible with the target array element type 'Size' */ +/* @@? 24:53 Error Semantic error ESE0227: Array element at index 1 with type 'Color' is not compatible with the target array element type 'Size' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/FixedArray/annotation_tests/annotationUsage_bad_param09.ets b/ets2panda/test/ast/compiler/ets/FixedArray/annotation_tests/annotationUsage_bad_param09.ets index 5199df48ef..5060ce56fc 100644 --- a/ets2panda/test/ast/compiler/ets/FixedArray/annotation_tests/annotationUsage_bad_param09.ets +++ b/ets2panda/test/ast/compiler/ets/FixedArray/annotation_tests/annotationUsage_bad_param09.ets @@ -35,10 +35,11 @@ class B{ foo(){} } -/* @@? 29:24 Error TypeError: Type 'Int' cannot be assigned to type 'String' */ -/* @@? 30:24 Error TypeError: Type '"false"' cannot be assigned to type 'Boolean' */ -/* @@? 31:25 Error TypeError: Array element at index 0 with type 'Double' is not compatible with the target array element type 'Int' */ -/* @@? 31:30 Error TypeError: Array element at index 1 with type 'Double' is not compatible with the target array element type 'Int' */ -/* @@? 32:24 Error TypeError: Type 'Size' cannot be assigned to type 'Color' */ -/* @@? 33:25 Error TypeError: Array element at index 0 with type 'Color' is not compatible with the target array element type 'Size' */ -/* @@? 33:38 Error TypeError: Array element at index 1 with type 'Color' is not compatible with the target array element type 'Size' */ + +/* @@? 29:24 Error Semantic error ESE0318: Type 'Int' cannot be assigned to type 'String' */ +/* @@? 30:24 Error Semantic error ESE0318: Type '"false"' cannot be assigned to type 'Boolean' */ +/* @@? 31:25 Error Semantic error ESE0227: Array element at index 0 with type 'Double' is not compatible with the target array element type 'Int' */ +/* @@? 31:30 Error Semantic error ESE0227: Array element at index 1 with type 'Double' is not compatible with the target array element type 'Int' */ +/* @@? 32:24 Error Semantic error ESE0318: Type 'Size' cannot be assigned to type 'Color' */ +/* @@? 33:25 Error Semantic error ESE0227: Array element at index 0 with type 'Color' is not compatible with the target array element type 'Size' */ +/* @@? 33:38 Error Semantic error ESE0227: Array element at index 1 with type 'Color' is not compatible with the target array element type 'Size' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/FixedArray/annotation_tests/annotation_for_array_type01.ets b/ets2panda/test/ast/compiler/ets/FixedArray/annotation_tests/annotation_for_array_type01.ets index 9390f6811d..34e74de14c 100644 --- a/ets2panda/test/ast/compiler/ets/FixedArray/annotation_tests/annotation_for_array_type01.ets +++ b/ets2panda/test/ast/compiler/ets/FixedArray/annotation_tests/annotation_for_array_type01.ets @@ -22,5 +22,5 @@ let array: @Anno @Anno FixedArray> let deepArray: @Anno @Anno FixedArray>>>> -/* @@? 21:19 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 22:23 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ \ No newline at end of file +/* @@? 21:19 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 22:23 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/FixedArray/annotation_tests/annotation_for_readonly_type.ets b/ets2panda/test/ast/compiler/ets/FixedArray/annotation_tests/annotation_for_readonly_type.ets index ad9dfcdb27..0c40e8fc16 100644 --- a/ets2panda/test/ast/compiler/ets/FixedArray/annotation_tests/annotation_for_readonly_type.ets +++ b/ets2panda/test/ast/compiler/ets/FixedArray/annotation_tests/annotation_for_readonly_type.ets @@ -18,4 +18,5 @@ // annotations for readonly Type let readonlyTuple: readonly @Anno @Anno() [Int, String, Float, FixedArray] -/* @@? 19:36 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ + +/* @@? 19:36 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/FixedArray/array_indexing_without_chaining_nullish.ets b/ets2panda/test/ast/compiler/ets/FixedArray/array_indexing_without_chaining_nullish.ets index 201a56615e..a08daeb3c8 100644 --- a/ets2panda/test/ast/compiler/ets/FixedArray/array_indexing_without_chaining_nullish.ets +++ b/ets2panda/test/ast/compiler/ets/FixedArray/array_indexing_without_chaining_nullish.ets @@ -18,4 +18,5 @@ class A {} let arr : FixedArray | null = [new Object(), new A()]; let elem : Object | undefined = /* @@ label */arr[0]; -/* @@@ label Error TypeError: Value is possibly nullish. */ + +/* @@@ label Error Semantic error ESE0010: Value is possibly nullish. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/FixedArray/extension_function_tests/array_extension_func_dupicated_name_with_builtin.ets b/ets2panda/test/ast/compiler/ets/FixedArray/extension_function_tests/array_extension_func_dupicated_name_with_builtin.ets index d96e87a488..2a101efbc3 100644 --- a/ets2panda/test/ast/compiler/ets/FixedArray/extension_function_tests/array_extension_func_dupicated_name_with_builtin.ets +++ b/ets2panda/test/ast/compiler/ets/FixedArray/extension_function_tests/array_extension_func_dupicated_name_with_builtin.ets @@ -17,4 +17,5 @@ function toString(this: FixedArray) /* @@ label */{ return "ext-func" } -/* @@@ label Error TypeError: The extension function 'toString' has the same name with public method in class Object */ + +/* @@@ label Error Semantic error ESE0081: The extension function 'toString' has the same name with public method in class Object */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/FixedArray/extension_function_tests/extension_function_return_this_neg2.ets b/ets2panda/test/ast/compiler/ets/FixedArray/extension_function_tests/extension_function_return_this_neg2.ets index 8d78af6ed5..2f1a7579fa 100644 --- a/ets2panda/test/ast/compiler/ets/FixedArray/extension_function_tests/extension_function_return_this_neg2.ets +++ b/ets2panda/test/ast/compiler/ets/FixedArray/extension_function_tests/extension_function_return_this_neg2.ets @@ -20,6 +20,7 @@ function f1(this : B): FixedArray { return this; } -/* @@? 19:35 Error SyntaxError: A 'this' type is available only as return type in a non-static method of a class or struct and extension functions. */ -/* @@? 19:35 Error TypeError: A 'this' cannot be used as type of array. */ -/* @@? 20:12 Error TypeError: Type 'B' is not compatible with the enclosing method's return type 'FixedArray' */ + +/* @@? 19:35 Error Syntax error ESY0044: A 'this' type is available only as return type in a non-static method of a class or struct and extension functions. */ +/* @@? 19:35 Error Semantic error ESE0283: A 'this' cannot be used as type of array. */ +/* @@? 20:12 Error Semantic error ESE0091: Type 'B' is not compatible with the enclosing method's return type 'FixedArray' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/FixedArray/for_of_missing_iterator_type.ets b/ets2panda/test/ast/compiler/ets/FixedArray/for_of_missing_iterator_type.ets index b151e98f01..ade46bac5e 100644 --- a/ets2panda/test/ast/compiler/ets/FixedArray/for_of_missing_iterator_type.ets +++ b/ets2panda/test/ast/compiler/ets/FixedArray/for_of_missing_iterator_type.ets @@ -30,4 +30,5 @@ function main(): void { new A().foo(n) } -/* @@@ label Error TypeError: Cannot obtain iterator type in 'for-of' statement. */ + +/* @@@ label Error Semantic error ESE0099: Cannot obtain iterator type in 'for-of' statement. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/FixedArray/implicit_package_import/scopes_multi_error.ets b/ets2panda/test/ast/compiler/ets/FixedArray/implicit_package_import/scopes_multi_error.ets index 44829a28a5..35b386e317 100644 --- a/ets2panda/test/ast/compiler/ets/FixedArray/implicit_package_import/scopes_multi_error.ets +++ b/ets2panda/test/ast/compiler/ets/FixedArray/implicit_package_import/scopes_multi_error.ets @@ -28,7 +28,8 @@ function main(i : FixedArray, g : int): void { export default function TestFunc(): void {} export default function TestFuncToo(): void {} -/* @@? 20:10 Error TypeError: Main overload is not enabled */ -/* @@? 24:10 Error TypeError: Main overload is not enabled */ -/* @@? 24:10 Error TypeError: 0 or 1 argument are allowed */ -/* @@? 29:16 Error TypeError: Only one default export is allowed in a module */ + +/* @@? 20:10 Error Semantic error ESE0373: Main overload is not enabled */ +/* @@? 24:10 Error Semantic error ESE0373: Main overload is not enabled */ +/* @@? 24:10 Error Semantic error ESE0133: 0 or 1 argument are allowed */ +/* @@? 29:16 Error Semantic error ESE0374: Only one default export is allowed in a module */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/FixedArray/iterabletypes_with_protected_iterator_neg.ets b/ets2panda/test/ast/compiler/ets/FixedArray/iterabletypes_with_protected_iterator_neg.ets index fdf880e427..cb0dd60040 100644 --- a/ets2panda/test/ast/compiler/ets/FixedArray/iterabletypes_with_protected_iterator_neg.ets +++ b/ets2panda/test/ast/compiler/ets/FixedArray/iterabletypes_with_protected_iterator_neg.ets @@ -44,5 +44,6 @@ function main(): int { return 0; } -/* @@? 40:19 Error TypeError: Cannot find iterator method with the required signature. */ -/* @@? 40:19 Error TypeError: 'For-of' statement source expression is not of iterable type. */ + +/* @@? 40:19 Error Semantic error ESE0259: Cannot find iterator method with the required signature. */ +/* @@? 40:19 Error Semantic error ESE0076: 'For-of' statement source expression is not of iterable type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/FixedArray/lambda_type_mismatch.ets b/ets2panda/test/ast/compiler/ets/FixedArray/lambda_type_mismatch.ets index 50ae65365c..50b71e1781 100644 --- a/ets2panda/test/ast/compiler/ets/FixedArray/lambda_type_mismatch.ets +++ b/ets2panda/test/ast/compiler/ets/FixedArray/lambda_type_mismatch.ets @@ -19,6 +19,6 @@ let fob:(...args:FixedArray)=>number = (...args:FixedArray) =>{} let foc:(c:string, ...args:FixedArray)=>string = (c:number, ...args:FixedArray):string=>{} -/* @@? 16:56 Error TypeError: Type '(p1: Double, ...p2: FixedArray) => void' cannot be assigned to type '(p1: String, ...p2: FixedArray) => void' */ -/* @@? 18:48 Error TypeError: Type '(...p1: FixedArray) => void' cannot be assigned to type '(...p1: FixedArray) => Double' */ -/* @@? 20:58 Error TypeError: Type '(p1: Double, ...p2: FixedArray) => String' cannot be assigned to type '(p1: String, ...p2: FixedArray) => String' */ +/* @@? 16:56 Error Semantic error ESE0318: Type '(p1: Double, ...p2: FixedArray) => void' cannot be assigned to type '(p1: String, ...p2: FixedArray) => void' */ +/* @@? 18:48 Error Semantic error ESE0318: Type '(...p1: FixedArray) => void' cannot be assigned to type '(...p1: FixedArray) => Double' */ +/* @@? 20:58 Error Semantic error ESE0318: Type '(p1: Double, ...p2: FixedArray) => String' cannot be assigned to type '(p1: String, ...p2: FixedArray) => String' */ diff --git a/ets2panda/test/ast/compiler/ets/FixedArray/most_specific_method_with_empty_rest_param.ets b/ets2panda/test/ast/compiler/ets/FixedArray/most_specific_method_with_empty_rest_param.ets index 05c91630b4..fe0f12d506 100644 --- a/ets2panda/test/ast/compiler/ets/FixedArray/most_specific_method_with_empty_rest_param.ets +++ b/ets2panda/test/ast/compiler/ets/FixedArray/most_specific_method_with_empty_rest_param.ets @@ -26,3 +26,5 @@ function main() { let c: C = new C() c.met() } +/* @@? 27:5 Error Semantic error ESE0129: Call to `met` is ambiguous */ +/* @@? 27:5 Error Semantic error ESE0126: Reference to met is ambiguous */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/FixedArray/newClassInstanceExpression.ets b/ets2panda/test/ast/compiler/ets/FixedArray/newClassInstanceExpression.ets index 7a854d51d5..310f141e39 100644 --- a/ets2panda/test/ast/compiler/ets/FixedArray/newClassInstanceExpression.ets +++ b/ets2panda/test/ast/compiler/ets/FixedArray/newClassInstanceExpression.ets @@ -24,4 +24,5 @@ function main(): int { return 0; } -/* @@@ label Error TypeError: 'fun' type does not exist. */ + +/* @@@ label Error Semantic error ESE0070: 'fun' type does not exist. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/FixedArray/same_assembly_overload/callExpr_pos.ets b/ets2panda/test/ast/compiler/ets/FixedArray/same_assembly_overload/callExpr_pos.ets index 80478738c5..6dd15b5358 100644 --- a/ets2panda/test/ast/compiler/ets/FixedArray/same_assembly_overload/callExpr_pos.ets +++ b/ets2panda/test/ast/compiler/ets/FixedArray/same_assembly_overload/callExpr_pos.ets @@ -25,4 +25,5 @@ foo(1,2) foo(1.1) -/* @@? 23:5 Error TypeError: Variable 'b' is used before being assigned. */ + +/* @@? 23:5 Error Semantic error ESE0375: Variable 'b' is used before being assigned. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/FixedArray/setArrayLength1.ets b/ets2panda/test/ast/compiler/ets/FixedArray/setArrayLength1.ets index 0a237c3d9b..532a51c301 100644 --- a/ets2panda/test/ast/compiler/ets/FixedArray/setArrayLength1.ets +++ b/ets2panda/test/ast/compiler/ets/FixedArray/setArrayLength1.ets @@ -22,4 +22,5 @@ function main(): void { /* @@ label */test_var.test_array.length = 0; } -/* @@@ label Error TypeError: Setting the length of an array is not permitted */ + +/* @@@ label Error Semantic error ESE0024: Setting the length of an array is not permitted */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/FixedArray/setArrayLength2.ets b/ets2panda/test/ast/compiler/ets/FixedArray/setArrayLength2.ets index 91e5197257..11dd4786e4 100644 --- a/ets2panda/test/ast/compiler/ets/FixedArray/setArrayLength2.ets +++ b/ets2panda/test/ast/compiler/ets/FixedArray/setArrayLength2.ets @@ -18,4 +18,5 @@ function main(): void { /* @@ label */test_array.length = 0; } -/* @@@ label Error TypeError: Setting the length of an array is not permitted */ + +/* @@@ label Error Semantic error ESE0024: Setting the length of an array is not permitted */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/FixedArray/setArrayLength3.ets b/ets2panda/test/ast/compiler/ets/FixedArray/setArrayLength3.ets index a3f7fcbe7d..8755ae8439 100644 --- a/ets2panda/test/ast/compiler/ets/FixedArray/setArrayLength3.ets +++ b/ets2panda/test/ast/compiler/ets/FixedArray/setArrayLength3.ets @@ -18,4 +18,5 @@ function main(): void { /* @@ label */test_array.length += 1 } -/* @@@ label Error TypeError: Setting the length of an array is not permitted */ + +/* @@@ label Error Semantic error ESE0024: Setting the length of an array is not permitted */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/FixedArray/spreadMultiArrayInTuple.ets b/ets2panda/test/ast/compiler/ets/FixedArray/spreadMultiArrayInTuple.ets index de366a4ce9..6b3416c5b3 100644 --- a/ets2panda/test/ast/compiler/ets/FixedArray/spreadMultiArrayInTuple.ets +++ b/ets2panda/test/ast/compiler/ets/FixedArray/spreadMultiArrayInTuple.ets @@ -21,9 +21,10 @@ function main() { let y2: [boolean, int, string, string] = /* @@ label3 */[true, /* @@ label4 */...x2, /* @@ label5 */...x3] } -/* @@? 18:56 Error TypeError: Initializer has 2 elements, but tuple requires 4 */ -/* @@? 18:72 Error TypeError: 'Array' cannot be spread in tuple. */ -/* @@? 18:94 Error TypeError: 'Array' cannot be spread in tuple. */ -/* @@? 21:61 Error TypeError: Initializer has 3 elements, but tuple requires 4 */ -/* @@? 21:83 Error TypeError: 'Array' cannot be spread in tuple. */ -/* @@? 21:105 Error TypeError: 'Array' cannot be spread in tuple. */ + +/* @@@ label Error Semantic error ESE0231: Initializer has 2 elements, but tuple requires 4 */ +/* @@@ label1 Error Semantic error ESE0055: 'Array' cannot be spread in tuple. */ +/* @@@ label2 Error Semantic error ESE0055: 'Array' cannot be spread in tuple. */ +/* @@@ label3 Error Semantic error ESE0231: Initializer has 3 elements, but tuple requires 4 */ +/* @@@ label4 Error Semantic error ESE0055: 'Array' cannot be spread in tuple. */ +/* @@@ label5 Error Semantic error ESE0055: 'Array' cannot be spread in tuple. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/FixedArray/tuple_types_5_neg.ets b/ets2panda/test/ast/compiler/ets/FixedArray/tuple_types_5_neg.ets index e0e6de5b51..7ec5eda21a 100644 --- a/ets2panda/test/ast/compiler/ets/FixedArray/tuple_types_5_neg.ets +++ b/ets2panda/test/ast/compiler/ets/FixedArray/tuple_types_5_neg.ets @@ -18,12 +18,13 @@ function main(): void { let a: [number, FixedArray<...number>] = [1]; } -/* @@? 18:21 Error TypeError: FixedArray must have only one type parameter. */ -/* @@? 18:32 Error SyntaxError: Invalid Type. */ -/* @@? 18:32 Error SyntaxError: Unexpected token, expected '>'. */ -/* @@? 18:32 Error SyntaxError: Unexpected token, expected ',' or ']'. */ -/* @@? 18:32 Error SyntaxError: Unexpected token '>'. */ -/* @@? 18:35 Error SyntaxError: Unexpected token 'number'. */ -/* @@? 18:35 Error TypeError: Type name 'number' used in the wrong context */ -/* @@? 18:35 Error TypeError: Bad operand type, the types of the operands must be numeric, same enumeration, or boolean type. */ -/* @@? 18:42 Error SyntaxError: Unexpected token ']'. */ + +/* @@? 18:21 Error Semantic error ESE0277: FixedArray must have only one type parameter. */ +/* @@? 18:32 Error Syntax error ESY0138: Invalid Type. */ +/* @@? 18:32 Error Syntax error ESY0228: Unexpected token, expected '>'. */ +/* @@? 18:32 Error Syntax error ESY0229: Unexpected token, expected ',' or ']'. */ +/* @@? 18:32 Error Syntax error ESY0227: Unexpected token '>'. */ +/* @@? 18:35 Error Syntax error ESY0227: Unexpected token 'number'. */ +/* @@? 18:35 Error Semantic error ESE0144: Type name 'number' used in the wrong context */ +/* @@? 18:35 Error Semantic error ESE0114: Bad operand type, the types of the operands must be numeric, same enumeration, or boolean type. */ +/* @@? 18:42 Error Syntax error ESY0227: Unexpected token ']'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/FixedArray/tuple_types_9_neg.ets b/ets2panda/test/ast/compiler/ets/FixedArray/tuple_types_9_neg.ets index baddef4e13..e8d78fe783 100644 --- a/ets2panda/test/ast/compiler/ets/FixedArray/tuple_types_9_neg.ets +++ b/ets2panda/test/ast/compiler/ets/FixedArray/tuple_types_9_neg.ets @@ -18,12 +18,13 @@ function main(): void { let a: [number, string, FixedArray<...Int>] = [2, "a", 3]; } -/* @@? 18:29 Error TypeError: FixedArray must have only one type parameter. */ -/* @@? 18:40 Error SyntaxError: Invalid Type. */ -/* @@? 18:40 Error SyntaxError: Unexpected token, expected '>'. */ -/* @@? 18:40 Error SyntaxError: Unexpected token, expected ',' or ']'. */ -/* @@? 18:40 Error SyntaxError: Unexpected token '>'. */ -/* @@? 18:43 Error SyntaxError: Unexpected token 'Int'. */ -/* @@? 18:43 Error SyntaxError: Class cannot be used as object. */ -/* @@? 18:43 Error TypeError: Bad operand type, the types of the operands must be numeric, same enumeration, or boolean type. */ -/* @@? 18:47 Error SyntaxError: Unexpected token ']'. */ + +/* @@? 18:29 Error Semantic error ESE0277: FixedArray must have only one type parameter. */ +/* @@? 18:40 Error Syntax error ESY0138: Invalid Type. */ +/* @@? 18:40 Error Syntax error ESY0228: Unexpected token, expected '>'. */ +/* @@? 18:40 Error Syntax error ESY0229: Unexpected token, expected ',' or ']'. */ +/* @@? 18:40 Error Syntax error ESY0227: Unexpected token '>'. */ +/* @@? 18:43 Error Syntax error ESY0227: Unexpected token 'Int'. */ +/* @@? 18:43 Error Syntax error ESY0318: Class cannot be used as object. */ +/* @@? 18:43 Error Semantic error ESE0114: Bad operand type, the types of the operands must be numeric, same enumeration, or boolean type. */ +/* @@? 18:47 Error Syntax error ESY0227: Unexpected token ']'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/FixedArray/unionCommonMember_neg.ets b/ets2panda/test/ast/compiler/ets/FixedArray/unionCommonMember_neg.ets index 93fac97891..826ce064eb 100644 --- a/ets2panda/test/ast/compiler/ets/FixedArray/unionCommonMember_neg.ets +++ b/ets2panda/test/ast/compiler/ets/FixedArray/unionCommonMember_neg.ets @@ -51,10 +51,11 @@ function main() { arktest.assertEQ(/* @@ label8 */u.fld8, new Map()) } -/* @@@ label1 Error TypeError: Member type must be the same for all union objects. */ -/* @@@ label3 Error TypeError: Member type must be the same for all union objects. */ -/* @@@ label4 Error TypeError: Member type must be the same for all union objects. */ -/* @@@ label5 Error TypeError: Member type must be the same for all union objects. */ -/* @@@ label6 Error TypeError: Member type must be the same for all union objects. */ -/* @@@ label7 Error TypeError: Member type must be the same for all union objects. */ -/* @@@ label8 Error TypeError: Member type must be the same for all union objects. */ + +/* @@@ label1 Error Semantic error ESE0244: Member type must be the same for all union objects. */ +/* @@@ label3 Error Semantic error ESE0244: Member type must be the same for all union objects. */ +/* @@@ label4 Error Semantic error ESE0244: Member type must be the same for all union objects. */ +/* @@@ label5 Error Semantic error ESE0244: Member type must be the same for all union objects. */ +/* @@@ label6 Error Semantic error ESE0244: Member type must be the same for all union objects. */ +/* @@@ label7 Error Semantic error ESE0244: Member type must be the same for all union objects. */ +/* @@@ label8 Error Semantic error ESE0244: Member type must be the same for all union objects. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/FixedArray/union_array_declaration.ets b/ets2panda/test/ast/compiler/ets/FixedArray/union_array_declaration.ets index 2267536e3c..3b577256db 100644 --- a/ets2panda/test/ast/compiler/ets/FixedArray/union_array_declaration.ets +++ b/ets2panda/test/ast/compiler/ets/FixedArray/union_array_declaration.ets @@ -21,4 +21,4 @@ function main(): int { return 0; } -/* @@@ label Error TypeError: Can't resolve array type */ \ No newline at end of file +/* @@@ label Error Semantic error ESE0301: Can't resolve array type */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/FixedArray/union_subtyping_neg.ets b/ets2panda/test/ast/compiler/ets/FixedArray/union_subtyping_neg.ets index ee093b8b10..f223c6584c 100644 --- a/ets2panda/test/ast/compiler/ets/FixedArray/union_subtyping_neg.ets +++ b/ets2panda/test/ast/compiler/ets/FixedArray/union_subtyping_neg.ets @@ -22,4 +22,5 @@ let b: FixedArray = [new B(), new B()] let cOnly: FixedArray = b -/* @@? 23:28 Error TypeError: Type 'FixedArray' cannot be assigned to type 'FixedArray' */ + +/* @@? 23:28 Error Semantic error ESE0318: Type 'FixedArray' cannot be assigned to type 'FixedArray' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/FixedArray/unresolved_reference.ets b/ets2panda/test/ast/compiler/ets/FixedArray/unresolved_reference.ets index eef306e686..60209a6d3e 100644 --- a/ets2panda/test/ast/compiler/ets/FixedArray/unresolved_reference.ets +++ b/ets2panda/test/ast/compiler/ets/FixedArray/unresolved_reference.ets @@ -37,5 +37,6 @@ function main() { let a = (new A).b } -/* @@? 16:13 Error TypeError: Unresolved reference b */ -/* @@? 37:21 Error TypeError: Property 'b' does not exist on type 'A' */ + +/* @@? 16:13 Error Semantic error ESE0143: Unresolved reference b */ +/* @@? 37:21 Error Semantic error ESE0087: Property 'b' does not exist on type 'A' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/FixedArray/variance_typeparam_array.ets b/ets2panda/test/ast/compiler/ets/FixedArray/variance_typeparam_array.ets index 99c81855b9..65601f0db1 100644 --- a/ets2panda/test/ast/compiler/ets/FixedArray/variance_typeparam_array.ets +++ b/ets2panda/test/ast/compiler/ets/FixedArray/variance_typeparam_array.ets @@ -42,17 +42,18 @@ class A{ paramsFunc7(a:T1/* @@ label13 */[], b:T2/* @@ label14 */[], c:FixedArray){} //CTE } -/* @@@ label1 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ -/* @@@ label2 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ -/* @@@ label3 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ -/* @@@ label4 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ -/* @@@ label5 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ -/* @@@ label6 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ -/* @@@ label7 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ -/* @@@ label8 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ -/* @@@ label9 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ -/* @@@ label10 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ -/* @@@ label11 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ -/* @@@ label12 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ -/* @@@ label13 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ -/* @@@ label14 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ + +/* @@@ label1 Error Semantic error ESE0331: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ +/* @@@ label2 Error Semantic error ESE0331: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ +/* @@@ label3 Error Semantic error ESE0331: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ +/* @@@ label4 Error Semantic error ESE0331: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ +/* @@@ label5 Error Semantic error ESE0331: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ +/* @@@ label6 Error Semantic error ESE0331: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ +/* @@@ label7 Error Semantic error ESE0331: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ +/* @@@ label8 Error Semantic error ESE0331: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ +/* @@@ label9 Error Semantic error ESE0331: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ +/* @@@ label10 Error Semantic error ESE0331: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ +/* @@@ label11 Error Semantic error ESE0331: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ +/* @@@ label12 Error Semantic error ESE0331: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ +/* @@@ label13 Error Semantic error ESE0331: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ +/* @@@ label14 Error Semantic error ESE0331: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/FunctionType1.ets b/ets2panda/test/ast/compiler/ets/FunctionType1.ets index e8d1d5c16e..9e72fae515 100644 --- a/ets2panda/test/ast/compiler/ets/FunctionType1.ets +++ b/ets2panda/test/ast/compiler/ets/FunctionType1.ets @@ -26,4 +26,4 @@ function main(): void { func = /* @@ label */klass.a; } -/* @@@ label Error TypeError: Type '(p1: Int, p2: Int) => int' cannot be assigned to type '(p1: Int, p2: Int) => void' */ +/* @@@ label Error Semantic error ESE0318: Type '(p1: Int, p2: Int) => Int' cannot be assigned to type '(p1: Int, p2: Int) => void' */ diff --git a/ets2panda/test/ast/compiler/ets/FunctionType10.ets b/ets2panda/test/ast/compiler/ets/FunctionType10.ets index fc1a41058c..8b69f8d580 100644 --- a/ets2panda/test/ast/compiler/ets/FunctionType10.ets +++ b/ets2panda/test/ast/compiler/ets/FunctionType10.ets @@ -21,4 +21,5 @@ 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' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/FunctionType3.ets b/ets2panda/test/ast/compiler/ets/FunctionType3.ets index 0e68f79c69..8ddedbf9cf 100644 --- a/ets2panda/test/ast/compiler/ets/FunctionType3.ets +++ b/ets2panda/test/ast/compiler/ets/FunctionType3.ets @@ -23,5 +23,6 @@ function main(): void { /* @@ label */func2()(1, /* @@ label1 */"foo"); } -/* @@@ label1 Error TypeError: Type '"foo"' is not compatible with type 'Int' at index 2 */ -/* @@@ label Error TypeError: No matching call signature for (Int, "foo") */ + +/* @@@ label Error Semantic error ESE0127: No matching call signature for (Int, "foo") */ +/* @@@ label1 Error Semantic error ESE0046: Type '"foo"' is not compatible with type 'Int' at index 2 */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/FunctionType5.ets b/ets2panda/test/ast/compiler/ets/FunctionType5.ets index f2d64bff1f..fa6ba33ec8 100644 --- a/ets2panda/test/ast/compiler/ets/FunctionType5.ets +++ b/ets2panda/test/ast/compiler/ets/FunctionType5.ets @@ -18,4 +18,5 @@ function foo (p: number){} let cb = foo; -/* @@? 19:10 Error TypeError: Overloaded method is used as value */ + +/* @@? 19:10 Error Semantic error ESE0307: Overloaded method is used as value */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/FunctionType8.ets b/ets2panda/test/ast/compiler/ets/FunctionType8.ets index 9cc89b03a7..548456b773 100644 --- a/ets2panda/test/ast/compiler/ets/FunctionType8.ets +++ b/ets2panda/test/ast/compiler/ets/FunctionType8.ets @@ -36,5 +36,9 @@ function main(): void { instance.cb(1, 2); } -/* @@? 36:3 Error TypeError: Expected 1 arguments, got 2. */ -/* @@? 36:3 Error TypeError: No matching call signature for (int, int) */ + +/* @@? 22:34 Warning Warning W0010: The instance field initializer expression cannot use the this. */ +/* @@? 30:26 Warning Warning W0010: The instance field initializer expression cannot use the this. */ +/* @@? 30:31 Error Semantic error ESE0307: Overloaded method is used as value */ +/* @@? 36:3 Error Semantic error ESE0124: Expected 1 arguments, got 2. */ +/* @@? 36:3 Error Semantic error ESE0127: No matching call signature for (Int, Int) */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/FunctionType9.ets b/ets2panda/test/ast/compiler/ets/FunctionType9.ets index acca71fd79..cda31fe9d0 100644 --- a/ets2panda/test/ast/compiler/ets/FunctionType9.ets +++ b/ets2panda/test/ast/compiler/ets/FunctionType9.ets @@ -30,4 +30,5 @@ function main(): void { instance./* @@ label */cb(1); } -/* @@@ label Error TypeError: Property cb is not visible here. */ + +/* @@@ label Error Semantic error ESE0293: Property cb is not visible here. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/Incorrect_arrow_func.ets b/ets2panda/test/ast/compiler/ets/Incorrect_arrow_func.ets index 3f64bda07d..a03c7c7697 100644 --- a/ets2panda/test/ast/compiler/ets/Incorrect_arrow_func.ets +++ b/ets2panda/test/ast/compiler/ets/Incorrect_arrow_func.ets @@ -16,6 +16,7 @@ let f = ()=>int {} f() -/* @@? 16:13 Error SyntaxError: Unexpected token 'int'. */ -/* @@? 16:13 Error TypeError: Unexpected return value, enclosing method return type is void. */ -/* @@? 16:17 Error SyntaxError: Unexpected token '{'. */ + +/* @@? 16:13 Error Syntax error ESY0227: Unexpected token 'int'. */ +/* @@? 16:13 Error Semantic error ESE0089: Unexpected return value, enclosing method return type is void. */ +/* @@? 16:17 Error Syntax error ESY0227: Unexpected token '{'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/Invalid_rest_element_wtih_tuple_type.ets b/ets2panda/test/ast/compiler/ets/Invalid_rest_element_wtih_tuple_type.ets index 2df27d5f56..d4ed0ebc05 100644 --- a/ets2panda/test/ast/compiler/ets/Invalid_rest_element_wtih_tuple_type.ets +++ b/ets2panda/test/ast/compiler/ets/Invalid_rest_element_wtih_tuple_type.ets @@ -22,5 +22,6 @@ function main() { let mc = new TH } -/* @@? 17:38 Error TypeError: Cannot make a static reference to the non-static type B */ -/* @@? 17:41 Error TypeError: Cannot make a static reference to the non-static type C */ + +/* @@? 17:38 Error Semantic error ESE0288: Cannot make a static reference to the non-static type B */ +/* @@? 17:41 Error Semantic error ESE0288: Cannot make a static reference to the non-static type C */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/IsValidRestArgument.ets b/ets2panda/test/ast/compiler/ets/IsValidRestArgument.ets index f5bc78e6d6..e25fc321f6 100755 --- a/ets2panda/test/ast/compiler/ets/IsValidRestArgument.ets +++ b/ets2panda/test/ast/compiler/ets/IsValidRestArgument.ets @@ -23,7 +23,8 @@ class C { (new C()).foo({v.r2} ) -/* @@? 23:1 Error TypeError: Expected 2 arguments, got 1. */ -/* @@? 23:1 Error TypeError: No matching call signature for foo(...) */ -/* @@? 23:15 Error TypeError: need to specify target type for class composite */ -/* @@? 23:17 Error SyntaxError: Unexpected token, expected ':'. */ + +/* @@? 23:1 Error Semantic error ESE0124: Expected 2 arguments, got 1. */ +/* @@? 23:1 Error Semantic error ESE0127: No matching call signature for foo(...) */ +/* @@? 23:15 Error Semantic error ESE0062: need to specify target type for class composite */ +/* @@? 23:17 Error Syntax error ESY0228: Unexpected token, expected ':'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/MultiPropertyWithSameName.ets b/ets2panda/test/ast/compiler/ets/MultiPropertyWithSameName.ets index 3c7d4737be..5be2f2cfcc 100644 --- a/ets2panda/test/ast/compiler/ets/MultiPropertyWithSameName.ets +++ b/ets2panda/test/ast/compiler/ets/MultiPropertyWithSameName.ets @@ -34,7 +34,7 @@ let c: A = { } -/* @@? 22:5 Error TypeError: An object literal cannot have multiple properties with the same name. */ -/* @@? 27:5 Error TypeError: An object literal cannot have multiple properties with the same name. */ -/* @@? 28:5 Error TypeError: An object literal cannot have multiple properties with the same name. */ -/* @@? 33:5 Error TypeError: An object literal cannot have multiple properties with the same name. */ + +/* @@? 20:5 Error Semantic error ESE0100: An object literal cannot have multiple properties with the same name. */ +/* @@? 25:5 Error Semantic error ESE0100: An object literal cannot have multiple properties with the same name. */ +/* @@? 31:5 Error Semantic error ESE0100: An object literal cannot have multiple properties with the same name. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/Non-static-private-method-used-as-val-neg.ets b/ets2panda/test/ast/compiler/ets/Non-static-private-method-used-as-val-neg.ets index afdeb06d9d..48bd221f22 100644 --- a/ets2panda/test/ast/compiler/ets/Non-static-private-method-used-as-val-neg.ets +++ b/ets2panda/test/ast/compiler/ets/Non-static-private-method-used-as-val-neg.ets @@ -25,4 +25,5 @@ class C { } } -/* @@@ label Error TypeError: Private method is used as value */ + +/* @@@ label Error Semantic error ESE0306: Private method is used as value */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/ObjectLiteral_neg_1.ets b/ets2panda/test/ast/compiler/ets/ObjectLiteral_neg_1.ets index 0cae5d18a7..b15b0da1b3 100644 --- a/ets2panda/test/ast/compiler/ets/ObjectLiteral_neg_1.ets +++ b/ets2panda/test/ast/compiler/ets/ObjectLiteral_neg_1.ets @@ -37,4 +37,5 @@ const router:RouterT = { -/* @@? 32:5 Error TypeError: Class or interface methods cannot be initialized within an object literal. */ + +/* @@? 32:5 Error Semantic error ESE0074: Class or interface methods cannot be initialized within an object literal. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/ObjectLiteral_neg_2.ets b/ets2panda/test/ast/compiler/ets/ObjectLiteral_neg_2.ets index 73db0e88aa..eeae91f8b4 100644 --- a/ets2panda/test/ast/compiler/ets/ObjectLiteral_neg_2.ets +++ b/ets2panda/test/ast/compiler/ets/ObjectLiteral_neg_2.ets @@ -20,4 +20,5 @@ class A { let a:A = {back:()=>{}} -/* @@? 20:12 Error TypeError: Class or interface methods cannot be initialized within an object literal. */ + +/* @@? 20:12 Error Semantic error ESE0074: Class or interface methods cannot be initialized within an object literal. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/ParserImpl_ParserForInOf_nullptr.ets b/ets2panda/test/ast/compiler/ets/ParserImpl_ParserForInOf_nullptr.ets index 26506215d9..0e080d287a 100755 --- a/ets2panda/test/ast/compiler/ets/ParserImpl_ParserForInOf_nullptr.ets +++ b/ets2panda/test/ast/compiler/ets/ParserImpl_ParserForInOf_nullptr.ets @@ -18,14 +18,14 @@ __empty = 1, } -/* @@? 16:2 Error SyntaxError: Unexpected token '%'. */ -/* @@? 16:4 Error SyntaxError: Unexpected token 'for'. */ -/* @@? 17:3 Error SyntaxError: Expected '(', got 'const'. */ -/* @@? 31:70 Error SyntaxError: Invalid left-hand side in 'for' statement: must have a single binding. */ -/* @@? 31:70 Error SyntaxError: Expected ';', got 'end of stream'. */ -/* @@? 31:70 Error SyntaxError: Unexpected token 'end of stream'. */ -/* @@? 31:70 Error SyntaxError: Unexpected token, expected ';'. */ -/* @@? 31:70 Error SyntaxError: Unexpected token 'end of stream'. */ -/* @@? 31:70 Error SyntaxError: Expected ')', got 'end of stream'. */ -/* @@? 31:70 Error SyntaxError: Unexpected token 'end of stream'. */ -/* @@? 31:70 Error SyntaxError: Expected '}', got 'end of stream'. */ \ No newline at end of file +/* @@? 16:2 Error Syntax error ESY0227: Unexpected token '%'. */ +/* @@? 16:4 Error Syntax error ESY0227: Unexpected token 'for'. */ +/* @@? 17:3 Error Syntax error ESY0230: Expected '(', got 'const'. */ +/* @@? 31:79 Error Syntax error ESY0211: Invalid left-hand side in 'for' statement: must have a single binding. */ +/* @@? 31:79 Error Syntax error ESY0230: Expected ';', got 'end of stream'. */ +/* @@? 31:79 Error Syntax error ESY0227: Unexpected token 'end of stream'. */ +/* @@? 31:79 Error Syntax error ESY0228: Unexpected token, expected ';'. */ +/* @@? 31:79 Error Syntax error ESY0227: Unexpected token 'end of stream'. */ +/* @@? 31:79 Error Syntax error ESY0230: Expected ')', got 'end of stream'. */ +/* @@? 31:79 Error Syntax error ESY0227: Unexpected token 'end of stream'. */ +/* @@? 31:79 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/Partial_utility_type_0.ets b/ets2panda/test/ast/compiler/ets/Partial_utility_type_0.ets index b72c198c60..0255d36a7b 100644 --- a/ets2panda/test/ast/compiler/ets/Partial_utility_type_0.ets +++ b/ets2panda/test/ast/compiler/ets/Partial_utility_type_0.ets @@ -25,8 +25,9 @@ function foo() { } -/* @@? 20:20 Error TypeError: T in Partial must be a class or an interface type. */ -/* @@? 21:20 Error TypeError: T in Partial must be a class or an interface type. */ -/* @@? 22:20 Error TypeError: T in Partial must be a class or an interface type. */ -/* @@? 23:20 Error TypeError: T in Partial must be a class or an interface type. */ -/* @@? 24:20 Error TypeError: T in Partial must be a class or an interface type. */ + +/* @@? 20:20 Error Semantic error ESE124644: T in Partial must be a class or an interface type. */ +/* @@? 21:20 Error Semantic error ESE124644: T in Partial must be a class or an interface type. */ +/* @@? 22:20 Error Semantic error ESE124644: T in Partial must be a class or an interface type. */ +/* @@? 23:20 Error Semantic error ESE124644: T in Partial must be a class or an interface type. */ +/* @@? 24:20 Error Semantic error ESE124644: T in Partial must be a class or an interface type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/PromiseAllSettledRejectIgnored.ets b/ets2panda/test/ast/compiler/ets/PromiseAllSettledRejectIgnored.ets index db53e7267e..5af5ea9829 100644 --- a/ets2panda/test/ast/compiler/ets/PromiseAllSettledRejectIgnored.ets +++ b/ets2panda/test/ast/compiler/ets/PromiseAllSettledRejectIgnored.ets @@ -55,5 +55,5 @@ Promise.allSettled(thenable).then((values: PromiseSettledResult' is not compatible with the enclosing method's return type 'PromiseLike|Awaited>' */ -/* @@? 27:16 Error TypeError: Type 'Promise' is not compatible with the enclosing method's return type 'PromiseLike|Awaited>' */ \ No newline at end of file +/* @@? 19:16 Error Semantic error ESE0091: Type 'Promise' is not compatible with the enclosing method's return type 'PromiseLike|Awaited>' */ +/* @@? 27:16 Error Semantic error ESE0091: Type 'Promise' is not compatible with the enclosing method's return type 'PromiseLike|Awaited>' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/Required_utility_type_0.ets b/ets2panda/test/ast/compiler/ets/Required_utility_type_0.ets index 00fd2a2a6e..1a61a4cd3b 100644 --- a/ets2panda/test/ast/compiler/ets/Required_utility_type_0.ets +++ b/ets2panda/test/ast/compiler/ets/Required_utility_type_0.ets @@ -26,8 +26,9 @@ function foo() { -/* @@? 20:20 Error TypeError: T in Partial must be a class or an interface type. */ -/* @@? 21:20 Error TypeError: T in Partial must be a class or an interface type. */ -/* @@? 22:20 Error TypeError: T in Partial must be a class or an interface type. */ -/* @@? 23:20 Error TypeError: T in Partial must be a class or an interface type. */ -/* @@? 24:20 Error TypeError: T in Partial must be a class or an interface type. */ + +/* @@? 20:20 Error Semantic error ESE124644: T in Partial must be a class or an interface type. */ +/* @@? 21:20 Error Semantic error ESE124644: T in Partial must be a class or an interface type. */ +/* @@? 22:20 Error Semantic error ESE124644: T in Partial must be a class or an interface type. */ +/* @@? 23:20 Error Semantic error ESE124644: T in Partial must be a class or an interface type. */ +/* @@? 24:20 Error Semantic error ESE124644: T in Partial must be a class or an interface type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/TypeError_recursive_parameter_1.ets b/ets2panda/test/ast/compiler/ets/TypeError_recursive_parameter_1.ets index 367544573f..6f9f6be8e4 100644 --- a/ets2panda/test/ast/compiler/ets/TypeError_recursive_parameter_1.ets +++ b/ets2panda/test/ast/compiler/ets/TypeError_recursive_parameter_1.ets @@ -16,4 +16,5 @@ class A>{} class B{} class C extends A/* @@ label */{} -/* @@@ label Error TypeError: Type argument 'B' should be a subtype of 'A'-constraint */ + +/* @@@ label Error Semantic error ESE0228: Type argument 'B' should be a subtype of 'A'-constraint */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/TypeError_recursive_parameter_2.ets b/ets2panda/test/ast/compiler/ets/TypeError_recursive_parameter_2.ets index da65d44cd5..719eba3abb 100644 --- a/ets2panda/test/ast/compiler/ets/TypeError_recursive_parameter_2.ets +++ b/ets2panda/test/ast/compiler/ets/TypeError_recursive_parameter_2.ets @@ -17,4 +17,5 @@ class A>{} class P2{} class P1 extends A/* @@ label */{} -/* @@@ label Error TypeError: Type argument 'P2' should be a subtype of 'A'-constraint */ + +/* @@@ label Error Semantic error ESE0228: Type argument 'P2' should be a subtype of 'A'-constraint */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/UnresolvedReferenceInCamparison.ets b/ets2panda/test/ast/compiler/ets/UnresolvedReferenceInCamparison.ets index a9d2d105b9..5787c0578d 100644 --- a/ets2panda/test/ast/compiler/ets/UnresolvedReferenceInCamparison.ets +++ b/ets2panda/test/ast/compiler/ets/UnresolvedReferenceInCamparison.ets @@ -18,6 +18,7 @@ function main() : void { /* @@ label2 */hehe } -/* @@@ label Error TypeError: Unresolved reference a */ -/* @@@ label1 Error TypeError: Unresolved reference b */ -/* @@@ label2 Error TypeError: Unresolved reference hehe */ + +/* @@@ label Error Semantic error ESE0143: Unresolved reference a */ +/* @@@ label1 Error Semantic error ESE0143: Unresolved reference b */ +/* @@@ label2 Error Semantic error ESE0143: Unresolved reference hehe */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/absent_return_statement.ets b/ets2panda/test/ast/compiler/ets/absent_return_statement.ets index aff155f691..d707497594 100644 --- a/ets2panda/test/ast/compiler/ets/absent_return_statement.ets +++ b/ets2panda/test/ast/compiler/ets/absent_return_statement.ets @@ -37,9 +37,10 @@ function main(): void { foo2(() => /* @@ label6 */console.println("TEST")); } -/* @@@ label1 Error TypeError: Type 'C' is not compatible with the enclosing method's return type 'Int|String|undefined' */ -/* @@@ label2 Error TypeError: Type 'C' is not compatible with the enclosing method's return type 'Int|String|undefined' */ -/* @@@ label3 Error TypeError: Type 'C' is not compatible with the enclosing method's return type 'Int|String' */ -/* @@@ label4 Error TypeError: Type 'void' is not compatible with the enclosing method's return type 'Int|String' */ -/* @@@ label5 Error TypeError: Type 'C' is not compatible with the enclosing method's return type 'Int|String' */ -/* @@@ label6 Error TypeError: Type 'void' is not compatible with the enclosing method's return type 'Int|String' */ + +/* @@@ label1 Error Semantic error ESE0091: Type 'C' is not compatible with the enclosing method's return type 'Int|String|undefined' */ +/* @@@ label2 Error Semantic error ESE0091: Type 'C' is not compatible with the enclosing method's return type 'Int|String|undefined' */ +/* @@@ label3 Error Semantic error ESE0091: Type 'C' is not compatible with the enclosing method's return type 'Int|String' */ +/* @@@ label4 Error Semantic error ESE0091: Type 'void' is not compatible with the enclosing method's return type 'Int|String' */ +/* @@@ label5 Error Semantic error ESE0091: Type 'C' is not compatible with the enclosing method's return type 'Int|String' */ +/* @@@ label6 Error Semantic error ESE0091: Type 'void' is not compatible with the enclosing method's return type 'Int|String' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/ambient_function.ets b/ets2panda/test/ast/compiler/ets/ambient_function.ets index 7f20bea7e3..3f54f0706f 100644 --- a/ets2panda/test/ast/compiler/ets/ambient_function.ets +++ b/ets2panda/test/ast/compiler/ets/ambient_function.ets @@ -24,5 +24,6 @@ function main() { capset(...(a1 ?? a2)); } -/* @@? 21:1 Error TypeError: Method declaration `capset` must all ambient or non-ambient */ -/* @@? 24:3 Error TypeError: This expression is not callable. */ + +/* @@? 21:1 Error Semantic error ESE0399: Method declaration `capset` must all ambient or non-ambient */ +/* @@? 24:3 Error Semantic error ESE0289: This expression is not callable. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/ambient_indexer_1.ets b/ets2panda/test/ast/compiler/ets/ambient_indexer_1.ets index 18ef053143..aa12320fe2 100644 --- a/ets2panda/test/ast/compiler/ets/ambient_indexer_1.ets +++ b/ets2panda/test/ast/compiler/ets/ambient_indexer_1.ets @@ -21,4 +21,5 @@ declare class A { // Extra empty line special for equal position like in file "ambient_indexer_2.ets" // #23399 Error almost has not ideal position, problem in generated code -/* @@? 19:5 Error TypeError: Cannot find type 'stringdd'. */ + +/* @@? 19:5 Error Semantic error ESE0371: Cannot find type 'stringdd'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/ambient_indexer_2.ets b/ets2panda/test/ast/compiler/ets/ambient_indexer_2.ets index c9c395e184..79afe8ab8e 100644 --- a/ets2panda/test/ast/compiler/ets/ambient_indexer_2.ets +++ b/ets2panda/test/ast/compiler/ets/ambient_indexer_2.ets @@ -20,4 +20,5 @@ declare class A { } // #23399 Error almost has not ideal position, problem in generated code -/* @@? 19:5 Error TypeError: Cannot find type 'stringdd'. */ + +/* @@? 19:5 Error Semantic error ESE0371: Cannot find type 'stringdd'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/ambient_indexer_multiple_dummy_nodes.ets b/ets2panda/test/ast/compiler/ets/ambient_indexer_multiple_dummy_nodes.ets index 139fe4e7de..51663ee250 100644 --- a/ets2panda/test/ast/compiler/ets/ambient_indexer_multiple_dummy_nodes.ets +++ b/ets2panda/test/ast/compiler/ets/ambient_indexer_multiple_dummy_nodes.ets @@ -23,4 +23,5 @@ declare namespace JSX { } } -/* @@? 20:30 Error TypeError: Only one index signature is allowed in a class or interface. */ + +/* @@? 20:30 Error Semantic error ESE0000: Only one index signature is allowed in a class or interface. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/ambient_interface/use_interface.ets b/ets2panda/test/ast/compiler/ets/ambient_interface/use_interface.ets index 04da0b06fb..1765798d48 100644 --- a/ets2panda/test/ast/compiler/ets/ambient_interface/use_interface.ets +++ b/ets2panda/test/ast/compiler/ets/ambient_interface/use_interface.ets @@ -23,4 +23,5 @@ class B { } } -/* @@@ label Error TypeError: Property 'a' might not have been initialized. */ + +/* @@@ label Error Semantic error ESE0280: Property 'a' might not have been initialized. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/ambient_interface_default_keyword02.ets b/ets2panda/test/ast/compiler/ets/ambient_interface_default_keyword02.ets index 99739fc83f..259243fa42 100644 --- a/ets2panda/test/ast/compiler/ets/ambient_interface_default_keyword02.ets +++ b/ets2panda/test/ast/compiler/ets/ambient_interface_default_keyword02.ets @@ -25,7 +25,8 @@ interface YYY { default baz(): void {} } -/* @@? 17:36 Error TypeError: Native, Abstract and Declare methods cannot have body. */ -/* @@? 20:26 Error TypeError: Native, Abstract and Declare methods cannot have body. */ -/* @@? 24:7 Error SyntaxError: Identifier expected, got 'default'. */ -/* @@? 25:7 Error SyntaxError: Identifier expected, got 'default'. */ + +/* @@? 17:36 Error Semantic error ESE0083: Native, Abstract and Declare methods cannot have body. */ +/* @@? 20:26 Error Semantic error ESE0083: Native, Abstract and Declare methods cannot have body. */ +/* @@? 24:7 Error Syntax error ESY0224: Identifier expected, got 'default'. */ +/* @@? 25:7 Error Syntax error ESY0224: Identifier expected, got 'default'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/ambient_namesapce01.ets b/ets2panda/test/ast/compiler/ets/ambient_namesapce01.ets index 089b58848d..492f36d77f 100644 --- a/ets2panda/test/ast/compiler/ets/ambient_namesapce01.ets +++ b/ets2panda/test/ast/compiler/ets/ambient_namesapce01.ets @@ -18,5 +18,5 @@ declare namespace MySpace{ function bar() } -/* @@? 17:25 Error TypeError: Native, Abstract and Declare methods cannot have body. */ -/* @@? 18:14 Error TypeError: Native and Declare methods should have explicit return type. */ \ No newline at end of file +/* @@? 17:25 Error Semantic error ESE0083: Native, Abstract and Declare methods cannot have body. */ +/* @@? 18:14 Error Semantic error ESE0018: Native and Declare methods should have explicit return type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/ambient_namesapce02.ets b/ets2panda/test/ast/compiler/ets/ambient_namesapce02.ets index 172846252d..a1581ee89b 100644 --- a/ets2panda/test/ast/compiler/ets/ambient_namesapce02.ets +++ b/ets2panda/test/ast/compiler/ets/ambient_namesapce02.ets @@ -19,5 +19,6 @@ declare namespace MySpace{ } } -/* @@? 19:5 Error SyntaxError: Initializers are not allowed in ambient contexts. */ -/* @@? 18:17 Error TypeError: Initializers are not allowed in ambient contexts: a */ + +/* @@? 18:17 Error Semantic error ESE0153: Initializers are not allowed in ambient contexts: a */ +/* @@? 19:5 Error Syntax error ESY0125: Initializers are not allowed in ambient contexts. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/ambient_namesapce03.ets b/ets2panda/test/ast/compiler/ets/ambient_namesapce03.ets index 54ec3ecb64..0de705b38a 100644 --- a/ets2panda/test/ast/compiler/ets/ambient_namesapce03.ets +++ b/ets2panda/test/ast/compiler/ets/ambient_namesapce03.ets @@ -20,5 +20,5 @@ declare namespace MySpace{ } } -/* @@? 18:20 Error TypeError: Native, Abstract and Declare methods cannot have body. */ -/* @@? 19:12 Error TypeError: Native and Declare methods should have explicit return type. */ \ No newline at end of file +/* @@? 18:20 Error Semantic error ESE0083: Native, Abstract and Declare methods cannot have body. */ +/* @@? 19:12 Error Semantic error ESE0018: Native and Declare methods should have explicit return type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/ambient_namesapce04.ets b/ets2panda/test/ast/compiler/ets/ambient_namesapce04.ets index 22b20fdb66..81a285ecb1 100644 --- a/ets2panda/test/ast/compiler/ets/ambient_namesapce04.ets +++ b/ets2panda/test/ast/compiler/ets/ambient_namesapce04.ets @@ -20,5 +20,5 @@ declare namespace MySpace{ } } -/* @@? 18:20 Error TypeError: Native, Abstract and Declare methods cannot have body. */ -/* @@? 19:9 Error TypeError: Native and Declare methods should have explicit return type. */ \ No newline at end of file +/* @@? 18:20 Error Semantic error ESE0083: Native, Abstract and Declare methods cannot have body. */ +/* @@? 19:9 Error Semantic error ESE0018: Native and Declare methods should have explicit return type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/ambient_namesapce05.ets b/ets2panda/test/ast/compiler/ets/ambient_namesapce05.ets index 8512fcfc13..f0bbefa374 100644 --- a/ets2panda/test/ast/compiler/ets/ambient_namesapce05.ets +++ b/ets2panda/test/ast/compiler/ets/ambient_namesapce05.ets @@ -19,7 +19,8 @@ declare namespace MySpace{ } } -/* @@? 18:15 Error SyntaxError: Interface member initialization is prohibited. */ -/* @@? 18:17 Error SyntaxError: Unexpected token, expected ','. */ -/* @@? 18:17 Error SyntaxError: Identifier expected, got 'number literal'. */ -/* @@? 19:5 Error SyntaxError: Identifier expected. */ + +/* @@? 18:15 Error Syntax error ESY0180: Interface member initialization is prohibited. */ +/* @@? 18:17 Error Syntax error ESY0228: Unexpected token, expected ','. */ +/* @@? 18:17 Error Syntax error ESY0224: Identifier expected, got 'number literal'. */ +/* @@? 19:5 Error Syntax error ESY0122: Identifier expected. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/ambient_namesapce06.ets b/ets2panda/test/ast/compiler/ets/ambient_namesapce06.ets index 0a5814bdba..11a35971b0 100644 --- a/ets2panda/test/ast/compiler/ets/ambient_namesapce06.ets +++ b/ets2panda/test/ast/compiler/ets/ambient_namesapce06.ets @@ -23,5 +23,5 @@ declare namespace MySpace{ authorName: string = "Jima" } -/* @@? 23:26 Error TypeError: The initial value does not match the expected value. */ -/* @@? 23:5 Error TypeError: Initializer for field 'authorName' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ \ No newline at end of file +/* @@? 23:5 Error Semantic error ESE0039: Initializer for field 'authorName' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ +/* @@? 23:26 Error Semantic error ESE0036: The initial value does not match the expected value. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/ambient_namesapce07.ets b/ets2panda/test/ast/compiler/ets/ambient_namesapce07.ets index 94b0e3aa73..25c6801894 100644 --- a/ets2panda/test/ast/compiler/ets/ambient_namesapce07.ets +++ b/ets2panda/test/ast/compiler/ets/ambient_namesapce07.ets @@ -20,5 +20,6 @@ declare namespace A.B.C{ } } -/* @@? 20:5 Error SyntaxError: Initializers are not allowed in ambient contexts. */ -/* @@? 19:17 Error TypeError: Initializers are not allowed in ambient contexts: a */ + +/* @@? 19:17 Error Semantic error ESE0153: Initializers are not allowed in ambient contexts: a */ +/* @@? 20:5 Error Syntax error ESY0125: Initializers are not allowed in ambient contexts. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/ambient_struct/declare_struct.d.ets b/ets2panda/test/ast/compiler/ets/ambient_struct/declare_struct.d.ets index 820aa91867..ff960c39ba 100644 --- a/ets2panda/test/ast/compiler/ets/ambient_struct/declare_struct.d.ets +++ b/ets2panda/test/ast/compiler/ets/ambient_struct/declare_struct.d.ets @@ -18,4 +18,5 @@ export declare struct Point2D { y: number; } -/* @@? 16:16 Error TypeError: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ + +/* @@? 16:16 Error Semantic error ESE0364: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/ambiguous_signature01.ets b/ets2panda/test/ast/compiler/ets/ambiguous_signature01.ets index 0b8027d62d..197cd342fa 100644 --- a/ets2panda/test/ast/compiler/ets/ambiguous_signature01.ets +++ b/ets2panda/test/ast/compiler/ets/ambiguous_signature01.ets @@ -23,4 +23,4 @@ function foo(a : int, b:int, c:int = 10) : string return "aaaa"; } -/* @@? 21:1 Error TypeError: Function foo is already declared. */ \ No newline at end of file +/* @@? 21:1 Error Semantic error ESE0130: Function foo is already declared. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/ambiguous_signature02.ets b/ets2panda/test/ast/compiler/ets/ambiguous_signature02.ets index 3bfe8693ad..a2652f168a 100644 --- a/ets2panda/test/ast/compiler/ets/ambiguous_signature02.ets +++ b/ets2panda/test/ast/compiler/ets/ambiguous_signature02.ets @@ -22,4 +22,3 @@ function f(x: string, y?: A, z?: B) {} f("1") -/* @@? 23:1 Error TypeError: Reference to f is ambiguous */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/anno_required_fields.ets b/ets2panda/test/ast/compiler/ets/anno_required_fields.ets index 3791299398..e1c2942257 100644 --- a/ets2panda/test/ast/compiler/ets/anno_required_fields.ets +++ b/ets2panda/test/ast/compiler/ets/anno_required_fields.ets @@ -22,6 +22,7 @@ @ClassAuthor function main() {} -/* @@? 16:12 Error TypeError: Cannot find type 'AnnoSrc'. */ -/* @@? 16:20 Error TypeError: 'ClassAuthor' type does not exist. */ -/* @@? 17:29 Error SyntaxError: Invalid value for annotation field, expected a constant literal. */ + +/* @@? 16:12 Error Semantic error ESE0371: Cannot find type 'AnnoSrc'. */ +/* @@? 16:20 Error Semantic error ESE0070: 'ClassAuthor' type does not exist. */ +/* @@? 17:29 Error Syntax error ESY0027: Invalid value for annotation field, expected a constant literal. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/annotation_decl_dot_empty.ets b/ets2panda/test/ast/compiler/ets/annotation_decl_dot_empty.ets index c077a76fd0..c3e4c0f16f 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_decl_dot_empty.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_decl_dot_empty.ets @@ -17,5 +17,6 @@ { } -/* @@? 16:12 Error SyntaxError: Invalid annotation name. */ -/* @@? 17:1 Error SyntaxError: Identifier expected. */ + +/* @@? 16:12 Error Syntax error ESY0329: Invalid annotation name. */ +/* @@? 17:1 Error Syntax error ESY0122: Identifier expected. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/annotation_dot_with_empty.ets b/ets2panda/test/ast/compiler/ets/annotation_dot_with_empty.ets index 195205770f..7935528ee3 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_dot_with_empty.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_dot_with_empty.ets @@ -18,6 +18,7 @@ class MyTest { private property1; } -/* @@? 17:6 Error SyntaxError: Invalid annotation name. */ -/* @@? 18:5 Error SyntaxError: Identifier expected. */ -/* @@? 18:22 Error SyntaxError: Field type annotation expected. */ + +/* @@? 17:6 Error Syntax error ESY0329: Invalid annotation name. */ +/* @@? 18:5 Error Syntax error ESY0122: Identifier expected. */ +/* @@? 18:22 Error Syntax error ESY0121: Field type annotation expected. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/Retension_invalid_params.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/Retension_invalid_params.ets index c3ec1fa0a1..dcdf0637aa 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/Retension_invalid_params.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/Retension_invalid_params.ets @@ -18,7 +18,8 @@ } -/* @@? 16:12 Error SyntaxError: Invalid value for annotation field, expected a constant literal. */ -/* @@? 16:12 Error TypeError: Invalid value for 'policy' field. The policy must be one of the following:'SOURCE', 'CLASS', or 'RUNTIME'. */ -/* @@? 16:12 Error TypeError: Unresolved reference policy */ -/* @@? 16:12 Error TypeError: Invalid value for annotation field, expected a constant literal. */ + +/* @@? 16:12 Error Syntax error ESY0027: Invalid value for annotation field, expected a constant literal. */ +/* @@? 16:12 Error Semantic error ESE0004: Invalid value for 'policy' field. The policy must be one of the following:'SOURCE', 'CLASS', or 'RUNTIME'. */ +/* @@? 16:12 Error Semantic error ESE0143: Unresolved reference policy */ +/* @@? 16:12 Error Semantic error ESE0012: Invalid value for annotation field, expected a constant literal. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/Retentions_missing_arguments.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/Retentions_missing_arguments.ets index a70e5c0416..57a208e9a9 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/Retentions_missing_arguments.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/Retentions_missing_arguments.ets @@ -20,5 +20,6 @@ @/* @@ label1 */Retention({policy:"BYTECODE", a:1}) @interface ClassAuthor {} -/* @@@ label Error TypeError: The required field 'policy' must be specified. Fields without default values cannot be omitted. */ -/* @@@ label1 Error TypeError: The number of arguments provided for the annotation exceeds the number of fields defined. */ + +/* @@@ label Error Semantic error ESE0044: The required field 'policy' must be specified. Fields without default values cannot be omitted. */ +/* @@@ label1 Error Semantic error ESE0068: The number of arguments provided for the annotation exceeds the number of fields defined. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/ambient_annotations_bad_type01.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/ambient_annotations_bad_type01.ets index 60dcc4d014..31dcfae08d 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/ambient_annotations_bad_type01.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/ambient_annotations_bad_type01.ets @@ -31,23 +31,23 @@ import * as Src from "./annotation_src" ] } -/* @@@ label1 Error TypeError: The initial value does not match the expected value. */ -/* @@@ label Error TypeError: Initializer for field 'authorName' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ -/* @@@ label3 Error TypeError: The initial value does not match the expected value. */ -/* @@@ label2 Error TypeError: Initializer for field 'authorAge' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ -/* @@@ label5 Error TypeError: The initial value does not match the expected value. */ -/* @@@ label4 Error TypeError: Initializer for field 'testBool' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ -/* @@@ label7 Error TypeError: The initial value does not match the expected value. */ -/* @@@ label6 Error TypeError: Initializer for field 'favorColor' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ -/* @@@ label10 Error TypeError: The initial value does not match the expected value. */ -/* @@@ label9 Error TypeError: The initial value does not match the expected value. */ -/* @@@ label8 Error TypeError: Initializer for field 'color' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ -/* @@@ label13 Error TypeError: The initial value does not match the expected value. */ -/* @@@ label12 Error TypeError: The initial value does not match the expected value. */ -/* @@@ label11 Error TypeError: Initializer for field 'reviewers' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ -/* @@@ label16 Error TypeError: The initial value does not match the expected value. */ -/* @@@ label15 Error TypeError: The initial value does not match the expected value. */ -/* @@@ label14 Error TypeError: Initializer for field 'reviewersAge' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ -/* @@@ label19 Error TypeError: The initial value does not match the expected value. */ -/* @@@ label18 Error TypeError: The initial value does not match the expected value. */ -/* @@@ label17 Error TypeError: Initializer for field 'testBools' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ \ No newline at end of file +/* @@@ label Error Semantic error ESE0039: Initializer for field 'authorName' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ +/* @@@ label1 Error Semantic error ESE0036: The initial value does not match the expected value. */ +/* @@@ label2 Error Semantic error ESE0039: Initializer for field 'authorAge' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ +/* @@@ label3 Error Semantic error ESE0036: The initial value does not match the expected value. */ +/* @@@ label4 Error Semantic error ESE0039: Initializer for field 'testBool' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ +/* @@@ label5 Error Semantic error ESE0036: The initial value does not match the expected value. */ +/* @@@ label6 Error Semantic error ESE0039: Initializer for field 'favorColor' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ +/* @@@ label7 Error Semantic error ESE0036: The initial value does not match the expected value. */ +/* @@@ label8 Error Semantic error ESE0039: Initializer for field 'color' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ +/* @@@ label9 Error Semantic error ESE0036: The initial value does not match the expected value. */ +/* @@@ label10 Error Semantic error ESE0036: The initial value does not match the expected value. */ +/* @@@ label11 Error Semantic error ESE0039: Initializer for field 'reviewers' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ +/* @@@ label12 Error Semantic error ESE0036: The initial value does not match the expected value. */ +/* @@@ label13 Error Semantic error ESE0036: The initial value does not match the expected value. */ +/* @@@ label14 Error Semantic error ESE0039: Initializer for field 'reviewersAge' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ +/* @@@ label15 Error Semantic error ESE0036: The initial value does not match the expected value. */ +/* @@@ label16 Error Semantic error ESE0036: The initial value does not match the expected value. */ +/* @@@ label17 Error Semantic error ESE0039: Initializer for field 'testBools' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ +/* @@@ label18 Error Semantic error ESE0036: The initial value does not match the expected value. */ +/* @@@ label19 Error Semantic error ESE0036: The initial value does not match the expected value. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/ambient_annotations_bad_type02.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/ambient_annotations_bad_type02.ets index 9d4d6a8a2d..9a58123ebf 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/ambient_annotations_bad_type02.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/ambient_annotations_bad_type02.ets @@ -31,11 +31,11 @@ import {ClassAuthor, Color} from "./annotation_src" ] } -/* @@@ label1 Error TypeError: Field 'authorAge' has a type mismatch with the ambient annotation 'ClassAuthor'. */ -/* @@@ label2 Error TypeError: The initial value does not match the expected value. */ -/* @@@ label Error TypeError: Initializer for field 'authorAge' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ -/* @@@ label4 Error TypeError: Field 'testBool' has a type mismatch with the ambient annotation 'ClassAuthor'. */ -/* @@@ label3 Error TypeError: Initializer for field 'testBool' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ -/* @@@ label5 Error TypeError: Initializer for field 'favorColor' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ -/* @@@ label6 Error TypeError: Initializer for field 'color' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ -/* @@@ label7 Error TypeError: Field 'reviewersAge' has a type mismatch with the ambient annotation 'ClassAuthor'. */ \ No newline at end of file +/* @@@ label Error Semantic error ESE0039: Initializer for field 'authorAge' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ +/* @@@ label1 Error Semantic error ESE0038: Field 'authorAge' has a type mismatch with the ambient annotation 'ClassAuthor'. */ +/* @@@ label2 Error Semantic error ESE0036: The initial value does not match the expected value. */ +/* @@@ label3 Error Semantic error ESE0039: Initializer for field 'testBool' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ +/* @@@ label4 Error Semantic error ESE0038: Field 'testBool' has a type mismatch with the ambient annotation 'ClassAuthor'. */ +/* @@@ label5 Error Semantic error ESE0039: Initializer for field 'favorColor' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ +/* @@@ label6 Error Semantic error ESE0039: Initializer for field 'color' does not match the expected definition in the ambient annotation 'ClassAuthor'. */ +/* @@@ label7 Error Semantic error ESE0038: Field 'reviewersAge' has a type mismatch with the ambient annotation 'ClassAuthor'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/ambient_annotations_bad_type03.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/ambient_annotations_bad_type03.ets index b72bc30783..d7aab9f648 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/ambient_annotations_bad_type03.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/ambient_annotations_bad_type03.ets @@ -18,12 +18,12 @@ import {ClassAuthor, Color} from "./annotation_src" @interface ClassAuthor { } -/* @@? 18:2 Error TypeError: Field 'mutiArray' in annotation 'ClassAuthor' is declared in the ambient declaration but missing in the implementation. */ -/* @@? 18:2 Error TypeError: Field 'color' in annotation 'ClassAuthor' is declared in the ambient declaration but missing in the implementation. */ -/* @@? 18:2 Error TypeError: Field 'testBools' in annotation 'ClassAuthor' is declared in the ambient declaration but missing in the implementation. */ -/* @@? 18:2 Error TypeError: Field 'reviewers' in annotation 'ClassAuthor' is declared in the ambient declaration but missing in the implementation. */ -/* @@? 18:2 Error TypeError: Field 'favorColor' in annotation 'ClassAuthor' is declared in the ambient declaration but missing in the implementation. */ -/* @@? 18:2 Error TypeError: Field 'testBool' in annotation 'ClassAuthor' is declared in the ambient declaration but missing in the implementation. */ -/* @@? 18:2 Error TypeError: Field 'reviewersAge' in annotation 'ClassAuthor' is declared in the ambient declaration but missing in the implementation. */ -/* @@? 18:2 Error TypeError: Field 'authorAge' in annotation 'ClassAuthor' is declared in the ambient declaration but missing in the implementation. */ -/* @@? 18:2 Error TypeError: Field 'authorName' in annotation 'ClassAuthor' is declared in the ambient declaration but missing in the implementation. */ \ No newline at end of file +/* @@? 18:2 Error Semantic error ESE0040: Field 'mutiArray' in annotation 'ClassAuthor' is declared in the ambient declaration but missing in the implementation. */ +/* @@? 18:2 Error Semantic error ESE0040: Field 'color' in annotation 'ClassAuthor' is declared in the ambient declaration but missing in the implementation. */ +/* @@? 18:2 Error Semantic error ESE0040: Field 'testBools' in annotation 'ClassAuthor' is declared in the ambient declaration but missing in the implementation. */ +/* @@? 18:2 Error Semantic error ESE0040: Field 'reviewers' in annotation 'ClassAuthor' is declared in the ambient declaration but missing in the implementation. */ +/* @@? 18:2 Error Semantic error ESE0040: Field 'favorColor' in annotation 'ClassAuthor' is declared in the ambient declaration but missing in the implementation. */ +/* @@? 18:2 Error Semantic error ESE0040: Field 'testBool' in annotation 'ClassAuthor' is declared in the ambient declaration but missing in the implementation. */ +/* @@? 18:2 Error Semantic error ESE0040: Field 'reviewersAge' in annotation 'ClassAuthor' is declared in the ambient declaration but missing in the implementation. */ +/* @@? 18:2 Error Semantic error ESE0040: Field 'authorAge' in annotation 'ClassAuthor' is declared in the ambient declaration but missing in the implementation. */ +/* @@? 18:2 Error Semantic error ESE0040: Field 'authorName' in annotation 'ClassAuthor' is declared in the ambient declaration but missing in the implementation. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationDecl_bad_initializer07.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationDecl_bad_initializer07.ets index 9b170e888b..c636e3354e 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationDecl_bad_initializer07.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationDecl_bad_initializer07.ets @@ -23,5 +23,6 @@ class A{ testProperty2: string = /* @@ label1 */A.b } -/* @@@ label Error TypeError: Invalid value for annotation field, expected a constant literal. */ -/* @@@ label1 Error TypeError: Invalid value for annotation field, expected a constant literal. */ + +/* @@@ label Error Semantic error ESE0012: Invalid value for annotation field, expected a constant literal. */ +/* @@@ label1 Error Semantic error ESE0012: Invalid value for annotation field, expected a constant literal. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationDecl_bad_initializer08.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationDecl_bad_initializer08.ets index c335fe0f28..c1374a9518 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationDecl_bad_initializer08.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationDecl_bad_initializer08.ets @@ -24,10 +24,11 @@ enum Size{S, M, L, XL, XXL} testProperty5: Size[] = [Color.GREEN, Color.BLUE] } -/* @@? 20:29 Error TypeError: Type 'Int' cannot be assigned to type 'String' */ -/* @@? 21:30 Error TypeError: Type '"false"' cannot be assigned to type 'Boolean' */ -/* @@? 22:29 Error TypeError: Array element at index 0 with type 'Double' is not compatible with the target array element type 'Int' */ -/* @@? 22:34 Error TypeError: Array element at index 1 with type 'Double' is not compatible with the target array element type 'Int' */ -/* @@? 23:28 Error TypeError: Type 'Size' cannot be assigned to type 'Color' */ -/* @@? 24:30 Error TypeError: Array element at index 0 with type 'Color' is not compatible with the target array element type 'Size' */ -/* @@? 24:43 Error TypeError: Array element at index 1 with type 'Color' is not compatible with the target array element type 'Size' */ + +/* @@? 20:29 Error Semantic error ESE0318: Type 'Int' cannot be assigned to type 'String' */ +/* @@? 21:30 Error Semantic error ESE0318: Type '"false"' cannot be assigned to type 'Boolean' */ +/* @@? 22:29 Error Semantic error ESE0227: Array element at index 0 with type 'Double' is not compatible with the target array element type 'Int' */ +/* @@? 22:34 Error Semantic error ESE0227: Array element at index 1 with type 'Double' is not compatible with the target array element type 'Int' */ +/* @@? 23:28 Error Semantic error ESE0318: Type 'Size' cannot be assigned to type 'Color' */ +/* @@? 24:30 Error Semantic error ESE0227: Array element at index 0 with type 'Color' is not compatible with the target array element type 'Size' */ +/* @@? 24:43 Error Semantic error ESE0227: Array element at index 1 with type 'Color' is not compatible with the target array element type 'Size' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationDecl_bad_type.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationDecl_bad_type.ets index aa59307bf8..1e2f478742 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationDecl_bad_type.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationDecl_bad_type.ets @@ -20,5 +20,5 @@ class OtherType{} /* @@ label1 */testProperty3: [int ,number, string] } -/* @@@ label Error TypeError: Invalid annotation field type. Only numeric, boolean, string, enum, or arrays of these types are permitted for annotation fields. */ -/* @@@ label1 Error TypeError: Invalid annotation field type. Only numeric, boolean, string, enum, or arrays of these types are permitted for annotation fields. */ \ No newline at end of file +/* @@@ label Error Semantic error ESE0042: Invalid annotation field type. Only numeric, boolean, string, enum, or arrays of these types are permitted for annotation fields. */ +/* @@@ label1 Error Semantic error ESE0042: Invalid annotation field type. Only numeric, boolean, string, enum, or arrays of these types are permitted for annotation fields. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type01.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type01.ets index 861565a709..c9b16f5a1c 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type01.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type01.ets @@ -18,4 +18,5 @@ let a = new MyAnno() -/* @@? 19:13 Error TypeError: Annotations cannot be used as a type. */ + +/* @@? 19:13 Error Semantic error ESE0159: Annotations cannot be used as a type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type02.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type02.ets index d631b44dd4..b5fef282d6 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type02.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type02.ets @@ -20,8 +20,8 @@ class A extends MyAnno{} class B implements MyAnno{} type C = MyAnno -/* @@? 19:17 Error TypeError: Annotations cannot be used as a type. */ -/* @@? 19:17 Error TypeError: The super type of 'A' class is not extensible. */ -/* @@? 20:20 Error TypeError: Annotations cannot be used as a type. */ -/* @@? 20:20 Error TypeError: Interface expected here. */ -/* @@? 21:10 Error TypeError: Annotations cannot be used as a type. */ \ No newline at end of file + /* @@? 19:17 Error Semantic error ESE0159: Annotations cannot be used as a type. */ +/* @@? 19:17 Error Semantic error ESE0176: The super type of 'A' class is not extensible. */ +/* @@? 20:20 Error Semantic error ESE0159: Annotations cannot be used as a type. */ +/* @@? 20:20 Error Semantic error ESE0179: Interface expected here. */ +/* @@? 21:10 Error Semantic error ESE0159: Annotations cannot be used as a type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type03.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type03.ets index b9d2af1f4a..007eb4a9ed 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type03.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type03.ets @@ -20,5 +20,6 @@ function foo(a:T){} let array:Array = new Array() -/* @@@ label Error TypeError: Annotations cannot be used as a type. */ -/* @@@ label1 Error TypeError: Annotations cannot be used as a type. */ + +/* @@@ label Error Semantic error ESE0159: Annotations cannot be used as a type. */ +/* @@@ label1 Error Semantic error ESE0159: Annotations cannot be used as a type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type04.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type04.ets index ecdc92d3a2..272a7d90b0 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type04.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type04.ets @@ -20,5 +20,6 @@ function foo(a:T){} foo(new /* @@ label1 */MyAnno()) -/* @@@ label Error TypeError: Annotations cannot be used as a type. */ -/* @@@ label1 Error TypeError: Annotations cannot be used as a type. */ + +/* @@@ label Error Semantic error ESE0159: Annotations cannot be used as a type. */ +/* @@@ label1 Error Semantic error ESE0159: Annotations cannot be used as a type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type05.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type05.ets index adaee52bb8..31450ba329 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type05.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type05.ets @@ -22,4 +22,5 @@ class A{ new A() -/* @@@ label Error TypeError: Annotations cannot be used as a type. */ + +/* @@@ label Error Semantic error ESE0159: Annotations cannot be used as a type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type06.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type06.ets index 675316d928..96d718bb35 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type06.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type06.ets @@ -21,6 +21,7 @@ function foo2(): /* @@ label1 */MyAnno {} foo1(new /* @@ label2 */MyAnno()) -/* @@@ label1 Error TypeError: Annotations cannot be used as a type. */ -/* @@@ label Error TypeError: Annotations cannot be used as a type. */ -/* @@@ label2 Error TypeError: Annotations cannot be used as a type. */ + +/* @@@ label Error Semantic error ESE0159: Annotations cannot be used as a type. */ +/* @@@ label1 Error Semantic error ESE0159: Annotations cannot be used as a type. */ +/* @@@ label2 Error Semantic error ESE0159: Annotations cannot be used as a type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type07.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type07.ets index 221da80716..6b40ea969b 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type07.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type07.ets @@ -23,7 +23,7 @@ class A{ let tuple:[int, string, /* @@ label1 */MyAnno] = [1, "1", new /* @@ label2 */MyAnno()] let union:int|string|/* @@ label3 */MyAnno = 1 -/* @@@ label1 Error TypeError: Annotations cannot be used as a type. */ -/* @@@ label3 Error TypeError: Annotations cannot be used as a type. */ -/* @@@ label2 Error TypeError: Annotations cannot be used as a type. */ -/* @@@ label Error TypeError: Annotations cannot be used as a type. */ \ No newline at end of file +/* @@@ label Error Semantic error ESE0159: Annotations cannot be used as a type. */ +/* @@@ label1 Error Semantic error ESE0159: Annotations cannot be used as a type. */ +/* @@@ label2 Error Semantic error ESE0159: Annotations cannot be used as a type. */ +/* @@@ label3 Error Semantic error ESE0159: Annotations cannot be used as a type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type08.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type08.ets index f7a4b6dbe6..152e9f0b83 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type08.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type08.ets @@ -19,5 +19,5 @@ let foo1:(a:/* @@ label */MyAnno)=>int let foo2:()=>/* @@ label1 */MyAnno -/* @@@ label Error TypeError: Annotations cannot be used as a type. */ -/* @@@ label1 Error TypeError: Annotations cannot be used as a type. */ \ No newline at end of file +/* @@@ label Error Semantic error ESE0159: Annotations cannot be used as a type. */ +/* @@@ label1 Error Semantic error ESE0159: Annotations cannot be used as a type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type09.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type09.ets index 0aaa1cd95c..c8be704e6e 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type09.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type09.ets @@ -18,4 +18,5 @@ let a = 1 as MyAnno -/* @@? 19:14 Error TypeError: Annotations cannot be used as a type. */ + +/* @@? 19:14 Error Semantic error ESE0159: Annotations cannot be used as a type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type10.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type10.ets index 679bc167bb..b5cdd4e07c 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type10.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type10.ets @@ -18,5 +18,4 @@ let a = 1 instanceof MyAnno -/* @@? 19:22 Error TypeError: Annotations cannot be used as a type. */ -/* @@? 19:22 Error TypeError: Annotations cannot be used as a type. */ \ No newline at end of file +/* @@? 19:22 Error Semantic error ESE0159: Annotations cannot be used as a type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type11.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type11.ets index 1d1235096c..f5d76e9ea0 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type11.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type11.ets @@ -18,4 +18,5 @@ let a = MyAnno.a -/* @@? 19:9 Error TypeError: Annotation missing '@' symbol before annotation name. */ + +/* @@? 19:9 Error Semantic error ESE0230: Annotation missing '@' symbol before annotation name. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type12.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type12.ets index ed07114329..b85360c30e 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type12.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type12.ets @@ -18,5 +18,8 @@ let a = /* @@ label */MyAnno -/* @@@ label Error TypeError: Annotation missing '@' symbol before annotation name. */ -/* @@@ label Error TypeError: Annotation name 'MyAnno' used in the wrong context */ + +/* @@@ label Error Semantic error ESE0230: Annotation missing '@' symbol before annotation name. */ +/* @@@ label Error Semantic error ESE0144: Annotation name 'MyAnno' used in the wrong context */ +/* @@@ label Error Semantic error ESE0230: Annotation missing '@' symbol before annotation name. */ +/* @@@ label Error Semantic error ESE0144: Annotation name 'MyAnno' used in the wrong context */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type13.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type13.ets index efb0463c50..878e812e10 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type13.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type13.ets @@ -20,5 +20,6 @@ class MyAnno { @/* @@ label */MyAnno() class B{} -/* @@@ label Error TypeError: 'MyAnno' is not an annotation. */ + +/* @@@ label Error Semantic error ESE0067: 'MyAnno' is not an annotation. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type14.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type14.ets index 9603498b7c..3e1c56b37b 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type14.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_as_type14.ets @@ -18,5 +18,6 @@ function foo(a: /* @@ label1 */Anno) {} -/* @@@ label Error TypeError: Annotations cannot be used as a type. */ -/* @@@ label1 Error TypeError: Annotations cannot be used as a type. */ + +/* @@@ label Error Semantic error ESE0159: Annotations cannot be used as a type. */ +/* @@@ label1 Error Semantic error ESE0159: Annotations cannot be used as a type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_bad_param07.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_bad_param07.ets index 4904fabba8..7df45ebec8 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_bad_param07.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_bad_param07.ets @@ -21,5 +21,6 @@ @MyAnno({testProperty1: /* @@ label */1, testProperty2: /* @@ label1 */""}) function foo(){} -/* @@@ label Error TypeError: Type 'Int' cannot be assigned to type 'String' */ -/* @@@ label1 Error TypeError: Type '""' cannot be assigned to type 'Double' */ + +/* @@@ label Error Semantic error ESE0318: Type 'Int' cannot be assigned to type 'String' */ +/* @@@ label1 Error Semantic error ESE0318: Type '""' cannot be assigned to type 'Double' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_bad_param08.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_bad_param08.ets index 7057a18a74..a55eb29eb1 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_bad_param08.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_bad_param08.ets @@ -21,7 +21,8 @@ @MyAnno({a: 1, b: ""}) class B{} -/* @@? 21:10 Error TypeError: The parameter 'a' does not match any declared property in the annotation 'MyAnno'. */ -/* @@? 21:16 Error TypeError: The parameter 'b' does not match any declared property in the annotation 'MyAnno'. */ -/* @@? 21:2 Error TypeError: The required field 'testProperty2' must be specified. Fields without default values cannot be omitted. */ -/* @@? 21:2 Error TypeError: The required field 'testProperty1' must be specified. Fields without default values cannot be omitted. */ + +/* @@? 21:2 Error Semantic error ESE0044: The required field 'testProperty2' must be specified. Fields without default values cannot be omitted. */ +/* @@? 21:2 Error Semantic error ESE0044: The required field 'testProperty1' must be specified. Fields without default values cannot be omitted. */ +/* @@? 21:10 Error Semantic error ESE0045: The parameter 'a' does not match any declared property in the annotation 'MyAnno'. */ +/* @@? 21:16 Error Semantic error ESE0045: The parameter 'b' does not match any declared property in the annotation 'MyAnno'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_bad_param09.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_bad_param09.ets index 09bee29a1d..79326f9451 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_bad_param09.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_bad_param09.ets @@ -35,10 +35,11 @@ class B{ foo(){} } -/* @@? 29:24 Error TypeError: Type 'Int' cannot be assigned to type 'String' */ -/* @@? 30:24 Error TypeError: Type '"false"' cannot be assigned to type 'Boolean' */ -/* @@? 31:25 Error TypeError: Array element at index 0 with type 'Double' is not compatible with the target array element type 'Int' */ -/* @@? 31:30 Error TypeError: Array element at index 1 with type 'Double' is not compatible with the target array element type 'Int' */ -/* @@? 32:24 Error TypeError: Type 'Size' cannot be assigned to type 'Color' */ -/* @@? 33:25 Error TypeError: Array element at index 0 with type 'Color' is not compatible with the target array element type 'Size' */ -/* @@? 33:38 Error TypeError: Array element at index 1 with type 'Color' is not compatible with the target array element type 'Size' */ + +/* @@? 29:24 Error Semantic error ESE0318: Type 'Int' cannot be assigned to type 'String' */ +/* @@? 30:24 Error Semantic error ESE0318: Type '"false"' cannot be assigned to type 'Boolean' */ +/* @@? 31:25 Error Semantic error ESE0227: Array element at index 0 with type 'Double' is not compatible with the target array element type 'Int' */ +/* @@? 31:30 Error Semantic error ESE0227: Array element at index 1 with type 'Double' is not compatible with the target array element type 'Int' */ +/* @@? 32:24 Error Semantic error ESE0318: Type 'Size' cannot be assigned to type 'Color' */ +/* @@? 33:25 Error Semantic error ESE0227: Array element at index 0 with type 'Color' is not compatible with the target array element type 'Size' */ +/* @@? 33:38 Error Semantic error ESE0227: Array element at index 1 with type 'Color' is not compatible with the target array element type 'Size' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_bad_param10.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_bad_param10.ets index 0ed48bd82f..3802c2d678 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_bad_param10.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_bad_param10.ets @@ -28,5 +28,6 @@ class B{ foo(){} } -/* @@@ label Error TypeError: Invalid value for annotation field, expected a constant literal. */ -/* @@@ label1 Error TypeError: Invalid value for annotation field, expected a constant literal. */ + +/* @@@ label Error Semantic error ESE0012: Invalid value for annotation field, expected a constant literal. */ +/* @@@ label1 Error Semantic error ESE0012: Invalid value for annotation field, expected a constant literal. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_conflict_for_namespace01.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_conflict_for_namespace01.ets index c3335a857f..04f21a6e51 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_conflict_for_namespace01.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_conflict_for_namespace01.ets @@ -24,5 +24,5 @@ namespace A{ namespace B{} } -/* @@? 24:5 Error SyntaxError: Unable to merge namespaces 'B', because their modifiers are different. */ -/* @@? 24:5 Error SyntaxError: Annotation conflict! Multiple namespace declarations for 'B' cannot each have annotations. */ \ No newline at end of file +/* @@? 24:5 Error Syntax error ESY0006: Unable to merge namespaces 'B', because their modifiers are different. */ +/* @@? 24:5 Error Syntax error ESY0007: Annotation conflict! Multiple namespace declarations for 'B' cannot each have annotations. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_conflict_for_namespace02.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_conflict_for_namespace02.ets index 0065afc877..def4b96a0e 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_conflict_for_namespace02.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_conflict_for_namespace02.ets @@ -24,5 +24,5 @@ namespace A{ @Anno1 namespace A.B{} -/* @@? 25:13 Error SyntaxError: Unable to merge namespaces 'B', because their modifiers are different. */ -/* @@? 25:13 Error SyntaxError: Annotation conflict! Multiple namespace declarations for 'B' cannot each have annotations. */ \ No newline at end of file +/* @@? 25:13 Error Syntax error ESY0006: Unable to merge namespaces 'B', because their modifiers are different. */ +/* @@? 25:13 Error Syntax error ESY0007: Annotation conflict! Multiple namespace declarations for 'B' cannot each have annotations. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_for_classproperty.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_for_classproperty.ets index d1da4595c8..1c2e8ce0da 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_for_classproperty.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_for_classproperty.ets @@ -25,4 +25,5 @@ class A{ x : int } -/* @@? 24:6 Error TypeError: Duplicate annotations are not allowed. The annotation 'MyAnno' has already been applied to this element. */ + +/* @@? 24:6 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'MyAnno' has already been applied to this element. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_for_interface.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_for_interface.ets index 0715143054..4babadc593 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_for_interface.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_for_interface.ets @@ -22,4 +22,5 @@ interface itf { } -/* @@? 21:2 Error TypeError: Duplicate annotations are not allowed. The annotation 'MyAnno' has already been applied to this element. */ + +/* @@? 21:2 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'MyAnno' has already been applied to this element. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_for_interfacemethod.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_for_interfacemethod.ets index 007968fca2..c184466277 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_for_interfacemethod.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_for_interfacemethod.ets @@ -23,4 +23,5 @@ interface itf { foo() : void } -/* @@? 22:6 Error TypeError: Duplicate annotations are not allowed. The annotation 'MyAnno' has already been applied to this element. */ + +/* @@? 22:6 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'MyAnno' has already been applied to this element. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_for_interfaceproperty.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_for_interfaceproperty.ets index cd013b0eaf..7d62c1def8 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_for_interfaceproperty.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_for_interfaceproperty.ets @@ -23,4 +23,5 @@ interface itf { x : int } -/* @@? 22:6 Error TypeError: Duplicate annotations are not allowed. The annotation 'MyAnno' has already been applied to this element. */ + +/* @@? 22:6 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'MyAnno' has already been applied to this element. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_for_namespace01.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_for_namespace01.ets index e47cab8181..43c09a230c 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_for_namespace01.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_for_namespace01.ets @@ -29,6 +29,6 @@ namespace A{ namespace C{} } -/* @@? 25:2 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno2' has already been applied to this element. */ -/* @@? 21:2 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno1' has already been applied to this element. */ -/* @@? 28:6 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno3' has already been applied to this element. */ \ No newline at end of file +/* @@? 21:2 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno1' has already been applied to this element. */ +/* @@? 25:2 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno2' has already been applied to this element. */ +/* @@? 28:6 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno3' has already been applied to this element. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_for_namespace02.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_for_namespace02.ets index ac45d448f6..647cd6532d 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_for_namespace02.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_for_namespace02.ets @@ -29,6 +29,6 @@ namespace A{ @Anno1 namespace A.B{} -/* @@? 21:2 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno2' has already been applied to this element. */ -/* @@? 24:6 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno3' has already been applied to this element. */ -/* @@? 29:2 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno1' has already been applied to this element. */ \ No newline at end of file +/* @@? 21:2 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno2' has already been applied to this element. */ +/* @@? 24:6 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno3' has already been applied to this element. */ +/* @@? 29:2 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno1' has already been applied to this element. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_for_type_alias.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_for_type_alias.ets index 318d48b7e8..afb6bd280d 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_for_type_alias.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_for_type_alias.ets @@ -29,6 +29,7 @@ function main() : void { type t2 = Array } -/* @@? 23:2 Error TypeError: Duplicate annotations are not allowed. The annotation 'MyAnno' has already been applied to this element. */ -/* @@? 29:5 Error SyntaxError: Illegal start of Type Alias expression. */ -/* @@? 29:5 Error SyntaxError: Annotations are not allowed on this type of declaration. */ + +/* @@? 23:2 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'MyAnno' has already been applied to this element. */ +/* @@? 29:5 Error Syntax error ESY0040: Illegal start of Type Alias expression. */ +/* @@? 29:5 Error Syntax error ESY0028: Annotations are not allowed on this type of declaration. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_for_variable_decl.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_for_variable_decl.ets index a3d0435da0..c16c2810de 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_for_variable_decl.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_for_variable_decl.ets @@ -29,5 +29,6 @@ function main() : void { let x2 = 1, y2 = "abc" } -/* @@? 23:2 Error TypeError: Duplicate annotations are not allowed. The annotation 'MyAnno' has already been applied to this element. */ -/* @@? 28:6 Error TypeError: Duplicate annotations are not allowed. The annotation 'MyAnno' has already been applied to this element. */ + +/* @@? 23:2 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'MyAnno' has already been applied to this element. */ +/* @@? 28:6 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'MyAnno' has already been applied to this element. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_from_import.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_from_import.ets index 8128b27304..1cd5c5c19c 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_from_import.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_from_import.ets @@ -19,4 +19,5 @@ class A{ @/* @@ label */MyAnno foo(){} } -/* @@@ label Error TypeError: Duplicate annotations are not allowed. The annotation 'MyAnno' has already been applied to this element. */ + +/* @@@ label Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'MyAnno' has already been applied to this element. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_on_class.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_on_class.ets index 3a7a02542c..c050566c74 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_on_class.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_on_class.ets @@ -21,4 +21,5 @@ @/* @@ label */MyAnno({testProperty1: "Jim", testProperty2: 0}) class A{} -/* @@@ label Error TypeError: Duplicate annotations are not allowed. The annotation 'MyAnno' has already been applied to this element. */ + +/* @@@ label Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'MyAnno' has already been applied to this element. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_on_extension_lambda.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_on_extension_lambda.ets index 7dcd2ce4b2..adad96c5b6 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_on_extension_lambda.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_on_extension_lambda.ets @@ -21,4 +21,5 @@ let a = new A(); let show = @Anno()@/* @@ label */Anno(this: A): string => { return "Hello," + this.name; } -/* @@? 21:34 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ + +/* @@@ label Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_on_function.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_on_function.ets index 73ec9f1bdd..1ee7c83e12 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_on_function.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_on_function.ets @@ -22,4 +22,5 @@ function foo(): void { } -/* @@@ label Error TypeError: Duplicate annotations are not allowed. The annotation 'MyAnno' has already been applied to this element. */ + +/* @@@ label Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'MyAnno' has already been applied to this element. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_on_method.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_on_method.ets index 3f36568887..a0a8ceeef4 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_on_method.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_duplicate_on_method.ets @@ -25,4 +25,5 @@ class A{ } -/* @@@ label Error TypeError: Duplicate annotations are not allowed. The annotation 'MyAnno' has already been applied to this element. */ + +/* @@@ label Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'MyAnno' has already been applied to this element. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_excessive_param01.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_excessive_param01.ets index 77a16bcf51..ca89261920 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_excessive_param01.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_excessive_param01.ets @@ -24,5 +24,6 @@ class B{ foo(){} } -/* @@@ label Error TypeError: The number of arguments provided for the annotation exceeds the number of fields defined. */ -/* @@@ label1 Error TypeError: The number of arguments provided for the annotation exceeds the number of fields defined. */ + +/* @@@ label Error Semantic error ESE0068: The number of arguments provided for the annotation exceeds the number of fields defined. */ +/* @@@ label1 Error Semantic error ESE0068: The number of arguments provided for the annotation exceeds the number of fields defined. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_excessive_param02.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_excessive_param02.ets index 8344afea93..36126dc981 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_excessive_param02.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_excessive_param02.ets @@ -23,5 +23,6 @@ class B{ foo(){} } -/* @@@ label Error TypeError: The number of arguments provided for the annotation exceeds the number of fields defined. */ -/* @@@ label1 Error TypeError: The number of arguments provided for the annotation exceeds the number of fields defined. */ + +/* @@@ label Error Semantic error ESE0068: The number of arguments provided for the annotation exceeds the number of fields defined. */ +/* @@@ label1 Error Semantic error ESE0068: The number of arguments provided for the annotation exceeds the number of fields defined. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_excessive_param_for_classproperty.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_excessive_param_for_classproperty.ets index e08d9ff87a..8673630d98 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_excessive_param_for_classproperty.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_excessive_param_for_classproperty.ets @@ -26,5 +26,6 @@ class B{ y : string } -/* @@? 23:6 Error TypeError: The number of arguments provided for the annotation exceeds the number of fields defined. */ -/* @@? 25:6 Error TypeError: The number of arguments provided for the annotation exceeds the number of fields defined. */ + +/* @@? 23:6 Error Semantic error ESE0068: The number of arguments provided for the annotation exceeds the number of fields defined. */ +/* @@? 25:6 Error Semantic error ESE0068: The number of arguments provided for the annotation exceeds the number of fields defined. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_excessive_param_for_function_param.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_excessive_param_for_function_param.ets index 6cfc76a698..6af3d4728f 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_excessive_param_for_function_param.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_excessive_param_for_function_param.ets @@ -24,5 +24,6 @@ function foo(@MyAnno({testProperty1:"", testProperty2: "", testProperty3: "", te } -/* @@? 22:15 Error TypeError: The number of arguments provided for the annotation exceeds the number of fields defined. */ -/* @@? 23:15 Error TypeError: The number of arguments provided for the annotation exceeds the number of fields defined. */ + +/* @@? 22:15 Error Semantic error ESE0068: The number of arguments provided for the annotation exceeds the number of fields defined. */ +/* @@? 23:15 Error Semantic error ESE0068: The number of arguments provided for the annotation exceeds the number of fields defined. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_excessive_param_for_interface.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_excessive_param_for_interface.ets index a5ac15f1c7..244fda6e3a 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_excessive_param_for_interface.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_excessive_param_for_interface.ets @@ -26,6 +26,7 @@ interface itf { x : int } -/* @@? 21:2 Error TypeError: The number of arguments provided for the annotation exceeds the number of fields defined. */ -/* @@? 23:6 Error TypeError: The number of arguments provided for the annotation exceeds the number of fields defined. */ -/* @@? 25:6 Error TypeError: The number of arguments provided for the annotation exceeds the number of fields defined. */ + +/* @@? 21:2 Error Semantic error ESE0068: The number of arguments provided for the annotation exceeds the number of fields defined. */ +/* @@? 23:6 Error Semantic error ESE0068: The number of arguments provided for the annotation exceeds the number of fields defined. */ +/* @@? 25:6 Error Semantic error ESE0068: The number of arguments provided for the annotation exceeds the number of fields defined. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_excessive_param_for_type_alias.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_excessive_param_for_type_alias.ets index b8246ab8f0..6ae2d46506 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_excessive_param_for_type_alias.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_excessive_param_for_type_alias.ets @@ -27,6 +27,7 @@ function main() : void { type t2 = Array } -/* @@? 22:2 Error TypeError: The number of arguments provided for the annotation exceeds the number of fields defined. */ -/* @@? 27:5 Error SyntaxError: Illegal start of Type Alias expression. */ -/* @@? 27:5 Error SyntaxError: Annotations are not allowed on this type of declaration. */ + +/* @@? 22:2 Error Semantic error ESE0068: The number of arguments provided for the annotation exceeds the number of fields defined. */ +/* @@? 27:5 Error Syntax error ESY0040: Illegal start of Type Alias expression. */ +/* @@? 27:5 Error Syntax error ESY0028: Annotations are not allowed on this type of declaration. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_excessive_param_for_variable_decl.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_excessive_param_for_variable_decl.ets index a3ac67098c..a4c1d75094 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_excessive_param_for_variable_decl.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_excessive_param_for_variable_decl.ets @@ -27,5 +27,6 @@ function main() : void { let x2 = 1, y2 = "abc" } -/* @@? 22:2 Error TypeError: The number of arguments provided for the annotation exceeds the number of fields defined. */ -/* @@? 26:6 Error TypeError: The number of arguments provided for the annotation exceeds the number of fields defined. */ + +/* @@? 22:2 Error Semantic error ESE0068: The number of arguments provided for the annotation exceeds the number of fields defined. */ +/* @@? 26:6 Error Semantic error ESE0068: The number of arguments provided for the annotation exceeds the number of fields defined. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_AT01.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_AT01.ets index 3c29581eb4..52e90c57b2 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_AT01.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_AT01.ets @@ -23,7 +23,8 @@ MyAnno({testProperty1: ""}) class A{ } -/* @@? 19:1 Error TypeError: Annotation missing '@' symbol before annotation name. */ -/* @@? 19:1 Error TypeError: This expression is not callable. */ -/* @@? 22:1 Error TypeError: Annotation missing '@' symbol before annotation name. */ -/* @@? 22:1 Error TypeError: This expression is not callable. */ + +/* @@? 19:1 Error Semantic error ESE0230: Annotation missing '@' symbol before annotation name. */ +/* @@? 19:1 Error Semantic error ESE0289: This expression is not callable. */ +/* @@? 22:1 Error Semantic error ESE0230: Annotation missing '@' symbol before annotation name. */ +/* @@? 22:1 Error Semantic error ESE0289: This expression is not callable. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_AT02.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_AT02.ets index e3162c42f3..46e193b632 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_AT02.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_AT02.ets @@ -18,5 +18,6 @@ /* @@ label */MyAnno function foo(): void {} -/* @@@ label Error TypeError: Annotation missing '@' symbol before annotation name. */ -/* @@@ label Error TypeError: Annotation name 'MyAnno' used in the wrong context */ + +/* @@@ label Error Semantic error ESE0230: Annotation missing '@' symbol before annotation name. */ +/* @@@ label Error Semantic error ESE0144: Annotation name 'MyAnno' used in the wrong context */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_AT_for_interface.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_AT_for_interface.ets index 76f61f04c6..8edf592e26 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_AT_for_interface.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_AT_for_interface.ets @@ -20,5 +20,6 @@ MyAnno({testProperty1: ""}) interface itf { } -/* @@? 19:1 Error TypeError: Annotation missing '@' symbol before annotation name. */ -/* @@? 19:1 Error TypeError: This expression is not callable. */ + +/* @@? 19:1 Error Semantic error ESE0230: Annotation missing '@' symbol before annotation name. */ +/* @@? 19:1 Error Semantic error ESE0289: This expression is not callable. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_AT_for_type_alias.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_AT_for_type_alias.ets index c982341bff..f6cb1b08f4 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_AT_for_type_alias.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_AT_for_type_alias.ets @@ -25,8 +25,9 @@ function main() : void { } -/* @@? 19:1 Error TypeError: Annotation missing '@' symbol before annotation name. */ -/* @@? 19:1 Error TypeError: This expression is not callable. */ -/* @@? 23:5 Error TypeError: Annotation missing '@' symbol before annotation name. */ -/* @@? 23:5 Error TypeError: This expression is not callable. */ -/* @@? 24:5 Error SyntaxError: Illegal start of Type Alias expression. */ + +/* @@? 19:1 Error Semantic error ESE0230: Annotation missing '@' symbol before annotation name. */ +/* @@? 19:1 Error Semantic error ESE0289: This expression is not callable. */ +/* @@? 23:5 Error Semantic error ESE0230: Annotation missing '@' symbol before annotation name. */ +/* @@? 23:5 Error Semantic error ESE0289: This expression is not callable. */ +/* @@? 24:5 Error Syntax error ESY0040: Illegal start of Type Alias expression. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_AT_for_variable_decl.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_AT_for_variable_decl.ets index e7c5570d89..5a719395c8 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_AT_for_variable_decl.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_AT_for_variable_decl.ets @@ -24,7 +24,8 @@ function main() : void { let x2 = 1, y2 = 2 } -/* @@? 19:1 Error TypeError: Annotation missing '@' symbol before annotation name. */ -/* @@? 19:1 Error TypeError: This expression is not callable. */ -/* @@? 23:5 Error TypeError: Annotation missing '@' symbol before annotation name. */ -/* @@? 23:5 Error TypeError: This expression is not callable. */ + +/* @@? 19:1 Error Semantic error ESE0230: Annotation missing '@' symbol before annotation name. */ +/* @@? 19:1 Error Semantic error ESE0289: This expression is not callable. */ +/* @@? 23:5 Error Semantic error ESE0230: Annotation missing '@' symbol before annotation name. */ +/* @@? 23:5 Error Semantic error ESE0289: This expression is not callable. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_arguements01.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_arguements01.ets index 5ebc260727..629ac4606c 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_arguements01.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_arguements01.ets @@ -20,5 +20,5 @@ @MyAnno function foo(): void {} -/* @@? 20:2 Error TypeError: The required field 'testProperty2' must be specified. Fields without default values cannot be omitted. */ -/* @@? 20:2 Error TypeError: The required field 'testProperty1' must be specified. Fields without default values cannot be omitted. */ \ No newline at end of file +/* @@? 20:2 Error Semantic error ESE0044: The required field 'testProperty2' must be specified. Fields without default values cannot be omitted. */ +/* @@? 20:2 Error Semantic error ESE0044: The required field 'testProperty1' must be specified. Fields without default values cannot be omitted. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_arguements02.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_arguements02.ets index 9b67fdac38..c540ef334f 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_arguements02.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_arguements02.ets @@ -26,7 +26,7 @@ class A{ foo2(){} } -/* @@? 20:2 Error TypeError: The required field 'testProperty2' must be specified. Fields without default values cannot be omitted. */ -/* @@? 23:2 Error TypeError: The required field 'testProperty2' must be specified. Fields without default values cannot be omitted. */ -/* @@? 23:2 Error TypeError: The required field 'testProperty1' must be specified. Fields without default values cannot be omitted. */ -/* @@? 25:6 Error TypeError: The required field 'testProperty1' must be specified. Fields without default values cannot be omitted. */ \ No newline at end of file +/* @@? 20:2 Error Semantic error ESE0044: The required field 'testProperty2' must be specified. Fields without default values cannot be omitted. */ +/* @@? 23:2 Error Semantic error ESE0044: The required field 'testProperty2' must be specified. Fields without default values cannot be omitted. */ +/* @@? 23:2 Error Semantic error ESE0044: The required field 'testProperty1' must be specified. Fields without default values cannot be omitted. */ +/* @@? 25:6 Error Semantic error ESE0044: The required field 'testProperty1' must be specified. Fields without default values cannot be omitted. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_param_for_classproperty.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_param_for_classproperty.ets index 3718ea2073..571360de57 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_param_for_classproperty.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_param_for_classproperty.ets @@ -26,5 +26,6 @@ class B{ y0 : string } -/* @@? 23:6 Error TypeError: The required field 'testProperty2' must be specified. Fields without default values cannot be omitted. */ -/* @@? 25:6 Error TypeError: The required field 'testProperty2' must be specified. Fields without default values cannot be omitted. */ + +/* @@? 23:6 Error Semantic error ESE0044: The required field 'testProperty2' must be specified. Fields without default values cannot be omitted. */ +/* @@? 25:6 Error Semantic error ESE0044: The required field 'testProperty2' must be specified. Fields without default values cannot be omitted. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_param_for_function_param.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_param_for_function_param.ets index 10e1fbd162..5ef87d8a3c 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_param_for_function_param.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_param_for_function_param.ets @@ -25,8 +25,9 @@ function foo0(@MyAnno x: int, @MyAnno({testProperty2: ""}) y: string = "a") { function foo1(@MyAnno({testProperty1: ""}) x: int, @MyAnno({testProperty2: ""}) y: string = "a") { } -/* @@? 22:16 Error TypeError: The required field 'testProperty2' must be specified. Fields without default values cannot be omitted. */ -/* @@? 22:16 Error TypeError: The required field 'testProperty1' must be specified. Fields without default values cannot be omitted. */ -/* @@? 22:32 Error TypeError: The required field 'testProperty1' must be specified. Fields without default values cannot be omitted. */ -/* @@? 25:16 Error TypeError: The required field 'testProperty2' must be specified. Fields without default values cannot be omitted. */ -/* @@? 25:53 Error TypeError: The required field 'testProperty1' must be specified. Fields without default values cannot be omitted. */ + +/* @@? 22:16 Error Semantic error ESE0044: The required field 'testProperty2' must be specified. Fields without default values cannot be omitted. */ +/* @@? 22:16 Error Semantic error ESE0044: The required field 'testProperty1' must be specified. Fields without default values cannot be omitted. */ +/* @@? 22:32 Error Semantic error ESE0044: The required field 'testProperty1' must be specified. Fields without default values cannot be omitted. */ +/* @@? 25:16 Error Semantic error ESE0044: The required field 'testProperty2' must be specified. Fields without default values cannot be omitted. */ +/* @@? 25:53 Error Semantic error ESE0044: The required field 'testProperty1' must be specified. Fields without default values cannot be omitted. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_param_for_interface.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_param_for_interface.ets index 5e990b139a..bcdc7dd61b 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_param_for_interface.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_param_for_interface.ets @@ -26,6 +26,7 @@ interface itf { x : int } -/* @@? 21:2 Error TypeError: The required field 'testProperty1' must be specified. Fields without default values cannot be omitted. */ -/* @@? 23:6 Error TypeError: The required field 'testProperty2' must be specified. Fields without default values cannot be omitted. */ -/* @@? 25:6 Error TypeError: The required field 'testProperty2' must be specified. Fields without default values cannot be omitted. */ + +/* @@? 21:2 Error Semantic error ESE0044: The required field 'testProperty1' must be specified. Fields without default values cannot be omitted. */ +/* @@? 23:6 Error Semantic error ESE0044: The required field 'testProperty2' must be specified. Fields without default values cannot be omitted. */ +/* @@? 25:6 Error Semantic error ESE0044: The required field 'testProperty2' must be specified. Fields without default values cannot be omitted. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_param_for_type_alias.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_param_for_type_alias.ets index 0889f68c3e..c6af79236b 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_param_for_type_alias.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_param_for_type_alias.ets @@ -27,6 +27,7 @@ function main() : void { type t2 = Array } -/* @@? 22:2 Error TypeError: The required field 'testProperty2' must be specified. Fields without default values cannot be omitted. */ -/* @@? 27:5 Error SyntaxError: Illegal start of Type Alias expression. */ -/* @@? 27:5 Error SyntaxError: Annotations are not allowed on this type of declaration. */ + +/* @@? 22:2 Error Semantic error ESE0044: The required field 'testProperty2' must be specified. Fields without default values cannot be omitted. */ +/* @@? 27:5 Error Syntax error ESY0040: Illegal start of Type Alias expression. */ +/* @@? 27:5 Error Syntax error ESY0028: Annotations are not allowed on this type of declaration. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_param_for_variable_decl.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_param_for_variable_decl.ets index f2b703a98f..78a411e0dc 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_param_for_variable_decl.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_missing_param_for_variable_decl.ets @@ -27,6 +27,9 @@ function main() : void { let x2 = 1, y2 = "abc" } -/* @@? 22:2 Error TypeError: The required field 'testProperty2' must be specified. Fields without default values cannot be omitted. */ -/* @@? 22:2 Error TypeError: The required field 'testProperty1' must be specified. Fields without default values cannot be omitted. */ -/* @@? 26:6 Error TypeError: The required field 'testProperty1' must be specified. Fields without default values cannot be omitted. */ + +/* @@? 22:2 Error Semantic error ESE0044: The required field 'testProperty2' must be specified. Fields without default values cannot be omitted. */ +/* @@? 22:2 Error Semantic error ESE0044: The required field 'testProperty1' must be specified. Fields without default values cannot be omitted. */ +/* @@? 22:2 Error Semantic error ESE0044: The required field 'testProperty2' must be specified. Fields without default values cannot be omitted. */ +/* @@? 22:2 Error Semantic error ESE0044: The required field 'testProperty1' must be specified. Fields without default values cannot be omitted. */ +/* @@? 26:6 Error Semantic error ESE0044: The required field 'testProperty1' must be specified. Fields without default values cannot be omitted. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_unordered_params.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_unordered_params.ets index a61fa5db89..86de91dc17 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_unordered_params.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotationUsage_unordered_params.ets @@ -21,5 +21,6 @@ @MyAnno({testProperty2: /* @@ label */"Bob", testProperty1: /* @@ label1 */1}) class A{} -/* @@@ label Error TypeError: Type '"Bob"' cannot be assigned to type 'Double' */ -/* @@@ label1 Error TypeError: Type 'Int' cannot be assigned to type 'String' */ + +/* @@@ label Error Semantic error ESE0318: Type '"Bob"' cannot be assigned to type 'Double' */ +/* @@@ label1 Error Semantic error ESE0318: Type 'Int' cannot be assigned to type 'String' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_and_class_with_same_name.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_and_class_with_same_name.ets index 28d6784792..056a39d07c 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_and_class_with_same_name.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_and_class_with_same_name.ets @@ -17,4 +17,5 @@ class A {} @interface A { } -/* @@? 18:12 Error TypeError: Variable 'A' has already been declared. */ + +/* @@? 18:12 Error Semantic error ESE0351: Variable 'A' has already been declared. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_as_negative_case.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_as_negative_case.ets index 3de515f15a..db5a80ff35 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_as_negative_case.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_as_negative_case.ets @@ -20,6 +20,8 @@ class A {} } -/* @@? 18:18 Error TypeError: Cannot cast type 'Int' to 'String' */ -/* @@? 19:15 Error TypeError: Cannot cast type 'Int' to 'A' */ -/* @@? 19:15 Error TypeError: Type 'A' cannot be assigned to type 'Int' */ \ No newline at end of file +/* @@? 18:18 Error Semantic error ESE0326: Cannot cast type 'Int' to 'String' */ +/* @@? 18:18 Error Semantic error ESE0012: Invalid value for annotation field, expected a constant literal. */ +/* @@? 19:15 Error Semantic error ESE0326: Cannot cast type 'Int' to 'A' */ +/* @@? 19:15 Error Semantic error ESE0318: Type 'A' cannot be assigned to type 'Int' */ +/* @@? 19:15 Error Semantic error ESE0012: Invalid value for annotation field, expected a constant literal. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_annotation.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_annotation.ets index b3545ba703..e6011e21bc 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_annotation.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_annotation.ets @@ -30,7 +30,7 @@ function foo(){} @Retention("RUNTIME") @interface ClassAuthor{} // Ok -/* @@? 18:2 Error TypeError: Only standard annotations are allowed to be applied on annotations. */ -/* @@? 21:2 Error TypeError: Annotation '@Retention' can only be applied to annotation declarations. */ -/* @@? 24:2 Error TypeError: Annotation '@Retention' can only be applied to annotation declarations. */ -/* @@? 27:12 Error TypeError: Invalid value for 'policy' field. The policy must be one of the following:'SOURCE', 'CLASS', or 'RUNTIME'. */ \ No newline at end of file +/* @@? 18:2 Error Semantic error ESE0006: Only standard annotations are allowed to be applied on annotations. */ +/* @@? 21:2 Error Semantic error ESE0003: Annotation '@Retention' can only be applied to annotation declarations. */ +/* @@? 24:2 Error Semantic error ESE0003: Annotation '@Retention' can only be applied to annotation declarations. */ +/* @@? 27:12 Error Semantic error ESE0004: Invalid value for 'policy' field. The policy must be one of the following:'SOURCE', 'CLASS', or 'RUNTIME'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_array_type01.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_array_type01.ets index a6857d8207..34248174d0 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_array_type01.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_array_type01.ets @@ -22,5 +22,6 @@ let array: @Anno @Anno Int[][] let deepArray: @Anno @Anno Number[][][][][] -/* @@? 21:19 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 22:23 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ + +/* @@? 21:19 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 22:23 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_array_type02.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_array_type02.ets index 557e4bc100..58f3361f06 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_array_type02.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_array_type02.ets @@ -19,6 +19,7 @@ // annotataions for different dimensions of array let a: Int[] @Anno [] -/* @@? 20:14 Error SyntaxError: Unexpected token '@'. */ -/* @@? 20:20 Error SyntaxError: Annotations are not allowed on this type of declaration. */ -/* @@? 20:20 Error TypeError: Can't resolve array type */ + +/* @@? 20:14 Error Syntax error ESY0227: Unexpected token '@'. */ +/* @@? 20:20 Error Syntax error ESY0028: Annotations are not allowed on this type of declaration. */ +/* @@? 20:20 Error Semantic error ESE0301: Can't resolve array type */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_bad_target.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_bad_target.ets index e3deff1d62..7205703ffb 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_bad_target.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_bad_target.ets @@ -16,8 +16,9 @@ @interface this.context; -/* @@? 17:1 Error SyntaxError: Identifier expected. */ -/* @@? 17:1 Error SyntaxError: Invalid annotation name. */ -/* @@? 17:1 Error SyntaxError: Expected '{', got 'this'. */ -/* @@? 17:5 Error SyntaxError: Identifier expected, got '.'. */ -/* @@? 17:13 Error SyntaxError: Missing type annotation for property 'context'. */ + +/* @@? 17:1 Error Syntax error ESY0122: Identifier expected. */ +/* @@? 17:1 Error Syntax error ESY0329: Invalid annotation name. */ +/* @@? 17:1 Error Syntax error ESY0230: Expected '{', got 'this'. */ +/* @@? 17:5 Error Syntax error ESY0224: Identifier expected, got '.'. */ +/* @@? 17:13 Error Syntax error ESY0001: Missing type annotation for property 'context'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_boxing_type.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_boxing_type.ets index 23ceb5d0cc..2b7955369b 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_boxing_type.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_boxing_type.ets @@ -26,11 +26,11 @@ let boxingNumber: @Anno @Anno Number let boxingChar: @Anno @Anno Char let boxingLong: @Anno @Anno Long -/* @@? 20:23 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 21:25 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 22:25 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 23:24 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 24:26 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 25:26 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 26:24 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 27:24 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ \ No newline at end of file +/* @@? 20:23 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 21:25 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 22:25 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 23:24 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 24:26 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 25:26 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 26:24 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 27:24 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_function_type.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_function_type.ets index 1fc4502625..6ea5e6eb32 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_function_type.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_function_type.ets @@ -20,9 +20,10 @@ let func: @Anno @Anno (a: @Anno @Anno string) => @Anno @Anno Int let foo: @Anno @Anno (a?: @Anno @Anno string) => @Anno @Anno Int -/* @@? 20:18 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 20:34 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 20:57 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 21:17 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 21:57 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 21:34 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ + +/* @@? 20:18 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 20:34 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 20:57 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 21:17 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 21:34 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 21:57 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_named_type.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_named_type.ets index 29e92d7f5d..8b886a6cbe 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_named_type.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_named_type.ets @@ -34,7 +34,8 @@ let color: (@Anno @Anno Color) // annotations for aliases let c: (@Anno @Anno() C) -/* @@? 26:22 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 29:26 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 32:20 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 35:16 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ + +/* @@? 26:22 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 29:26 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 32:20 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 35:16 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_object_type.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_object_type.ets index 8a5baf54ff..b74bc34388 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_object_type.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_object_type.ets @@ -24,6 +24,6 @@ let obj1: @Anno @Anno() object let obj2: @Anno @Anno()MyClass let obj3: @Anno @Anno() C -/* @@? 23:18 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 24:18 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 25:18 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ \ No newline at end of file +/* @@? 23:18 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 24:18 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 25:18 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_other_type.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_other_type.ets index b848c4ae40..a84fd38824 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_other_type.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_other_type.ets @@ -26,6 +26,6 @@ let nll: @Anno @Anno() null // annotations for undefined let ud: @Anno @Anno() undefined -/* @@? 21:15 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 24:17 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 27:16 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ \ No newline at end of file +/* @@? 21:15 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 24:17 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 27:16 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_readonly_type.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_readonly_type.ets index 7b02aaed57..8d795b6564 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_readonly_type.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_readonly_type.ets @@ -19,5 +19,5 @@ let readonlyArray: readonly @Anno @Anno() Int[][] let readonlyTuple: readonly @Anno @Anno() [Int, String, Float, Object[]] -/* @@? 19:36 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 20:36 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ \ No newline at end of file +/* @@? 19:36 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 20:36 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_string_literal.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_string_literal.ets index db8b0b2338..996c22fca8 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_string_literal.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_string_literal.ets @@ -19,4 +19,4 @@ // annotations for string literal let sl: @Anno @Anno() "123" -/* @@? 20:16 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ \ No newline at end of file +/* @@? 20:16 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_tuple_type.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_tuple_type.ets index ab62baee9a..e81ac4dfc7 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_tuple_type.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_tuple_type.ets @@ -21,4 +21,4 @@ class MyClass{} // annotations for tuple let tuple: @Anno @Anno() [@Anno @Anno() Int, @Anno @Anno() String, @Anno @Anno() Object, @Anno @Anno() MyClass] -/* @@? 22:19 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ \ No newline at end of file +/* @@? 22:19 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_type_parameter01.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_type_parameter01.ets index c477d4ea76..4ba5629b35 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_type_parameter01.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_type_parameter01.ets @@ -25,10 +25,11 @@ class A<@Anno @Anno() T>{ } let array1: @Anno @Anno() Array = new Array() -/* @@? 26:20 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 21:40 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 21:21 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 21:57 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 22:16 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 23:14 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 24:15 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ + +/* @@? 21:21 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 21:40 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 21:57 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 22:16 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 23:14 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 24:15 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 26:20 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_types_in_annotation.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_types_in_annotation.ets index ce66f562c7..5b2aaec8a6 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_types_in_annotation.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_types_in_annotation.ets @@ -25,4 +25,4 @@ a: @Message({id:1}) @Message({id:1}) @TestAnno string = "1" } -/* @@? 25:25 Error TypeError: Duplicate annotations are not allowed. The annotation 'Message' has already been applied to this element. */ \ No newline at end of file +/* @@? 25:25 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Message' has already been applied to this element. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_types_in_class.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_types_in_class.ets index b8fd1d4b76..e22666e11b 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_types_in_class.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_types_in_class.ets @@ -33,11 +33,12 @@ class MyClass<@Anno @Anno() T>{ } } -/* @@? 20:22 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 22:16 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 25:29 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 28:20 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 28:45 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 31:39 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 31:17 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 31:59 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ + +/* @@? 20:22 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 22:16 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 25:29 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 28:20 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 28:45 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 31:17 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 31:39 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 31:59 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_types_in_expression.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_types_in_expression.ets index 80cf68805e..9efa606697 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_types_in_expression.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_types_in_expression.ets @@ -23,6 +23,7 @@ let a = 1 as @Anno @Anno() Int class C1<@Anno @Anno() T>{} new C1() instanceof @Anno @Anno() C1 -/* @@? 20:28 Error SyntaxError: Annotations are not allowed on this type of declaration. */ -/* @@? 24:40 Error SyntaxError: Annotations are not allowed on this type of declaration. */ -/* @@? 23:17 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ + +/* @@? 20:28 Error Syntax error ESY0028: Annotations are not allowed on this type of declaration. */ +/* @@? 23:17 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 24:40 Error Syntax error ESY0028: Annotations are not allowed on this type of declaration. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_types_in_function.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_types_in_function.ets index 1060f84464..aee9f4d46f 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_types_in_function.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_types_in_function.ets @@ -21,8 +21,8 @@ function foo(a: @Anno @Anno() string): @Anno @Anno() Number {return 1} function bar<@Anno @Anno() T>(a: @Anno @Anno() T): @Anno @Anno() T {return a} -/* @@? 21:27 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 21:50 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 22:41 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 22:21 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 22:59 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ \ No newline at end of file +/* @@? 21:27 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 21:50 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 22:21 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 22:41 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 22:59 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_types_in_interface.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_types_in_interface.ets index 2a8cf91c29..2f789d2e46 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_types_in_interface.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_types_in_interface.ets @@ -19,4 +19,5 @@ // annotations for interface interface I1<@Anno @Anno() T>{} -/* @@? 20:21 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ + +/* @@? 20:21 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_types_in_variance.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_types_in_variance.ets index 8b4d5e4b87..3c2071a3a3 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_types_in_variance.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_types_in_variance.ets @@ -19,5 +19,5 @@ // annotations for covariance and contravariance class gen<@Anno in @Anno T, @Anno out @Anno() U> {} -/* @@? 20:21 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 20:40 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ \ No newline at end of file +/* @@? 20:21 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 20:40 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_union_type.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_union_type.ets index c4715190d0..ca745828ca 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_union_type.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_for_union_type.ets @@ -28,12 +28,13 @@ let unionType3: @Anno() @Anno() (@Anno @Anno Int | String) // @Message for 'Int | String', @Anno1 for 'Int' and @Anno2 for 'String' let unionType4: @Anno() @Anno() (@Anno @Anno Int | @Anno @Anno String) -/* @@? 20:26 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 20:48 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 23:26 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 23:47 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 26:26 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 26:41 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 29:26 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 29:41 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ -/* @@? 29:59 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ + +/* @@? 20:26 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 20:48 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 23:26 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 23:47 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 26:26 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 26:41 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 29:26 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 29:41 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ +/* @@? 29:59 Error Semantic error ESE0041: Duplicate annotations are not allowed. The annotation 'Anno' has already been applied to this element. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_without_source_policy.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_without_source_policy.ets index 58fc6ec292..bd846f0df1 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_without_source_policy.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/annotation_without_source_policy.ets @@ -44,10 +44,10 @@ let b:@MyAnno() string function foo(@Anno() a:number){} // ok -/* @@? 18:2 Error TypeError: Annotations without 'SOURCE' cannot be used on lambda expressions, local declarations, or types. */ -/* @@? 21:2 Error TypeError: Annotations without 'SOURCE' cannot be used on lambda expressions, local declarations, or types. */ -/* @@? 25:6 Error TypeError: Annotations without 'SOURCE' cannot be used on lambda expressions, local declarations, or types. */ -/* @@? 30:6 Error TypeError: Annotations without 'SOURCE' cannot be used on lambda expressions, local declarations, or types. */ -/* @@? 34:2 Error TypeError: Annotations without 'SOURCE' cannot be used on lambda expressions, local declarations, or types. */ -/* @@? 37:8 Error TypeError: Annotations without 'SOURCE' cannot be used on lambda expressions, local declarations, or types. */ -/* @@? 42:2 Error TypeError: Annotations without 'SOURCE' cannot be used on lambda expressions, local declarations, or types. */ \ No newline at end of file +/* @@? 18:2 Error Semantic error ESE0005: Annotations without 'SOURCE' cannot be used on lambda expressions, local declarations, or types. */ +/* @@? 21:2 Error Semantic error ESE0005: Annotations without 'SOURCE' cannot be used on lambda expressions, local declarations, or types. */ +/* @@? 25:6 Error Semantic error ESE0005: Annotations without 'SOURCE' cannot be used on lambda expressions, local declarations, or types. */ +/* @@? 30:6 Error Semantic error ESE0005: Annotations without 'SOURCE' cannot be used on lambda expressions, local declarations, or types. */ +/* @@? 34:2 Error Semantic error ESE0005: Annotations without 'SOURCE' cannot be used on lambda expressions, local declarations, or types. */ +/* @@? 37:8 Error Semantic error ESE0005: Annotations without 'SOURCE' cannot be used on lambda expressions, local declarations, or types. */ +/* @@? 42:2 Error Semantic error ESE0005: Annotations without 'SOURCE' cannot be used on lambda expressions, local declarations, or types. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/broken_annotation.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/broken_annotation.ets index c0c0a3d0d6..536938697d 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/broken_annotation.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/broken_annotation.ets @@ -20,21 +20,21 @@ class A{ foo(){} } -/* @@? 16:22 Error SyntaxError: Identifier expected, got 'number literal'. */ -/* @@? 16:22 Error SyntaxError: Number, string or computed value property name '1' is not allowed, use classes to access data by property names that are identifiers */ -/* @@? 16:22 Error SyntaxError: Identifier expected, got 'number literal'. */ -/* @@? 16:22 Error SyntaxError: Number, string or computed value property name '1' is not allowed, use classes to access data by property names that are identifiers */ -/* @@? 16:22 Error TypeError: Indexed signatures are not allowed. Use arrays instead! */ -/* @@? 16:23 Error SyntaxError: Identifier expected, got ','. */ -/* @@? 16:24 Error SyntaxError: Number, string or computed value property name '2' is not allowed, use classes to access data by property names that are identifiers */ -/* @@? 16:24 Error SyntaxError: Identifier expected, got 'number literal'. */ -/* @@? 16:24 Error SyntaxError: Number, string or computed value property name '2' is not allowed, use classes to access data by property names that are identifiers */ -/* @@? 16:24 Error SyntaxError: Identifier expected, got 'number literal'. */ -/* @@? 16:25 Error SyntaxError: Identifier expected, got ','. */ -/* @@? 16:26 Error SyntaxError: Number, string or computed value property name '3' is not allowed, use classes to access data by property names that are identifiers */ -/* @@? 16:26 Error SyntaxError: Identifier expected, got 'number literal'. */ -/* @@? 16:26 Error SyntaxError: Number, string or computed value property name '3' is not allowed, use classes to access data by property names that are identifiers */ -/* @@? 16:26 Error SyntaxError: Identifier expected, got 'number literal'. */ -/* @@? 16:27 Error SyntaxError: Identifier expected, got ']'. */ -/* @@? 16:28 Error SyntaxError: Identifier expected, got '}'. */ -/* @@? 19:6 Error TypeError: Annotation 'MyValue' requires multiple fields to be specified. */ \ No newline at end of file +/* @@? 16:22 Error Syntax error ESY0224: Identifier expected, got 'number literal'. */ +/* @@? 16:22 Error Syntax error ESY0315: Number, string or computed value property name '1' is not allowed, use classes to access data by property names that are identifiers */ +/* @@? 16:22 Error Syntax error ESY0224: Identifier expected, got 'number literal'. */ +/* @@? 16:22 Error Syntax error ESY0315: Number, string or computed value property name '1' is not allowed, use classes to access data by property names that are identifiers */ +/* @@? 16:22 Error Semantic error ESE0343: Indexed signatures are not allowed. Use arrays instead! */ +/* @@? 16:23 Error Syntax error ESY0224: Identifier expected, got ','. */ +/* @@? 16:24 Error Syntax error ESY0315: Number, string or computed value property name '2' is not allowed, use classes to access data by property names that are identifiers */ +/* @@? 16:24 Error Syntax error ESY0224: Identifier expected, got 'number literal'. */ +/* @@? 16:24 Error Syntax error ESY0315: Number, string or computed value property name '2' is not allowed, use classes to access data by property names that are identifiers */ +/* @@? 16:24 Error Syntax error ESY0224: Identifier expected, got 'number literal'. */ +/* @@? 16:25 Error Syntax error ESY0224: Identifier expected, got ','. */ +/* @@? 16:26 Error Syntax error ESY0315: Number, string or computed value property name '3' is not allowed, use classes to access data by property names that are identifiers */ +/* @@? 16:26 Error Syntax error ESY0224: Identifier expected, got 'number literal'. */ +/* @@? 16:26 Error Syntax error ESY0315: Number, string or computed value property name '3' is not allowed, use classes to access data by property names that are identifiers */ +/* @@? 16:26 Error Syntax error ESY0224: Identifier expected, got 'number literal'. */ +/* @@? 16:27 Error Syntax error ESY0224: Identifier expected, got ']'. */ +/* @@? 16:28 Error Syntax error ESY0224: Identifier expected, got '}'. */ +/* @@? 19:6 Error Semantic error ESE0043: Annotation 'MyValue' requires multiple fields to be specified. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/annotation_tests/broken_annotation_usage.ets b/ets2panda/test/ast/compiler/ets/annotation_tests/broken_annotation_usage.ets index e9828b1b8e..7fd488aa40 100644 --- a/ets2panda/test/ast/compiler/ets/annotation_tests/broken_annotation_usage.ets +++ b/ets2panda/test/ast/compiler/ets/annotation_tests/broken_annotation_usage.ets @@ -16,6 +16,6 @@ @ns.Anno<()=>void> class A{} -/* @@? 16:2 Error TypeError: Cannot find type 'ns'. */ -/* @@? 16:5 Error TypeError: 'Anno' type does not exist. */ -/* @@? 16:5 Error TypeError: 'Anno' is not an annotation. */ \ No newline at end of file +/* @@? 16:2 Error Semantic error ESE0371: Cannot find type 'ns'. */ +/* @@? 16:5 Error Semantic error ESE0070: 'Anno' type does not exist. */ +/* @@? 16:5 Error Semantic error ESE0067: 'Anno' is not an annotation. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/array_index.ets b/ets2panda/test/ast/compiler/ets/array_index.ets index b56d97710a..ac30061136 100644 --- a/ets2panda/test/ast/compiler/ets/array_index.ets +++ b/ets2panda/test/ast/compiler/ets/array_index.ets @@ -15,4 +15,5 @@ const a: Char[] = new Char[n = 10]; -/* @@? 16:28 Error TypeError: Unresolved reference n */ + +/* @@? 16:28 Error Semantic error ESE0143: Unresolved reference n */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/array_indexing_without_chaining_nullish.ets b/ets2panda/test/ast/compiler/ets/array_indexing_without_chaining_nullish.ets index 795cee9fa2..9a0a6a3385 100644 --- a/ets2panda/test/ast/compiler/ets/array_indexing_without_chaining_nullish.ets +++ b/ets2panda/test/ast/compiler/ets/array_indexing_without_chaining_nullish.ets @@ -18,4 +18,5 @@ class A {} let arr : Object[] | null = [new Object(), new A()]; let elem : Object | undefined = /* @@ label */arr[0]; -/* @@@ label Error TypeError: Value is possibly nullish. */ + +/* @@@ label Error Semantic error ESE0010: Value is possibly nullish. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/array_type_as_param.ets b/ets2panda/test/ast/compiler/ets/array_type_as_param.ets index b8f173ad20..fe8c57b505 100644 --- a/ets2panda/test/ast/compiler/ets/array_type_as_param.ets +++ b/ets2panda/test/ast/compiler/ets/array_type_as_param.ets @@ -22,5 +22,5 @@ function main(){ foo(number[]) } -/* @@? 21:16 Error SyntaxError: Unexpected token 'number'. */ -/* @@? 22:9 Error SyntaxError: Unexpected token 'number'. */ \ No newline at end of file +/* @@? 21:16 Error Syntax error ESY0227: Unexpected token 'number'. */ +/* @@? 22:9 Error Syntax error ESY0227: Unexpected token 'number'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/array_type_as_value.ets b/ets2panda/test/ast/compiler/ets/array_type_as_value.ets index 20dbca68ad..ee28717d51 100644 --- a/ets2panda/test/ast/compiler/ets/array_type_as_value.ets +++ b/ets2panda/test/ast/compiler/ets/array_type_as_value.ets @@ -24,10 +24,10 @@ function main(){ let v4 = long[] || false } -/* @@? 19:15 Error SyntaxError: Unexpected token 'number'. */ -/* @@? 20:23 Error SyntaxError: Unexpected token 'number'. */ -/* @@? 21:8 Error SyntaxError: Unexpected token 'Int'. */ -/* @@? 22:11 Error SyntaxError: Unexpected token 'number'. */ -/* @@? 23:5 Error SyntaxError: Missing condition in while statement */ -/* @@? 23:14 Error SyntaxError: Unexpected token 'int'. */ -/* @@? 24:14 Error SyntaxError: Unexpected token 'long'. */ \ No newline at end of file +/* @@? 19:15 Error Syntax error ESY0227: Unexpected token 'number'. */ +/* @@? 20:23 Error Syntax error ESY0227: Unexpected token 'number'. */ +/* @@? 21:8 Error Syntax error ESY0227: Unexpected token 'Int'. */ +/* @@? 22:11 Error Syntax error ESY0227: Unexpected token 'number'. */ +/* @@? 23:5 Error Syntax error ESY0301: Missing condition in while statement */ +/* @@? 23:14 Error Syntax error ESY0227: Unexpected token 'int'. */ +/* @@? 24:14 Error Syntax error ESY0227: Unexpected token 'long'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/array_type_test.ets b/ets2panda/test/ast/compiler/ets/array_type_test.ets index c9d5e6de74..0bb394a3e5 100644 --- a/ets2panda/test/ast/compiler/ets/array_type_test.ets +++ b/ets2panda/test/ast/compiler/ets/array_type_test.ets @@ -22,4 +22,5 @@ function hee(opt: Options): [string, number, boolean] { return menuList; } -/* @@? 21:63 Error TypeError: Initializer has 0 elements, but tuple requires 3 */ + +/* @@? 21:63 Error Semantic error ESE0231: Initializer has 0 elements, but tuple requires 3 */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/array_with_type_parameter.ets b/ets2panda/test/ast/compiler/ets/array_with_type_parameter.ets index 418b425ebf..8880a29242 100644 --- a/ets2panda/test/ast/compiler/ets/array_with_type_parameter.ets +++ b/ets2panda/test/ast/compiler/ets/array_with_type_parameter.ets @@ -83,18 +83,19 @@ function foo6() { new [T|Object][2] } -/* @@? 18:5 Error TypeError: Cannot use array creation expression with type parameter. */ -/* @@? 22:5 Error TypeError: Cannot use array creation expression with type parameter. */ -/* @@? 23:5 Error TypeError: Cannot use array creation expression with type parameter. */ -/* @@? 31:5 Error TypeError: Cannot use array creation expression with type parameter. */ -/* @@? 35:5 Error TypeError: Cannot use array creation expression with type parameter. */ -/* @@? 40:5 Error SyntaxError: Illegal start of Type Alias expression. */ -/* @@? 41:5 Error TypeError: Cannot use array creation expression with type parameter. */ -/* @@? 42:5 Error TypeError: Cannot use array creation expression with non-constructable element type which is non-assignable from undefined. */ -/* @@? 42:9 Error TypeError: Cannot find type 'U'. */ -/* @@? 64:9 Error TypeError: Cannot use array creation expression with type parameter. */ -/* @@? 70:5 Error TypeError: Cannot use array creation expression with type parameter. */ -/* @@? 76:9 Error TypeError: Cannot use array creation expression with non-constructable element type which is non-assignable from undefined. */ -/* @@? 77:9 Error TypeError: Cannot use array creation expression with non-constructable element type which is non-assignable from undefined. */ -/* @@? 82:5 Error TypeError: Cannot use array creation expression with non-constructable element type which is non-assignable from undefined. */ -/* @@? 83:5 Error TypeError: Cannot use array creation expression with non-constructable element type which is non-assignable from undefined. */ + +/* @@? 18:5 Error Semantic error ESE0007: Cannot use array creation expression with type parameter. */ +/* @@? 22:5 Error Semantic error ESE0007: Cannot use array creation expression with type parameter. */ +/* @@? 23:5 Error Semantic error ESE0007: Cannot use array creation expression with type parameter. */ +/* @@? 31:5 Error Semantic error ESE0007: Cannot use array creation expression with type parameter. */ +/* @@? 35:5 Error Semantic error ESE0007: Cannot use array creation expression with type parameter. */ +/* @@? 40:5 Error Syntax error ESY0040: Illegal start of Type Alias expression. */ +/* @@? 41:5 Error Semantic error ESE0007: Cannot use array creation expression with type parameter. */ +/* @@? 42:5 Error Semantic error ESE0051: Cannot use array creation expression with non-constructable element type which is non-assignable from undefined. */ +/* @@? 42:9 Error Semantic error ESE0371: Cannot find type 'U'. */ +/* @@? 64:9 Error Semantic error ESE0007: Cannot use array creation expression with type parameter. */ +/* @@? 70:5 Error Semantic error ESE0007: Cannot use array creation expression with type parameter. */ +/* @@? 76:9 Error Semantic error ESE0051: Cannot use array creation expression with non-constructable element type which is non-assignable from undefined. */ +/* @@? 77:9 Error Semantic error ESE0051: Cannot use array creation expression with non-constructable element type which is non-assignable from undefined. */ +/* @@? 82:5 Error Semantic error ESE0051: Cannot use array creation expression with non-constructable element type which is non-assignable from undefined. */ +/* @@? 83:5 Error Semantic error ESE0051: Cannot use array creation expression with non-constructable element type which is non-assignable from undefined. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/arrow_function_call_as_record_property_key.ets b/ets2panda/test/ast/compiler/ets/arrow_function_call_as_record_property_key.ets index 80a265b50a..a86958db1f 100644 --- a/ets2panda/test/ast/compiler/ets/arrow_function_call_as_record_property_key.ets +++ b/ets2panda/test/ast/compiler/ets/arrow_function_call_as_record_property_key.ets @@ -24,35 +24,36 @@ const b: Record number> = { [(():number => +("bar"))()]: (y: string):number => y.length }; -/* @@? 16:35 Error TypeError: need to specify target type for class composite */ -/* @@? 17:5 Error SyntaxError: Unexpected token. */ -/* @@? 17:6 Error SyntaxError: Unexpected token, expected ':'. */ -/* @@? 17:22 Error SyntaxError: Unexpected token. */ -/* @@? 17:25 Error SyntaxError: Unexpected token ']'. */ -/* @@? 17:26 Error SyntaxError: Unexpected token ':'. */ -/* @@? 17:28 Error SyntaxError: Unexpected token '1'. */ -/* @@? 18:1 Error SyntaxError: Unexpected token '}'. */ -/* @@? 20:50 Error TypeError: need to specify target type for class composite */ -/* @@? 21:5 Error SyntaxError: Unexpected token. */ -/* @@? 21:6 Error SyntaxError: Unexpected token, expected ':'. */ -/* @@? 21:20 Error TypeError: Wrong operand type for unary expression */ -/* @@? 21:28 Error SyntaxError: Unexpected token. */ -/* @@? 21:31 Error SyntaxError: Unexpected token ']'. */ -/* @@? 21:32 Error SyntaxError: Unexpected token ':'. */ -/* @@? 21:34 Error SyntaxError: Unexpected token 'function'. */ -/* @@? 21:43 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 23:6 Error SyntaxError: Unexpected token ','. */ -/* @@? 23:6 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@? 24:20 Error TypeError: Wrong operand type for unary expression */ -/* @@? 24:32 Error SyntaxError: Unexpected token ':'. */ -/* @@? 24:32 Error TypeError: This expression is not callable. */ -/* @@? 24:36 Error SyntaxError: Unexpected token ':'. */ -/* @@? 24:36 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 24:38 Error SyntaxError: Unexpected token 'string'. */ -/* @@? 24:38 Error TypeError: Type name 'string' used in the wrong context */ -/* @@? 24:44 Error SyntaxError: Unexpected token ')'. */ -/* @@? 24:45 Error SyntaxError: Unexpected token ':'. */ -/* @@? 24:46 Error SyntaxError: Unexpected token 'number'. */ -/* @@? 24:46 Error TypeError: The type of parameter 'number' cannot be inferred */ -/* @@? 24:56 Error TypeError: Unresolved reference y */ -/* @@? 25:1 Error SyntaxError: Unexpected token '}'. */ + +/* @@? 16:35 Error Semantic error ESE0062: need to specify target type for class composite */ +/* @@? 17:5 Error Syntax error ESY0016: Unexpected token. */ +/* @@? 17:6 Error Syntax error ESY0228: Unexpected token, expected ':'. */ +/* @@? 17:22 Error Syntax error ESY0016: Unexpected token. */ +/* @@? 17:25 Error Syntax error ESY0227: Unexpected token ']'. */ +/* @@? 17:26 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 17:28 Error Syntax error ESY0227: Unexpected token '1'. */ +/* @@? 18:1 Error Syntax error ESY0227: Unexpected token '}'. */ +/* @@? 20:50 Error Semantic error ESE0062: need to specify target type for class composite */ +/* @@? 21:5 Error Syntax error ESY0016: Unexpected token. */ +/* @@? 21:6 Error Syntax error ESY0228: Unexpected token, expected ':'. */ +/* @@? 21:20 Error Semantic error ESE0347: Wrong operand type for unary expression */ +/* @@? 21:28 Error Syntax error ESY0016: Unexpected token. */ +/* @@? 21:31 Error Syntax error ESY0227: Unexpected token ']'. */ +/* @@? 21:32 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 21:34 Error Syntax error ESY0227: Unexpected token 'function'. */ +/* @@? 21:43 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 23:6 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 23:6 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 24:20 Error Semantic error ESE0347: Wrong operand type for unary expression */ +/* @@? 24:32 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 24:32 Error Semantic error ESE0289: This expression is not callable. */ +/* @@? 24:36 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 24:36 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 24:38 Error Syntax error ESY0227: Unexpected token 'string'. */ +/* @@? 24:38 Error Semantic error ESE0144: Type name 'string' used in the wrong context */ +/* @@? 24:44 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 24:45 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 24:46 Error Syntax error ESY0227: Unexpected token 'number'. */ +/* @@? 24:46 Error Semantic error ESE0132: The type of parameter 'number' cannot be inferred */ +/* @@? 24:56 Error Semantic error ESE0143: Unresolved reference y */ +/* @@? 25:1 Error Syntax error ESY0227: Unexpected token '}'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/arrow_function_mismatch.ets b/ets2panda/test/ast/compiler/ets/arrow_function_mismatch.ets index 67654e178e..aace4212c8 100644 --- a/ets2panda/test/ast/compiler/ets/arrow_function_mismatch.ets +++ b/ets2panda/test/ast/compiler/ets/arrow_function_mismatch.ets @@ -17,5 +17,5 @@ let foo: (P: string, Q: string) => void foo((value: Object): void => { }, (err: Error): void => { }) -/* @@? 18:1 Error TypeError: No matching call signature for ((p1: Object) => void, (p1: Error) => void) */ -/* @@? 18:5 Error TypeError: Type '(p1: Object) => void' is not compatible with type 'String' at index 1 */ +/* @@? 18:1 Error Semantic error ESE0127: No matching call signature for ((p1: Object) => void, (p1: Error) => void) */ +/* @@? 18:5 Error Semantic error ESE0046: Type '(p1: Object) => void' is not compatible with type 'String' at index 1 */ diff --git a/ets2panda/test/ast/compiler/ets/assert_bad.ets b/ets2panda/test/ast/compiler/ets/assert_bad.ets index d22c1d7fab..64c388465f 100644 --- a/ets2panda/test/ast/compiler/ets/assert_bad.ets +++ b/ets2panda/test/ast/compiler/ets/assert_bad.ets @@ -19,5 +19,5 @@ function main(): int { return 0; } -/* @@@ label1 Error TypeError: No matching call signature for assertEQ(Int, Int, Int) */ -/* @@@ label2 Error TypeError: Type 'Int' is not compatible with type 'String|undefined' at index 3 */ \ No newline at end of file +/* @@@ label1 Error Semantic error ESE0127: No matching call signature for assertEQ(Int, Int, Int) */ +/* @@@ label2 Error Semantic error ESE0046: Type 'Int' is not compatible with type 'String|undefined' at index 3 */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/assign_const.ets b/ets2panda/test/ast/compiler/ets/assign_const.ets index 150e93078f..2db58907ef 100644 --- a/ets2panda/test/ast/compiler/ets/assign_const.ets +++ b/ets2panda/test/ast/compiler/ets/assign_const.ets @@ -18,4 +18,5 @@ function main(): void { /* @@ label */c = c + 1; } -/* @@@ label Error TypeError: Cannot assign to a constant variable c */ + +/* @@@ label Error Semantic error ESE4001: Cannot assign to a constant variable c */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/async-function-expression1.ets b/ets2panda/test/ast/compiler/ets/async-function-expression1.ets index de02a74245..3682efb053 100644 --- a/ets2panda/test/ast/compiler/ets/async-function-expression1.ets +++ b/ets2panda/test/ast/compiler/ets/async-function-expression1.ets @@ -46,9 +46,10 @@ function relationalStoreCustomDirTest() { let ret = await storestore.insert("test", valueBucket); }) } -/* @@? 17:5 Error TypeError: Unresolved reference it */ -/* @@? 17:14 Error SyntaxError: Function expressions are not supported, use arrow functions instead */ -/* @@? 19:5 Error TypeError: This expression is not callable. */ -/* @@? 19:14 Error SyntaxError: Function expressions are not supported, use arrow functions instead */ -/* @@? 31:5 Error TypeError: This expression is not callable. */ -/* @@? 31:14 Error SyntaxError: Function expressions are not supported, use arrow functions instead */ + +/* @@? 17:5 Error Semantic error ESE0143: Unresolved reference it */ +/* @@? 17:14 Error Syntax error ESY0320: Function expressions are not supported, use arrow functions instead */ +/* @@? 19:5 Error Semantic error ESE0289: This expression is not callable. */ +/* @@? 19:14 Error Syntax error ESY0320: Function expressions are not supported, use arrow functions instead */ +/* @@? 31:5 Error Semantic error ESE0289: This expression is not callable. */ +/* @@? 31:14 Error Syntax error ESY0320: Function expressions are not supported, use arrow functions instead */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/async-function-expression2.ets b/ets2panda/test/ast/compiler/ets/async-function-expression2.ets index c4fef79dcf..6263c656ac 100644 --- a/ets2panda/test/ast/compiler/ets/async-function-expression2.ets +++ b/ets2panda/test/ast/compiler/ets/async-function-expression2.ets @@ -46,21 +46,22 @@ function relationalStoreCustomDirTest() { let ret = await storestore.insert("test", valueBucket); }) } -/* @@? 17:5 Error TypeError: Unresolved reference it */ -/* @@? 17:14 Error SyntaxError: Function expressions are not supported, use arrow functions instead */ -/* @@? 17:23 Error SyntaxError: Unexpected token, expected '('. */ -/* @@? 17:31 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 17:31 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ -/* @@? 17:31 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 19:5 Error TypeError: This expression is not callable. */ -/* @@? 19:14 Error SyntaxError: Function expressions are not supported, use arrow functions instead */ -/* @@? 19:23 Error SyntaxError: Unexpected token, expected '('. */ -/* @@? 19:31 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 19:31 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ -/* @@? 19:31 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 31:5 Error TypeError: This expression is not callable. */ -/* @@? 31:14 Error SyntaxError: Function expressions are not supported, use arrow functions instead */ -/* @@? 31:23 Error SyntaxError: Unexpected token, expected '('. */ -/* @@? 31:31 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 31:31 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ -/* @@? 31:31 Error SyntaxError: Unexpected token, expected ',' or ')'. */ + +/* @@? 17:5 Error Semantic error ESE0143: Unresolved reference it */ +/* @@? 17:14 Error Syntax error ESY0320: Function expressions are not supported, use arrow functions instead */ +/* @@? 17:23 Error Syntax error ESY0228: Unexpected token, expected '('. */ +/* @@? 17:31 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 17:31 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ +/* @@? 17:31 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 19:5 Error Semantic error ESE0289: This expression is not callable. */ +/* @@? 19:14 Error Syntax error ESY0320: Function expressions are not supported, use arrow functions instead */ +/* @@? 19:23 Error Syntax error ESY0228: Unexpected token, expected '('. */ +/* @@? 19:31 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 19:31 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ +/* @@? 19:31 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 31:5 Error Semantic error ESE0289: This expression is not callable. */ +/* @@? 31:14 Error Syntax error ESY0320: Function expressions are not supported, use arrow functions instead */ +/* @@? 31:23 Error Syntax error ESY0228: Unexpected token, expected '('. */ +/* @@? 31:31 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 31:31 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ +/* @@? 31:31 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/async_import_3.ets b/ets2panda/test/ast/compiler/ets/async_import_3.ets index 165c0f7649..a790c61d45 100644 --- a/ets2panda/test/ast/compiler/ets/async_import_3.ets +++ b/ets2panda/test/ast/compiler/ets/async_import_3.ets @@ -15,5 +15,5 @@ import {foo} from './async_import_4' let prop: int = foo() -/* @@? 16:17 Error TypeError: Cannot use type 'void' as value. */ -/* @@? 16:17 Error TypeError: Type 'void' cannot be assigned to type 'Int' */ \ No newline at end of file +/* @@? 16:17 Error Semantic error ESE0078: Cannot use type 'void' as value. */ +/* @@? 16:17 Error Semantic error ESE0318: Type 'void' cannot be assigned to type 'Int' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/async_with_non_generic_return_type.ets b/ets2panda/test/ast/compiler/ets/async_with_non_generic_return_type.ets index 8684c72349..8e0348faeb 100644 --- a/ets2panda/test/ast/compiler/ets/async_with_non_generic_return_type.ets +++ b/ets2panda/test/ast/compiler/ets/async_with_non_generic_return_type.ets @@ -19,4 +19,5 @@ async function foo(arg: number): str { return ""; } -/* @@? 18:16 Error TypeError: Return type of async function must be 'Promise'. */ + +/* @@? 18:16 Error Semantic error ESE0001: Return type of async function must be 'Promise'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/awaited_assignability_2_neg.ets b/ets2panda/test/ast/compiler/ets/awaited_assignability_2_neg.ets index eba08ed879..cd5ed02ecd 100644 --- a/ets2panda/test/ast/compiler/ets/awaited_assignability_2_neg.ets +++ b/ets2panda/test/ast/compiler/ets/awaited_assignability_2_neg.ets @@ -18,4 +18,4 @@ async function aw(p: Promise, cb: (v: T) => void) { cb(x) } -/* @@? 17:16 Error TypeError: Type 'Awaited' cannot be assigned to type 'T' */ \ No newline at end of file +/* @@? 17:16 Error Semantic error ESE0318: Type 'Awaited' cannot be assigned to type 'T' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/awaited_assignability_neg.ets b/ets2panda/test/ast/compiler/ets/awaited_assignability_neg.ets index 680c93f328..47847628ac 100644 --- a/ets2panda/test/ast/compiler/ets/awaited_assignability_neg.ets +++ b/ets2panda/test/ast/compiler/ets/awaited_assignability_neg.ets @@ -18,5 +18,5 @@ async function aw(p: Promise, cb: (v: T) => void) { cb(x) } -/* @@? 18:5 Error TypeError: No matching call signature for (Awaited) */ -/* @@? 18:8 Error TypeError: Type 'Awaited' is not compatible with type 'T' at index 1 */ \ No newline at end of file +/* @@? 18:5 Error Semantic error ESE0127: No matching call signature for (Awaited) */ +/* @@? 18:8 Error Semantic error ESE0046: Type 'Awaited' is not compatible with type 'T' at index 1 */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/awaited_utility_type.ets b/ets2panda/test/ast/compiler/ets/awaited_utility_type.ets index d9f5bc86dd..c153cfc35e 100644 --- a/ets2panda/test/ast/compiler/ets/awaited_utility_type.ets +++ b/ets2panda/test/ast/compiler/ets/awaited_utility_type.ets @@ -25,4 +25,4 @@ let a: A = "a" let valueB: B = true let valueD: D = 123 -/* @@? 23:22 Error TypeError: Array element at index 0 with type 'Double' is not compatible with the target array element type 'Promise|Promise' */ \ No newline at end of file + /* @@? 23:22 Error Semantic error ESE0227: Array element at index 0 with type 'Double' is not compatible with the target array element type 'Promise|Promise' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/awaited_with_array.ets b/ets2panda/test/ast/compiler/ets/awaited_with_array.ets index 644cf02a40..60653601b7 100644 --- a/ets2panda/test/ast/compiler/ets/awaited_with_array.ets +++ b/ets2panda/test/ast/compiler/ets/awaited_with_array.ets @@ -18,4 +18,5 @@ type AwaitedArray = Awaited const results: AwaitedArray = ["hello"] -/* @@? 19:32 Error TypeError: Array element at index 0 with type '"hello"' is not compatible with the target array element type 'Promise' */ + +/* @@? 19:32 Error Semantic error ESE0227: Array element at index 0 with type '"hello"' is not compatible with the target array element type 'Promise' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/bad_call_setter.ets b/ets2panda/test/ast/compiler/ets/bad_call_setter.ets index 0e68c90948..086d98c526 100644 --- a/ets2panda/test/ast/compiler/ets/bad_call_setter.ets +++ b/ets2panda/test/ast/compiler/ets/bad_call_setter.ets @@ -28,7 +28,8 @@ function main() { ins.text = "He"; } -/* @@? 23:5 Error SyntaxError: Unexpected token 'this'. */ -/* @@? 23:9 Error SyntaxError: Unexpected token '.'. */ -/* @@? 23:10 Error TypeError: Variable 'text' has already been declared. */ -/* @@? 23:17 Error TypeError: Property 's' must be accessed through 'this' */ + +/* @@? 23:5 Error Syntax error ESY0227: Unexpected token 'this'. */ +/* @@? 23:9 Error Syntax error ESY0227: Unexpected token '.'. */ +/* @@? 23:10 Error Semantic error ESE0351: Variable 'text' has already been declared. */ +/* @@? 23:17 Error Semantic error ESE0145: Property 's' must be accessed through 'this' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/bigInt_operators_neg.ets b/ets2panda/test/ast/compiler/ets/bigInt_operators_neg.ets index 5ea74fcbfb..6074586487 100644 --- a/ets2panda/test/ast/compiler/ets/bigInt_operators_neg.ets +++ b/ets2panda/test/ast/compiler/ets/bigInt_operators_neg.ets @@ -38,13 +38,14 @@ for (const v2 of vStr) { const leftTest = v1 << v0; } -/* @@? 29:21 Error TypeError: Bad operand type, the types of the operands must be numeric type, enum or String. */ -/* @@? 30:21 Error TypeError: Bad operand type, the types of the operands must be numeric type, enum or String. */ -/* @@? 31:21 Error TypeError: Bad operand type, the types of the operands must be numeric type. */ -/* @@? 32:21 Error TypeError: Bad operand type, the types of the operands must be numeric type. */ -/* @@? 33:21 Error TypeError: Bad operand type, the types of the operands must be numeric type. */ -/* @@? 34:23 Error TypeError: Bad operand type, the types of the operands must be numeric type. */ -/* @@? 35:24 Error TypeError: Bad operand type, the types of the operands must be numeric type. */ -/* @@? 36:24 Error TypeError: Bad operand type, the types of the operands must be numeric type. */ -/* @@? 37:23 Error TypeError: Bad operand type, the types of the operands must be numeric type. */ -/* @@? 38:22 Error TypeError: Bad operand type, the types of the operands must be numeric type. */ + +/* @@? 29:21 Error Semantic error ESE0108: Bad operand type, the types of the operands must be numeric type, enum or String. */ +/* @@? 30:21 Error Semantic error ESE0108: Bad operand type, the types of the operands must be numeric type, enum or String. */ +/* @@? 31:21 Error Semantic error ESE0107: Bad operand type, the types of the operands must be numeric type. */ +/* @@? 32:21 Error Semantic error ESE0107: Bad operand type, the types of the operands must be numeric type. */ +/* @@? 33:21 Error Semantic error ESE0107: Bad operand type, the types of the operands must be numeric type. */ +/* @@? 34:23 Error Semantic error ESE0107: Bad operand type, the types of the operands must be numeric type. */ +/* @@? 35:24 Error Semantic error ESE0107: Bad operand type, the types of the operands must be numeric type. */ +/* @@? 36:24 Error Semantic error ESE0107: Bad operand type, the types of the operands must be numeric type. */ +/* @@? 37:23 Error Semantic error ESE0107: Bad operand type, the types of the operands must be numeric type. */ +/* @@? 38:22 Error Semantic error ESE0107: Bad operand type, the types of the operands must be numeric type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/bigInt_unsigned_right_shift.ets b/ets2panda/test/ast/compiler/ets/bigInt_unsigned_right_shift.ets index b5b4c1be3a..f0b410a3f8 100644 --- a/ets2panda/test/ast/compiler/ets/bigInt_unsigned_right_shift.ets +++ b/ets2panda/test/ast/compiler/ets/bigInt_unsigned_right_shift.ets @@ -18,4 +18,5 @@ const v1 = 213n; let v2 = v0 >>> v1; -/* @@? 19:10 Error TypeError: Bad operand type, the types of the operands must be numeric type. */ + +/* @@? 19:10 Error Semantic error ESE0107: Bad operand type, the types of the operands must be numeric type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/binary_operator_neg.ets b/ets2panda/test/ast/compiler/ets/binary_operator_neg.ets index 4bee69637b..6caa3915c1 100644 --- a/ets2panda/test/ast/compiler/ets/binary_operator_neg.ets +++ b/ets2panda/test/ast/compiler/ets/binary_operator_neg.ets @@ -15,8 +15,9 @@ /* @@ label1 */@@/@ -/* @@@ label1 Error SyntaxError: Unexpected token '@@'. */ -/* @@? 23:1 Error SyntaxError: Identifier expected, got 'end of stream'. */ -/* @@? 23:1 Error SyntaxError: Invalid annotation name. */ -/* @@? 23:1 Error SyntaxError: Unexpected token 'end of stream'. */ -/* @@? 23:1 Error SyntaxError: Annotations are not allowed on this type of declaration. */ + +/* @@@ label1 Error Syntax error ESY0227: Unexpected token '@@'. */ +/* @@? 23:102 Error Syntax error ESY0224: Identifier expected, got 'end of stream'. */ +/* @@? 23:102 Error Syntax error ESY0329: Invalid annotation name. */ +/* @@? 23:102 Error Syntax error ESY0227: Unexpected token 'end of stream'. */ +/* @@? 23:102 Error Syntax error ESY0028: Annotations are not allowed on this type of declaration. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/bit_wise_expr.ets b/ets2panda/test/ast/compiler/ets/bit_wise_expr.ets index 06330f44ea..9b5f040f34 100644 --- a/ets2panda/test/ast/compiler/ets/bit_wise_expr.ets +++ b/ets2panda/test/ast/compiler/ets/bit_wise_expr.ets @@ -15,10 +15,11 @@ let tup : [['arkTs' | boolean, 1 | true]] = [['arkTs', 1]]; -/* @@? 16:32 Error SyntaxError: Invalid Type. */ -/* @@? 16:32 Error SyntaxError: Unexpected token, expected ',' or ']'. */ -/* @@? 16:32 Error SyntaxError: Unexpected token '1'. */ -/* @@? 16:32 Error TypeError: Wrong type of operands for binary expression */ -/* @@? 16:32 Error TypeError: Bad operand type, the types of the operands must be numeric type. */ -/* @@? 16:40 Error SyntaxError: Unexpected token ']'. */ -/* @@? 16:41 Error SyntaxError: Unexpected token ']'. */ + +/* @@? 16:32 Error Syntax error ESY0138: Invalid Type. */ +/* @@? 16:32 Error Syntax error ESY0229: Unexpected token, expected ',' or ']'. */ +/* @@? 16:32 Error Syntax error ESY0227: Unexpected token '1'. */ +/* @@? 16:32 Error Semantic error ESE0346: Wrong type of operands for binary expression */ +/* @@? 16:32 Error Semantic error ESE0107: Bad operand type, the types of the operands must be numeric type. */ +/* @@? 16:40 Error Syntax error ESY0227: Unexpected token ']'. */ +/* @@? 16:41 Error Syntax error ESY0227: Unexpected token ']'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/block_namespace_interface_name_conflict.ets b/ets2panda/test/ast/compiler/ets/block_namespace_interface_name_conflict.ets index b0a58f1f58..f7e9e45289 100644 --- a/ets2panda/test/ast/compiler/ets/block_namespace_interface_name_conflict.ets +++ b/ets2panda/test/ast/compiler/ets/block_namespace_interface_name_conflict.ets @@ -21,5 +21,6 @@ } } -/* @@? 18:5 Error SyntaxError: Illegal start of INTERFACE expression. */ -/* @@? 20:5 Error SyntaxError: Namespace is allowed only at the top level or inside a namespace. */ + +/* @@? 18:5 Error Syntax error ESY0040: Illegal start of INTERFACE expression. */ +/* @@? 20:5 Error Syntax error ESY0134: Namespace is allowed only at the top level or inside a namespace. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/boxingConversion4.ets b/ets2panda/test/ast/compiler/ets/boxingConversion4.ets index 4b463095b7..1795a2c5a0 100644 --- a/ets2panda/test/ast/compiler/ets/boxingConversion4.ets +++ b/ets2panda/test/ast/compiler/ets/boxingConversion4.ets @@ -23,5 +23,6 @@ function main() : void { refInt(b); } -/* @@@ label1 Error TypeError: Type 'Int' cannot be assigned to type 'Short' */ -/* @@@ label2 Error TypeError: Type 'Int' cannot be assigned to type 'Short' */ + +/* @@@ label1 Error Semantic error ESE0318: Type 'Int' cannot be assigned to type 'Short' */ +/* @@@ label2 Error Semantic error ESE0318: Type 'Int' cannot be assigned to type 'Short' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/break_target.ets b/ets2panda/test/ast/compiler/ets/break_target.ets index a3af3dd42c..d5edbdbf09 100644 --- a/ets2panda/test/ast/compiler/ets/break_target.ets +++ b/ets2panda/test/ast/compiler/ets/break_target.ets @@ -21,4 +21,5 @@ target: while(true) { } } -/* @@? 19:13 Error TypeError: Continue or break target can't be outside the function */ + +/* @@? 19:13 Error Semantic error ESE49316: Continue or break target can't be outside the function */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/broken_getter.ets b/ets2panda/test/ast/compiler/ets/broken_getter.ets index 3651757ed8..6a4b5db8da 100644 --- a/ets2panda/test/ast/compiler/ets/broken_getter.ets +++ b/ets2panda/test/ast/compiler/ets/broken_getter.ets @@ -17,12 +17,12 @@ class A { is.$_get(this.length = 1).toDouble() } -/* @@? 17:7 Error SyntaxError: Field type annotation expected. */ -/* @@? 17:7 Error SyntaxError: Unexpected token '.'. */ -/* @@? 17:13 Error TypeError: Only abstract or native methods can't have body. */ -/* @@? 17:18 Error SyntaxError: The function parameter 'this' must explicitly specify the typeAnnotation. */ -/* @@? 17:18 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 17:18 Error SyntaxError: Unexpected token '.'. */ -/* @@? 17:29 Error SyntaxError: Unexpected token ')'. */ -/* @@? 17:30 Error SyntaxError: Unexpected token '.'. */ -/* @@? 17:39 Error TypeError: Only abstract or native methods can't have body. */ \ No newline at end of file +/* @@? 17:7 Error Syntax error ESY0121: Field type annotation expected. */ +/* @@? 17:7 Error Syntax error ESY0227: Unexpected token '.'. */ +/* @@? 17:13 Error Semantic error ESE0017: Only abstract or native methods can't have body. */ +/* @@? 17:18 Error Syntax error ESY0099: The function parameter 'this' must explicitly specify the typeAnnotation. */ +/* @@? 17:18 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 17:18 Error Syntax error ESY0227: Unexpected token '.'. */ +/* @@? 17:29 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 17:30 Error Syntax error ESY0227: Unexpected token '.'. */ +/* @@? 17:39 Error Semantic error ESE0017: Only abstract or native methods can't have body. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/broken_partial_type.ets b/ets2panda/test/ast/compiler/ets/broken_partial_type.ets index 2a96154b6c..e72a8de2cc 100644 --- a/ets2panda/test/ast/compiler/ets/broken_partial_type.ets +++ b/ets2panda/test/ast/compiler/ets/broken_partial_type.ets @@ -38,11 +38,12 @@ function createEntityA(): EntityUnion { } -/* @@? 26:3 Error TypeError: kind(): (() => *ERROR_TYPE*)|undefined in Partial cannot override kind(): (() => Kind)|undefined in Partial because overriding return type is not compatible with the other return type. */ -/* @@? 26:3 Error TypeError: Method kind(): (() => *ERROR_TYPE*)|undefined in Partial not overriding any method */ -/* @@? 26:3 Error TypeError: kind(): () => *ERROR_TYPE* in EntityA cannot override kind(): () => Kind in Entity because overriding return type is not compatible with the other return type. */ -/* @@? 26:3 Error TypeError: Method kind(): () => *ERROR_TYPE* in EntityA not overriding any method */ -/* @@? 26:20 Error TypeError: 'A' type does not exist. */ -/* @@? 30:3 Error TypeError: kind(): () => *ERROR_TYPE* in EntityB cannot override kind(): () => Kind in Entity because overriding return type is not compatible with the other return type. */ -/* @@? 30:3 Error TypeError: Method kind(): () => *ERROR_TYPE* in EntityB not overriding any method */ -/* @@? 30:20 Error TypeError: 'B' type does not exist. */ + +/* @@? 26:3 Error Semantic error ESE0141: kind(): (() => *ERROR_TYPE*)|undefined in Partial cannot override kind(): (() => Kind)|undefined in Partial because overriding return type is not compatible with the other return type. */ +/* @@? 26:3 Error Semantic error ESE0136: Method kind(): (() => *ERROR_TYPE*)|undefined in Partial not overriding any method */ +/* @@? 26:3 Error Semantic error ESE0141: kind(): () => *ERROR_TYPE* in EntityA cannot override kind(): () => Kind in Entity because overriding return type is not compatible with the other return type. */ +/* @@? 26:3 Error Semantic error ESE0136: Method kind(): () => *ERROR_TYPE* in EntityA not overriding any method */ +/* @@? 26:20 Error Semantic error ESE0070: 'A' type does not exist. */ +/* @@? 30:3 Error Semantic error ESE0141: kind(): () => *ERROR_TYPE* in EntityB cannot override kind(): () => Kind in Entity because overriding return type is not compatible with the other return type. */ +/* @@? 30:3 Error Semantic error ESE0136: Method kind(): () => *ERROR_TYPE* in EntityB not overriding any method */ +/* @@? 30:20 Error Semantic error ESE0070: 'B' type does not exist. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/broken_setter.ets b/ets2panda/test/ast/compiler/ets/broken_setter.ets index 9330afc173..1fd5436667 100644 --- a/ets2panda/test/ast/compiler/ets/broken_setter.ets +++ b/ets2panda/test/ast/compiler/ets/broken_setter.ets @@ -27,6 +27,6 @@ class A{ function foo(p:Partial){} -/* @@? 23:5 Error SyntaxError: Setter must have exactly one formal parameter. */ -/* @@? 23:5 Error TypeError: Function p is already declared. */ -/* @@? 24:21 Warning Warning: Reading the value of the property inside its getter may lead to an endless loop. */ \ No newline at end of file +/* @@? 23:5 Error Syntax error ESY0063: Setter must have exactly one formal parameter. */ +/* @@? 23:5 Error Semantic error ESE0130: Function p is already declared. */ +/* @@? 24:21 Warning Warning W0023: Reading the value of the property inside its getter may lead to an endless loop. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/builtin_thisArgs.ets b/ets2panda/test/ast/compiler/ets/builtin_thisArgs.ets index 9c4ec53ad7..05ea18888e 100755 --- a/ets2panda/test/ast/compiler/ets/builtin_thisArgs.ets +++ b/ets2panda/test/ast/compiler/ets/builtin_thisArgs.ets @@ -17,21 +17,21 @@ Class MyClass { compare((value: number, index:number, arr: Array)) {} } -/* @@? 16:1 Error SyntaxError: Class cannot be used as object. */ -/* @@? 16:7 Error SyntaxError: Unexpected token 'MyClass'. */ -/* @@? 16:7 Error TypeError: Unresolved reference MyClass */ -/* @@? 16:15 Error SyntaxError: Unexpected token '{'. */ -/* @@? 17:3 Error TypeError: Unresolved reference compare */ -/* @@? 17:17 Error SyntaxError: Unexpected token, expected ')'. */ -/* @@? 17:19 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 17:19 Error SyntaxError: Unexpected token 'number'. */ -/* @@? 17:19 Error TypeError: Type name 'number' used in the wrong context */ -/* @@? 17:25 Error SyntaxError: Unexpected token ','. */ -/* @@? 17:27 Error SyntaxError: Unexpected token 'index'. */ -/* @@? 17:33 Error SyntaxError: Label must be followed by a loop statement. */ -/* @@? 17:33 Error TypeError: Type name 'number' used in the wrong context */ -/* @@? 17:39 Error SyntaxError: Unexpected token ','. */ -/* @@? 17:41 Error SyntaxError: Unexpected token 'arr'. */ -/* @@? 17:46 Error SyntaxError: Label must be followed by a loop statement. */ -/* @@? 17:46 Error TypeError: No matching call signature with trailing lambda */ -/* @@? 17:59 Error SyntaxError: Unexpected token, expected '('. */ \ No newline at end of file +/* @@? 16:1 Error Syntax error ESY0318: Class cannot be used as object. */ +/* @@? 16:7 Error Syntax error ESY0227: Unexpected token 'MyClass'. */ +/* @@? 16:7 Error Semantic error ESE0143: Unresolved reference MyClass */ +/* @@? 16:15 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 17:3 Error Semantic error ESE0143: Unresolved reference compare */ +/* @@? 17:17 Error Syntax error ESY0228: Unexpected token, expected ')'. */ +/* @@? 17:19 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 17:19 Error Syntax error ESY0227: Unexpected token 'number'. */ +/* @@? 17:19 Error Semantic error ESE0144: Type name 'number' used in the wrong context */ +/* @@? 17:25 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 17:27 Error Syntax error ESY0227: Unexpected token 'index'. */ +/* @@? 17:33 Error Syntax error ESY0038: Label must be followed by a loop statement. */ +/* @@? 17:33 Error Semantic error ESE0144: Type name 'number' used in the wrong context */ +/* @@? 17:39 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 17:41 Error Syntax error ESY0227: Unexpected token 'arr'. */ +/* @@? 17:46 Error Syntax error ESY0038: Label must be followed by a loop statement. */ +/* @@? 17:46 Error Semantic error ESE0140: No matching call signature with trailing lambda */ +/* @@? 17:59 Error Syntax error ESY0228: Unexpected token, expected '('. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/call_for_method_never_exist.ets b/ets2panda/test/ast/compiler/ets/call_for_method_never_exist.ets index dca694ab14..7e334bec06 100644 --- a/ets2panda/test/ast/compiler/ets/call_for_method_never_exist.ets +++ b/ets2panda/test/ast/compiler/ets/call_for_method_never_exist.ets @@ -21,4 +21,5 @@ function main(){ let a = new A./* @@ label */foo(123) } -/* @@@ label Error TypeError: Invalid type reference. */ + +/* @@@ label Error Semantic error ESE0299: Invalid type reference. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/call_signature.ets b/ets2panda/test/ast/compiler/ets/call_signature.ets index ae2f208c22..2b127f6031 100644 --- a/ets2panda/test/ast/compiler/ets/call_signature.ets +++ b/ets2panda/test/ast/compiler/ets/call_signature.ets @@ -27,11 +27,12 @@ class Proxy { ) } -/* @@? 17:25 Error TypeError: Cannot find type 'T'. */ -/* @@? 19:22 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 21:28 Error TypeError: Cannot find type 'MethodCreate'. */ -/* @@? 22:13 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 22:32 Error TypeError: Cannot find type 'AbortController'. */ -/* @@? 24:61 Error SyntaxError: Identifier expected, got ')'. */ -/* @@? 26:9 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 27:5 Error SyntaxError: Unexpected token ')'. */ + +/* @@? 17:25 Error Semantic error ESE0371: Cannot find type 'T'. */ +/* @@? 19:22 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 21:28 Error Semantic error ESE0371: Cannot find type 'MethodCreate'. */ +/* @@? 22:13 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 22:32 Error Semantic error ESE0371: Cannot find type 'AbortController'. */ +/* @@? 24:61 Error Syntax error ESY0224: Identifier expected, got ')'. */ +/* @@? 26:9 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 27:5 Error Syntax error ESY0227: Unexpected token ')'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/call_signature_error.ets b/ets2panda/test/ast/compiler/ets/call_signature_error.ets index 8ec272c489..f95a914015 100644 --- a/ets2panda/test/ast/compiler/ets/call_signature_error.ets +++ b/ets2panda/test/ast/compiler/ets/call_signature_error.ets @@ -17,5 +17,6 @@ type DescribableFunction = /* @@ label1 */{ /* @@ label2 */(someArg: number): string } -/* @@@ label1 Error SyntaxError: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ -/* @@@ label2 Error SyntaxError: Call signatures in object types are not supported. Use '$_invoke' method instead. */ + +/* @@@ label1 Error Syntax error ESY177354: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ +/* @@@ label2 Error Syntax error ESY103145: Call signatures in object types are not supported. Use '$_invoke' method instead. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/check_spreadElement.ets b/ets2panda/test/ast/compiler/ets/check_spreadElement.ets index 69f13c49a7..58fee0b116 100644 --- a/ets2panda/test/ast/compiler/ets/check_spreadElement.ets +++ b/ets2panda/test/ast/compiler/ets/check_spreadElement.ets @@ -15,7 +15,8 @@ [a, b, ...rest] = [1, 2, 3, 4, 5]; -/* @@? 16:1 Error TypeError: Invalid left-hand side of assignment expression */ -/* @@? 16:2 Error TypeError: Unresolved reference a */ -/* @@? 16:5 Error TypeError: Unresolved reference b */ -/* @@? 16:11 Error TypeError: Unresolved reference rest */ + +/* @@? 16:1 Error Semantic error ESE0025: Invalid left-hand side of assignment expression */ +/* @@? 16:2 Error Semantic error ESE0143: Unresolved reference a */ +/* @@? 16:5 Error Semantic error ESE0143: Unresolved reference b */ +/* @@? 16:11 Error Semantic error ESE0143: Unresolved reference rest */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/circular_dependency_crash.ets b/ets2panda/test/ast/compiler/ets/circular_dependency_crash.ets index 5315c5449b..63f64ee10d 100644 --- a/ets2panda/test/ast/compiler/ets/circular_dependency_crash.ets +++ b/ets2panda/test/ast/compiler/ets/circular_dependency_crash.ets @@ -17,5 +17,5 @@ function foo() { let s = "2".concat(s).concat("4"); } -/* @@? 17:13 Error TypeError: Circular call function */ -/* @@? 17:24 Error TypeError: Variable 's' is accessed before it's initialization. */ \ No newline at end of file +/* @@? 17:13 Error Semantic error ESE0381: Circular call function */ +/* @@? 17:24 Error Semantic error ESE0365: Variable 's' is accessed before it's initialization. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/circular_inheritance.ets b/ets2panda/test/ast/compiler/ets/circular_inheritance.ets index 3039b89682..e593f65527 100644 --- a/ets2panda/test/ast/compiler/ets/circular_inheritance.ets +++ b/ets2panda/test/ast/compiler/ets/circular_inheritance.ets @@ -26,5 +26,6 @@ class cls implements I1 { foo2():void {} } -/* @@? 16:11 Error TypeError: Cyclic inheritance involving I1. */ + +/* @@? 16:11 Error Semantic error ESE0310: Cyclic inheritance involving I1. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/circular_inheritance_class.ets b/ets2panda/test/ast/compiler/ets/circular_inheritance_class.ets index d6f8d2deb5..38cda332c9 100644 --- a/ets2panda/test/ast/compiler/ets/circular_inheritance_class.ets +++ b/ets2panda/test/ast/compiler/ets/circular_inheritance_class.ets @@ -30,5 +30,6 @@ class C extends A { } } -/* @@? 16:7 Error TypeError: Cyclic inheritance involving A. */ + +/* @@? 16:7 Error Semantic error ESE0310: Cyclic inheritance involving A. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/circular_inheritance_parameter.ets b/ets2panda/test/ast/compiler/ets/circular_inheritance_parameter.ets index a7bb4cc136..be26704c5c 100644 --- a/ets2panda/test/ast/compiler/ets/circular_inheritance_parameter.ets +++ b/ets2panda/test/ast/compiler/ets/circular_inheritance_parameter.ets @@ -17,5 +17,6 @@ class D{ f7(x: string, y: D.f7){} } -/* @@? 16:8 Error TypeError: Circular dependency detected for identifier: D */ -/* @@? 17:22 Error TypeError: 'f7' type does not exist. */ + +/* @@? 16:8 Error Semantic error ESE0308: Circular dependency detected for identifier: D */ +/* @@? 17:22 Error Semantic error ESE0070: 'f7' type does not exist. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/circular_unfold.ets b/ets2panda/test/ast/compiler/ets/circular_unfold.ets index 6fabd26be9..72481ce3d5 100644 --- a/ets2panda/test/ast/compiler/ets/circular_unfold.ets +++ b/ets2panda/test/ast/compiler/ets/circular_unfold.ets @@ -19,7 +19,8 @@ function foo() { return b - a } -/* @@? 17:11 Error TypeError: Circular dependency detected for identifier: a */ -/* @@? 17:15 Error TypeError: Variable 'a' is accessed before it's initialization. */ -/* @@? 18:11 Error TypeError: Circular dependency detected for identifier: b */ -/* @@? 18:15 Error TypeError: Variable 'b' is accessed before it's initialization. */ + +/* @@? 17:11 Error Semantic error ESE0308: Circular dependency detected for identifier: a */ +/* @@? 17:15 Error Semantic error ESE0365: Variable 'a' is accessed before it's initialization. */ +/* @@? 18:11 Error Semantic error ESE0308: Circular dependency detected for identifier: b */ +/* @@? 18:15 Error Semantic error ESE0365: Variable 'b' is accessed before it's initialization. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/circular_variable_init.ets b/ets2panda/test/ast/compiler/ets/circular_variable_init.ets index 106ae6f38c..3c9e49159c 100644 --- a/ets2panda/test/ast/compiler/ets/circular_variable_init.ets +++ b/ets2panda/test/ast/compiler/ets/circular_variable_init.ets @@ -43,13 +43,14 @@ function main() { let maind = mainc; } -/* @@? 17:16 Warning Warning: The instance field initializer expression cannot use the this. */ -/* @@? 18:12 Error TypeError: Circular dependency detected for identifier: b */ -/* @@? 18:16 Warning Warning: The instance field initializer expression cannot use the this. */ -/* @@? 23:19 Error TypeError: Circular dependency detected for identifier: b */ -/* @@? 31:15 Error TypeError: Unresolved reference globalb */ -/* @@? 34:5 Error TypeError: Circular dependency detected for identifier: globald */ -/* @@? 37:7 Error TypeError: Circular dependency detected for identifier: constb */ -/* @@? 40:17 Error TypeError: Unresolved reference mainb */ -/* @@? 42:17 Error TypeError: Variable 'maind' is accessed before it's initialization. */ -/* @@? 43:9 Error TypeError: Circular dependency detected for identifier: maind */ + +/* @@? 17:16 Warning Warning W0010: The instance field initializer expression cannot use the this. */ +/* @@? 18:12 Error Semantic error ESE0308: Circular dependency detected for identifier: b */ +/* @@? 18:16 Warning Warning W0010: The instance field initializer expression cannot use the this. */ +/* @@? 23:19 Error Semantic error ESE0308: Circular dependency detected for identifier: b */ +/* @@? 31:15 Error Semantic error ESE0143: Unresolved reference globalb */ +/* @@? 34:5 Error Semantic error ESE0308: Circular dependency detected for identifier: globald */ +/* @@? 37:7 Error Semantic error ESE0308: Circular dependency detected for identifier: constb */ +/* @@? 40:17 Error Semantic error ESE0143: Unresolved reference mainb */ +/* @@? 42:17 Error Semantic error ESE0365: Variable 'maind' is accessed before it's initialization. */ +/* @@? 43:9 Error Semantic error ESE0308: Circular dependency detected for identifier: maind */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/class_cyclic_constructor.ets b/ets2panda/test/ast/compiler/ets/class_cyclic_constructor.ets index 89afebb59c..c2a4f658bc 100644 --- a/ets2panda/test/ast/compiler/ets/class_cyclic_constructor.ets +++ b/ets2panda/test/ast/compiler/ets/class_cyclic_constructor.ets @@ -29,25 +29,26 @@ class A { } } -/* @@? 23:23 Error TypeError: Only abstract or native methods can't have body. */ -/* @@? 24:9 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ -/* @@? 24:9 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 24:9 Error SyntaxError: Unexpected token 'let'. */ -/* @@? 24:9 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 24:20 Error SyntaxError: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ -/* @@? 24:21 Error SyntaxError: Unexpected token '{'. */ -/* @@? 24:23 Error SyntaxError: Field type annotation expected. */ -/* @@? 24:23 Error SyntaxError: Unexpected token '.'. */ -/* @@? 24:31 Error SyntaxError: Field type annotation expected. */ -/* @@? 24:34 Error SyntaxError: Unexpected token '='. */ -/* @@? 24:36 Error SyntaxError: Unexpected token '{'. */ -/* @@? 24:38 Error TypeError: Unresolved reference caches */ -/* @@? 25:21 Error TypeError: The function or method being called needs a rest parameter to accept arguments passed via the spread operator. */ -/* @@? 25:21 Error TypeError: No matching construct signature for class_cyclic_constructor.A(...tuple) */ -/* @@? 25:30 Error TypeError: Unresolved reference tuple */ -/* @@? 26:31 Error TypeError: Property 'bar' does not exist on type 'A' */ -/* @@? 27:5 Error SyntaxError: Unexpected token ')'. */ -/* @@? 27:7 Error SyntaxError: Unexpected token '{'. */ -/* @@? 28:9 Error TypeError: 'this' cannot be referenced from a static context */ -/* @@? 28:14 Error TypeError: Property 'x' does not exist on type 'ETSGLOBAL' */ -/* @@? 30:1 Error SyntaxError: Unexpected token '}'. */ + +/* @@? 23:23 Error Semantic error ESE0017: Only abstract or native methods can't have body. */ +/* @@? 24:9 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ +/* @@? 24:9 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 24:9 Error Syntax error ESY0227: Unexpected token 'let'. */ +/* @@? 24:9 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 24:20 Error Syntax error ESY177354: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ +/* @@? 24:21 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 24:23 Error Syntax error ESY0121: Field type annotation expected. */ +/* @@? 24:23 Error Syntax error ESY0227: Unexpected token '.'. */ +/* @@? 24:31 Error Syntax error ESY0121: Field type annotation expected. */ +/* @@? 24:34 Error Syntax error ESY0227: Unexpected token '='. */ +/* @@? 24:36 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 24:38 Error Semantic error ESE0143: Unresolved reference caches */ +/* @@? 25:21 Error Semantic error ESE44192: The function or method being called needs a rest parameter to accept arguments passed via the spread operator. */ +/* @@? 25:21 Error Semantic error ESE0127: No matching construct signature for class_cyclic_constructor.A(...tuple) */ +/* @@? 25:30 Error Semantic error ESE0143: Unresolved reference tuple */ +/* @@? 26:31 Error Semantic error ESE0087: Property 'bar' does not exist on type 'A' */ +/* @@? 27:5 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 27:7 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 28:9 Error Semantic error ESE0202: 'this' cannot be referenced from a static context */ +/* @@? 28:14 Error Semantic error ESE0087: Property 'x' does not exist on type 'ETSGLOBAL' */ +/* @@? 30:1 Error Syntax error ESY0227: Unexpected token '}'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/class_field_accessor_name_conflict.ets b/ets2panda/test/ast/compiler/ets/class_field_accessor_name_conflict.ets index 143c4fd61e..36e28d145c 100644 --- a/ets2panda/test/ast/compiler/ets/class_field_accessor_name_conflict.ets +++ b/ets2panda/test/ast/compiler/ets/class_field_accessor_name_conflict.ets @@ -28,4 +28,4 @@ get id(this : Process) : number /* @@ label */{ return this.id; } -/* @@@ label Error TypeError: The extension accessor or extension function 'id' has the same name with field of class Process */ \ No newline at end of file +/* @@@ label Error Semantic error ESE0079: The extension accessor or extension function 'id' has the same name with field of class Process */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/class_inheritance.ets b/ets2panda/test/ast/compiler/ets/class_inheritance.ets index 78e049e51a..f7b518318a 100644 --- a/ets2panda/test/ast/compiler/ets/class_inheritance.ets +++ b/ets2panda/test/ast/compiler/ets/class_inheritance.ets @@ -21,5 +21,5 @@ class BBB extends AAA { objectProp = {name: 'Jone', age: 30}; } -/* @@? 17:5 Error TypeError: Cannot infer type for objectProp because class composite needs an explicit target type */ -/* @@? 21:5 Error TypeError: Cannot infer type for objectProp because class composite needs an explicit target type */ \ No newline at end of file +/* @@? 17:5 Error Semantic error ESE0174: Cannot infer type for objectProp because class composite needs an explicit target type */ +/* @@? 21:5 Error Semantic error ESE0174: Cannot infer type for objectProp because class composite needs an explicit target type */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/class_literal.ets b/ets2panda/test/ast/compiler/ets/class_literal.ets index 6162acc111..25bb42e5d8 100644 --- a/ets2panda/test/ast/compiler/ets/class_literal.ets +++ b/ets2panda/test/ast/compiler/ets/class_literal.ets @@ -22,4 +22,5 @@ let rectangle = class { width: number; } -/* @@? 26:1 Error TypeError: Class literal is not yet supported. */ + +/* @@? 26:82 Error Semantic error ESE0020: Class literal is not yet supported. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/class_return_as_object.ets b/ets2panda/test/ast/compiler/ets/class_return_as_object.ets index c4b77979fb..86f6c62add 100644 --- a/ets2panda/test/ast/compiler/ets/class_return_as_object.ets +++ b/ets2panda/test/ast/compiler/ets/class_return_as_object.ets @@ -22,4 +22,4 @@ function getExampleClass() { const exampleClassReference = getExampleClass; exampleClassReference().toString(); -/* @@? 19:12 Error SyntaxError: Class cannot be used as object. */ \ No newline at end of file +/* @@? 19:12 Error Syntax error ESY0318: Class cannot be used as object. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/class_without_closing_parentheses.ets b/ets2panda/test/ast/compiler/ets/class_without_closing_parentheses.ets index 2926286b81..e09472b5a3 100644 --- a/ets2panda/test/ast/compiler/ets/class_without_closing_parentheses.ets +++ b/ets2panda/test/ast/compiler/ets/class_without_closing_parentheses.ets @@ -27,14 +27,15 @@ export default class TreeMap implements ReadonlyTreeMap { } } -/* @@? 16:47 Error TypeError: Cannot find type 'ReadonlyTreeMap'. */ -/* @@? 16:47 Error TypeError: Interface expected here. */ -/* @@? 18:39 Error TypeError: Cannot find type 'TreeMapEntry'. */ -/* @@? 19:9 Error SyntaxError: Unexpected token 'export'. */ -/* @@? 19:16 Error SyntaxError: Unexpected token 'default'. */ -/* @@? 19:24 Error SyntaxError: Unexpected token 'namespace'. */ -/* @@? 19:24 Error SyntaxError: Namespace is allowed only at the top level or inside a namespace. */ -/* @@? 21:15 Error TypeError: Variable 'buffer' has already been declared. */ -/* @@? 21:15 Error TypeError: Merging declarations is not supported, please keep all definitions of classes, interfaces and enums compact in the codebase! */ -/* @@? 24:32 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@? 26:20 Error TypeError: Namespace 'buffer' cannot be used as a type. */ + +/* @@? 16:47 Error Semantic error ESE0371: Cannot find type 'ReadonlyTreeMap'. */ +/* @@? 16:47 Error Semantic error ESE0179: Interface expected here. */ +/* @@? 18:39 Error Semantic error ESE0371: Cannot find type 'TreeMapEntry'. */ +/* @@? 19:9 Error Syntax error ESY0227: Unexpected token 'export'. */ +/* @@? 19:16 Error Syntax error ESY0227: Unexpected token 'default'. */ +/* @@? 19:24 Error Syntax error ESY0227: Unexpected token 'namespace'. */ +/* @@? 19:24 Error Syntax error ESY0134: Namespace is allowed only at the top level or inside a namespace. */ +/* @@? 21:15 Error Semantic error ESE0351: Variable 'buffer' has already been declared. */ +/* @@? 21:15 Error Semantic error ESE0370: Merging declarations is not supported, please keep all definitions of classes, interfaces and enums compact in the codebase! */ +/* @@? 24:32 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 26:20 Error Semantic error ESE0158: Namespace 'buffer' cannot be used as a type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/classproperty_init_neg.ets b/ets2panda/test/ast/compiler/ets/classproperty_init_neg.ets index 4f419d33d4..24935e94d4 100644 --- a/ets2panda/test/ast/compiler/ets/classproperty_init_neg.ets +++ b/ets2panda/test/ast/compiler/ets/classproperty_init_neg.ets @@ -15,4 +15,4 @@ class A {b5 : boolean = /* @@ label1 */7;} -/* @@@ label1 Error TypeError: Type 'Int' cannot be assigned to type 'Boolean' */ \ No newline at end of file +/* @@@ label1 Error Semantic error ESE0318: Type 'Int' cannot be assigned to type 'Boolean' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/conditional-type-alias.ets b/ets2panda/test/ast/compiler/ets/conditional-type-alias.ets index d852f65291..e50588c6ad 100644 --- a/ets2panda/test/ast/compiler/ets/conditional-type-alias.ets +++ b/ets2panda/test/ast/compiler/ets/conditional-type-alias.ets @@ -16,9 +16,10 @@ // (arkts-no-conditional-types) type X = T extends number ? T : string -/* @@? 17:15 Error SyntaxError: Unexpected token 'extends'. */ -/* @@? 17:15 Error TypeError: Conditional type aliases are not supported. Introduce a new type with constraints explicitly, or rewrite logic using Object! */ -/* @@? 17:23 Error SyntaxError: Unexpected token 'number'. */ -/* @@? 17:23 Error TypeError: Type name 'number' used in the wrong context */ -/* @@? 17:32 Error TypeError: Unresolved reference T */ -/* @@? 17:36 Error TypeError: Type name 'string' used in the wrong context */ + +/* @@? 17:15 Error Syntax error ESY0227: Unexpected token 'extends'. */ +/* @@? 17:15 Error Semantic error ESE136365: Conditional type aliases are not supported. Introduce a new type with constraints explicitly, or rewrite logic using Object! */ +/* @@? 17:23 Error Syntax error ESY0227: Unexpected token 'number'. */ +/* @@? 17:23 Error Semantic error ESE0144: Type name 'number' used in the wrong context */ +/* @@? 17:32 Error Semantic error ESE0143: Unresolved reference T */ +/* @@? 17:36 Error Semantic error ESE0144: Type name 'string' used in the wrong context */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/constExpressionAsTypeReference.ets b/ets2panda/test/ast/compiler/ets/constExpressionAsTypeReference.ets index ece14278ce..ce1545d230 100644 --- a/ets2panda/test/ast/compiler/ets/constExpressionAsTypeReference.ets +++ b/ets2panda/test/ast/compiler/ets/constExpressionAsTypeReference.ets @@ -16,4 +16,5 @@ const constExpr = "123" let variable: constExpr = 42 -/* @@? 17:15 Error TypeError: Cannot find type 'constExpr'. */ + +/* @@? 17:15 Error Semantic error ESE0371: Cannot find type 'constExpr'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/constExpressionAsTypeReference1.ets b/ets2panda/test/ast/compiler/ets/constExpressionAsTypeReference1.ets index 60cb72873e..b3746cf0a8 100644 --- a/ets2panda/test/ast/compiler/ets/constExpressionAsTypeReference1.ets +++ b/ets2panda/test/ast/compiler/ets/constExpressionAsTypeReference1.ets @@ -28,6 +28,7 @@ class A { const constExpr = new A let variable: constExpr.constClass.constField = 42 -/* @@? 29:15 Error TypeError: Cannot find type 'constExpr'. */ -/* @@? 29:25 Error TypeError: 'constClass' type does not exist. */ -/* @@? 29:36 Error TypeError: 'constField' type does not exist. */ + +/* @@? 29:15 Error Semantic error ESE0371: Cannot find type 'constExpr'. */ +/* @@? 29:25 Error Semantic error ESE0070: 'constClass' type does not exist. */ +/* @@? 29:36 Error Semantic error ESE0070: 'constField' type does not exist. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/constExpressionAsTypeReference2.ets b/ets2panda/test/ast/compiler/ets/constExpressionAsTypeReference2.ets index ba90d65351..e605f7e719 100644 --- a/ets2panda/test/ast/compiler/ets/constExpressionAsTypeReference2.ets +++ b/ets2panda/test/ast/compiler/ets/constExpressionAsTypeReference2.ets @@ -20,5 +20,6 @@ class A { const constExpr = new A let variable: constExpr.constField = 42 -/* @@? 21:15 Error TypeError: Cannot find type 'constExpr'. */ -/* @@? 21:25 Error TypeError: 'constField' type does not exist. */ + +/* @@? 21:15 Error Semantic error ESE0371: Cannot find type 'constExpr'. */ +/* @@? 21:25 Error Semantic error ESE0070: 'constField' type does not exist. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/const_unfold_self_dependence01.ets b/ets2panda/test/ast/compiler/ets/const_unfold_self_dependence01.ets index 7317988cd7..ea944e6ec9 100644 --- a/ets2panda/test/ast/compiler/ets/const_unfold_self_dependence01.ets +++ b/ets2panda/test/ast/compiler/ets/const_unfold_self_dependence01.ets @@ -15,4 +15,5 @@ const a = a + 1; -/* @@? 16:7 Error TypeError: Circular dependency detected for identifier: a */ + +/* @@? 16:7 Error Semantic error ESE0308: Circular dependency detected for identifier: a */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/const_unfold_self_dependence02.ets b/ets2panda/test/ast/compiler/ets/const_unfold_self_dependence02.ets index 0d9c748575..7fcb878ab4 100644 --- a/ets2panda/test/ast/compiler/ets/const_unfold_self_dependence02.ets +++ b/ets2panda/test/ast/compiler/ets/const_unfold_self_dependence02.ets @@ -20,4 +20,5 @@ const e = f + 1; const f = g + 1; const g = b + 1; -/* @@? 17:7 Error TypeError: Circular dependency detected for identifier: c */ + +/* @@? 17:7 Error Semantic error ESE0308: Circular dependency detected for identifier: c */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/constantExpressionLowering.ets b/ets2panda/test/ast/compiler/ets/constantExpressionLowering.ets index 7c11d04fe1..9b47df01a2 100644 --- a/ets2panda/test/ast/compiler/ets/constantExpressionLowering.ets +++ b/ets2panda/test/ast/compiler/ets/constantExpressionLowering.ets @@ -22,9 +22,10 @@ const a = +(flag) const b = -(flag) const c = ~(flag) -/* @@? 21:11 Error TypeError: Wrong operand type for unary expression */ -/* @@? 21:12 Error TypeError: Bad operand type, the type of the operand must be numeric type. */ -/* @@? 22:11 Error TypeError: Wrong operand type for unary expression */ -/* @@? 22:12 Error TypeError: Bad operand type, the type of the operand must be numeric type. */ -/* @@? 23:11 Error TypeError: Wrong operand type for unary expression */ -/* @@? 23:12 Error TypeError: Bad operand type, the type of the operand must be numeric type. */ + +/* @@? 21:11 Error Semantic error ESE0347: Wrong operand type for unary expression */ +/* @@? 21:12 Error Semantic error ESE0066: Bad operand type, the type of the operand must be numeric type. */ +/* @@? 22:11 Error Semantic error ESE0347: Wrong operand type for unary expression */ +/* @@? 22:12 Error Semantic error ESE0066: Bad operand type, the type of the operand must be numeric type. */ +/* @@? 23:11 Error Semantic error ESE0347: Wrong operand type for unary expression */ +/* @@? 23:12 Error Semantic error ESE0066: Bad operand type, the type of the operand must be numeric type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/constantExpressionLowering_2.ets b/ets2panda/test/ast/compiler/ets/constantExpressionLowering_2.ets index 3a2315963a..5c9ee43ff8 100644 --- a/ets2panda/test/ast/compiler/ets/constantExpressionLowering_2.ets +++ b/ets2panda/test/ast/compiler/ets/constantExpressionLowering_2.ets @@ -17,5 +17,6 @@ enum CCCCCCCCC {} CCCCCCCCC[foo()].foo(); -/* @@? 18:11 Error TypeError: Unresolved reference foo */ -/* @@? 18:18 Error TypeError: Property 'foo' does not exist on type 'String' */ + +/* @@? 18:11 Error Semantic error ESE0143: Unresolved reference foo */ +/* @@? 18:18 Error Semantic error ESE0087: Property 'foo' does not exist on type 'String' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/constant_expression_test/constant_expression_test.ets b/ets2panda/test/ast/compiler/ets/constant_expression_test/constant_expression_test.ets index 8a8a7fa511..473a0d26c1 100644 --- a/ets2panda/test/ast/compiler/ets/constant_expression_test/constant_expression_test.ets +++ b/ets2panda/test/ast/compiler/ets/constant_expression_test/constant_expression_test.ets @@ -19,5 +19,6 @@ function main(): int { return 0; } -/* @@@ label Error TypeError: Unresolved reference MathPartialSums */ -/* @@@ label Error TypeError: Only constant expression allowed for element access on tuples. */ + +/* @@@ label Error Semantic error ESE0143: Unresolved reference MathPartialSums */ +/* @@@ label Error Semantic error ESE0199: Only constant expression allowed for element access on tuples. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/constant_variable_import_tests/enum_import_constant.ets b/ets2panda/test/ast/compiler/ets/constant_variable_import_tests/enum_import_constant.ets index 8685ee6c0d..78a86e7df1 100644 --- a/ets2panda/test/ast/compiler/ets/constant_variable_import_tests/enum_import_constant.ets +++ b/ets2panda/test/ast/compiler/ets/constant_variable_import_tests/enum_import_constant.ets @@ -20,4 +20,4 @@ enum Color { C = /* @@ label */constVar } -/* @@@ label Error TypeError: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ \ No newline at end of file +/* @@@ label Error Semantic error ESE0342: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/conversion_Double-to-Int_typeerror.ets b/ets2panda/test/ast/compiler/ets/conversion_Double-to-Int_typeerror.ets index 79d20a19ee..28358f6bc6 100644 --- a/ets2panda/test/ast/compiler/ets/conversion_Double-to-Int_typeerror.ets +++ b/ets2panda/test/ast/compiler/ets/conversion_Double-to-Int_typeerror.ets @@ -18,4 +18,5 @@ function main(): void { return; } -/* @@@ label Error TypeError: Type 'Double' cannot be assigned to type 'Int' */ + +/* @@@ label Error Semantic error ESE0318: Type 'Double' cannot be assigned to type 'Int' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/conversion_Double-to-Int_w_try_stmt_typerror.ets b/ets2panda/test/ast/compiler/ets/conversion_Double-to-Int_w_try_stmt_typerror.ets index 6dd1de85e1..e3e7210394 100644 --- a/ets2panda/test/ast/compiler/ets/conversion_Double-to-Int_w_try_stmt_typerror.ets +++ b/ets2panda/test/ast/compiler/ets/conversion_Double-to-Int_w_try_stmt_typerror.ets @@ -21,5 +21,6 @@ function getD(d : double): Int { function main(): void { } -/* @@@ label Error TypeError: Type 'Double' is not compatible with the enclosing method's return type 'Int' */ -/* @@@ label1 Error TypeError: Type 'Double' is not compatible with the enclosing method's return type 'Int' */ + +/* @@@ label Error Semantic error ESE0091: Type 'Double' is not compatible with the enclosing method's return type 'Int' */ +/* @@@ label1 Error Semantic error ESE0091: Type 'Double' is not compatible with the enclosing method's return type 'Int' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/conversion_double_to_float.ets b/ets2panda/test/ast/compiler/ets/conversion_double_to_float.ets index 18a14085dc..9732e49d04 100644 --- a/ets2panda/test/ast/compiler/ets/conversion_double_to_float.ets +++ b/ets2panda/test/ast/compiler/ets/conversion_double_to_float.ets @@ -30,9 +30,10 @@ function main() { foo(NaN); } -/* @@? 28:5 Error TypeError: No matching call signature for foo(Double) */ -/* @@? 28:9 Error TypeError: Type 'Double' is not compatible with type 'Float' at index 1 */ -/* @@? 29:5 Error TypeError: No matching call signature for foo(Double) */ -/* @@? 29:9 Error TypeError: Type 'Double' is not compatible with type 'Float' at index 1 */ -/* @@? 30:5 Error TypeError: No matching call signature for foo(Double) */ -/* @@? 30:9 Error TypeError: Type 'Double' is not compatible with type 'Float' at index 1 */ + +/* @@? 28:5 Error Semantic error ESE0127: No matching call signature for foo(Double) */ +/* @@? 28:9 Error Semantic error ESE0046: Type 'Double' is not compatible with type 'Float' at index 1 */ +/* @@? 29:5 Error Semantic error ESE0127: No matching call signature for foo(Double) */ +/* @@? 29:9 Error Semantic error ESE0046: Type 'Double' is not compatible with type 'Float' at index 1 */ +/* @@? 30:5 Error Semantic error ESE0127: No matching call signature for foo(Double) */ +/* @@? 30:9 Error Semantic error ESE0046: Type 'Double' is not compatible with type 'Float' at index 1 */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/conversion_w_functions_w_try-stmts.ets b/ets2panda/test/ast/compiler/ets/conversion_w_functions_w_try-stmts.ets index cd8dc86933..7d3050e5c4 100644 --- a/ets2panda/test/ast/compiler/ets/conversion_w_functions_w_try-stmts.ets +++ b/ets2panda/test/ast/compiler/ets/conversion_w_functions_w_try-stmts.ets @@ -95,4 +95,5 @@ function main(): void { uglifruit(); */ } -/* @@@ label Warning Warning: Finally clause cannot complete normally */ + +/* @@@ label Warning Warning W0021: Finally clause cannot complete normally */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/conversions/implicit/float_literal_implicit_conversion.ets b/ets2panda/test/ast/compiler/ets/conversions/implicit/float_literal_implicit_conversion.ets index 8b5e3b529a..de9f4a5a42 100644 --- a/ets2panda/test/ast/compiler/ets/conversions/implicit/float_literal_implicit_conversion.ets +++ b/ets2panda/test/ast/compiler/ets/conversions/implicit/float_literal_implicit_conversion.ets @@ -38,9 +38,9 @@ d = 5 d = 5.0 d = 5.f -/* @@@ label_i1 Error TypeError: Type 'Double' cannot be assigned to type 'Int' */ -/* @@@ label_i2 Error TypeError: Type 'Float' cannot be assigned to type 'Int' */ -/* @@@ label_i3 Error TypeError: Type 'Double' cannot be assigned to type 'Int' */ -/* @@@ label_i4 Error TypeError: Type 'Float' cannot be assigned to type 'Int' */ -/* @@@ label_i5 Error TypeError: Type 'Double' cannot be assigned to type 'Int' */ -/* @@@ label_i6 Error TypeError: Type 'Float' cannot be assigned to type 'Int' */ \ No newline at end of file +/* @@@ label_i1 Error Semantic error ESE0318: Type 'Double' cannot be assigned to type 'Int' */ +/* @@@ label_i2 Error Semantic error ESE0318: Type 'Float' cannot be assigned to type 'Int' */ +/* @@@ label_i3 Error Semantic error ESE0318: Type 'Double' cannot be assigned to type 'Int' */ +/* @@@ label_i4 Error Semantic error ESE0318: Type 'Float' cannot be assigned to type 'Int' */ +/* @@@ label_i5 Error Semantic error ESE0318: Type 'Double' cannot be assigned to type 'Int' */ +/* @@@ label_i6 Error Semantic error ESE0318: Type 'Float' cannot be assigned to type 'Int' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/debugger-statement.ets b/ets2panda/test/ast/compiler/ets/debugger-statement.ets index 0f2f52cc71..1f8b595334 100644 --- a/ets2panda/test/ast/compiler/ets/debugger-statement.ets +++ b/ets2panda/test/ast/compiler/ets/debugger-statement.ets @@ -22,4 +22,4 @@ function main(): void { } } -/* @@? 20:9 Error SyntaxError: Debugger statement is not supported! */ \ No newline at end of file +/* @@? 20:9 Error Syntax error ESY0299: Debugger statement is not supported! */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/declaration_merging.ets b/ets2panda/test/ast/compiler/ets/declaration_merging.ets index b553f41948..ab1a425c6b 100644 --- a/ets2panda/test/ast/compiler/ets/declaration_merging.ets +++ b/ets2panda/test/ast/compiler/ets/declaration_merging.ets @@ -27,6 +27,6 @@ } } -/* @@? 24:8 Error TypeError: Variable 'C' has already been declared. */ -/* @@? 24:8 Error TypeError: Merging declarations is not supported, please keep all definitions of classes, interfaces and enums compact in the codebase! */ - \ No newline at end of file + + /* @@? 24:8 Error Semantic error ESE0351: Variable 'C' has already been declared. */ +/* @@? 24:8 Error Semantic error ESE0370: Merging declarations is not supported, please keep all definitions of classes, interfaces and enums compact in the codebase! */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/declareNameSpace.ets b/ets2panda/test/ast/compiler/ets/declareNameSpace.ets index a077650b6a..470234ae28 100644 --- a/ets2panda/test/ast/compiler/ets/declareNameSpace.ets +++ b/ets2panda/test/ast/compiler/ets/declareNameSpace.ets @@ -24,5 +24,6 @@ declare namespace A { } -/* @@@ label Error TypeError: Variable 'c' has already been declared. */ + +/* @@@ label Error Semantic error ESE0351: Variable 'c' has already been declared. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/declareType_neg_1.ets b/ets2panda/test/ast/compiler/ets/declareType_neg_1.ets index 3ba2dfbb74..7aaa8e992f 100644 --- a/ets2panda/test/ast/compiler/ets/declareType_neg_1.ets +++ b/ets2panda/test/ast/compiler/ets/declareType_neg_1.ets @@ -15,7 +15,8 @@ declare const type typeA = int; -/* @@? 16:20 Error SyntaxError: Variable must be initialized or it's type must be declared. */ -/* @@? 16:20 Error SyntaxError: Unexpected token 'typeA'. */ -/* @@? 16:20 Error TypeError: Unresolved reference typeA */ -/* @@? 16:28 Error SyntaxError: Unexpected token 'int'. */ + +/* @@? 16:20 Error Syntax error ESY0105: Variable must be initialized or it's type must be declared. */ +/* @@? 16:20 Error Syntax error ESY0227: Unexpected token 'typeA'. */ +/* @@? 16:20 Error Semantic error ESE0143: Unresolved reference typeA */ +/* @@? 16:28 Error Syntax error ESY0227: Unexpected token 'int'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/declareType_neg_2.ets b/ets2panda/test/ast/compiler/ets/declareType_neg_2.ets index ba03a78da1..71e1268d81 100644 --- a/ets2panda/test/ast/compiler/ets/declareType_neg_2.ets +++ b/ets2panda/test/ast/compiler/ets/declareType_neg_2.ets @@ -21,4 +21,5 @@ declare type type_utility = Partial; let a : type_utility = {description : 1234} -/* @@? 22:39 Error TypeError: Type 'Int' is not compatible with type 'String|undefined' at property 'description' */ + +/* @@? 22:39 Error Semantic error ESE0319: Type 'Int' is not compatible with type 'String|undefined' at property 'description' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/declareType_neg_3.ets b/ets2panda/test/ast/compiler/ets/declareType_neg_3.ets index ee618b7cbe..36d80a0267 100644 --- a/ets2panda/test/ast/compiler/ets/declareType_neg_3.ets +++ b/ets2panda/test/ast/compiler/ets/declareType_neg_3.ets @@ -22,5 +22,6 @@ declare type type_utility = Required; let a : type_utility = {title : "declare type alias test"} -/* @@? 22:24 Error TypeError: Class property 'description' needs to be initialized for Required. */ + +/* @@? 22:24 Error Semantic error ESE0226: Class property 'description' needs to be initialized for Required. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/declareType_neg_4.ets b/ets2panda/test/ast/compiler/ets/declareType_neg_4.ets index 76fdc63e58..bd3982848b 100644 --- a/ets2panda/test/ast/compiler/ets/declareType_neg_4.ets +++ b/ets2panda/test/ast/compiler/ets/declareType_neg_4.ets @@ -21,5 +21,6 @@ let a : int[] = [1,2,3] let b : type_array_alias = a; -/* @@? 21:37 Error TypeError: Type 'Array' cannot be assigned to type 'Array>|Array' */ + +/* @@? 21:37 Error Semantic error ESE0318: Type 'Array' cannot be assigned to type 'Array>|Array' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/declareType_neg_import.ets b/ets2panda/test/ast/compiler/ets/declareType_neg_import.ets index 0b54a5df0f..e2811395d9 100644 --- a/ets2panda/test/ast/compiler/ets/declareType_neg_import.ets +++ b/ets2panda/test/ast/compiler/ets/declareType_neg_import.ets @@ -16,5 +16,6 @@ import typeA from './declareType_neg_export' let a : typeA = new Array() -/* @@? 16:22 Error TypeError: Type 'Array' cannot be assigned to type 'Array' */ + +/* @@? 16:22 Error Semantic error ESE0318: Type 'Array' cannot be assigned to type 'Array' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/default_export/export_default_bad1.ets b/ets2panda/test/ast/compiler/ets/default_export/export_default_bad1.ets index ac3975abae..c46453bcf9 100644 --- a/ets2panda/test/ast/compiler/ets/default_export/export_default_bad1.ets +++ b/ets2panda/test/ast/compiler/ets/default_export/export_default_bad1.ets @@ -26,4 +26,5 @@ class B { export default {A, B} -/* @@? 27:20 Error SyntaxError: export default is not allowed to export multiple specifiers. */ + +/* @@? 27:20 Error Syntax error ESY0005: export default is not allowed to export multiple specifiers. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/default_export/export_default_bad2.ets b/ets2panda/test/ast/compiler/ets/default_export/export_default_bad2.ets index 4f1f8f9fb0..20633dee9b 100644 --- a/ets2panda/test/ast/compiler/ets/default_export/export_default_bad2.ets +++ b/ets2panda/test/ast/compiler/ets/default_export/export_default_bad2.ets @@ -15,4 +15,5 @@ export default * from './export_default1' -/* @@? 16:18 Error SyntaxError: Cannot use 'export default' in re-export context */ + +/* @@? 16:18 Error Syntax error ESY0244: Cannot use 'export default' in re-export context */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/default_param_declare.ets b/ets2panda/test/ast/compiler/ets/default_param_declare.ets index 491faa15e8..0617a38e7a 100644 --- a/ets2panda/test/ast/compiler/ets/default_param_declare.ets +++ b/ets2panda/test/ast/compiler/ets/default_param_declare.ets @@ -17,5 +17,6 @@ declare class A{ foo(/* @@ label1 */a:number = 1, /* @@ label2 */b:int = 2):void } -/* @@@ label1 Error SyntaxError: A parameter initializer is only allowed in a function or constructor implementation. */ -/* @@@ label2 Error SyntaxError: A parameter initializer is only allowed in a function or constructor implementation. */ + +/* @@@ label1 Error Syntax error ESY0328: A parameter initializer is only allowed in a function or constructor implementation. */ +/* @@@ label2 Error Syntax error ESY0328: A parameter initializer is only allowed in a function or constructor implementation. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/default_param_lambda.ets b/ets2panda/test/ast/compiler/ets/default_param_lambda.ets index 278627b0f1..79cb56bbf6 100644 --- a/ets2panda/test/ast/compiler/ets/default_param_lambda.ets +++ b/ets2panda/test/ast/compiler/ets/default_param_lambda.ets @@ -17,4 +17,5 @@ function main() { let f : (a: string) => void = (/* @@ label */a = "aaa") => {} } -/* @@@ label Error SyntaxError: Parameter declaration should have an explicit type annotation. */ + +/* @@@ label Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/default_test/export_default.ets b/ets2panda/test/ast/compiler/ets/default_test/export_default.ets index 6bc32fae02..96cbaba8f8 100644 --- a/ets2panda/test/ast/compiler/ets/default_test/export_default.ets +++ b/ets2panda/test/ast/compiler/ets/default_test/export_default.ets @@ -18,9 +18,10 @@ export { val as default }; export { default } from '.'; -/* @@? 19:8 Error TypeError: Only one default export is allowed in a module */ -/* @@? 19:18 Error SyntaxError: Unexpected token, expected 'as'. */ -/* @@? 19:18 Error SyntaxError: Unexpected token '}'. */ -/* @@? 19:20 Error SyntaxError: Cannot find name 'from' to export. */ -/* @@? 19:20 Error SyntaxError: Cannot find name 'gensym%%_anonymous_const' to export. */ -/* @@? 19:25 Error SyntaxError: Unexpected token, expected ',' or '}'. */ + +/* @@? 19:8 Error Semantic error ESE0374: Only one default export is allowed in a module */ +/* @@? 19:18 Error Syntax error ESY0095: Unexpected token, expected 'as'. */ +/* @@? 19:18 Error Syntax error ESY0227: Unexpected token '}'. */ +/* @@? 19:20 Error Syntax error ESY0279: Cannot find name 'from' to export. */ +/* @@? 19:20 Error Syntax error ESY0279: Cannot find name 'gensym%%_anonymous_const' to export. */ +/* @@? 19:25 Error Syntax error ESY0229: Unexpected token, expected ',' or '}'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/default_type_circular_dependency.ets b/ets2panda/test/ast/compiler/ets/default_type_circular_dependency.ets index 973142e608..62167942a6 100644 --- a/ets2panda/test/ast/compiler/ets/default_type_circular_dependency.ets +++ b/ets2panda/test/ast/compiler/ets/default_type_circular_dependency.ets @@ -17,12 +17,13 @@ class Racer { stat; } -/* @@? 17:9 Error TypeError: Only abstract or native methods can't have body. */ -/* @@? 17:16 Error TypeError: Default type of type parameter has circular dependency. */ -/* @@? 17:22 Error TypeError: 'f' type does not exist. */ -/* @@? 17:23 Error SyntaxError: Unexpected token, expected '>'. */ -/* @@? 17:24 Error SyntaxError: Unexpected token, expected '('. */ -/* @@? 17:25 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 17:25 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ -/* @@? 17:25 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 17:25 Error SyntaxError: Unexpected token '>'. */ + +/* @@? 17:9 Error Semantic error ESE0017: Only abstract or native methods can't have body. */ +/* @@? 17:16 Error Semantic error ESE0398: Default type of type parameter has circular dependency. */ +/* @@? 17:22 Error Semantic error ESE0070: 'f' type does not exist. */ +/* @@? 17:23 Error Syntax error ESY0228: Unexpected token, expected '>'. */ +/* @@? 17:24 Error Syntax error ESY0228: Unexpected token, expected '('. */ +/* @@? 17:25 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 17:25 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ +/* @@? 17:25 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 17:25 Error Syntax error ESY0227: Unexpected token '>'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/deleteOperator_n.ets b/ets2panda/test/ast/compiler/ets/deleteOperator_n.ets index b426389b4b..38679a792e 100644 --- a/ets2panda/test/ast/compiler/ets/deleteOperator_n.ets +++ b/ets2panda/test/ast/compiler/ets/deleteOperator_n.ets @@ -20,5 +20,5 @@ class Point { let p = new Point() delete p.y -/* @@? 21:1 Error TypeError: Types cannot be modified at runtime with 'delete'. */ -/* @@? 21:8 Error SyntaxError: Unexpected token 'p'. */ \ No newline at end of file +/* @@? 21:1 Error Semantic error ESE55815: Types cannot be modified at runtime with 'delete'. */ +/* @@? 21:8 Error Syntax error ESY0227: Unexpected token 'p'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/division-by-zero.ets b/ets2panda/test/ast/compiler/ets/division-by-zero.ets index 85b5646d73..e237d4876a 100644 --- a/ets2panda/test/ast/compiler/ets/division-by-zero.ets +++ b/ets2panda/test/ast/compiler/ets/division-by-zero.ets @@ -20,7 +20,8 @@ function main() : void { let mod_long: long = /* @@ label4 */1 % 0; } -/* @@@ label1 Error SyntaxError: Division by zero is not allowed. */ -/* @@@ label2 Error SyntaxError: Division by zero is not allowed. */ -/* @@@ label3 Error SyntaxError: Division by zero is not allowed. */ -/* @@@ label4 Error SyntaxError: Division by zero is not allowed. */ + +/* @@@ label1 Error Syntax error ESY0273: Division by zero is not allowed. */ +/* @@@ label2 Error Syntax error ESY0273: Division by zero is not allowed. */ +/* @@@ label3 Error Syntax error ESY0273: Division by zero is not allowed. */ +/* @@@ label4 Error Syntax error ESY0273: Division by zero is not allowed. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/dynamic-field-declaration.ets b/ets2panda/test/ast/compiler/ets/dynamic-field-declaration.ets index ad2a27ac6c..e5aa950b95 100644 --- a/ets2panda/test/ast/compiler/ets/dynamic-field-declaration.ets +++ b/ets2panda/test/ast/compiler/ets/dynamic-field-declaration.ets @@ -20,4 +20,12 @@ class Point { let p: Point = {x: 1, y: 2} console.log(p["x"]) -/* @@? 21:13 Error TypeError: Object type doesn't have proper index access method. */ \ No newline at end of file +/* @@? 21:1 Error Semantic error ESE0142: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Boolean): void` */ +/* @@? 21:1 Error Semantic error ESE0142: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Byte): void` */ +/* @@? 21:1 Error Semantic error ESE0142: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Short): void` */ +/* @@? 21:1 Error Semantic error ESE0142: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Char): void` */ +/* @@? 21:1 Error Semantic error ESE0142: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Int): void` */ +/* @@? 21:1 Error Semantic error ESE0142: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Long): void` */ +/* @@? 21:1 Error Semantic error ESE0142: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Float): void` */ +/* @@? 21:1 Error Semantic error ESE0142: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Double): void` */ +/* @@? 21:13 Error Semantic error ESE0250: Object type doesn't have proper index access method. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/dynamic_optional_decl.ets b/ets2panda/test/ast/compiler/ets/dynamic_optional_decl.ets new file mode 100644 index 0000000000..9812ca0a2a --- /dev/null +++ b/ets2panda/test/ast/compiler/ets/dynamic_optional_decl.ets @@ -0,0 +1,51 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { optional_foo, A } from "dynamic_import_tests/modules/module" + +function main() { + optional_foo(); + optional_foo(undefined); + optional_foo(new A(10.0, "abc") as A|undefined); + (new A(10.0, "abc")).optional_foo(); + (new A(10.0, "abc")).optional_foo(123.); +} +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { optional_foo, A } from "dynamic_import_tests/modules/module" + +function main() { + optional_foo(); + optional_foo(undefined); + optional_foo(new A(10.0, "abc") as A|undefined); + (new A(10.0, "abc")).optional_foo(); + (new A(10.0, "abc")).optional_foo(123.); +} +/* @@? 40:1 Error Syntax error ESY0226: Import declarations can only be used on the top level and before any other declaration, top level statement or directive. */ +/* @@? 42:1 Error Semantic error ESE0130: Function main is already declared. */ +/* @@? 42:10 Error Semantic error ESE0373: Main overload is not enabled */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/emptyOptionalTypeAnnotation.ets b/ets2panda/test/ast/compiler/ets/emptyOptionalTypeAnnotation.ets index 09828e7932..f2e375eecb 100644 --- a/ets2panda/test/ast/compiler/ets/emptyOptionalTypeAnnotation.ets +++ b/ets2panda/test/ast/compiler/ets/emptyOptionalTypeAnnotation.ets @@ -21,6 +21,7 @@ class Src implements Dep { someMethod? } -/* @@? 17:14 Error SyntaxError: Interface fields must have type annotation. */ -/* @@? 18:1 Error SyntaxError: Invalid Type. */ -/* @@? 21:14 Error SyntaxError: Field type annotation expected. */ + +/* @@? 17:14 Error Syntax error ESY0119: Interface fields must have type annotation. */ +/* @@? 18:1 Error Syntax error ESY0138: Invalid Type. */ +/* @@? 21:14 Error Syntax error ESY0121: Field type annotation expected. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/empty_array_expression.ets b/ets2panda/test/ast/compiler/ets/empty_array_expression.ets index ea4da1ee58..27c88d7ffc 100644 --- a/ets2panda/test/ast/compiler/ets/empty_array_expression.ets +++ b/ets2panda/test/ast/compiler/ets/empty_array_expression.ets @@ -30,11 +30,12 @@ class A{ } } -/* @@@ label1 Error TypeError: Can't resolve array type */ -/* @@@ label2 Error TypeError: Can't resolve array type */ -/* @@@ label3 Error TypeError: Can't resolve array type */ -/* @@@ label4 Error TypeError: Can't resolve array type */ -/* @@@ label5 Error TypeError: Can't resolve array type */ -/* @@@ label6 Error TypeError: Can't resolve array type */ -/* @@@ label7 Error TypeError: Can't resolve array type */ -/* @@@ label8 Error TypeError: Can't resolve array type */ + +/* @@@ label1 Error Semantic error ESE0301: Can't resolve array type */ +/* @@@ label2 Error Semantic error ESE0301: Can't resolve array type */ +/* @@@ label3 Error Semantic error ESE0301: Can't resolve array type */ +/* @@@ label4 Error Semantic error ESE0301: Can't resolve array type */ +/* @@@ label5 Error Semantic error ESE0301: Can't resolve array type */ +/* @@@ label6 Error Semantic error ESE0301: Can't resolve array type */ +/* @@@ label7 Error Semantic error ESE0301: Can't resolve array type */ +/* @@@ label8 Error Semantic error ESE0301: Can't resolve array type */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/empty_tuple_assignmemt.ets b/ets2panda/test/ast/compiler/ets/empty_tuple_assignmemt.ets index 8016318281..09278a393f 100644 --- a/ets2panda/test/ast/compiler/ets/empty_tuple_assignmemt.ets +++ b/ets2panda/test/ast/compiler/ets/empty_tuple_assignmemt.ets @@ -16,4 +16,5 @@ let tuple: [string,number] = /* @@ label */[] -/* @@@ label Error TypeError: Initializer has 0 elements, but tuple requires 2 */ + +/* @@@ label Error Semantic error ESE0231: Initializer has 0 elements, but tuple requires 2 */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/enum-double-to-int.ets b/ets2panda/test/ast/compiler/ets/enum-double-to-int.ets index 98e3d23733..11028d992d 100644 --- a/ets2panda/test/ast/compiler/ets/enum-double-to-int.ets +++ b/ets2panda/test/ast/compiler/ets/enum-double-to-int.ets @@ -24,5 +24,5 @@ function main(): void { let c2: int = /* @@ label2 */Color.Red + Color.Green; } -/* @@@ label1 Error TypeError: Type 'Color' cannot be assigned to type 'Int' */ -/* @@@ label2 Error TypeError: Type 'Double' cannot be assigned to type 'Int' */ \ No newline at end of file +/* @@@ label1 Error Semantic error ESE0318: Type 'Color' cannot be assigned to type 'Int' */ +/* @@@ label2 Error Semantic error ESE0318: Type 'Double' cannot be assigned to type 'Int' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/enum-mixed-types.ets b/ets2panda/test/ast/compiler/ets/enum-mixed-types.ets index 456bb88409..345c66d5b0 100644 --- a/ets2panda/test/ast/compiler/ets/enum-mixed-types.ets +++ b/ets2panda/test/ast/compiler/ets/enum-mixed-types.ets @@ -22,5 +22,5 @@ E = "0xd", } -/* @@? 21:9 Error TypeError: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ -/* @@? 22:9 Error TypeError: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ \ No newline at end of file +/* @@? 21:9 Error Semantic error ESE0342: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ +/* @@? 22:9 Error Semantic error ESE0342: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/enum-to-int-conversion.ets b/ets2panda/test/ast/compiler/ets/enum-to-int-conversion.ets index 6ee37e69b8..5f2fd81d53 100644 --- a/ets2panda/test/ast/compiler/ets/enum-to-int-conversion.ets +++ b/ets2panda/test/ast/compiler/ets/enum-to-int-conversion.ets @@ -20,4 +20,5 @@ let a: int = E.FIRST - /* @@? 16:2 Error TypeError: Type 'Long' cannot be assigned to type 'Int' */ + +/* @@? 16:2 Error Semantic error ESE0318: Type 'Long' cannot be assigned to type 'Int' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/enumConversions.ets b/ets2panda/test/ast/compiler/ets/enumConversions.ets index 353ca83e8f..cedec50083 100644 --- a/ets2panda/test/ast/compiler/ets/enumConversions.ets +++ b/ets2panda/test/ast/compiler/ets/enumConversions.ets @@ -31,5 +31,6 @@ function foo(e: E, i: int) { // e = 10 // CTE, 10 is out of range } -/* @@? 26:7 Warning Warning: Enum cast is deprecated. Cast support from 'E' to 'Int' will be removed. */ -/* @@? 28:7 Warning Warning: Enum cast is deprecated. Cast support from 'Int' to 'E' will be removed. */ + +/* @@? 26:7 Warning Warning W0030: Enum cast is deprecated. Cast support from 'E' to 'Int' will be removed. */ +/* @@? 28:7 Warning Warning W0030: Enum cast is deprecated. Cast support from 'Int' to 'E' will be removed. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/enum_expressions/constant_char.ets b/ets2panda/test/ast/compiler/ets/enum_expressions/constant_char.ets index ad4d7a36a4..5e67ba4c64 100644 --- a/ets2panda/test/ast/compiler/ets/enum_expressions/constant_char.ets +++ b/ets2panda/test/ast/compiler/ets/enum_expressions/constant_char.ets @@ -22,5 +22,5 @@ function main() { arktest.assertEQ(TestEnum.One.valueOf(),101) } -/* @@? 20:5 Error SyntaxError: Illegal start of ENUM expression. */ -/* @@? 22:22 Error TypeError: Unresolved reference TestEnum */ \ No newline at end of file +/* @@? 20:5 Error Syntax error ESY0040: Illegal start of ENUM expression. */ +/* @@? 22:22 Error Semantic error ESE0143: Unresolved reference TestEnum */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/enum_expressions/constant_char_asexpression.ets b/ets2panda/test/ast/compiler/ets/enum_expressions/constant_char_asexpression.ets index 13c418b307..157370d452 100644 --- a/ets2panda/test/ast/compiler/ets/enum_expressions/constant_char_asexpression.ets +++ b/ets2panda/test/ast/compiler/ets/enum_expressions/constant_char_asexpression.ets @@ -38,15 +38,16 @@ function main() { } -/* @@? 19:29 Error TypeError: Cannot cast type 'Char' to 'Byte' */ -/* @@? 21:5 Error SyntaxError: Illegal start of ENUM expression. */ -/* @@? 22:22 Error TypeError: Unresolved reference TestEnum1 */ -/* @@? 24:30 Error TypeError: Cannot cast type 'Char' to 'Short' */ -/* @@? 26:5 Error SyntaxError: Illegal start of ENUM expression. */ -/* @@? 27:22 Error TypeError: Unresolved reference TestEnum2 */ -/* @@? 29:28 Error TypeError: Cannot cast type 'Char' to 'Int' */ -/* @@? 31:5 Error SyntaxError: Illegal start of ENUM expression. */ -/* @@? 32:22 Error TypeError: Unresolved reference TestEnum3 */ -/* @@? 34:29 Error TypeError: Cannot cast type 'Char' to 'Long' */ -/* @@? 36:5 Error SyntaxError: Illegal start of ENUM expression. */ -/* @@? 37:22 Error TypeError: Unresolved reference TestEnum4 */ + +/* @@? 19:29 Error Semantic error ESE0326: Cannot cast type 'Char' to 'Byte' */ +/* @@? 21:5 Error Syntax error ESY0040: Illegal start of ENUM expression. */ +/* @@? 22:22 Error Semantic error ESE0143: Unresolved reference TestEnum1 */ +/* @@? 24:30 Error Semantic error ESE0326: Cannot cast type 'Char' to 'Short' */ +/* @@? 26:5 Error Syntax error ESY0040: Illegal start of ENUM expression. */ +/* @@? 27:22 Error Semantic error ESE0143: Unresolved reference TestEnum2 */ +/* @@? 29:28 Error Semantic error ESE0326: Cannot cast type 'Char' to 'Int' */ +/* @@? 31:5 Error Syntax error ESY0040: Illegal start of ENUM expression. */ +/* @@? 32:22 Error Semantic error ESE0143: Unresolved reference TestEnum3 */ +/* @@? 34:29 Error Semantic error ESE0326: Cannot cast type 'Char' to 'Long' */ +/* @@? 36:5 Error Syntax error ESY0040: Illegal start of ENUM expression. */ +/* @@? 37:22 Error Semantic error ESE0143: Unresolved reference TestEnum4 */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/enum_not_as_obj.ets b/ets2panda/test/ast/compiler/ets/enum_not_as_obj.ets index ed77ff5a5d..9ada72e1c8 100644 --- a/ets2panda/test/ast/compiler/ets/enum_not_as_obj.ets +++ b/ets2panda/test/ast/compiler/ets/enum_not_as_obj.ets @@ -16,6 +16,6 @@ enum Colorset {Red, Green,Blue}; const result = JSON.stringify(Colorset); console.log("Hello",result); -/* @@? 15:1 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@? 16:16 Error TypeError: No matching call signature for stringify(Colorset) */ -/* @@? 16:31 Error TypeError: Class or interface or enum 'Colorset' cannot be used as object */ \ No newline at end of file +/* @@? 15:1 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 16:16 Error Semantic error ESE0127: No matching call signature for stringify(Colorset) */ +/* @@? 16:31 Error Semantic error ESE0294: Class or interface or enum 'Colorset' cannot be used as object */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/enum_not_constant_var.ets b/ets2panda/test/ast/compiler/ets/enum_not_constant_var.ets index 4e8de04927..17a811ff93 100644 --- a/ets2panda/test/ast/compiler/ets/enum_not_constant_var.ets +++ b/ets2panda/test/ast/compiler/ets/enum_not_constant_var.ets @@ -20,5 +20,5 @@ enum Color { Red = /* @@ label */b, } -/* @@@ label Error SyntaxError: Only constant expression is expected in the field */ -/* @@@ label Error TypeError: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ + +/* @@@ label Error Semantic error ESE0342: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/etsObjectToString0.ets b/ets2panda/test/ast/compiler/ets/etsObjectToString0.ets index 724f1b214d..0dc9535f8a 100644 --- a/ets2panda/test/ast/compiler/ets/etsObjectToString0.ets +++ b/ets2panda/test/ast/compiler/ets/etsObjectToString0.ets @@ -20,4 +20,5 @@ function test(): int{ return /* @@ label */a; } -/* @@@ label Error TypeError: Type 'A|null' is not compatible with the enclosing method's return type 'Int' */ + +/* @@@ label Error Semantic error ESE0091: Type 'A|null' is not compatible with the enclosing method's return type 'Int' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/etsObjectToString1.ets b/ets2panda/test/ast/compiler/ets/etsObjectToString1.ets index f187202a42..fe2f8ae841 100644 --- a/ets2panda/test/ast/compiler/ets/etsObjectToString1.ets +++ b/ets2panda/test/ast/compiler/ets/etsObjectToString1.ets @@ -20,4 +20,5 @@ function test0(): A { return /* @@ label */a; } -/* @@@ label Error TypeError: Type 'A|null' is not compatible with the enclosing method's return type 'A' */ + +/* @@@ label Error Semantic error ESE0091: Type 'A|null' is not compatible with the enclosing method's return type 'A' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/etsObjectToString2.ets b/ets2panda/test/ast/compiler/ets/etsObjectToString2.ets index 59b78a19fd..c959902075 100644 --- a/ets2panda/test/ast/compiler/ets/etsObjectToString2.ets +++ b/ets2panda/test/ast/compiler/ets/etsObjectToString2.ets @@ -20,4 +20,5 @@ function test1(): A|null { return /* @@ label */a; } -/* @@@ label Error TypeError: Type 'A|null' is not compatible with the enclosing method's return type 'A|null' */ + +/* @@@ label Error Semantic error ESE0091: Type 'A|null' is not compatible with the enclosing method's return type 'A|null' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/etsObjectToString3.ets b/ets2panda/test/ast/compiler/ets/etsObjectToString3.ets index bbfa7a32ca..4dbdcf26c1 100644 --- a/ets2panda/test/ast/compiler/ets/etsObjectToString3.ets +++ b/ets2panda/test/ast/compiler/ets/etsObjectToString3.ets @@ -20,4 +20,5 @@ 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' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/etsObjectToString4.ets b/ets2panda/test/ast/compiler/ets/etsObjectToString4.ets index acc0a0a1b8..d3f8c990de 100644 --- a/ets2panda/test/ast/compiler/ets/etsObjectToString4.ets +++ b/ets2panda/test/ast/compiler/ets/etsObjectToString4.ets @@ -17,4 +17,5 @@ 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' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/etsObjectToString5.ets b/ets2panda/test/ast/compiler/ets/etsObjectToString5.ets index d05bfd4701..7de1eb1b48 100644 --- a/ets2panda/test/ast/compiler/ets/etsObjectToString5.ets +++ b/ets2panda/test/ast/compiler/ets/etsObjectToString5.ets @@ -19,4 +19,4 @@ let g:((y:A) => A|null)|null = /* @@ label */(y:A): A| return y; } -/* @@@ label Error TypeError: Type '(p1: A) => A|null' cannot be assigned to type '((p1: A) => A|null)|null' */ +/* @@@ label Error Semantic error ESE0318: Type '(p1: A) => A|null' cannot be assigned to type '((p1: A) => A|null)|null' */ diff --git a/ets2panda/test/ast/compiler/ets/export_type_class_multiple_times.ets b/ets2panda/test/ast/compiler/ets/export_type_class_multiple_times.ets index 4a2147118c..fb480485b3 100644 --- a/ets2panda/test/ast/compiler/ets/export_type_class_multiple_times.ets +++ b/ets2panda/test/ast/compiler/ets/export_type_class_multiple_times.ets @@ -19,4 +19,5 @@ export type {A} export type MyA = A export type {MyA} -/* @@? 16:1 Warning Warning: Duplicated export aliases for 'MyA'. */ + +/* @@? 20:13 Warning Warning W0000: Duplicated export aliases for 'MyA'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/export_type_interface_multiple_times.ets b/ets2panda/test/ast/compiler/ets/export_type_interface_multiple_times.ets index c714b60e24..7a44df5084 100644 --- a/ets2panda/test/ast/compiler/ets/export_type_interface_multiple_times.ets +++ b/ets2panda/test/ast/compiler/ets/export_type_interface_multiple_times.ets @@ -18,3 +18,4 @@ interface I {} export type {I} export type MyI = I export type {MyI} +/* @@? 20:13 Warning Warning W0000: Duplicated export aliases for 'MyI'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/expression/non-nullish_expression/invalid_operand_1.ets b/ets2panda/test/ast/compiler/ets/expression/non-nullish_expression/invalid_operand_1.ets index 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/expression/this_expression/undefined_class_for_this_1.ets b/ets2panda/test/ast/compiler/ets/expression/this_expression/undefined_class_for_this_1.ets index 4b1fd444fd..fe002d6495 100644 --- a/ets2panda/test/ast/compiler/ets/expression/this_expression/undefined_class_for_this_1.ets +++ b/ets2panda/test/ast/compiler/ets/expression/this_expression/undefined_class_for_this_1.ets @@ -23,9 +23,7 @@ let fecthResult = await checkAsyncDelay(async (): Promise< AA.B > => { return await this.photoAccessHelper.getAssets(options); }, 'getPhotoAssetByUri --> getAssets'); -/* @@? 19:25 Error TypeError: Unresolved reference checkAsyncDelay */ -/* @@? 19:25 Error TypeError: 'await' expressions require Promise object as argument. */ -/* @@? 20:10 Error TypeError: Bad operand type, the type of the operand must be boolean type. */ -/* @@? 21:16 Error TypeError: Type 'undefined' is not compatible with the enclosing method's return type 'Promise>' */ -/* @@? 23:18 Error TypeError: 'await' expressions require Promise object as argument. */ -/* @@? 1:1 Error TypeError: Cannot reference 'this' in this context. */ + +/* @@? 19:19 Error Semantic error ESE0303: Type '*ERROR_TYPE*' can not be awaited, it is not a Promise. */ +/* @@? 19:25 Error Semantic error ESE0143: Unresolved reference checkAsyncDelay */ +/* @@? 19:25 Error Semantic error ESE0289: This expression is not callable. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/expression/this_expression/undefined_class_for_this_2.ets b/ets2panda/test/ast/compiler/ets/expression/this_expression/undefined_class_for_this_2.ets index 388f3e55c9..0c6a017636 100644 --- a/ets2panda/test/ast/compiler/ets/expression/this_expression/undefined_class_for_this_2.ets +++ b/ets2panda/test/ast/compiler/ets/expression/this_expression/undefined_class_for_this_2.ets @@ -16,5 +16,5 @@ let a = this.photo }) - /* @@? 15:11 Error TypeError: Unresolved reference ca */ - /* @@? 1:1 Error TypeError: Cannot reference 'this' in this context. */ \ No newline at end of file + /* @@? 15:11 Error Semantic error ESE0143: Unresolved reference ca */ +/* @@? 15:11 Error Semantic error ESE0289: This expression is not callable. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionAccessorMissingReceiver.ets b/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionAccessorMissingReceiver.ets index f26a5a9313..f7f087306a 100644 --- a/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionAccessorMissingReceiver.ets +++ b/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionAccessorMissingReceiver.ets @@ -23,6 +23,7 @@ get field(a: A): int /* @@ label1 */{ /* @@ label2 */set field() /* @@ label3 */{} -/* @@@ label1 Error SyntaxError: Extension Accessor must have a receiver. */ -/* @@@ label2 Error SyntaxError: Extension Setter can only have 2 parameters. */ -/* @@@ label3 Error SyntaxError: Extension Accessor must have a receiver. */ + +/* @@@ label1 Error Syntax error ESY0146: Extension Accessor must have a receiver. */ +/* @@@ label2 Error Syntax error ESY0023: Extension Setter can only have 2 parameters. */ +/* @@@ label3 Error Syntax error ESY0146: Extension Accessor must have a receiver. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionAccessorNameDuplicatedWithExtensionFunction.ets b/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionAccessorNameDuplicatedWithExtensionFunction.ets index c97f4b9e8b..cc0838994d 100644 --- a/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionAccessorNameDuplicatedWithExtensionFunction.ets +++ b/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionAccessorNameDuplicatedWithExtensionFunction.ets @@ -28,5 +28,5 @@ set name/* @@ label */(this: B, n: string) { this.name_ = n; } -/* @@@ label Error TypeError: Function name with this assembly signature already declared. */ -/* @@@ label Error TypeError: Function name with this assembly signature already declared. */ + +/* @@@ label Error Semantic error ESE0131: Function name with this assembly signature already declared. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionAccessorNameDuplicatedWithFunction.ets b/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionAccessorNameDuplicatedWithFunction.ets index c97f4b9e8b..cc0838994d 100644 --- a/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionAccessorNameDuplicatedWithFunction.ets +++ b/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionAccessorNameDuplicatedWithFunction.ets @@ -28,5 +28,5 @@ set name/* @@ label */(this: B, n: string) { this.name_ = n; } -/* @@@ label Error TypeError: Function name with this assembly signature already declared. */ -/* @@@ label Error TypeError: Function name with this assembly signature already declared. */ + +/* @@@ label Error Semantic error ESE0131: Function name with this assembly signature already declared. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionAccessorNameDuplicatedWithInstanceField.ets b/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionAccessorNameDuplicatedWithInstanceField.ets index 9f85bf3b5c..5473c575c0 100644 --- a/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionAccessorNameDuplicatedWithInstanceField.ets +++ b/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionAccessorNameDuplicatedWithInstanceField.ets @@ -26,5 +26,6 @@ set name(this: B, n: string) /* @@ label2 */{ this.name_ = n; } -/* @@@ label1 Error TypeError: The extension accessor or extension function 'name' has the same name with field of class B */ -/* @@@ label2 Error TypeError: The extension accessor or extension function 'name' has the same name with field of class B */ + +/* @@@ label1 Error Semantic error ESE0079: The extension accessor or extension function 'name' has the same name with field of class B */ +/* @@@ label2 Error Semantic error ESE0079: The extension accessor or extension function 'name' has the same name with field of class B */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionAccessorNameDuplicatedWithInterfaceInstanceField.ets b/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionAccessorNameDuplicatedWithInterfaceInstanceField.ets index 06b36a3401..b92a107582 100644 --- a/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionAccessorNameDuplicatedWithInterfaceInstanceField.ets +++ b/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionAccessorNameDuplicatedWithInterfaceInstanceField.ets @@ -29,7 +29,8 @@ set name(this: B, n: string) /* @@ label2 */{ this.name_ = n; } -/* @@@ label1 Error TypeError: The extension accessor 'name' has the same name with method in class B */ -/* @@@ label1 Error TypeError: The extension accessor 'name' has the same name with method in class A */ -/* @@@ label2 Error TypeError: The extension accessor 'name' has the same name with method in class B */ -/* @@@ label2 Error TypeError: The extension accessor 'name' has the same name with method in class A */ + +/* @@@ label1 Error Semantic error ESE0080: The extension accessor 'name' has the same name with method in class B */ +/* @@@ label1 Error Semantic error ESE0080: The extension accessor 'name' has the same name with method in class A */ +/* @@@ label2 Error Semantic error ESE0080: The extension accessor 'name' has the same name with method in class B */ +/* @@@ label2 Error Semantic error ESE0080: The extension accessor 'name' has the same name with method in class A */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionAccessorNameDuplicatedWithMethod1.ets b/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionAccessorNameDuplicatedWithMethod1.ets index 3daffc27c8..ff5b51fa6e 100644 --- a/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionAccessorNameDuplicatedWithMethod1.ets +++ b/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionAccessorNameDuplicatedWithMethod1.ets @@ -32,5 +32,6 @@ set name(this: B, n: string) /* @@ label2 */{ this.name_ = n; } -/* @@@ label1 Error TypeError: The extension accessor 'name' has the same name with method in class B */ -/* @@@ label2 Error TypeError: The extension accessor 'name' has the same name with method in class B */ + +/* @@@ label1 Error Semantic error ESE0080: The extension accessor 'name' has the same name with method in class B */ +/* @@@ label2 Error Semantic error ESE0080: The extension accessor 'name' has the same name with method in class B */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionAccessorNameDuplicatedWithMethod2.ets b/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionAccessorNameDuplicatedWithMethod2.ets index 0eba306ba2..6ff731a39d 100644 --- a/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionAccessorNameDuplicatedWithMethod2.ets +++ b/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionAccessorNameDuplicatedWithMethod2.ets @@ -32,5 +32,6 @@ set name(this: B, n: string) /* @@ label2 */{ this.name_ = n; } -/* @@@ label1 Error TypeError: The extension accessor 'name' has the same name with method in class B */ -/* @@@ label2 Error TypeError: The extension accessor 'name' has the same name with method in class B */ + +/* @@@ label1 Error Semantic error ESE0080: The extension accessor 'name' has the same name with method in class B */ +/* @@@ label2 Error Semantic error ESE0080: The extension accessor 'name' has the same name with method in class B */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionAccessorNameDuplicatedWithSuperInstanceField.ets b/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionAccessorNameDuplicatedWithSuperInstanceField.ets index cb8f0655bc..9d6d615da9 100644 --- a/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionAccessorNameDuplicatedWithSuperInstanceField.ets +++ b/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionAccessorNameDuplicatedWithSuperInstanceField.ets @@ -26,5 +26,6 @@ set name(this: B, n: string) /* @@ label2 */{ this.name_ = n; } -/* @@@ label1 Error TypeError: The extension accessor or extension function 'name' has the same name with field of class A */ -/* @@@ label2 Error TypeError: The extension accessor or extension function 'name' has the same name with field of class A */ + +/* @@@ label1 Error Semantic error ESE0079: The extension accessor or extension function 'name' has the same name with field of class A */ +/* @@@ label2 Error Semantic error ESE0079: The extension accessor or extension function 'name' has the same name with field of class A */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionAccessorNameDuplicatedWithSuperMethod1.ets b/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionAccessorNameDuplicatedWithSuperMethod1.ets index 0538aa60f8..75be6c2e4d 100644 --- a/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionAccessorNameDuplicatedWithSuperMethod1.ets +++ b/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionAccessorNameDuplicatedWithSuperMethod1.ets @@ -35,5 +35,6 @@ set name(this: B, n: string) /* @@ label2 */{ this.name_ = n; } -/* @@@ label1 Error TypeError: The extension accessor 'name' has the same name with method in class A */ -/* @@@ label2 Error TypeError: The extension accessor 'name' has the same name with method in class A */ + +/* @@@ label1 Error Semantic error ESE0080: The extension accessor 'name' has the same name with method in class A */ +/* @@@ label2 Error Semantic error ESE0080: The extension accessor 'name' has the same name with method in class A */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionAccessorNameDuplicatedWithSuperMethod2.ets b/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionAccessorNameDuplicatedWithSuperMethod2.ets index dbb0ca95a9..3712da31e4 100644 --- a/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionAccessorNameDuplicatedWithSuperMethod2.ets +++ b/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionAccessorNameDuplicatedWithSuperMethod2.ets @@ -35,5 +35,6 @@ set name(this: B, n: string) /* @@ label2 */{ this.name_ = n; } -/* @@@ label1 Error TypeError: The extension accessor 'name' has the same name with method in class A */ -/* @@@ label2 Error TypeError: The extension accessor 'name' has the same name with method in class A */ + +/* @@@ label1 Error Semantic error ESE0080: The extension accessor 'name' has the same name with method in class A */ +/* @@@ label2 Error Semantic error ESE0080: The extension accessor 'name' has the same name with method in class A */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionAccessorParams.ets b/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionAccessorParams.ets index 26228dec04..9b470577e4 100644 --- a/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionAccessorParams.ets +++ b/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionAccessorParams.ets @@ -25,5 +25,6 @@ class A{ } -/* @@@ label1 Error SyntaxError: Extension Getter can only have 1 parameter. */ -/* @@@ label2 Error SyntaxError: Extension Setter can only have 2 parameters. */ + +/* @@@ label1 Error Syntax error ESY0022: Extension Getter can only have 1 parameter. */ +/* @@@ label2 Error Syntax error ESY0023: Extension Setter can only have 2 parameters. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionGetMustReturnValue.ets b/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionGetMustReturnValue.ets index f6fdb9f662..633daef5b0 100644 --- a/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionGetMustReturnValue.ets +++ b/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionGetMustReturnValue.ets @@ -18,4 +18,5 @@ class A{ } get /* @@ label */field(this: A){} -/* @@@ label Error TypeError: Getter must return a value */ + +/* @@@ label Error Semantic error ESE0086: Getter must return a value */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionGetterInWrongUsage.ets b/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionGetterInWrongUsage.ets index 5b7b527bff..590c589db9 100644 --- a/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionGetterInWrongUsage.ets +++ b/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionGetterInWrongUsage.ets @@ -32,6 +32,6 @@ function main() { console.log(/* @@ label3 */a.idx = 1) } -/* @@@ label1 Error TypeError: Extension getter in wrong usage */ -/* @@@ label2 Error TypeError: Extension getter in wrong usage */ -/* @@@ label3 Error TypeError: Extension getter in wrong usage */ \ No newline at end of file +/* @@@ label1 Error Semantic error ESE0269: Extension getter in wrong usage */ +/* @@@ label2 Error Semantic error ESE0269: Extension getter in wrong usage */ +/* @@@ label3 Error Semantic error ESE0269: Extension getter in wrong usage */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionGetterOnly.ets b/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionGetterOnly.ets index c5047d1454..a1dcee3b89 100644 --- a/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionGetterOnly.ets +++ b/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionGetterOnly.ets @@ -25,7 +25,8 @@ new A()./* @@ label2 */field += 1; new A()./* @@ label3 */field++; ++new A()./* @@ label4 */field; -/* @@@ label1 Error TypeError: Cannot assign to this property because it is readonly. */ -/* @@@ label2 Error TypeError: Cannot assign to this property because it is readonly. */ -/* @@@ label3 Error TypeError: Cannot assign to this property because it is readonly. */ -/* @@@ label4 Error TypeError: Cannot assign to this property because it is readonly. */ + +/* @@@ label1 Error Semantic error ESE0209: Cannot assign to this property because it is readonly. */ +/* @@@ label2 Error Semantic error ESE0209: Cannot assign to this property because it is readonly. */ +/* @@@ label3 Error Semantic error ESE0209: Cannot assign to this property because it is readonly. */ +/* @@@ label4 Error Semantic error ESE0209: Cannot assign to this property because it is readonly. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionGetterOnly2.ets b/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionGetterOnly2.ets index 228ae744cc..0047d6f762 100644 --- a/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionGetterOnly2.ets +++ b/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionGetterOnly2.ets @@ -33,7 +33,8 @@ new A()./* @@ label2 */field += 1; new A()./* @@ label3 */field++; ++new A()./* @@ label4 */field; -/* @@@ label1 Error TypeError: Cannot assign to this property because it is readonly. */ -/* @@@ label2 Error TypeError: Cannot assign to this property because it is readonly. */ -/* @@@ label3 Error TypeError: Cannot assign to this property because it is readonly. */ -/* @@@ label4 Error TypeError: Cannot assign to this property because it is readonly. */ + +/* @@@ label1 Error Semantic error ESE0209: Cannot assign to this property because it is readonly. */ +/* @@@ label2 Error Semantic error ESE0209: Cannot assign to this property because it is readonly. */ +/* @@@ label3 Error Semantic error ESE0209: Cannot assign to this property because it is readonly. */ +/* @@@ label4 Error Semantic error ESE0209: Cannot assign to this property because it is readonly. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionSetCantReturnValue.ets b/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionSetCantReturnValue.ets index 510aa86382..cf545ae605 100644 --- a/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionSetCantReturnValue.ets +++ b/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionSetCantReturnValue.ets @@ -21,4 +21,5 @@ class A{ return this.field_ } -/* @@@ label Error SyntaxError: Setter must not have return type even if it is void. */ + +/* @@@ label Error Syntax error ESY0241: Setter must not have return type even if it is void. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionSetterOnly.ets b/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionSetterOnly.ets index 97be18efb3..2f5bda68b0 100644 --- a/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionSetterOnly.ets +++ b/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionSetterOnly.ets @@ -24,6 +24,7 @@ new A()./* @@ label1 */field++; new A()./* @@ label2 */field += 1; ++new A()./* @@ label3 */field; -/* @@@ label1 Error TypeError: Cannot read from this property because it is writeonly. */ -/* @@@ label2 Error TypeError: Cannot read from this property because it is writeonly. */ -/* @@@ label3 Error TypeError: Cannot read from this property because it is writeonly. */ + +/* @@@ label1 Error Semantic error ESE0211: Cannot read from this property because it is writeonly. */ +/* @@@ label2 Error Semantic error ESE0211: Cannot read from this property because it is writeonly. */ +/* @@@ label3 Error Semantic error ESE0211: Cannot read from this property because it is writeonly. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionSetterOnly2.ets b/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionSetterOnly2.ets index a93f3c5e61..687dff1148 100644 --- a/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionSetterOnly2.ets +++ b/ets2panda/test/ast/compiler/ets/extension_accessor_tests/extensionSetterOnly2.ets @@ -35,7 +35,8 @@ new A()./* @@ label2 */field += 1; new A().field = 1; /* @@ label4 */new A().field = 1.23 -/* @@@ label1 Error TypeError: Cannot read from this property because it is writeonly. */ -/* @@@ label2 Error TypeError: Cannot read from this property because it is writeonly. */ -/* @@@ label3 Error TypeError: Cannot read from this property because it is writeonly. */ -/* @@@ label4 Error TypeError: Can't find the extension accessor. */ + +/* @@@ label1 Error Semantic error ESE0211: Cannot read from this property because it is writeonly. */ +/* @@@ label2 Error Semantic error ESE0211: Cannot read from this property because it is writeonly. */ +/* @@@ label3 Error Semantic error ESE0211: Cannot read from this property because it is writeonly. */ +/* @@@ label4 Error Semantic error ESE0246: Can't find the extension accessor. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/extension_accessor_tests/getterAsFunctionCall.ets b/ets2panda/test/ast/compiler/ets/extension_accessor_tests/getterAsFunctionCall.ets index fb2573f0f8..ba14e22c2a 100644 --- a/ets2panda/test/ast/compiler/ets/extension_accessor_tests/getterAsFunctionCall.ets +++ b/ets2panda/test/ast/compiler/ets/extension_accessor_tests/getterAsFunctionCall.ets @@ -33,4 +33,5 @@ function main() { /* @@ label */name(b); } -/* @@@ label Error TypeError: Extension accessor can't be used as a method call or function call. */ + +/* @@@ label Error Semantic error ESE0059: Extension accessor can't be used as a method call or function call. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/extension_accessor_tests/getterAsMethodCall.ets b/ets2panda/test/ast/compiler/ets/extension_accessor_tests/getterAsMethodCall.ets index 59cbcd7495..6b67befca6 100644 --- a/ets2panda/test/ast/compiler/ets/extension_accessor_tests/getterAsMethodCall.ets +++ b/ets2panda/test/ast/compiler/ets/extension_accessor_tests/getterAsMethodCall.ets @@ -33,4 +33,5 @@ function main() { /* @@ label */b.name(); } -/* @@@ label Error TypeError: Type 'String' has no call signatures. */ + +/* @@@ label Error Semantic error ESE0059: Extension accessor can't be used as a method call or function call. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/extension_accessor_tests/setterAsFunctionCall.ets b/ets2panda/test/ast/compiler/ets/extension_accessor_tests/setterAsFunctionCall.ets index 77a1a77494..22a4cda2bf 100644 --- a/ets2panda/test/ast/compiler/ets/extension_accessor_tests/setterAsFunctionCall.ets +++ b/ets2panda/test/ast/compiler/ets/extension_accessor_tests/setterAsFunctionCall.ets @@ -33,4 +33,5 @@ function main() { /* @@ label */name(b, "test"); } -/* @@@ label Error TypeError: Extension accessor can't be used as a method call or function call. */ + +/* @@@ label Error Semantic error ESE0059: Extension accessor can't be used as a method call or function call. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/extension_accessor_tests/setterAsMethodCall.ets b/ets2panda/test/ast/compiler/ets/extension_accessor_tests/setterAsMethodCall.ets index ab2f0df3cb..c0e1a55047 100644 --- a/ets2panda/test/ast/compiler/ets/extension_accessor_tests/setterAsMethodCall.ets +++ b/ets2panda/test/ast/compiler/ets/extension_accessor_tests/setterAsMethodCall.ets @@ -33,4 +33,5 @@ function main() { /* @@ label */b.name("test"); } -/* @@@ label Error TypeError: Type 'String' has no call signatures. */ + +/* @@@ label Error Semantic error ESE0059: Extension accessor can't be used as a method call or function call. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/extension_crash.ets b/ets2panda/test/ast/compiler/ets/extension_crash.ets index 4cea736a02..e373c63914 100644 --- a/ets2panda/test/ast/compiler/ets/extension_crash.ets +++ b/ets2panda/test/ast/compiler/ets/extension_crash.ets @@ -20,9 +20,10 @@ class A { function foo(this: A) { } -/* @@? 17:8 Error TypeError: Only abstract or native methods can't have body. */ -/* @@? 17:13 Error SyntaxError: The function parameter 'this' must explicitly specify the typeAnnotation. */ -/* @@? 17:13 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 17:13 Error SyntaxError: Unexpected token '.'. */ -/* @@? 17:18 Error SyntaxError: Field type annotation expected. */ -/* @@? 17:18 Error SyntaxError: Unexpected token ')'. */ + +/* @@? 17:8 Error Semantic error ESE0017: Only abstract or native methods can't have body. */ +/* @@? 17:13 Error Syntax error ESY0099: The function parameter 'this' must explicitly specify the typeAnnotation. */ +/* @@? 17:13 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 17:13 Error Syntax error ESY0227: Unexpected token '.'. */ +/* @@? 17:18 Error Syntax error ESY0121: Field type annotation expected. */ +/* @@? 17:18 Error Syntax error ESY0227: Unexpected token ')'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/extension_function_duplicated_with_class_lambda_member.ets b/ets2panda/test/ast/compiler/ets/extension_function_duplicated_with_class_lambda_member.ets index 1b1404916b..a19a52d470 100644 --- a/ets2panda/test/ast/compiler/ets/extension_function_duplicated_with_class_lambda_member.ets +++ b/ets2panda/test/ast/compiler/ets/extension_function_duplicated_with_class_lambda_member.ets @@ -26,4 +26,5 @@ let a = new A; a.foo = foo; console.log(a.foo()) -/* @@@ label Error TypeError: The extension accessor or extension function 'foo' has the same name with field of class A */ + +/* @@@ label Error Semantic error ESE0079: The extension accessor or extension function 'foo' has the same name with field of class A */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/extension_function_duplicated_with_interface_lambda_member.ets b/ets2panda/test/ast/compiler/ets/extension_function_duplicated_with_interface_lambda_member.ets index d28bab4fce..37e1d2cef4 100644 --- a/ets2panda/test/ast/compiler/ets/extension_function_duplicated_with_interface_lambda_member.ets +++ b/ets2panda/test/ast/compiler/ets/extension_function_duplicated_with_interface_lambda_member.ets @@ -28,5 +28,5 @@ let a:A = { }; console.log(a.foo()) -/* @@@ label Error TypeError: The extension function 'foo' has the same name with public method in class A */ -/* @@@ label1 Error TypeError: Type '(p1: A) => String' is not compatible with type '() => String' at property 'foo' */ +/* @@@ label Error Semantic error ESE0081: The extension function 'foo' has the same name with public method in class A */ +/* @@@ label1 Error Semantic error ESE0319: Type '(p1: A) => String' is not compatible with type '() => String' at property 'foo' */ diff --git a/ets2panda/test/ast/compiler/ets/extension_function_tests/array_extension_func_dupicated_name_with_builtin.ets b/ets2panda/test/ast/compiler/ets/extension_function_tests/array_extension_func_dupicated_name_with_builtin.ets index 5f973b3f44..0a9685f3f6 100644 --- a/ets2panda/test/ast/compiler/ets/extension_function_tests/array_extension_func_dupicated_name_with_builtin.ets +++ b/ets2panda/test/ast/compiler/ets/extension_function_tests/array_extension_func_dupicated_name_with_builtin.ets @@ -17,5 +17,6 @@ function toString(this: double[]) /* @@ label */{ return "ext-func" } -/* @@? 16:49 Error TypeError: The extension function 'toString' has the same name with public method in class Array */ -/* @@? 16:49 Error TypeError: The extension function 'toString' has the same name with public method in class Object */ + +/* @@@ label Error Semantic error ESE0081: The extension function 'toString' has the same name with public method in class Array */ +/* @@@ label Error Semantic error ESE0081: The extension function 'toString' has the same name with public method in class Object */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_access_private_field.ets b/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_access_private_field.ets index 50f2e2e3d6..f673fc9d08 100644 --- a/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_access_private_field.ets +++ b/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_access_private_field.ets @@ -26,4 +26,5 @@ function main() { console.println(banana.name()); } -/* @@@ label Error TypeError: Property id is not visible here. */ + +/* @@@ label Error Semantic error ESE0293: Property id is not visible here. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_access_protected_field.ets b/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_access_protected_field.ets index 6e0fe6102b..5f86c867f9 100644 --- a/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_access_protected_field.ets +++ b/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_access_protected_field.ets @@ -28,5 +28,6 @@ function main() { console.println(banana.name()); } -/* @@@ label Error TypeError: Signature price(): Int is not visible here. */ -/* @@@ label Error TypeError: No matching call signature */ + +/* @@@ label Error Semantic error ESE0139: Signature price(): Int is not visible here. */ +/* @@@ label Error Semantic error ESE0128: No matching call signature */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_called_by_class.ets b/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_called_by_class.ets index fb813f1d31..542a9ea5f9 100644 --- a/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_called_by_class.ets +++ b/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_called_by_class.ets @@ -27,12 +27,13 @@ function main() { console.println(A./* @@ label */price(1)); } -/* @@? 27:5 Error TypeError: Call to `println` is ambiguous as `2` versions of `println` are available: `println(i: String): void` and `println(i: Boolean): void` */ -/* @@? 27:5 Error TypeError: Call to `println` is ambiguous as `2` versions of `println` are available: `println(i: String): void` and `println(i: Byte): void` */ -/* @@? 27:5 Error TypeError: Call to `println` is ambiguous as `2` versions of `println` are available: `println(i: String): void` and `println(i: Short): void` */ -/* @@? 27:5 Error TypeError: Call to `println` is ambiguous as `2` versions of `println` are available: `println(i: String): void` and `println(i: Char): void` */ -/* @@? 27:5 Error TypeError: Call to `println` is ambiguous as `2` versions of `println` are available: `println(i: String): void` and `println(i: Int): void` */ -/* @@? 27:5 Error TypeError: Call to `println` is ambiguous as `2` versions of `println` are available: `println(i: String): void` and `println(i: Long): void` */ -/* @@? 27:5 Error TypeError: Call to `println` is ambiguous as `2` versions of `println` are available: `println(i: String): void` and `println(i: Float): void` */ -/* @@? 27:5 Error TypeError: Call to `println` is ambiguous as `2` versions of `println` are available: `println(i: String): void` and `println(i: Double): void` */ -/* @@@ label Error TypeError: Property 'price' does not exist on type 'A' */ + +/* @@? 27:5 Error Semantic error ESE0142: Call to `println` is ambiguous as `2` versions of `println` are available: `println(i: String): void` and `println(i: Boolean): void` */ +/* @@? 27:5 Error Semantic error ESE0142: Call to `println` is ambiguous as `2` versions of `println` are available: `println(i: String): void` and `println(i: Byte): void` */ +/* @@? 27:5 Error Semantic error ESE0142: Call to `println` is ambiguous as `2` versions of `println` are available: `println(i: String): void` and `println(i: Short): void` */ +/* @@? 27:5 Error Semantic error ESE0142: Call to `println` is ambiguous as `2` versions of `println` are available: `println(i: String): void` and `println(i: Char): void` */ +/* @@? 27:5 Error Semantic error ESE0142: Call to `println` is ambiguous as `2` versions of `println` are available: `println(i: String): void` and `println(i: Int): void` */ +/* @@? 27:5 Error Semantic error ESE0142: Call to `println` is ambiguous as `2` versions of `println` are available: `println(i: String): void` and `println(i: Long): void` */ +/* @@? 27:5 Error Semantic error ESE0142: Call to `println` is ambiguous as `2` versions of `println` are available: `println(i: String): void` and `println(i: Float): void` */ +/* @@? 27:5 Error Semantic error ESE0142: Call to `println` is ambiguous as `2` versions of `println` are available: `println(i: String): void` and `println(i: Double): void` */ +/* @@@ label Error Semantic error ESE0087: Property 'price' does not exist on type 'A' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_duplicated_with_private_field.ets b/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_duplicated_with_private_field.ets index ab7af4dedc..6f100a970c 100644 --- a/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_duplicated_with_private_field.ets +++ b/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_duplicated_with_private_field.ets @@ -28,12 +28,13 @@ function main() { console.println(/* @@label */banana.name(2)); } -/* @@? 28:5 Error TypeError: Call to `println` is ambiguous as `2` versions of `println` are available: `println(i: String): void` and `println(i: Boolean): void` */ -/* @@? 28:5 Error TypeError: Call to `println` is ambiguous as `2` versions of `println` are available: `println(i: String): void` and `println(i: Byte): void` */ -/* @@? 28:5 Error TypeError: Call to `println` is ambiguous as `2` versions of `println` are available: `println(i: String): void` and `println(i: Short): void` */ -/* @@? 28:5 Error TypeError: Call to `println` is ambiguous as `2` versions of `println` are available: `println(i: String): void` and `println(i: Char): void` */ -/* @@? 28:5 Error TypeError: Call to `println` is ambiguous as `2` versions of `println` are available: `println(i: String): void` and `println(i: Int): void` */ -/* @@? 28:5 Error TypeError: Call to `println` is ambiguous as `2` versions of `println` are available: `println(i: String): void` and `println(i: Long): void` */ -/* @@? 28:5 Error TypeError: Call to `println` is ambiguous as `2` versions of `println` are available: `println(i: String): void` and `println(i: Float): void` */ -/* @@? 28:5 Error TypeError: Call to `println` is ambiguous as `2` versions of `println` are available: `println(i: String): void` and `println(i: Double): void` */ -/* @@? 28:34 Error TypeError: No matching call signature for name(Int) */ + +/* @@? 28:5 Error Semantic error ESE0142: Call to `println` is ambiguous as `2` versions of `println` are available: `println(i: String): void` and `println(i: Boolean): void` */ +/* @@? 28:5 Error Semantic error ESE0142: Call to `println` is ambiguous as `2` versions of `println` are available: `println(i: String): void` and `println(i: Byte): void` */ +/* @@? 28:5 Error Semantic error ESE0142: Call to `println` is ambiguous as `2` versions of `println` are available: `println(i: String): void` and `println(i: Short): void` */ +/* @@? 28:5 Error Semantic error ESE0142: Call to `println` is ambiguous as `2` versions of `println` are available: `println(i: String): void` and `println(i: Char): void` */ +/* @@? 28:5 Error Semantic error ESE0142: Call to `println` is ambiguous as `2` versions of `println` are available: `println(i: String): void` and `println(i: Int): void` */ +/* @@? 28:5 Error Semantic error ESE0142: Call to `println` is ambiguous as `2` versions of `println` are available: `println(i: String): void` and `println(i: Long): void` */ +/* @@? 28:5 Error Semantic error ESE0142: Call to `println` is ambiguous as `2` versions of `println` are available: `println(i: String): void` and `println(i: Float): void` */ +/* @@? 28:5 Error Semantic error ESE0142: Call to `println` is ambiguous as `2` versions of `println` are available: `println(i: String): void` and `println(i: Double): void` */ +/* @@@ label Error Semantic error ESE0127: No matching call signature for name(Int) */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_duplication.ets b/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_duplication.ets index 0b88f49865..084be609f1 100644 --- a/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_duplication.ets +++ b/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_duplication.ets @@ -25,4 +25,5 @@ function name(this: Fruit) { console.println("this is extension function 2"); } -/* @@@ label Error TypeError: Function name is already declared. */ + +/* @@@ label Error Semantic error ESE0130: Function name is already declared. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_for_unresolved_type.ets b/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_for_unresolved_type.ets index 857aab9868..61bb7840bb 100644 --- a/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_for_unresolved_type.ets +++ b/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_for_unresolved_type.ets @@ -17,5 +17,6 @@ function name(this: /* @@label */Fruit): int { return 1; } -/* @@@ label Error TypeError: Cannot find type 'Fruit'. */ -/* @@? 16:1 Error TypeError: Extension function can only defined for class, interface or array. */ + +/* @@? 16:1 Error Semantic error ESE0082: Extension function can only defined for class, interface or array. */ +/* @@@ label Error Semantic error ESE0371: Cannot find type 'Fruit'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_miss_signature.ets b/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_miss_signature.ets index 2e8df50de7..ef142295a3 100644 --- a/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_miss_signature.ets +++ b/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_miss_signature.ets @@ -39,6 +39,7 @@ function main() { asMethodCall(); } -/* @@? 30:5 Error TypeError: Expected 2 arguments, got 3. */ -/* @@? 30:5 Error TypeError: No matching call signature for foo(Fruit, Double, Double) */ -/* @@? 34:5 Error TypeError: No matching call signature for foo(Double, Double) */ + +/* @@? 30:5 Error Semantic error ESE0124: Expected 2 arguments, got 3. */ +/* @@? 30:5 Error Semantic error ESE0127: No matching call signature for foo(Fruit, Double, Double) */ +/* @@? 34:5 Error Semantic error ESE0127: No matching call signature for foo(Double, Double) */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_not_for_class_type.ets b/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_not_for_class_type.ets index b0659282cd..d09d42bb4b 100644 --- a/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_not_for_class_type.ets +++ b/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_not_for_class_type.ets @@ -19,4 +19,5 @@ enum Fruit { size = 4 }; return 1; } -/* @@@ label Error TypeError: Extension function can only defined for class, interface or array. */ + +/* @@@ label Error Semantic error ESE0082: Extension function can only defined for class, interface or array. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_params_neg1.ets b/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_params_neg1.ets index 8edd9cf10c..9f30ff57a9 100644 --- a/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_params_neg1.ets +++ b/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_params_neg1.ets @@ -17,4 +17,5 @@ class Fruit {} function price(this/* @@label */) {} -/* @@@ label Error SyntaxError: The function parameter 'this' must explicitly specify the typeAnnotation. */ + +/* @@@ label Error Syntax error ESY0099: The function parameter 'this' must explicitly specify the typeAnnotation. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_params_neg2.ets b/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_params_neg2.ets index a548876f98..c40bfc8d69 100644 --- a/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_params_neg2.ets +++ b/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_params_neg2.ets @@ -17,4 +17,5 @@ class Fruit {} function price(a: number, this: Fruit/* @@label */) {} -/* @@@ label Error SyntaxError: Function Parameter 'this' must be the first. */ + +/* @@@ label Error Syntax error ESY0158: Function Parameter 'this' must be the first. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_primitive.ets b/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_primitive.ets index ec9bcf5d75..773067772a 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,5 @@ 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 */ \ No newline at end of file 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..56d26d5c98 100644 --- a/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_return_this_neg.ets +++ b/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_return_this_neg.ets @@ -21,4 +21,5 @@ function foo(this: B): this { return /* @@ label */2; } -/* @@@ label Error TypeError: Type 'Int' is not compatible with the enclosing method's return type 'B' */ + +/* @@@ label Error Semantic error ESE0091: Type 'Int' is not compatible with the enclosing method's return type 'B' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_return_this_neg2.ets b/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_return_this_neg2.ets index e0e2bf5db7..ca1fa4702c 100644 --- a/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_return_this_neg2.ets +++ b/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_return_this_neg2.ets @@ -20,5 +20,6 @@ function f1(this : B): /* @@ label*/this[] { return this; } -/* @@@ label Error SyntaxError: A 'this' type is available only as return type in a non-static method of a class or struct and extension functions. */ -/* @@? 20:12 Error TypeError: Type 'B' is not compatible with the enclosing method's return type 'Array' */ + +/* @@@ label Error Syntax error ESY0044: A 'this' type is available only as return type in a non-static method of a class or struct and extension functions. */ +/* @@? 20:12 Error Semantic error ESE0091: Type 'B' is not compatible with the enclosing method's return type 'Array' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_return_this_neg3.ets b/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_return_this_neg3.ets index ea19f50512..753e5a3b93 100644 --- a/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_return_this_neg3.ets +++ b/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_return_this_neg3.ets @@ -20,5 +20,6 @@ function f1(this : B): B | A { return this; } -/* @@@ label Error SyntaxError: A 'this' type is available only as return type in a non-static method of a class or struct and extension functions. */ -/* @@? 20:12 Error TypeError: Type 'B' is not compatible with the enclosing method's return type 'B|A' */ + +/* @@@ label Error Syntax error ESY0044: A 'this' type is available only as return type in a non-static method of a class or struct and extension functions. */ +/* @@? 20:12 Error Semantic error ESE0091: Type 'B' is not compatible with the enclosing method's return type 'B|A' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_return_this_union.ets b/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_return_this_union.ets index c3776e2b05..cb1e1310a0 100644 --- a/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_return_this_union.ets +++ b/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_return_this_union.ets @@ -19,6 +19,7 @@ class B {} function f1(this : B): /* @@ label*/this | A { return this; } -/* @@@ label Error SyntaxError: A 'this' type is available only as return type in a non-static method of a class or struct and extension functions. */ -/* @@? 19:37 Error TypeError: A 'this' cannot be used as a part of union type. */ -/* @@? 20:12 Error TypeError: Type 'B' is not compatible with the enclosing method's return type 'ETSGLOBAL|A' */ + +/* @@@ label Error Syntax error ESY0044: A 'this' type is available only as return type in a non-static method of a class or struct and extension functions. */ +/* @@@ label Error Semantic error ESE0281: A 'this' cannot be used as a part of union type. */ +/* @@? 20:12 Error Semantic error ESE0091: Type 'B' is not compatible with the enclosing method's return type 'ETSGLOBAL|A' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_return_this_union2.ets b/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_return_this_union2.ets index 05f1930cee..10d96636bd 100644 --- a/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_return_this_union2.ets +++ b/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_return_this_union2.ets @@ -18,5 +18,6 @@ class B {} function f1(this : B): /* @@ label*/this | B { return this; } -/* @@@ label Error SyntaxError: A 'this' type is available only as return type in a non-static method of a class or struct and extension functions. */ -/* @@? 18:37 Error TypeError: A 'this' cannot be used as a part of union type. */ + +/* @@@ label Error Syntax error ESY0044: A 'this' type is available only as return type in a non-static method of a class or struct and extension functions. */ +/* @@@ label Error Semantic error ESE0281: A 'this' cannot be used as a part of union type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_return_this_union3.ets b/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_return_this_union3.ets index 404e72c9c8..b282fad511 100644 --- a/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_return_this_union3.ets +++ b/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_return_this_union3.ets @@ -20,6 +20,7 @@ function f1(this : B): A | /* @@ label*/this { return this; } -/* @@@ label Error SyntaxError: A 'this' type is available only as return type in a non-static method of a class or struct and extension functions. */ -/* @@? 19:41 Error TypeError: A 'this' cannot be used as a part of union type. */ -/* @@? 20:12 Error TypeError: Type 'B' is not compatible with the enclosing method's return type 'A|ETSGLOBAL' */ + +/* @@@ label Error Syntax error ESY0044: A 'this' type is available only as return type in a non-static method of a class or struct and extension functions. */ +/* @@@ label Error Semantic error ESE0281: A 'this' cannot be used as a part of union type. */ +/* @@? 20:12 Error Semantic error ESE0091: Type 'B' is not compatible with the enclosing method's return type 'A|ETSGLOBAL' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_shadowed_by_different_return_type_interface_function.ets b/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_shadowed_by_different_return_type_interface_function.ets index 75fdf1d909..531c2ac80b 100644 --- a/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_shadowed_by_different_return_type_interface_function.ets +++ b/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_shadowed_by_different_return_type_interface_function.ets @@ -33,4 +33,5 @@ function foo(this:Banana, id2: int, k2: String): int/* @@ label */{ return 2; } -/* @@@ label Error TypeError: The extension function 'foo' has the same name with public method in class Yellow */ + +/* @@@ label Error Semantic error ESE0081: The extension function 'foo' has the same name with public method in class Yellow */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_shadowed_by_member_function.ets b/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_shadowed_by_member_function.ets index bb32798a7a..6466bc7d80 100644 --- a/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_shadowed_by_member_function.ets +++ b/ets2panda/test/ast/compiler/ets/extension_function_tests/extension_function_shadowed_by_member_function.ets @@ -46,5 +46,6 @@ function price(this:B) /* @@label2 */{ function xxx(this:A, id: int) { } -/* @@@ label1 Error TypeError: The extension function 'sweetness1' has the same name with public method in class B */ -/* @@@ label2 Error TypeError: The extension function 'price' has the same name with public method in class B */ + +/* @@@ label1 Error Semantic error ESE0081: The extension function 'sweetness1' has the same name with public method in class B */ +/* @@@ label2 Error Semantic error ESE0081: The extension function 'price' has the same name with public method in class B */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/extension_function_tests/normal_function_duplicated_with_extension_function.ets b/ets2panda/test/ast/compiler/ets/extension_function_tests/normal_function_duplicated_with_extension_function.ets index 2e14e4f388..0a449a409e 100644 --- a/ets2panda/test/ast/compiler/ets/extension_function_tests/normal_function_duplicated_with_extension_function.ets +++ b/ets2panda/test/ast/compiler/ets/extension_function_tests/normal_function_duplicated_with_extension_function.ets @@ -25,4 +25,5 @@ function name(this: Fruit) { console.println("this is normal function"); } -/* @@@ label Error TypeError: Function name is already declared. */ + +/* @@@ label Error Semantic error ESE0130: Function name is already declared. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/extension_function_tests/normal_function_with_extension_style_signature.ets b/ets2panda/test/ast/compiler/ets/extension_function_tests/normal_function_with_extension_style_signature.ets index 15efd392f6..900732fff1 100644 --- a/ets2panda/test/ast/compiler/ets/extension_function_tests/normal_function_with_extension_style_signature.ets +++ b/ets2panda/test/ast/compiler/ets/extension_function_tests/normal_function_with_extension_style_signature.ets @@ -30,4 +30,5 @@ function main() { banana./* @@ label */price(); } -/* @@@ label Error TypeError: Property 'price' does not exist on type 'Banana' */ + +/* @@@ label Error Semantic error ESE0087: Property 'price' does not exist on type 'Banana' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/extension_function_tests/put_this_as_method_params.ets b/ets2panda/test/ast/compiler/ets/extension_function_tests/put_this_as_method_params.ets index 7f0a2c4889..90fde98677 100644 --- a/ets2panda/test/ast/compiler/ets/extension_function_tests/put_this_as_method_params.ets +++ b/ets2panda/test/ast/compiler/ets/extension_function_tests/put_this_as_method_params.ets @@ -20,4 +20,5 @@ class Banana { } -/* @@@ label Error SyntaxError: Unexpected 'this' keyword in non-receiver context. */ + +/* @@@ label Error Syntax error ESY0240: Unexpected 'this' keyword in non-receiver context. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/first_match/access_modifiers.ets b/ets2panda/test/ast/compiler/ets/first_match/access_modifiers.ets index c816d68262..dee6894f35 100644 --- a/ets2panda/test/ast/compiler/ets/first_match/access_modifiers.ets +++ b/ets2panda/test/ast/compiler/ets/first_match/access_modifiers.ets @@ -42,9 +42,10 @@ function main() { a.foo(true); } -/* @@@ label Error TypeError: Signature fooPrivate(x: String): void is not visible here. */ -/* @@@ label Error TypeError: No matching call signature for foo("abc") */ -/* @@@ label2 Error TypeError: Signature fooPrivate(x: String): void is not visible here. */ -/* @@@ label2 Error TypeError: No matching call signature for foo("abc") */ -/* @@@ label3 Error TypeError: Signature fooProtected(x: Double): void is not visible here. */ -/* @@@ label3 Error TypeError: No matching call signature for foo(Int) */ + +/* @@@ label Error Semantic error ESE0139: Signature fooPrivate(x: String): void is not visible here. */ +/* @@@ label Error Semantic error ESE0127: No matching call signature for foo("abc") */ +/* @@@ label2 Error Semantic error ESE0139: Signature fooPrivate(x: String): void is not visible here. */ +/* @@@ label2 Error Semantic error ESE0127: No matching call signature for foo("abc") */ +/* @@@ label3 Error Semantic error ESE0139: Signature fooProtected(x: Double): void is not visible here. */ +/* @@@ label3 Error Semantic error ESE0127: No matching call signature for foo(Int) */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/first_match/access_modifiers_2.ets b/ets2panda/test/ast/compiler/ets/first_match/access_modifiers_2.ets index 8c7362de22..06e946c93e 100644 --- a/ets2panda/test/ast/compiler/ets/first_match/access_modifiers_2.ets +++ b/ets2panda/test/ast/compiler/ets/first_match/access_modifiers_2.ets @@ -31,6 +31,7 @@ class Test3 { abstract overload foo{ foo1, foo2 } } -/* @@? 19:21 Error SyntaxError: Overload Declaration only allow use modifier 'static' | 'async'. */ -/* @@? 25:23 Error SyntaxError: Overload Declaration only allow use modifier 'static' | 'async'. */ -/* @@? 31:23 Error SyntaxError: Overload Declaration only allow use modifier 'static' | 'async'. */ + +/* @@? 19:21 Error Syntax error ESY0323: Overload Declaration only allow use modifier 'static' | 'async'. */ +/* @@? 25:23 Error Syntax error ESY0323: Overload Declaration only allow use modifier 'static' | 'async'. */ +/* @@? 31:23 Error Syntax error ESY0323: Overload Declaration only allow use modifier 'static' | 'async'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/first_match/arrayliteral.ets b/ets2panda/test/ast/compiler/ets/first_match/arrayliteral.ets index 7e8ca5089a..8785fa2a6b 100644 --- a/ets2panda/test/ast/compiler/ets/first_match/arrayliteral.ets +++ b/ets2panda/test/ast/compiler/ets/first_match/arrayliteral.ets @@ -35,5 +35,6 @@ function main(){ a.foo111([123,123,123]); } -/* @@? 32:5 Error TypeError: No matching call signature for foo111(Array) */ -/* @@? 33:5 Error TypeError: No matching call signature for foo111(Array) */ + +/* @@? 32:5 Error Semantic error ESE0127: No matching call signature for foo111(Array) */ +/* @@? 33:5 Error Semantic error ESE0127: No matching call signature for foo111(Array) */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/first_match/constructor.ets b/ets2panda/test/ast/compiler/ets/first_match/constructor.ets index db1517374c..4387d3de32 100644 --- a/ets2panda/test/ast/compiler/ets/first_match/constructor.ets +++ b/ets2panda/test/ast/compiler/ets/first_match/constructor.ets @@ -46,7 +46,8 @@ class Test5{ /* @@ label3 */overload constructor{con1} } -/* @@@ label1 Error TypeError: Function con1 is already declared. */ -/* @@@ label2 Error TypeError: The overloaded name 'constructor' can't refer to a function with overload signatures. */ -/* @@@ label2 Error TypeError: The overloaded name 'con1' can't refer to a function with overload signatures. */ -/* @@@ label3 Error TypeError: The overloaded name 'constructor' can't refer to a function with overload signatures. */ + +/* @@@ label1 Error Semantic error ESE0130: Function con1 is already declared. */ +/* @@@ label2 Error Semantic error ESE0389: The overloaded name 'constructor' can't refer to a function with overload signatures. */ +/* @@@ label2 Error Semantic error ESE0389: The overloaded name 'con1' can't refer to a function with overload signatures. */ +/* @@@ label3 Error Semantic error ESE0389: The overloaded name 'constructor' can't refer to a function with overload signatures. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/first_match/function_same_name.ets b/ets2panda/test/ast/compiler/ets/first_match/function_same_name.ets index a5face17f5..18d68f0cf3 100644 --- a/ets2panda/test/ast/compiler/ets/first_match/function_same_name.ets +++ b/ets2panda/test/ast/compiler/ets/first_match/function_same_name.ets @@ -23,5 +23,6 @@ function foo(a:number){} function foo2(a:string){} overload /* @@ label2 */foo{foo2} -/* @@@ label Error TypeError: Method with the same name as overload declaration 'foo', overloadlist must list this medhod. */ -/* @@@ label2 Error TypeError: Method with the same name as overload declaration 'foo', overloadlist must list this medhod. */ + +/* @@@ label Error Semantic error ESE0397: Method with the same name as overload declaration 'foo', overloadlist must list this medhod. */ +/* @@@ label2 Error Semantic error ESE0397: Method with the same name as overload declaration 'foo', overloadlist must list this medhod. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/first_match/invalid_declaration.ets b/ets2panda/test/ast/compiler/ets/first_match/invalid_declaration.ets index 8f7d7c607a..3046d11fdb 100644 --- a/ets2panda/test/ast/compiler/ets/first_match/invalid_declaration.ets +++ b/ets2panda/test/ast/compiler/ets/first_match/invalid_declaration.ets @@ -19,15 +19,16 @@ class Test { overload: foo{ foo1, foo2 } } -/* @@? 19:13 Error SyntaxError: Identifier expected, got ':'. */ -/* @@? 19:15 Error SyntaxError: Unexpected token, expected '{'. */ -/* @@? 19:15 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 19:15 Error TypeError: overloaded name must refer to an accessible method. */ -/* @@? 19:18 Error SyntaxError: Unexpected token, expected ',' or '}'. */ -/* @@? 19:18 Error SyntaxError: Unexpected token '{'. */ -/* @@? 19:20 Error TypeError: Variable 'foo1' has already been declared. */ -/* @@? 19:24 Error SyntaxError: Field type annotation expected. */ -/* @@? 19:24 Error SyntaxError: Unexpected token ','. */ -/* @@? 19:26 Error TypeError: Variable 'foo2' has already been declared. */ -/* @@? 19:30 Error SyntaxError: Field type annotation expected. */ -/* @@? 20:1 Error SyntaxError: Unexpected token '}'. */ + +/* @@? 19:13 Error Syntax error ESY0224: Identifier expected, got ':'. */ +/* @@? 19:15 Error Syntax error ESY0228: Unexpected token, expected '{'. */ +/* @@? 19:15 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 19:15 Error Semantic error ESE0384: overloaded name must refer to an accessible method. */ +/* @@? 19:18 Error Syntax error ESY0229: Unexpected token, expected ',' or '}'. */ +/* @@? 19:18 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 19:20 Error Semantic error ESE0351: Variable 'foo1' has already been declared. */ +/* @@? 19:24 Error Syntax error ESY0121: Field type annotation expected. */ +/* @@? 19:24 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 19:26 Error Semantic error ESE0351: Variable 'foo2' has already been declared. */ +/* @@? 19:30 Error Syntax error ESY0121: Field type annotation expected. */ +/* @@? 20:1 Error Syntax error ESY0227: Unexpected token '}'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/first_match/invalid_declaration_2.ets b/ets2panda/test/ast/compiler/ets/first_match/invalid_declaration_2.ets index 63be2fcf48..27fe4dfbcc 100644 --- a/ets2panda/test/ast/compiler/ets/first_match/invalid_declaration_2.ets +++ b/ets2panda/test/ast/compiler/ets/first_match/invalid_declaration_2.ets @@ -19,13 +19,14 @@ class Base { overload foo(foo1, foo2) } -/* @@? 19:17 Error SyntaxError: Unexpected token, expected '{'. */ -/* @@? 19:17 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 19:17 Error TypeError: overloaded name must refer to an accessible method. */ -/* @@? 19:18 Error SyntaxError: Unexpected token, expected ',' or '}'. */ -/* @@? 19:18 Error TypeError: Variable 'foo1' has already been declared. */ -/* @@? 19:22 Error SyntaxError: Field type annotation expected. */ -/* @@? 19:22 Error SyntaxError: Unexpected token ','. */ -/* @@? 19:24 Error TypeError: Variable 'foo2' has already been declared. */ -/* @@? 19:28 Error SyntaxError: Field type annotation expected. */ -/* @@? 19:28 Error SyntaxError: Unexpected token ')'. */ + +/* @@? 19:17 Error Syntax error ESY0228: Unexpected token, expected '{'. */ +/* @@? 19:17 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 19:17 Error Semantic error ESE0384: overloaded name must refer to an accessible method. */ +/* @@? 19:18 Error Syntax error ESY0229: Unexpected token, expected ',' or '}'. */ +/* @@? 19:18 Error Semantic error ESE0351: Variable 'foo1' has already been declared. */ +/* @@? 19:22 Error Syntax error ESY0121: Field type annotation expected. */ +/* @@? 19:22 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 19:24 Error Semantic error ESE0351: Variable 'foo2' has already been declared. */ +/* @@? 19:28 Error Syntax error ESY0121: Field type annotation expected. */ +/* @@? 19:28 Error Syntax error ESY0227: Unexpected token ')'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/first_match/invalid_declaration_3.ets b/ets2panda/test/ast/compiler/ets/first_match/invalid_declaration_3.ets index c6e43822e8..3d66b2afa4 100644 --- a/ets2panda/test/ast/compiler/ets/first_match/invalid_declaration_3.ets +++ b/ets2panda/test/ast/compiler/ets/first_match/invalid_declaration_3.ets @@ -19,7 +19,8 @@ class Base { overload { foo1, foo2 } } -/* @@? 19:14 Error SyntaxError: Identifier expected, got '{'. */ -/* @@? 19:16 Error SyntaxError: Unexpected token, expected '{'. */ -/* @@? 19:16 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 19:16 Error TypeError: overloaded name must refer to an accessible method. */ + +/* @@? 19:14 Error Syntax error ESY0224: Identifier expected, got '{'. */ +/* @@? 19:16 Error Syntax error ESY0228: Unexpected token, expected '{'. */ +/* @@? 19:16 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 19:16 Error Semantic error ESE0384: overloaded name must refer to an accessible method. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/first_match/invalid_declaration_4.ets b/ets2panda/test/ast/compiler/ets/first_match/invalid_declaration_4.ets index a3d50ec721..f4653eddc8 100644 --- a/ets2panda/test/ast/compiler/ets/first_match/invalid_declaration_4.ets +++ b/ets2panda/test/ast/compiler/ets/first_match/invalid_declaration_4.ets @@ -19,5 +19,6 @@ class Base { overload foo{ fo, fo2 } } -/* @@? 19:19 Error TypeError: overloaded name must refer to an accessible method. */ -/* @@? 19:23 Error TypeError: overloaded name must refer to an accessible method. */ + +/* @@? 19:19 Error Semantic error ESE0384: overloaded name must refer to an accessible method. */ +/* @@? 19:23 Error Semantic error ESE0384: overloaded name must refer to an accessible method. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/first_match/invalid_declaration_5.ets b/ets2panda/test/ast/compiler/ets/first_match/invalid_declaration_5.ets index c7a80816f0..0b67a6a94a 100644 --- a/ets2panda/test/ast/compiler/ets/first_match/invalid_declaration_5.ets +++ b/ets2panda/test/ast/compiler/ets/first_match/invalid_declaration_5.ets @@ -15,9 +15,10 @@ overload foo{ foo.,T,} -/* @@? 16:19 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 16:19 Error TypeError: overloaded name must refer to an accessible method. */ -/* @@? 16:20 Error SyntaxError: Unexpected token, expected ',' or '}'. */ -/* @@? 16:20 Error TypeError: Unresolved reference T */ -/* @@? 16:21 Error SyntaxError: Unexpected token ','. */ -/* @@? 16:22 Error SyntaxError: Unexpected token '}'. */ + +/* @@? 16:19 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 16:19 Error Semantic error ESE0384: overloaded name must refer to an accessible method. */ +/* @@? 16:20 Error Syntax error ESY0229: Unexpected token, expected ',' or '}'. */ +/* @@? 16:20 Error Semantic error ESE0143: Unresolved reference T */ +/* @@? 16:21 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 16:22 Error Syntax error ESY0227: Unexpected token '}'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/first_match/invalid_declare.ets b/ets2panda/test/ast/compiler/ets/first_match/invalid_declare.ets index 090aa4c25a..3664516702 100644 --- a/ets2panda/test/ast/compiler/ets/first_match/invalid_declare.ets +++ b/ets2panda/test/ast/compiler/ets/first_match/invalid_declare.ets @@ -15,10 +15,11 @@ overload * you thMMMMMMMMdSTICKER, -/* @@? 16:10 Error SyntaxError: Identifier expected, got '*'. */ -/* @@? 16:12 Error SyntaxError: Unexpected token, expected '{'. */ -/* @@? 16:12 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 16:12 Error TypeError: overloaded name must refer to an accessible method. */ -/* @@? 16:16 Error SyntaxError: Unexpected token, expected ',' or '}'. */ -/* @@? 16:16 Error TypeError: Unresolved reference thMMMMMMMMdSTICKER */ -/* @@? 16:34 Error SyntaxError: Unexpected token ','. */ + +/* @@? 16:10 Error Syntax error ESY0224: Identifier expected, got '*'. */ +/* @@? 16:12 Error Syntax error ESY0228: Unexpected token, expected '{'. */ +/* @@? 16:12 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 16:12 Error Semantic error ESE0384: overloaded name must refer to an accessible method. */ +/* @@? 16:16 Error Syntax error ESY0229: Unexpected token, expected ',' or '}'. */ +/* @@? 16:16 Error Semantic error ESE0143: Unresolved reference thMMMMMMMMdSTICKER */ +/* @@? 16:34 Error Syntax error ESY0227: Unexpected token ','. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/first_match/invalid_declare2.ets b/ets2panda/test/ast/compiler/ets/first_match/invalid_declare2.ets index a9f652b9de..637f5e70c5 100644 --- a/ets2panda/test/ast/compiler/ets/first_match/invalid_declare2.ets +++ b/ets2panda/test/ast/compiler/ets/first_match/invalid_declare2.ets @@ -17,10 +17,11 @@ class A{ overload * you thMMMMMMMMdSTICKER, } -/* @@? 17:14 Error SyntaxError: Identifier expected, got '*'. */ -/* @@? 17:16 Error SyntaxError: Unexpected token, expected '{'. */ -/* @@? 17:16 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 17:16 Error TypeError: overloaded name must refer to an accessible method. */ -/* @@? 17:20 Error SyntaxError: Unexpected token, expected ',' or '}'. */ -/* @@? 17:38 Error SyntaxError: Field type annotation expected. */ -/* @@? 17:38 Error SyntaxError: Unexpected token ','. */ + +/* @@? 17:14 Error Syntax error ESY0224: Identifier expected, got '*'. */ +/* @@? 17:16 Error Syntax error ESY0228: Unexpected token, expected '{'. */ +/* @@? 17:16 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 17:16 Error Semantic error ESE0384: overloaded name must refer to an accessible method. */ +/* @@? 17:20 Error Syntax error ESY0229: Unexpected token, expected ',' or '}'. */ +/* @@? 17:38 Error Syntax error ESY0121: Field type annotation expected. */ +/* @@? 17:38 Error Syntax error ESY0227: Unexpected token ','. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/first_match/invalid_identifier.ets b/ets2panda/test/ast/compiler/ets/first_match/invalid_identifier.ets index 597ad29e1a..1fa2f7ffbb 100644 --- a/ets2panda/test/ast/compiler/ets/first_match/invalid_identifier.ets +++ b/ets2panda/test/ast/compiler/ets/first_match/invalid_identifier.ets @@ -27,25 +27,26 @@ function main(){ a.foo111(["abc","abc",1]); } -/* @@? 21:20 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 21:20 Error SyntaxError: Unexpected token, expected '{'. */ -/* @@? 21:20 Error TypeError: overloaded name must refer to an accessible method. */ -/* @@? 21:21 Error SyntaxError: Unexpected token, expected ',' or '}'. */ -/* @@? 21:21 Error TypeError: Variable 'foo1' has already been declared. */ -/* @@? 21:25 Error SyntaxError: Unexpected token ','. */ -/* @@? 21:25 Error SyntaxError: Field type annotation expected. */ -/* @@? 21:30 Error SyntaxError: Field type annotation expected. */ -/* @@? 21:30 Error SyntaxError: Unexpected token ','. */ -/* @@? 21:35 Error SyntaxError: Unexpected token ')'. */ -/* @@? 21:35 Error SyntaxError: Field type annotation expected. */ -/* @@? 21:36 Error SyntaxError: Unexpected token '{'. */ -/* @@? 22:20 Error SyntaxError: Unexpected token, expected '{'. */ -/* @@? 22:20 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 22:20 Error TypeError: overloaded name must refer to an accessible method. */ -/* @@? 22:21 Error SyntaxError: Unexpected token, expected ',' or '}'. */ -/* @@? 22:21 Error TypeError: Unresolved reference foo1 */ -/* @@? 22:25 Error SyntaxError: Unexpected token ','. */ -/* @@? 22:26 Error SyntaxError: Unexpected token 'foo2'. */ -/* @@? 22:26 Error TypeError: Unresolved reference foo2 */ -/* @@? 22:30 Error SyntaxError: Unexpected token ')'. */ -/* @@? 23:1 Error SyntaxError: Unexpected token '}'. */ + +/* @@? 21:20 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 21:20 Error Syntax error ESY0228: Unexpected token, expected '{'. */ +/* @@? 21:20 Error Semantic error ESE0384: overloaded name must refer to an accessible method. */ +/* @@? 21:21 Error Syntax error ESY0229: Unexpected token, expected ',' or '}'. */ +/* @@? 21:21 Error Semantic error ESE0351: Variable 'foo1' has already been declared. */ +/* @@? 21:25 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 21:25 Error Syntax error ESY0121: Field type annotation expected. */ +/* @@? 21:30 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 21:30 Error Syntax error ESY0121: Field type annotation expected. */ +/* @@? 21:35 Error Syntax error ESY0121: Field type annotation expected. */ +/* @@? 21:35 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 21:36 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 22:20 Error Syntax error ESY0228: Unexpected token, expected '{'. */ +/* @@? 22:20 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 22:20 Error Semantic error ESE0384: overloaded name must refer to an accessible method. */ +/* @@? 22:21 Error Syntax error ESY0229: Unexpected token, expected ',' or '}'. */ +/* @@? 22:21 Error Semantic error ESE0143: Unresolved reference foo1 */ +/* @@? 22:25 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 22:26 Error Syntax error ESY0227: Unexpected token 'foo2'. */ +/* @@? 22:26 Error Semantic error ESE0143: Unresolved reference foo2 */ +/* @@? 22:30 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 23:1 Error Syntax error ESY0227: Unexpected token '}'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/first_match/invalid_paramter.ets b/ets2panda/test/ast/compiler/ets/first_match/invalid_paramter.ets index 9e6faafbe0..8038351431 100644 --- a/ets2panda/test/ast/compiler/ets/first_match/invalid_paramter.ets +++ b/ets2panda/test/ast/compiler/ets/first_match/invalid_paramter.ets @@ -33,5 +33,6 @@ function main() { a.foo111(new A(), new A(), new A()) } -/* @@? 27:34 Error TypeError: overloaded name must refer to an accessible method. */ -/* @@? 27:40 Error TypeError: overloaded name must refer to an accessible method. */ + +/* @@? 27:34 Error Semantic error ESE0384: overloaded name must refer to an accessible method. */ +/* @@? 27:40 Error Semantic error ESE0384: overloaded name must refer to an accessible method. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/first_match/modifier_async.ets b/ets2panda/test/ast/compiler/ets/first_match/modifier_async.ets index 1c3ba11c80..7f9bf9bc9c 100644 --- a/ets2panda/test/ast/compiler/ets/first_match/modifier_async.ets +++ b/ets2panda/test/ast/compiler/ets/first_match/modifier_async.ets @@ -25,5 +25,6 @@ class Base2 { async overload foo {fooNumber, /* @@ label2 */fooString } } -/* @@@ label1 Error TypeError: Overload alias and overloaded method name must have exactly the same modifiers (static, async). */ -/* @@@ label2 Error TypeError: Overload alias and overloaded method name must have exactly the same modifiers (static, async). */ + +/* @@@ label1 Error Semantic error ESE0387: Overload alias and overloaded method name must have exactly the same modifiers (static, async). */ +/* @@@ label2 Error Semantic error ESE0387: Overload alias and overloaded method name must have exactly the same modifiers (static, async). */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/first_match/modifier_static.ets b/ets2panda/test/ast/compiler/ets/first_match/modifier_static.ets index 28ab388f03..bab060e371 100644 --- a/ets2panda/test/ast/compiler/ets/first_match/modifier_static.ets +++ b/ets2panda/test/ast/compiler/ets/first_match/modifier_static.ets @@ -25,7 +25,8 @@ class Base2 { static overload foo {fooNumber, /* @@ label2 */fooString } } -/* @@@ label1 Error TypeError: Overload alias and overloaded method name must have exactly the same modifiers (static, async). */ -/* @@@ label1 Error TypeError: Static property 'fooNumber' must be accessed through it's class 'Base1' */ -/* @@@ label2 Error TypeError: Overload alias and overloaded method name must have exactly the same modifiers (static, async). */ -/* @@@ label2 Error TypeError: Property 'fooString' must be accessed through 'this' */ + +/* @@@ label1 Error Semantic error ESE0387: Overload alias and overloaded method name must have exactly the same modifiers (static, async). */ +/* @@@ label1 Error Semantic error ESE0173: Static property 'fooNumber' must be accessed through it's class 'Base1' */ +/* @@@ label2 Error Semantic error ESE0387: Overload alias and overloaded method name must have exactly the same modifiers (static, async). */ +/* @@@ label2 Error Semantic error ESE0145: Property 'fooString' must be accessed through 'this' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/first_match/namespace.ets b/ets2panda/test/ast/compiler/ets/first_match/namespace.ets index 562555e43f..8173daf68c 100644 --- a/ets2panda/test/ast/compiler/ets/first_match/namespace.ets +++ b/ets2panda/test/ast/compiler/ets/first_match/namespace.ets @@ -61,12 +61,13 @@ function main(){ NS.overloadfoo3("abc"); } -/* @@? 49:8 Error TypeError: 'foo1' is not exported in 'NS' */ -/* @@? 50:8 Error TypeError: 'foo2' is not exported in 'NS' */ -/* @@? 52:8 Error TypeError: 'foo4' is not exported in 'NS' */ -/* @@? 54:5 Error TypeError: 'foo1' is not exported in 'NS' */ -/* @@? 55:5 Error TypeError: 'foo2' is not exported in 'NS' */ -/* @@? 58:5 Error TypeError: 'foo4' is not exported in 'NS' */ -/* @@? 60:8 Error TypeError: 'overloadfoo3' is not exported in 'NS' */ -/* @@? 61:5 Error TypeError: 'foo6' is not exported in 'NS' */ -/* @@? 61:8 Error TypeError: 'overloadfoo3' is not exported in 'NS' */ + +/* @@? 49:8 Error Semantic error ESE0206: 'foo1' is not exported in 'NS' */ +/* @@? 50:8 Error Semantic error ESE0206: 'foo2' is not exported in 'NS' */ +/* @@? 52:8 Error Semantic error ESE0206: 'foo4' is not exported in 'NS' */ +/* @@? 54:5 Error Semantic error ESE0206: 'foo1' is not exported in 'NS' */ +/* @@? 55:5 Error Semantic error ESE0206: 'foo2' is not exported in 'NS' */ +/* @@? 58:5 Error Semantic error ESE0206: 'foo4' is not exported in 'NS' */ +/* @@? 60:8 Error Semantic error ESE0206: 'overloadfoo3' is not exported in 'NS' */ +/* @@? 61:5 Error Semantic error ESE0206: 'foo6' is not exported in 'NS' */ +/* @@? 61:8 Error Semantic error ESE0206: 'overloadfoo3' is not exported in 'NS' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/first_match/override.ets b/ets2panda/test/ast/compiler/ets/first_match/override.ets index 2bb8873b99..f81218e806 100644 --- a/ets2panda/test/ast/compiler/ets/first_match/override.ets +++ b/ets2panda/test/ast/compiler/ets/first_match/override.ets @@ -36,4 +36,5 @@ class Sub2 extends Base{ overload foo{fooInt,fooNumber} } -/* @@? 32:20 Error TypeError: Cannot inherit from class Base, because overload foo is inherited with a different declaration type */ + +/* @@? 32:20 Error Semantic error ESE0216: Cannot inherit from class Base, because overload foo is inherited with a different declaration type */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/first_match/same_name.ets b/ets2panda/test/ast/compiler/ets/first_match/same_name.ets index 22a1f98fa7..62d2914a12 100644 --- a/ets2panda/test/ast/compiler/ets/first_match/same_name.ets +++ b/ets2panda/test/ast/compiler/ets/first_match/same_name.ets @@ -29,4 +29,5 @@ class D{ overload foo{fooString,fooBoolean} } -/* @@? 29:5 Error TypeError: Method with the same name as overload declaration 'foo', overloadlist must list this medhod. */ + +/* @@? 29:5 Error Semantic error ESE0397: Method with the same name as overload declaration 'foo', overloadlist must list this medhod. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/for_of.ets b/ets2panda/test/ast/compiler/ets/for_of.ets index eba0bf72a0..cb29d9aaae 100644 --- a/ets2panda/test/ast/compiler/ets/for_of.ets +++ b/ets2panda/test/ast/compiler/ets/for_of.ets @@ -15,4 +15,4 @@ for(let of; ;){ } -/* @@? for_of.ets:16:9 Error SyntaxError: Variable must be initialized or it's type must be declared. */ \ No newline at end of file +/* @@? 16:9 Error Syntax error ESY0105: Variable must be initialized or it's type must be declared. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/for_of_missing_iterator_type.ets b/ets2panda/test/ast/compiler/ets/for_of_missing_iterator_type.ets index c9b2fb0cac..427bfe5d5b 100644 --- a/ets2panda/test/ast/compiler/ets/for_of_missing_iterator_type.ets +++ b/ets2panda/test/ast/compiler/ets/for_of_missing_iterator_type.ets @@ -30,4 +30,5 @@ function main(): void { new A().foo(n) } -/* @@@ label Error TypeError: Cannot obtain iterator type in 'for-of' statement. */ + +/* @@@ label Error Semantic error ESE0099: Cannot obtain iterator type in 'for-of' statement. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/forbidden_inherit_class_1.ets b/ets2panda/test/ast/compiler/ets/forbidden_inherit_class_1.ets index b7caa0f3ff..e1f614a290 100644 --- a/ets2panda/test/ast/compiler/ets/forbidden_inherit_class_1.ets +++ b/ets2panda/test/ast/compiler/ets/forbidden_inherit_class_1.ets @@ -21,4 +21,5 @@ class B extends /* @@ label */Partial { } -/* @@@ label Error TypeError: The super type of 'B' class is not extensible. */ + +/* @@@ label Error Semantic error ESE0176: The super type of 'B' class is not extensible. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/forbidden_inherit_class_2.ets b/ets2panda/test/ast/compiler/ets/forbidden_inherit_class_2.ets index b068fedca6..6867ae662d 100644 --- a/ets2panda/test/ast/compiler/ets/forbidden_inherit_class_2.ets +++ b/ets2panda/test/ast/compiler/ets/forbidden_inherit_class_2.ets @@ -21,4 +21,5 @@ class B extends /* @@ label */Required { } -/* @@@ label Error TypeError: The super type of 'B' class is not extensible. */ + +/* @@@ label Error Semantic error ESE0176: The super type of 'B' class is not extensible. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/forbidden_inherit_class_3.ets b/ets2panda/test/ast/compiler/ets/forbidden_inherit_class_3.ets index b249acc301..de6a761236 100644 --- a/ets2panda/test/ast/compiler/ets/forbidden_inherit_class_3.ets +++ b/ets2panda/test/ast/compiler/ets/forbidden_inherit_class_3.ets @@ -21,4 +21,5 @@ class B extends /* @@ label */Readonly { } -/* @@@ label Error TypeError: The super type of 'B' class is not extensible. */ + +/* @@@ label Error Semantic error ESE0176: The super type of 'B' class is not extensible. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/forof_iterator_doesnt_return_iteartor.ets b/ets2panda/test/ast/compiler/ets/forof_iterator_doesnt_return_iteartor.ets index e340e0579b..28f2662b2d 100644 --- a/ets2panda/test/ast/compiler/ets/forof_iterator_doesnt_return_iteartor.ets +++ b/ets2panda/test/ast/compiler/ets/forof_iterator_doesnt_return_iteartor.ets @@ -48,7 +48,8 @@ function main(): void { } -/* @@? 18:15 Error TypeError: The return type of '$_iterator' must be a type that implements Iterator interface.*/ -/* @@? 46:19 Error TypeError: Iterator method must return an object which implements Iterator */ -/* @@? 46:19 Error TypeError: 'For-of' statement source expression is not of iterable type. */ + +/* @@? 18:15 Error Semantic error ESE0096: The return type of '$_iterator' must be a type that implements Iterator interface. */ +/* @@? 46:19 Error Semantic error ESE0261: Iterator method must return an object which implements Iterator */ +/* @@? 46:19 Error Semantic error ESE0076: 'For-of' statement source expression is not of iterable type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/forof_iterator_missing_next.ets b/ets2panda/test/ast/compiler/ets/forof_iterator_missing_next.ets index f513a77c6e..1972207706 100644 --- a/ets2panda/test/ast/compiler/ets/forof_iterator_missing_next.ets +++ b/ets2panda/test/ast/compiler/ets/forof_iterator_missing_next.ets @@ -35,6 +35,6 @@ function main(): void { arktest.assertEQ(res, 6); } -/* @@? 18:15 Error TypeError: The return type of '$_iterator' must be a type that implements Iterator interface.*/ -/* @@? 34:19 Error TypeError: Iterator method must return an object which implements Iterator */ -/* @@? 34:19 Error TypeError: 'For-of' statement source expression is not of iterable type. */ \ No newline at end of file +/* @@? 18:15 Error Semantic error ESE0096: The return type of '$_iterator' must be a type that implements Iterator interface. */ +/* @@? 34:19 Error Semantic error ESE0261: Iterator method must return an object which implements Iterator */ +/* @@? 34:19 Error Semantic error ESE0076: 'For-of' statement source expression is not of iterable type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/forof_missing_iterator_method.ets b/ets2panda/test/ast/compiler/ets/forof_missing_iterator_method.ets index 8952030938..5a56d2d2e2 100644 --- a/ets2panda/test/ast/compiler/ets/forof_missing_iterator_method.ets +++ b/ets2panda/test/ast/compiler/ets/forof_missing_iterator_method.ets @@ -27,5 +27,6 @@ function main(): int { return 0 } -/* @@? 23:17 Error TypeError: Object type doesn't have proper iterator method. */ -/* @@? 23:17 Error TypeError: 'For-of' statement source expression is not of iterable type. */ + +/* @@? 23:17 Error Semantic error ESE0258: Object type doesn't have proper iterator method. */ +/* @@? 23:17 Error Semantic error ESE0076: 'For-of' statement source expression is not of iterable type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/forof_missing_iterator_method_with_sig.ets b/ets2panda/test/ast/compiler/ets/forof_missing_iterator_method_with_sig.ets index 0adcb03bf1..ba4dd30a7d 100644 --- a/ets2panda/test/ast/compiler/ets/forof_missing_iterator_method_with_sig.ets +++ b/ets2panda/test/ast/compiler/ets/forof_missing_iterator_method_with_sig.ets @@ -31,7 +31,7 @@ function main(): int { return 0; } -/* @@? 17:3 Error SyntaxError: The special predefined method '$_iterator' should not have parameters. */ -/* @@? 17:13 Error TypeError: The return type of '$_iterator' must be a type that implements Iterator interface. */ -/* @@? 26:17 Error TypeError: Cannot find iterator method with the required signature. */ -/* @@? 26:17 Error TypeError: 'For-of' statement source expression is not of iterable type. */ \ No newline at end of file +/* @@? 17:3 Error Syntax error ESY0223: The special predefined method '$_iterator' should not have parameters. */ +/* @@? 17:13 Error Semantic error ESE0096: The return type of '$_iterator' must be a type that implements Iterator interface. */ +/* @@? 26:17 Error Semantic error ESE0259: Cannot find iterator method with the required signature. */ +/* @@? 26:17 Error Semantic error ESE0076: 'For-of' statement source expression is not of iterable type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/forof_prop_is_static.ets b/ets2panda/test/ast/compiler/ets/forof_prop_is_static.ets index ff9986cb41..67a95990d9 100644 --- a/ets2panda/test/ast/compiler/ets/forof_prop_is_static.ets +++ b/ets2panda/test/ast/compiler/ets/forof_prop_is_static.ets @@ -43,5 +43,6 @@ function main(): int { return 0 } -/* @@? 39:17 Error TypeError: '$_iterator' is a static property of 'C' */ -/* @@? 39:17 Error TypeError: 'For-of' statement source expression is not of iterable type. */ + +/* @@? 39:17 Error Semantic error ESE0207: '$_iterator' is a static property of 'C' */ +/* @@? 39:17 Error Semantic error ESE0076: 'For-of' statement source expression is not of iterable type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/func_as_param.ets b/ets2panda/test/ast/compiler/ets/func_as_param.ets index 38e38baccd..6af02a7670 100644 --- a/ets2panda/test/ast/compiler/ets/func_as_param.ets +++ b/ets2panda/test/ast/compiler/ets/func_as_param.ets @@ -114,3 +114,6 @@ function main(): void { } +/* @@? 30:19 Error Semantic error ESE0124: Expected 0 arguments, got 1. */ +/* @@? 30:19 Error Semantic error ESE0127: No matching construct signature for std.core.Char(String) */ +/* @@? 30:28 Error Semantic error ESE0046: Type 'String' is not compatible with type 'Char' at index 1 */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/function_namespace.ets b/ets2panda/test/ast/compiler/ets/function_namespace.ets index 218177cc05..0ee22418fc 100644 --- a/ets2panda/test/ast/compiler/ets/function_namespace.ets +++ b/ets2panda/test/ast/compiler/ets/function_namespace.ets @@ -17,8 +17,9 @@ function main () { export namespace taskpool { function taskfinished(task:Task) : boolean {} -/* @@? 17:1 Error SyntaxError: Unexpected token 'export'. */ -/* @@? 17:8 Error SyntaxError: Namespace is allowed only at the top level or inside a namespace. */ -/* @@? 18:32 Error TypeError: Cannot find type 'Task'. */ -/* @@? 25:1 Error SyntaxError: Unexpected token. */ -/* @@? 25:1 Error SyntaxError: Expected '}', got 'end of stream'. */ + +/* @@? 17:1 Error Syntax error ESY0227: Unexpected token 'export'. */ +/* @@? 17:8 Error Syntax error ESY0134: Namespace is allowed only at the top level or inside a namespace. */ +/* @@? 18:32 Error Semantic error ESE0371: Cannot find type 'Task'. */ +/* @@? 25:79 Error Syntax error ESY0016: Unexpected token. */ +/* @@? 25:79 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/function_property.ets b/ets2panda/test/ast/compiler/ets/function_property.ets index e0ca994962..e1a81fd89d 100644 --- a/ets2panda/test/ast/compiler/ets/function_property.ets +++ b/ets2panda/test/ast/compiler/ets/function_property.ets @@ -19,4 +19,5 @@ function readImage(path: string) { } return contents; } -/* @@@ label Error TypeError: Property 'sync' does not exist on type 'Function' */ + +/* @@@ label Error Semantic error ESE0087: Property 'sync' does not exist on type 'Function' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/function_signature.ets b/ets2panda/test/ast/compiler/ets/function_signature.ets index 1a51660182..25615ea070 100644 --- a/ets2panda/test/ast/compiler/ets/function_signature.ets +++ b/ets2panda/test/ast/compiler/ets/function_signature.ets @@ -17,9 +17,10 @@ final class TypeCreateCtx { internal static native getObjectArrayForCCtor(ctxPtr: long): FixedArray must have only one type parameter. */ -/* @@? 17:88 Error SyntaxError: Unexpected token, expected '>'. */ -/* @@? 17:88 Error SyntaxError: Unexpected token '>'. */ -/* @@? 17:97 Error SyntaxError: Field type annotation expected. */ -/* @@? 17:120 Error TypeError: Only abstract or native methods can't have body. */ -/* @@? 17:138 Error TypeError: Cannot find type 'RuntimeTypeDescriptor'. */ + +/* @@? 17:66 Error Semantic error ESE0277: FixedArray must have only one type parameter. */ +/* @@? 17:88 Error Syntax error ESY0228: Unexpected token, expected '>'. */ +/* @@? 17:88 Error Syntax error ESY0227: Unexpected token '>'. */ +/* @@? 17:97 Error Syntax error ESY0121: Field type annotation expected. */ +/* @@? 17:120 Error Semantic error ESE0017: Only abstract or native methods can't have body. */ +/* @@? 17:138 Error Semantic error ESE0371: Cannot find type 'RuntimeTypeDescriptor'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/function_signature_mismatch.ets b/ets2panda/test/ast/compiler/ets/function_signature_mismatch.ets index 60e656cd74..aec48b9bb7 100644 --- a/ets2panda/test/ast/compiler/ets/function_signature_mismatch.ets +++ b/ets2panda/test/ast/compiler/ets/function_signature_mismatch.ets @@ -32,5 +32,6 @@ function main() { container.returnThisMember(); } -/* @@? 16:33 Error SyntaxError: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ -/* @@? 28:23 Error TypeError: Function name 'returnThisMember' used in the wrong context */ + +/* @@? 16:33 Error Syntax error ESY177354: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ +/* @@? 28:23 Error Semantic error ESE0144: Function name 'returnThisMember' used in the wrong context */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/function_subtyping_2.ets b/ets2panda/test/ast/compiler/ets/function_subtyping_2.ets index 73201059ad..97dfef832b 100644 --- a/ets2panda/test/ast/compiler/ets/function_subtyping_2.ets +++ b/ets2panda/test/ast/compiler/ets/function_subtyping_2.ets @@ -19,4 +19,4 @@ class B extends A {} function main(): void { let x: (p: B) => B = /* @@ label */(p: A): A => { return new B() } } -/* @@@ label Error TypeError: Type '(p1: A) => A' cannot be assigned to type '(p1: B) => B' */ +/* @@@ label Error Semantic error ESE0318: Type '(p1: A) => A' cannot be assigned to type '(p1: B) => B' */ diff --git a/ets2panda/test/ast/compiler/ets/function_subtyping_3.ets b/ets2panda/test/ast/compiler/ets/function_subtyping_3.ets index 4728492c5b..fbf5ec22af 100644 --- a/ets2panda/test/ast/compiler/ets/function_subtyping_3.ets +++ b/ets2panda/test/ast/compiler/ets/function_subtyping_3.ets @@ -19,4 +19,4 @@ class B extends A {} function main(): void { let x: (p: A) => A = /* @@ label */(p: B): B => { return new B() } } -/* @@@ label Error TypeError: Type '(p1: B) => B' cannot be assigned to type '(p1: A) => A' */ +/* @@@ label Error Semantic error ESE0318: Type '(p1: B) => B' cannot be assigned to type '(p1: A) => A' */ diff --git a/ets2panda/test/ast/compiler/ets/function_typeerror.ets b/ets2panda/test/ast/compiler/ets/function_typeerror.ets index 969d9217be..6f2e3812af 100644 --- a/ets2panda/test/ast/compiler/ets/function_typeerror.ets +++ b/ets2panda/test/ast/compiler/ets/function_typeerror.ets @@ -35,21 +35,22 @@ function main(): void { arktest.assertEQ(resultA, resultB); } -/* @@? 17:14 Error TypeError: Only abstract or native methods can't have body. */ -/* @@? 17:19 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 17:19 Error SyntaxError: Unexpected token '.'. */ -/* @@? 17:19 Error SyntaxError: The function parameter 'this' must explicitly specify the typeAnnotation. */ -/* @@? 17:30 Error SyntaxError: Field type annotation expected. */ -/* @@? 17:30 Error SyntaxError: Unexpected token ','. */ -/* @@? 17:32 Error SyntaxError: Unexpected token 'this'. */ -/* @@? 17:36 Error SyntaxError: Unexpected token '.'. */ -/* @@? 17:41 Error SyntaxError: Field type annotation expected. */ -/* @@? 17:41 Error SyntaxError: Unexpected token ')'. */ -/* @@? 17:42 Error SyntaxError: Unexpected token ':'. */ -/* @@? 17:48 Error SyntaxError: Field type annotation expected. */ -/* @@? 17:49 Error SyntaxError: Unexpected token '{'. */ -/* @@? 18:9 Error SyntaxError: Unexpected token 'return'. */ -/* @@? 18:17 Error SyntaxError: Field type annotation expected. */ -/* @@? 20:1 Error SyntaxError: Unexpected token '}'. */ -/* @@? 23:23 Error TypeError: Method methodOne(p: Derived): Base in Derived not overriding any method */ -/* @@? 32:21 Error TypeError: Property 'methodOne' does not exist on type 'Base' */ + +/* @@? 17:14 Error Semantic error ESE0017: Only abstract or native methods can't have body. */ +/* @@? 17:19 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 17:19 Error Syntax error ESY0227: Unexpected token '.'. */ +/* @@? 17:19 Error Syntax error ESY0099: The function parameter 'this' must explicitly specify the typeAnnotation. */ +/* @@? 17:30 Error Syntax error ESY0121: Field type annotation expected. */ +/* @@? 17:30 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 17:32 Error Syntax error ESY0227: Unexpected token 'this'. */ +/* @@? 17:36 Error Syntax error ESY0227: Unexpected token '.'. */ +/* @@? 17:41 Error Syntax error ESY0121: Field type annotation expected. */ +/* @@? 17:41 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 17:42 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 17:48 Error Syntax error ESY0121: Field type annotation expected. */ +/* @@? 17:49 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 18:9 Error Syntax error ESY0227: Unexpected token 'return'. */ +/* @@? 18:17 Error Syntax error ESY0121: Field type annotation expected. */ +/* @@? 20:1 Error Syntax error ESY0227: Unexpected token '}'. */ +/* @@? 23:23 Error Semantic error ESE0136: Method methodOne(p: Derived): Base in Derived not overriding any method */ +/* @@? 32:21 Error Semantic error ESE0087: Property 'methodOne' does not exist on type 'Base' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/fuzz_invalid_method.ets b/ets2panda/test/ast/compiler/ets/fuzz_invalid_method.ets index c85cff638a..dae490ca91 100644 --- a/ets2panda/test/ast/compiler/ets/fuzz_invalid_method.ets +++ b/ets2panda/test/ast/compiler/ets/fuzz_invalid_method.ets @@ -28,9 +28,10 @@ class A { } -/* @@? 22:8 Error SyntaxError: Field type annotation expected. */ -/* @@? 23:9 Error SyntaxError: Unexpected token 'return'. */ -/* @@? 23:16 Error SyntaxError: Unexpected token 'this'. */ -/* @@? 23:20 Error SyntaxError: Unexpected token '.'. */ -/* @@? 23:43 Error SyntaxError: Field type annotation expected. */ -/* @@? 25:5 Error SyntaxError: Call signatures in object types are not supported. Use '$_invoke' method instead. */ + +/* @@? 22:8 Error Syntax error ESY0121: Field type annotation expected. */ +/* @@? 23:9 Error Syntax error ESY0227: Unexpected token 'return'. */ +/* @@? 23:16 Error Syntax error ESY0227: Unexpected token 'this'. */ +/* @@? 23:20 Error Syntax error ESY0227: Unexpected token '.'. */ +/* @@? 23:43 Error Syntax error ESY0121: Field type annotation expected. */ +/* @@? 25:5 Error Syntax error ESY103145: Call signatures in object types are not supported. Use '$_invoke' method instead. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/fuzz_invalid_property.ets b/ets2panda/test/ast/compiler/ets/fuzz_invalid_property.ets index 39746c2c66..e38515482a 100644 --- a/ets2panda/test/ast/compiler/ets/fuzz_invalid_property.ets +++ b/ets2panda/test/ast/compiler/ets/fuzz_invalid_property.ets @@ -17,13 +17,14 @@ class D{ strB = (new StringBuilder).append('{ ').append(strB.toString()).append(' }') } -/* @@? 17:12 Error TypeError: Circular call function */ -/* @@? 17:12 Error TypeError: Call to `append` is ambiguous as `2` versions of `append` are available: `append(s: String): StringBuilder` and `append(i: Boolean): StringBuilder` */ -/* @@? 17:12 Error TypeError: Call to `append` is ambiguous as `2` versions of `append` are available: `append(s: String): StringBuilder` and `append(i: Byte): StringBuilder` */ -/* @@? 17:12 Error TypeError: Call to `append` is ambiguous as `2` versions of `append` are available: `append(s: String): StringBuilder` and `append(i: Short): StringBuilder` */ -/* @@? 17:12 Error TypeError: Call to `append` is ambiguous as `2` versions of `append` are available: `append(s: String): StringBuilder` and `append(i: Char): StringBuilder` */ -/* @@? 17:12 Error TypeError: Call to `append` is ambiguous as `2` versions of `append` are available: `append(s: String): StringBuilder` and `append(i: Int): StringBuilder` */ -/* @@? 17:12 Error TypeError: Call to `append` is ambiguous as `2` versions of `append` are available: `append(s: String): StringBuilder` and `append(i: Long): StringBuilder` */ -/* @@? 17:12 Error TypeError: Call to `append` is ambiguous as `2` versions of `append` are available: `append(s: String): StringBuilder` and `append(i: Float): StringBuilder` */ -/* @@? 17:12 Error TypeError: Call to `append` is ambiguous as `2` versions of `append` are available: `append(s: String): StringBuilder` and `append(i: Double): StringBuilder` */ -/* @@? 17:52 Error TypeError: Property 'strB' must be accessed through 'this' */ + +/* @@? 17:12 Error Semantic error ESE0381: Circular call function */ +/* @@? 17:12 Error Semantic error ESE0142: Call to `append` is ambiguous as `2` versions of `append` are available: `append(s: String): StringBuilder` and `append(i: Boolean): StringBuilder` */ +/* @@? 17:12 Error Semantic error ESE0142: Call to `append` is ambiguous as `2` versions of `append` are available: `append(s: String): StringBuilder` and `append(i: Byte): StringBuilder` */ +/* @@? 17:12 Error Semantic error ESE0142: Call to `append` is ambiguous as `2` versions of `append` are available: `append(s: String): StringBuilder` and `append(i: Short): StringBuilder` */ +/* @@? 17:12 Error Semantic error ESE0142: Call to `append` is ambiguous as `2` versions of `append` are available: `append(s: String): StringBuilder` and `append(i: Char): StringBuilder` */ +/* @@? 17:12 Error Semantic error ESE0142: Call to `append` is ambiguous as `2` versions of `append` are available: `append(s: String): StringBuilder` and `append(i: Int): StringBuilder` */ +/* @@? 17:12 Error Semantic error ESE0142: Call to `append` is ambiguous as `2` versions of `append` are available: `append(s: String): StringBuilder` and `append(i: Long): StringBuilder` */ +/* @@? 17:12 Error Semantic error ESE0142: Call to `append` is ambiguous as `2` versions of `append` are available: `append(s: String): StringBuilder` and `append(i: Float): StringBuilder` */ +/* @@? 17:12 Error Semantic error ESE0142: Call to `append` is ambiguous as `2` versions of `append` are available: `append(s: String): StringBuilder` and `append(i: Double): StringBuilder` */ +/* @@? 17:52 Error Semantic error ESE0145: Property 'strB' must be accessed through 'this' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/fuzzingtest0.ets b/ets2panda/test/ast/compiler/ets/fuzzingtest0.ets index 63fb0322b1..4f2972a867 100644 --- a/ets2panda/test/ast/compiler/ets/fuzzingtest0.ets +++ b/ets2panda/test/ast/compiler/ets/fuzzingtest0.ets @@ -16,10 +16,11 @@ // the test case is from fuzzer. let callback = () => {for /* @@ label1 */aa !== /* @@ label2 */arr[idx]/* @@ label3 */) -/* @@@ label1 Error SyntaxError: Expected '(', got 'identification literal'. */ -/* @@@ label1 Error TypeError: Unresolved reference aa */ -/* @@@ label2 Error TypeError: Unresolved reference arr */ -/* @@@ label2 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@@ label3 Error SyntaxError: Invalid left-hand side in 'For[In/Of]Statement'. */ -/* @@? 26:1 Error SyntaxError: Unexpected token 'end of stream'. */ -/* @@? 26:1 Error SyntaxError: Expected '}', got 'end of stream'. */ + +/* @@@ label1 Error Syntax error ESY0230: Expected '(', got 'identification literal'. */ +/* @@@ label1 Error Semantic error ESE0143: Unresolved reference aa */ +/* @@@ label2 Error Semantic error ESE0143: Unresolved reference arr */ +/* @@@ label2 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@@ label3 Error Syntax error ESY0167: Invalid left-hand side in 'For[In/Of]Statement'. */ +/* @@? 26:79 Error Syntax error ESY0227: Unexpected token 'end of stream'. */ +/* @@? 26:79 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/fuzzingtest1.ets b/ets2panda/test/ast/compiler/ets/fuzzingtest1.ets index 08bf93ddf6..802db30d8b 100644 --- a/ets2panda/test/ast/compiler/ets/fuzzingtest1.ets +++ b/ets2panda/test/ast/compiler/ets/fuzzingtest1.ets @@ -16,7 +16,8 @@ // the test case is from fuzzer. /* @@ label */fuzzz./* @@ label2 */@@/* @@ label3 */@@ -/* @@? 17:15 Error TypeError: Unresolved reference fuzzz */ -/* @@? 17:36 Error SyntaxError: There is no any node to insert at the placeholder position. */ -/* @@? 17:36 Error SyntaxError: Unexpected token '@@'. */ -/* @@? 17:53 Error SyntaxError: Unexpected token '@@'. */ + +/* @@@ label Error Semantic error ESE0143: Unresolved reference fuzzz */ +/* @@@ label2 Error Syntax error ESY0010: There is no any node to insert at the placeholder position. */ +/* @@@ label2 Error Syntax error ESY0227: Unexpected token '@@'. */ +/* @@@ label3 Error Syntax error ESY0227: Unexpected token '@@'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/fuzzingtest2.ets b/ets2panda/test/ast/compiler/ets/fuzzingtest2.ets index eff6fa17ba..62f4f0bfb6 100644 --- a/ets2panda/test/ast/compiler/ets/fuzzingtest2.ets +++ b/ets2panda/test/ast/compiler/ets/fuzzingtest2.ets @@ -16,5 +16,6 @@ // the test case is from fuzzer. /* @@ label */i ??/* @@ label2 */@@ -/* @@@ label Error TypeError: Unresolved reference i */ -/* @@@ label2 Error SyntaxError: Unexpected token '@@'. */ + +/* @@@ label Error Semantic error ESE0143: Unresolved reference i */ +/* @@@ label2 Error Syntax error ESY0227: Unexpected token '@@'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/fuzzingtest3.ets b/ets2panda/test/ast/compiler/ets/fuzzingtest3.ets index f3b80f5acc..a875ef90fe 100644 --- a/ets2panda/test/ast/compiler/ets/fuzzingtest3.ets +++ b/ets2panda/test/ast/compiler/ets/fuzzingtest3.ets @@ -14,11 +14,12 @@ */ // the test case is from fuzzer. -/* @@? 24:1 Error TypeError: Unresolved reference abcdefghijklmnopqrstuvwxyzABC */ -/* @@? 24:30 Error SyntaxError: Unexpected token '`'. */ -/* @@? 24:30 Error SyntaxError: Unexpected token, expected '`'. */ -/* @@? 24:31 Error SyntaxError: Unterminated string. */ -/* @@? 24:31 Error SyntaxError: Unexpected token, expected '${' or '`' */ -/* @@? 24:31 Error SyntaxError: Unexpected token, expected '`'. */ -abcdefghijklmnopqrstuvwxyzABC`DEF\n� \ No newline at end of file + +abcdefghijklmnopqrstuvwxyzABC`DEF\n�/* @@? 19:1 Error Semantic error ESE0143: Unresolved reference abcdefghijklmnopqrstuvwxyzABC */ +/* @@? 19:30 Error Syntax error ESY0227: Unexpected token '`'. */ +/* @@? 20:61 Error Syntax error ESY0265: Newline is not allowed in strings */ +/* @@? 20:61 Error Syntax error ESY0227: Unexpected token '. */'. */ +/* @@? 21:78 Error Syntax error ESY0265: Newline is not allowed in strings */ +/* @@? 23:78 Error Syntax error ESY0224: Identifier expected, got '*'. */ +/* @@? 23:78 Error Syntax error ESY0227: Unexpected token 'end of stream'. */'. */'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/fuzzingtest4.ets b/ets2panda/test/ast/compiler/ets/fuzzingtest4.ets index 93c9fbf39d..b8ccdce3c5 100644 --- a/ets2panda/test/ast/compiler/ets/fuzzingtest4.ets +++ b/ets2panda/test/ast/compiler/ets/fuzzingtest4.ets @@ -17,6 +17,7 @@ function foo() { new CC. } -/* @@? 17:9 Error TypeError: Cannot find type 'CC'. */ -/* @@? 18:1 Error SyntaxError: Identifier expected. */ -/* @@? 18:1 Error TypeError: Invalid type reference. */ + +/* @@? 17:9 Error Semantic error ESE0371: Cannot find type 'CC'. */ +/* @@? 18:1 Error Syntax error ESY0122: Identifier expected. */ +/* @@? 18:1 Error Semantic error ESE0299: Invalid type reference. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/fuzzingtest5.ets b/ets2panda/test/ast/compiler/ets/fuzzingtest5.ets index 34e6e9c60d..42854ac164 100644 --- a/ets2panda/test/ast/compiler/ets/fuzzingtest5.ets +++ b/ets2panda/test/ast/compiler/ets/fuzzingtest5.ets @@ -19,5 +19,6 @@ 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' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/fuzzingtest6.ets b/ets2panda/test/ast/compiler/ets/fuzzingtest6.ets index 79c7af6977..70fca712c5 100644 --- a/ets2panda/test/ast/compiler/ets/fuzzingtest6.ets +++ b/ets2panda/test/ast/compiler/ets/fuzzingtest6.ets @@ -21,5 +21,6 @@ class B extends A implements inter { function foo1(b: Partial>) { } -/* @@? 18:20 Error TypeError: Cannot find type 'A'. */ -/* @@? 18:20 Error TypeError: The super type of 'B' class is not extensible. */ + +/* @@? 18:20 Error Semantic error ESE0371: Cannot find type 'A'. */ +/* @@? 18:20 Error Semantic error ESE0176: The super type of 'B' class is not extensible. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/genericObjectLiteral_neg_1.ets b/ets2panda/test/ast/compiler/ets/genericObjectLiteral_neg_1.ets index 11b245f328..5110df8bfd 100644 --- a/ets2panda/test/ast/compiler/ets/genericObjectLiteral_neg_1.ets +++ b/ets2panda/test/ast/compiler/ets/genericObjectLiteral_neg_1.ets @@ -22,4 +22,5 @@ function main(): void { let b : Person ={name: /* @@ label */42, age:25} } -/* @@@ label Error TypeError: Type 'Int' is not compatible with type 'String' at property 'name' */ + +/* @@@ label Error Semantic error ESE0319: Type 'Int' is not compatible with type 'String' at property 'name' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/genericObjectLiteral_neg_2.ets b/ets2panda/test/ast/compiler/ets/genericObjectLiteral_neg_2.ets index d12d67284b..a978c0e6e7 100644 --- a/ets2panda/test/ast/compiler/ets/genericObjectLiteral_neg_2.ets +++ b/ets2panda/test/ast/compiler/ets/genericObjectLiteral_neg_2.ets @@ -22,4 +22,5 @@ function main(): void { let b : Person/* @@ label */ ={name: "John", age:25} } -/* @@@ label Error TypeError: Type argument 'String' should be a subtype of 'Double'-constraint */ + +/* @@@ label Error Semantic error ESE0228: Type argument 'String' should be a subtype of 'Double'-constraint */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/genericObjectLiteral_neg_3.ets b/ets2panda/test/ast/compiler/ets/genericObjectLiteral_neg_3.ets index fd7eed0b9e..97ead20716 100644 --- a/ets2panda/test/ast/compiler/ets/genericObjectLiteral_neg_3.ets +++ b/ets2panda/test/ast/compiler/ets/genericObjectLiteral_neg_3.ets @@ -22,5 +22,6 @@ function main(): void { let b : Person/* @@ label */ ={name: "John", age:/* @@ label1 */"25"} } -/* @@@ label Error TypeError: Type argument 'Double' should be a subtype of 'String'-constraint */ -/* @@@ label1 Error TypeError: Type '"25"' is not compatible with type 'Double' at property 'age' */ + +/* @@@ label Error Semantic error ESE0228: Type argument 'Double' should be a subtype of 'String'-constraint */ +/* @@@ label1 Error Semantic error ESE0319: Type '"25"' is not compatible with type 'Double' at property 'age' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/generic_callback.ets b/ets2panda/test/ast/compiler/ets/generic_callback.ets index 988db1f0fc..4ba79a8aad 100644 --- a/ets2panda/test/ast/compiler/ets/generic_callback.ets +++ b/ets2panda/test/ast/compiler/ets/generic_callback.ets @@ -18,11 +18,11 @@ } let x = [1, 2, 3].map(identity)[0]; -/* @@? 19:9 Error TypeError: No matching call signature for map((p1: A) => A) */ -/* @@? 19:9 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@? 19:9 Error TypeError: No matching call signature for map((p1: A) => A) */ -/* @@? 19:9 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@? 19:23 Error TypeError: Type '(p1: A) => A' is not compatible with type '(p1: Int, p2: Int, p3: Array) => A' at index 1 */ -/* @@? 19:23 Error TypeError: Type '(p1: A) => A' is not compatible with type '(p1: Int, p2: Int, p3: ReadonlyArray) => A' at index 1 */ -/* @@? 19:23 Error TypeError: Type '(p1: A) => A' is not compatible with type '(p1: Int, p2: Int, p3: Array) => A' at index 1 */ -/* @@? 19:23 Error TypeError: Type '(p1: A) => A' is not compatible with type '(p1: Int, p2: Int, p3: ReadonlyArray) => A' at index 1 */ +/* @@? 19:9 Error Semantic error ESE0127: No matching call signature for map((p1: A) => A) */ +/* @@? 19:9 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 19:9 Error Semantic error ESE0127: No matching call signature for map((p1: A) => A) */ +/* @@? 19:9 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 19:23 Error Semantic error ESE0046: Type '(p1: A) => A' is not compatible with type '(p1: Int, p2: Int, p3: Array) => A' at index 1 */ +/* @@? 19:23 Error Semantic error ESE0046: Type '(p1: A) => A' is not compatible with type '(p1: Int, p2: Int, p3: ReadonlyArray) => A' at index 1 */ +/* @@? 19:23 Error Semantic error ESE0046: Type '(p1: A) => A' is not compatible with type '(p1: Int, p2: Int, p3: Array) => A' at index 1 */ +/* @@? 19:23 Error Semantic error ESE0046: Type '(p1: A) => A' is not compatible with type '(p1: Int, p2: Int, p3: ReadonlyArray) => A' at index 1 */ diff --git a/ets2panda/test/ast/compiler/ets/generic_class_without_type_arg_1.ets b/ets2panda/test/ast/compiler/ets/generic_class_without_type_arg_1.ets index 1755972658..1c8d667b69 100644 --- a/ets2panda/test/ast/compiler/ets/generic_class_without_type_arg_1.ets +++ b/ets2panda/test/ast/compiler/ets/generic_class_without_type_arg_1.ets @@ -19,4 +19,5 @@ function main(): void { let i: /* @@ label */A = undefined; } -/* @@@ label Error TypeError: Type 'A' is generic but type argument were not provided. */ + +/* @@@ label Error Semantic error ESE0170: Type 'A' is generic but type argument were not provided. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/generic_class_without_type_arg_2.ets b/ets2panda/test/ast/compiler/ets/generic_class_without_type_arg_2.ets index 049b1c7a37..2189ac159e 100644 --- a/ets2panda/test/ast/compiler/ets/generic_class_without_type_arg_2.ets +++ b/ets2panda/test/ast/compiler/ets/generic_class_without_type_arg_2.ets @@ -20,4 +20,5 @@ function main(): void { arktest.assertEQ(i, undefined); } -/* @@@ label Error TypeError: Type 'A' is generic but type argument were not provided. */ + +/* @@@ label Error Semantic error ESE0170: Type 'A' is generic but type argument were not provided. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/generic_function_call_2.ets b/ets2panda/test/ast/compiler/ets/generic_function_call_2.ets index e4a18c20be..6fd08e1f6f 100644 --- a/ets2panda/test/ast/compiler/ets/generic_function_call_2.ets +++ b/ets2panda/test/ast/compiler/ets/generic_function_call_2.ets @@ -24,5 +24,6 @@ function main() : void { /* @@ label */fn(/* @@ label1 */b); } -/* @@@ label1 Error TypeError: Type 'B' is not compatible with type 'A' at index 1 */ -/* @@@ label Error TypeError: No matching call signature for fn(B) */ + +/* @@@ label Error Semantic error ESE0127: No matching call signature for fn(B) */ +/* @@@ label1 Error Semantic error ESE0046: Type 'B' is not compatible with type 'A' at index 1 */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/generic_function_call_6.ets b/ets2panda/test/ast/compiler/ets/generic_function_call_6.ets index e0688a9e7b..ac8b9aea0a 100644 --- a/ets2panda/test/ast/compiler/ets/generic_function_call_6.ets +++ b/ets2panda/test/ast/compiler/ets/generic_function_call_6.ets @@ -22,4 +22,5 @@ function main() { /* @@ label */fn() } -/* @@@ label Error TypeError: No matching call signature */ + +/* @@@ label Error Semantic error ESE0128: No matching call signature */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/generic_method_with_default_short_neg.ets b/ets2panda/test/ast/compiler/ets/generic_method_with_default_short_neg.ets index ee7b46aabf..cfa2fd4aac 100644 --- a/ets2panda/test/ast/compiler/ets/generic_method_with_default_short_neg.ets +++ b/ets2panda/test/ast/compiler/ets/generic_method_with_default_short_neg.ets @@ -25,4 +25,5 @@ function main(): void { arktest.assertEQ(result, 0 as short); } -/* @@? 17:32 Error TypeError: Cannot cast type 'Int' to 'X' */ + +/* @@? 17:32 Error Semantic error ESE0326: Cannot cast type 'Int' to 'X' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/generic_method_with_promise_return_neg.ets b/ets2panda/test/ast/compiler/ets/generic_method_with_promise_return_neg.ets index 5676324ca1..11f4e6af95 100644 --- a/ets2panda/test/ast/compiler/ets/generic_method_with_promise_return_neg.ets +++ b/ets2panda/test/ast/compiler/ets/generic_method_with_promise_return_neg.ets @@ -26,5 +26,6 @@ function main(): void { }); } -/* @@? 18:15 Error TypeError: Type 'Promise<*ERROR_TYPE*>' is not compatible with the enclosing method's return type 'Promise' */ -/* @@? 18:31 Error TypeError: Cannot cast type 'Int' to 'X' */ + +/* @@? 18:15 Error Semantic error ESE0091: Type 'Promise<*ERROR_TYPE*>' is not compatible with the enclosing method's return type 'Promise' */ +/* @@? 18:31 Error Semantic error ESE0326: Cannot cast type 'Int' to 'X' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/generic_typealias_2_neg.ets b/ets2panda/test/ast/compiler/ets/generic_typealias_2_neg.ets index 2ce7f0e30f..9ecf3141b8 100644 --- a/ets2panda/test/ast/compiler/ets/generic_typealias_2_neg.ets +++ b/ets2panda/test/ast/compiler/ets/generic_typealias_2_neg.ets @@ -20,4 +20,5 @@ function main(): void { let a: my_type = new Int(); } -/* @@? 20:12 Error TypeError: Type alias declaration is generic, but too few type arguments were provided */ + +/* @@? 20:12 Error Semantic error ESE0155: Type alias declaration is generic, but too few type arguments were provided */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/generic_typealias_3_neg.ets b/ets2panda/test/ast/compiler/ets/generic_typealias_3_neg.ets index 2cbad3fcf1..d1e58460ca 100644 --- a/ets2panda/test/ast/compiler/ets/generic_typealias_3_neg.ets +++ b/ets2panda/test/ast/compiler/ets/generic_typealias_3_neg.ets @@ -20,4 +20,5 @@ function main(): void { let a: my_type/* @@ label */ = new Int(); } -/* @@@ label Error TypeError: Type alias declaration is not generic, but type parameters were provided */ + +/* @@@ label Error Semantic error ESE0156: Type alias declaration is not generic, but type parameters were provided */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/generic_typealias_4_neg.ets b/ets2panda/test/ast/compiler/ets/generic_typealias_4_neg.ets index a4cf992ba0..0be9075ed9 100644 --- a/ets2panda/test/ast/compiler/ets/generic_typealias_4_neg.ets +++ b/ets2panda/test/ast/compiler/ets/generic_typealias_4_neg.ets @@ -20,4 +20,5 @@ function main(): void { let a: my_type/* @@ label */ = new Int(); } -/* @@@ label Error TypeError: Expected at least 1 type arguments, but got 2. */ + +/* @@@ label Error Semantic error ESE0274: Expected at least 1 type arguments, but got 2. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/generic_typealias_5_neg.ets b/ets2panda/test/ast/compiler/ets/generic_typealias_5_neg.ets index 1905464507..53e76b4ad9 100644 --- a/ets2panda/test/ast/compiler/ets/generic_typealias_5_neg.ets +++ b/ets2panda/test/ast/compiler/ets/generic_typealias_5_neg.ets @@ -22,4 +22,5 @@ function main(): void { let a: A/* @@ label */; } -/* @@@ label Error TypeError: Type argument 'B' should be a subtype of 'Comparable'-constraint */ + +/* @@@ label Error Semantic error ESE0228: Type argument 'B' should be a subtype of 'Comparable'-constraint */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/generic_variance_2.ets b/ets2panda/test/ast/compiler/ets/generic_variance_2.ets index be03b15a71..ee6b2fe116 100644 --- a/ets2panda/test/ast/compiler/ets/generic_variance_2.ets +++ b/ets2panda/test/ast/compiler/ets/generic_variance_2.ets @@ -22,4 +22,5 @@ class A2 {} function main(): void { let x1: A1 = /* @@ label */new A1() } -/* @@@ label Error TypeError: Type 'A1' cannot be assigned to type 'A1' */ + +/* @@@ label Error Semantic error ESE0318: Type 'A1' cannot be assigned to type 'A1' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/generic_variance_3.ets b/ets2panda/test/ast/compiler/ets/generic_variance_3.ets index 827eee769a..70e5e13562 100644 --- a/ets2panda/test/ast/compiler/ets/generic_variance_3.ets +++ b/ets2panda/test/ast/compiler/ets/generic_variance_3.ets @@ -22,4 +22,5 @@ class A2 {} function main(): void { let x1: A2 = /* @@ label */new A2() } -/* @@@ label Error TypeError: Type 'A2' cannot be assigned to type 'A2' */ + +/* @@@ label Error Semantic error ESE0318: Type 'A2' cannot be assigned to type 'A2' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/generic_variance_4.ets b/ets2panda/test/ast/compiler/ets/generic_variance_4.ets index 53bb2466a9..3cd030768e 100644 --- a/ets2panda/test/ast/compiler/ets/generic_variance_4.ets +++ b/ets2panda/test/ast/compiler/ets/generic_variance_4.ets @@ -22,4 +22,5 @@ class A2 {} function main(): void { let x2: A1 = /* @@ label */new A1() } -/* @@@ label Error TypeError: Type 'A1' cannot be assigned to type 'A1' */ + +/* @@@ label Error Semantic error ESE0318: Type 'A1' cannot be assigned to type 'A1' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/generic_variance_5.ets b/ets2panda/test/ast/compiler/ets/generic_variance_5.ets index 51d455618c..413cf2af8f 100644 --- a/ets2panda/test/ast/compiler/ets/generic_variance_5.ets +++ b/ets2panda/test/ast/compiler/ets/generic_variance_5.ets @@ -22,4 +22,5 @@ class A2 {} function main(): void { let x4: A2 = /* @@ label */new A2() } -/* @@@ label Error TypeError: Type 'A2' cannot be assigned to type 'A2' */ + +/* @@@ label Error Semantic error ESE0318: Type 'A2' cannot be assigned to type 'A2' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/generics_implicit_lambda2.ets b/ets2panda/test/ast/compiler/ets/generics_implicit_lambda2.ets index 340c91b8e3..f2fc96a775 100644 --- a/ets2panda/test/ast/compiler/ets/generics_implicit_lambda2.ets +++ b/ets2panda/test/ast/compiler/ets/generics_implicit_lambda2.ets @@ -19,4 +19,4 @@ function main() { foo(/* @@ label */(a: int, b: String, c: String): String => { return "XXX" }); } -/* @@@ label Error TypeError: Type '(p1: Int, p2: String, p3: String) => String' is not compatible with type '(p1: Int, p2: String, p3: Int) => String' at index 1 */ +/* @@@ label Error Semantic error ESE0046: Type '(p1: Int, p2: String, p3: String) => String' is not compatible with type '(p1: Int, p2: String, p3: Int) => String' at index 1 */ diff --git a/ets2panda/test/ast/compiler/ets/generics_primitive_type_param_neg_1.ets b/ets2panda/test/ast/compiler/ets/generics_primitive_type_param_neg_1.ets index c8f046fedf..17351b69a5 100644 --- a/ets2panda/test/ast/compiler/ets/generics_primitive_type_param_neg_1.ets +++ b/ets2panda/test/ast/compiler/ets/generics_primitive_type_param_neg_1.ets @@ -27,4 +27,5 @@ function main(): void { } } -/* @@@ label Error TypeError: Constant expression required */ + +/* @@@ label Error Semantic error ESE0163: Constant expression required */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/generics_primitive_type_param_neg_2.ets b/ets2panda/test/ast/compiler/ets/generics_primitive_type_param_neg_2.ets index 9aa95c9ad4..75ef0fde30 100644 --- a/ets2panda/test/ast/compiler/ets/generics_primitive_type_param_neg_2.ets +++ b/ets2panda/test/ast/compiler/ets/generics_primitive_type_param_neg_2.ets @@ -25,4 +25,5 @@ function main(): void { a_B.value./* @@ label */unboxed(); } -/* @@@ label Error TypeError: Property 'unboxed' does not exist on type 'B' */ + +/* @@@ label Error Semantic error ESE0087: Property 'unboxed' does not exist on type 'B' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/getType.ets b/ets2panda/test/ast/compiler/ets/getType.ets index beeb87771d..44d4aed175 100644 --- a/ets2panda/test/ast/compiler/ets/getType.ets +++ b/ets2panda/test/ast/compiler/ets/getType.ets @@ -15,13 +15,14 @@ declare type type_tuple_union = [string, boolean, number] | (this.mnum === other.mnum && this.mden === other.mden )[] -/* @@? 15:62 Error SyntaxError: A 'this' type is available only as return type in a non-static method of a class or struct and extension functions. */ -/* @@? 15:66 Error SyntaxError: Unexpected token, expected ')'. */ -/* @@? 15:67 Error TypeError: Unresolved reference mnum */ -/* @@? 15:76 Error TypeError: Unresolved reference other */ -/* @@? 15:90 Error TypeError: 'this' cannot be referenced from a static context */ -/* @@? 15:95 Error TypeError: Property 'mden' does not exist on type 'ETSGLOBAL' */ -/* @@? 16:1 Error SyntaxError: Unexpected token ')'. */ -/* @@? 16:1 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@? 16:3 Error SyntaxError: Unexpected token ']'. */ -/* @@? 28:1 Error SyntaxError: Unexpected token, expected ']'. */ + +/* @@? 15:62 Error Syntax error ESY0044: A 'this' type is available only as return type in a non-static method of a class or struct and extension functions. */ +/* @@? 15:66 Error Syntax error ESY0228: Unexpected token, expected ')'. */ +/* @@? 15:67 Error Semantic error ESE0143: Unresolved reference mnum */ +/* @@? 15:76 Error Semantic error ESE0143: Unresolved reference other */ +/* @@? 15:90 Error Semantic error ESE0202: 'this' cannot be referenced from a static context */ +/* @@? 15:95 Error Semantic error ESE0087: Property 'mden' does not exist on type 'ETSGLOBAL' */ +/* @@? 16:1 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 16:1 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 16:3 Error Syntax error ESY0227: Unexpected token ']'. */ +/* @@? 28:76 Error Syntax error ESY0228: Unexpected token, expected ']'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/getterNoReturn0.ets b/ets2panda/test/ast/compiler/ets/getterNoReturn0.ets index 82dcc47f2a..f4649e0513 100644 --- a/ets2panda/test/ast/compiler/ets/getterNoReturn0.ets +++ b/ets2panda/test/ast/compiler/ets/getterNoReturn0.ets @@ -27,4 +27,5 @@ function main() { let a: A = new A() } -/* @@@ label Error TypeError: Function with a non void return type must return a value. */ + +/* @@@ label Error Semantic error ESE0103: Function with a non void return type must return a value. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/getterNoReturn1.ets b/ets2panda/test/ast/compiler/ets/getterNoReturn1.ets index 09d7a9ab24..374468c7fc 100644 --- a/ets2panda/test/ast/compiler/ets/getterNoReturn1.ets +++ b/ets2panda/test/ast/compiler/ets/getterNoReturn1.ets @@ -34,4 +34,5 @@ function main() { let a: A = new A() } -/* @@@ label Error TypeError: Not all code paths return a value. */ + +/* @@@ label Error Semantic error ESE0104: Not all code paths return a value. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/greater_than_neg.ets b/ets2panda/test/ast/compiler/ets/greater_than_neg.ets index f5dea30ef1..4ad7b24a3c 100644 --- a/ets2panda/test/ast/compiler/ets/greater_than_neg.ets +++ b/ets2panda/test/ast/compiler/ets/greater_than_neg.ets @@ -16,7 +16,8 @@ let a: Array>>=2 let b: Array>=2 -/* @@? 16:21 Error SyntaxError: Unexpected token '>>='. */ -/* @@? 16:24 Error SyntaxError: Unexpected token '2'. */ -/* @@? 17:21 Error SyntaxError: Unexpected token '>='. */ -/* @@? 17:23 Error SyntaxError: Unexpected token '2'. */ + +/* @@? 16:21 Error Syntax error ESY0227: Unexpected token '>>='. */ +/* @@? 16:24 Error Syntax error ESY0227: Unexpected token '2'. */ +/* @@? 17:21 Error Syntax error ESY0227: Unexpected token '>='. */ +/* @@? 17:23 Error Syntax error ESY0227: Unexpected token '2'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/identifierReference1.ets b/ets2panda/test/ast/compiler/ets/identifierReference1.ets index 13df0cf58b..eb4052c8ca 100644 --- a/ets2panda/test/ast/compiler/ets/identifierReference1.ets +++ b/ets2panda/test/ast/compiler/ets/identifierReference1.ets @@ -49,6 +49,7 @@ class A extends B { } } -/* @@@ label Error SyntaxError: Unexpected token. A constructor, method, accessor, or property was expected. */ -/* @@? 16:33 Error TypeError: Overloaded method is used as value */ -/* @@? 47:12 Error TypeError: Property 'b' does not exist on type 'C' */ + +/* @@? 16:33 Error Semantic error ESE0307: Overloaded method is used as value */ +/* @@@ label Error Syntax error ESY0233: Unexpected token. A constructor, method, accessor, or property was expected. */ +/* @@? 47:12 Error Semantic error ESE0087: Property 'b' does not exist on type 'C' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/identifierReference10.ets b/ets2panda/test/ast/compiler/ets/identifierReference10.ets index bb75765d53..b8ff30ac5f 100644 --- a/ets2panda/test/ast/compiler/ets/identifierReference10.ets +++ b/ets2panda/test/ast/compiler/ets/identifierReference10.ets @@ -25,4 +25,5 @@ class A { } } -/* @@@ label Error TypeError: Type '"foo"' cannot be assigned to type 'Int' */ + +/* @@@ label Error Semantic error ESE0318: Type '"foo"' cannot be assigned to type 'Int' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/identifierReference11.ets b/ets2panda/test/ast/compiler/ets/identifierReference11.ets index 2d0de4caff..321e340b8f 100644 --- a/ets2panda/test/ast/compiler/ets/identifierReference11.ets +++ b/ets2panda/test/ast/compiler/ets/identifierReference11.ets @@ -23,4 +23,5 @@ class A { } } -/* @@@ label Error TypeError: Unresolved reference foo */ + +/* @@@ label Error Semantic error ESE0143: Unresolved reference foo */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/identifierReference12.ets b/ets2panda/test/ast/compiler/ets/identifierReference12.ets index 1c34cf4214..a15056fbd6 100644 --- a/ets2panda/test/ast/compiler/ets/identifierReference12.ets +++ b/ets2panda/test/ast/compiler/ets/identifierReference12.ets @@ -25,4 +25,5 @@ class A { } } -/* @@@ label Error TypeError: Type 'Int' has no call signatures. */ + +/* @@@ label Error Semantic error ESE0002: Type 'Int' has no call signatures. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/identifierReference13.ets b/ets2panda/test/ast/compiler/ets/identifierReference13.ets index 2271863d17..ea78297572 100644 --- a/ets2panda/test/ast/compiler/ets/identifierReference13.ets +++ b/ets2panda/test/ast/compiler/ets/identifierReference13.ets @@ -25,4 +25,5 @@ class A { } } -/* @@? 24:13 Error TypeError: Bad operand type, the types of the operands must be numeric type, enum or String. */ + +/* @@? 24:13 Error Semantic error ESE0108: Bad operand type, the types of the operands must be numeric type, enum or String. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/identifierReference15.ets b/ets2panda/test/ast/compiler/ets/identifierReference15.ets index 4a7f86a7cc..99693ad7b9 100644 --- a/ets2panda/test/ast/compiler/ets/identifierReference15.ets +++ b/ets2panda/test/ast/compiler/ets/identifierReference15.ets @@ -33,6 +33,7 @@ class A { } } -/* @@@ label Error SyntaxError: Unexpected token. A constructor, method, accessor, or property was expected. */ -/* @@? 31:7 Error TypeError: Expected 1 arguments, got 0. */ -/* @@? 31:7 Error TypeError: No matching call signature */ + +/* @@@ label Error Syntax error ESY0233: Unexpected token. A constructor, method, accessor, or property was expected. */ +/* @@? 31:7 Error Semantic error ESE0124: Expected 1 arguments, got 0. */ +/* @@? 31:7 Error Semantic error ESE0128: No matching call signature */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/identifierReference16.ets b/ets2panda/test/ast/compiler/ets/identifierReference16.ets index aefc534f96..7f09dd8090 100644 --- a/ets2panda/test/ast/compiler/ets/identifierReference16.ets +++ b/ets2panda/test/ast/compiler/ets/identifierReference16.ets @@ -43,6 +43,7 @@ class A extends B { } } -/* @@@ label Error SyntaxError: Unexpected token. A constructor, method, accessor, or property was expected. */ -/* @@? 41:7 Error TypeError: Expected 0 arguments, got 1. */ -/* @@? 41:7 Error TypeError: No matching call signature for foo(Int) */ + +/* @@@ label Error Syntax error ESY0233: Unexpected token. A constructor, method, accessor, or property was expected. */ +/* @@? 41:7 Error Semantic error ESE0124: Expected 0 arguments, got 1. */ +/* @@? 41:7 Error Semantic error ESE0127: No matching call signature for foo(Int) */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/identifierReference2.ets b/ets2panda/test/ast/compiler/ets/identifierReference2.ets index 3ee1d57483..239993f6e9 100644 --- a/ets2panda/test/ast/compiler/ets/identifierReference2.ets +++ b/ets2panda/test/ast/compiler/ets/identifierReference2.ets @@ -15,4 +15,5 @@ let a:(a: int, b: int) => void = max; -/* @@? 16:34 Error TypeError: Overloaded method is used as value */ + +/* @@? 16:34 Error Semantic error ESE0307: Overloaded method is used as value */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/identifierReference3.ets b/ets2panda/test/ast/compiler/ets/identifierReference3.ets index ddc353921b..bf499611a2 100644 --- a/ets2panda/test/ast/compiler/ets/identifierReference3.ets +++ b/ets2panda/test/ast/compiler/ets/identifierReference3.ets @@ -21,4 +21,5 @@ class A { } } -/* @@@ label Error TypeError: Type '"foo"' cannot be assigned to type 'Int' */ + +/* @@@ label Error Semantic error ESE0318: Type '"foo"' cannot be assigned to type 'Int' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/identifierReference5.ets b/ets2panda/test/ast/compiler/ets/identifierReference5.ets index 0bf9887799..5588dcbd4d 100644 --- a/ets2panda/test/ast/compiler/ets/identifierReference5.ets +++ b/ets2panda/test/ast/compiler/ets/identifierReference5.ets @@ -32,4 +32,5 @@ class A extends B { } } -/* @@@ label Error TypeError: 'this' cannot be referenced from a static context */ + +/* @@@ label Error Semantic error ESE0202: 'this' cannot be referenced from a static context */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/identifierReference6.ets b/ets2panda/test/ast/compiler/ets/identifierReference6.ets index 4220740313..fb8c232eac 100644 --- a/ets2panda/test/ast/compiler/ets/identifierReference6.ets +++ b/ets2panda/test/ast/compiler/ets/identifierReference6.ets @@ -23,6 +23,7 @@ class A { } } -/* @@@ label Error SyntaxError: Unexpected token. A constructor, method, accessor, or property was expected. */ -/* @@? 21:7 Error TypeError: 'this' cannot be referenced from a static context */ -/* @@? 21:12 Error TypeError: Property 'a' does not exist on type 'B' */ + +/* @@@ label Error Syntax error ESY0233: Unexpected token. A constructor, method, accessor, or property was expected. */ +/* @@? 21:7 Error Semantic error ESE0202: 'this' cannot be referenced from a static context */ +/* @@? 21:12 Error Semantic error ESE0087: Property 'a' does not exist on type 'B' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/identifierReference7.ets b/ets2panda/test/ast/compiler/ets/identifierReference7.ets index d2b4110f65..c826bafa0a 100644 --- a/ets2panda/test/ast/compiler/ets/identifierReference7.ets +++ b/ets2panda/test/ast/compiler/ets/identifierReference7.ets @@ -27,5 +27,6 @@ class A { } } -/* @@@ label Error SyntaxError: Unexpected token. A constructor, method, accessor, or property was expected. */ -/* @@? 25:7 Error TypeError: Bad operand type, the type of the operand must be numeric type. */ + +/* @@@ label Error Syntax error ESY0233: Unexpected token. A constructor, method, accessor, or property was expected. */ +/* @@? 25:7 Error Semantic error ESE0066: Bad operand type, the type of the operand must be numeric type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/identifierReference8.ets b/ets2panda/test/ast/compiler/ets/identifierReference8.ets index 0a7509f35b..85a44b8d0b 100644 --- a/ets2panda/test/ast/compiler/ets/identifierReference8.ets +++ b/ets2panda/test/ast/compiler/ets/identifierReference8.ets @@ -25,4 +25,5 @@ class A { } } -/* @@? 24:5 Error TypeError: Bad operand type, the types of the operands must be numeric type, enum or String. */ + +/* @@? 24:5 Error Semantic error ESE0108: Bad operand type, the types of the operands must be numeric type, enum or String. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/identifierReference9.ets b/ets2panda/test/ast/compiler/ets/identifierReference9.ets index 3021ebf7a1..780bd6616b 100644 --- a/ets2panda/test/ast/compiler/ets/identifierReference9.ets +++ b/ets2panda/test/ast/compiler/ets/identifierReference9.ets @@ -25,4 +25,5 @@ class A { } } -/* @@? 24:5 Error TypeError: Class methods cannot be overwritten. */ + +/* @@? 24:5 Error Semantic error ESE0394: Class methods cannot be overwritten. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/illegal_exponentiation_1.ets b/ets2panda/test/ast/compiler/ets/illegal_exponentiation_1.ets index a8329c7756..45f980e963 100644 --- a/ets2panda/test/ast/compiler/ets/illegal_exponentiation_1.ets +++ b/ets2panda/test/ast/compiler/ets/illegal_exponentiation_1.ets @@ -17,4 +17,5 @@ function main() { let x = -1 ** 1.0; } -/* @@? 17:11 Error TypeError: Exponent must be an integer if base is less than 0. */ + +/* @@? 17:11 Error Semantic error ESE22843: Exponent must be an integer if base is less than 0. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_3/package_module_1_neg.ets b/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_3/package_module_1_neg.ets index 88652992e4..078fccb14d 100644 --- a/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_3/package_module_1_neg.ets +++ b/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_3/package_module_1_neg.ets @@ -15,4 +15,5 @@ /* @@ label */package pack1; -/* @@? 1:1 Error SyntaxError: Files 'package_module_1_neg' and 'package_module_2_neg' are in the same folder, but have different package names. */ + +/* @@? 1:1 Error Syntax error ESY0002: Files 'package_module_1_neg' and 'package_module_2_neg' are in the same folder, but have different package names. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_3/package_module_2_neg.ets b/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_3/package_module_2_neg.ets index 55482b2196..f7be69e0b6 100644 --- a/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_3/package_module_2_neg.ets +++ b/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_3/package_module_2_neg.ets @@ -15,4 +15,5 @@ /* @@ label */package pack2; -/* @@? 1:1 Error SyntaxError: Files 'package_module_2_neg' and 'package_module_1_neg' are in the same folder, but have different package names. */ + +/* @@? 1:1 Error Syntax error ESY0002: Files 'package_module_2_neg' and 'package_module_1_neg' are in the same folder, but have different package names. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_4/package_module_1.ets b/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_4/package_module_1.ets index 60a86f221b..eac9e87bde 100644 --- a/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_4/package_module_1.ets +++ b/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_4/package_module_1.ets @@ -18,5 +18,6 @@ import {myvar} from "./package_module_2" // compiling this file will fail with import from it's own package -/* @@? 17:1 Error SyntaxError: Package module cannot import from a file in it's own package. */ -/* @@? 17:21 Error TypeError: Cannot find import: ./package_module_2 */ + +/* @@? 17:1 Error Syntax error ESY0003: Package module cannot import from a file in it's own package. */ +/* @@? 17:21 Error Semantic error ESE0360: Cannot find import: ./package_module_2 */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_5/package_module_1.ets b/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_5/package_module_1.ets index 904df0697a..8bb1436406 100644 --- a/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_5/package_module_1.ets +++ b/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_5/package_module_1.ets @@ -17,8 +17,9 @@ package mypack; let myvar: number = wont_exist; -/* @@? package_module_2_neg.ets:22:1 Error SyntaxError: Invalid package toplevel statement */ -/* @@? package_module_2_neg.ets:22:1 Error TypeError: Unresolved reference syntax */ -/* @@? package_module_2_neg.ets:22:8 Error SyntaxError: Unexpected token 'error'. */ -/* @@? package_module_2_neg.ets:22:8 Error SyntaxError: Invalid package toplevel statement */ -/* @@? package_module_2_neg.ets:22:8 Error TypeError: Unresolved reference error */ + +/* @@? package_module_2_neg.ets:22:1 Error Syntax error ESY0291: Invalid package toplevel statement */ +/* @@? package_module_2_neg.ets:22:1 Error Semantic error ESE0143: Unresolved reference syntax */ +/* @@? package_module_2_neg.ets:22:8 Error Syntax error ESY0227: Unexpected token 'error'. */ +/* @@? package_module_2_neg.ets:22:8 Error Syntax error ESY0291: Invalid package toplevel statement */ +/* @@? package_module_2_neg.ets:22:8 Error Semantic error ESE0143: Unresolved reference error */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_5/package_module_2_neg.ets b/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_5/package_module_2_neg.ets index 1ee3c41129..1fd495ae45 100644 --- a/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_5/package_module_2_neg.ets +++ b/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_5/package_module_2_neg.ets @@ -21,8 +21,9 @@ let wont_exist: number = 8; syntax error -/* @@? 22:1 Error SyntaxError: Invalid package toplevel statement */ -/* @@? 22:1 Error TypeError: Unresolved reference syntax */ -/* @@? 22:8 Error SyntaxError: Unexpected token 'error'. */ -/* @@? 22:8 Error SyntaxError: Invalid package toplevel statement */ -/* @@? 22:8 Error TypeError: Unresolved reference error */ + +/* @@? 22:1 Error Syntax error ESY0291: Invalid package toplevel statement */ +/* @@? 22:1 Error Semantic error ESE0143: Unresolved reference syntax */ +/* @@? 22:8 Error Syntax error ESY0227: Unexpected token 'error'. */ +/* @@? 22:8 Error Syntax error ESY0291: Invalid package toplevel statement */ +/* @@? 22:8 Error Semantic error ESE0143: Unresolved reference error */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_6/package_module_1.ets b/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_6/package_module_1.ets index 810b288169..47178ca755 100644 --- a/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_6/package_module_1.ets +++ b/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_6/package_module_1.ets @@ -17,4 +17,5 @@ package mypackage; let myvar: number = exist_but_checker_fails_in_file; -/* @@? package_module_2.ets:19:39 Error TypeError: Type 'Int' cannot be assigned to type 'String' */ + +/* @@? package_module_2.ets:19:39 Error Semantic error ESE0318: Type 'Int' cannot be assigned to type 'String' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_6/package_module_2.ets b/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_6/package_module_2.ets index cf77170f19..1ff7f1d196 100644 --- a/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_6/package_module_2.ets +++ b/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_6/package_module_2.ets @@ -18,4 +18,5 @@ package mypackage; let exist_but_checker_fails_in_file: number = 8; let wong_type: string = /* @@ label */9; -/* @@@ label Error TypeError: Type 'Int' cannot be assigned to type 'String' */ + +/* @@@ label Error Semantic error ESE0318: Type 'Int' cannot be assigned to type 'String' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_7/package_module_1_neg.ets b/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_7/package_module_1_neg.ets index 7671deb63c..ec0a48244f 100644 --- a/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_7/package_module_1_neg.ets +++ b/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_7/package_module_1_neg.ets @@ -18,4 +18,5 @@ package mypackage; // Special additional empty line for another position of error in compare with package_module_2_neg.ets function foo(): void {} -/* @@? package_module_2_neg.ets:18:1 Error TypeError: Function foo is already declared. */ + +/* @@? package_module_2_neg.ets:18:1 Error Semantic error ESE0130: Function foo is already declared. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_7/package_module_2_neg.ets b/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_7/package_module_2_neg.ets index 88592f7d18..a5bcbfef9d 100644 --- a/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_7/package_module_2_neg.ets +++ b/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_7/package_module_2_neg.ets @@ -17,4 +17,5 @@ package mypackage; function foo(): void {} -/* @@? package_module_1_neg.ets:19:1 Error TypeError: Function foo is already declared. */ + +/* @@? package_module_1_neg.ets:19:1 Error Semantic error ESE0130: Function foo is already declared. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_8/import_multi_error.ets b/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_8/import_multi_error.ets index de22e82f51..984778d9bb 100644 --- a/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_8/import_multi_error.ets +++ b/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_8/import_multi_error.ets @@ -20,7 +20,8 @@ import {myvar2} from "./package_module" export let a: String = "SubpackageA"; -/* @@? 18:1 Error SyntaxError: Package module cannot import from a file in it's own package. */ -/* @@? 18:21 Error TypeError: Cannot find import: ./package_module */ -/* @@? 19:1 Error SyntaxError: Package module cannot import from a file in it's own package. */ -/* @@? 19:22 Error TypeError: Cannot find import: ./package_module */ + +/* @@? 18:1 Error Syntax error ESY0003: Package module cannot import from a file in it's own package. */ +/* @@? 18:21 Error Semantic error ESE0360: Cannot find import: ./package_module */ +/* @@? 19:1 Error Syntax error ESY0003: Package module cannot import from a file in it's own package. */ +/* @@? 19:22 Error Semantic error ESE0360: Cannot find import: ./package_module */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_9/package_module.ets b/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_9/package_module.ets index 3eaf30089d..8ff002a86c 100644 --- a/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_9/package_module.ets +++ b/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_9/package_module.ets @@ -17,14 +17,15 @@ package mypack; // That is the main file, from which we will compile full package -/* @@? package_module_with_semantic_error.ets:18:14 Error TypeError: Type '"I am a number, I promise..."' cannot be assigned to type 'Int' */ -/* @@? package_module_with_syntax_error.ets:18:1 Error SyntaxError: Unexpected token '='. */ -/* @@? package_module_with_syntax_error.ets:18:1 Error SyntaxError: Invalid package toplevel statement */ -/* @@? package_module_with_syntax_error.ets:18:2 Error SyntaxError: Unexpected token ')'. */ -/* @@? package_module_with_syntax_error.ets:18:2 Error SyntaxError: Invalid package toplevel statement */ +/* @@? package_module_with_semantic_error.ets:18:14 Error Semantic error ESE0318: Type '"I am a number, I promise..."' cannot be assigned to type 'Int' */ -/* @@? package_with_both_errors.ets:21:16 Error TypeError: Cannot find type 'good'. */ -/* @@? package_with_both_errors.ets:21:21 Error SyntaxError: Unexpected token 'Day'. */ -/* @@? package_with_both_errors.ets:21:21 Error TypeError: No static $_invoke method and static $_instantiate method in Day. Day() is not allowed. */ -/* @@? package_with_both_errors.ets:21:21 Error TypeError: Type 'Day' has no call signatures. */ +/* @@? package_module_with_syntax_error.ets:18:1 Error Syntax error ESY0227: Unexpected token '='. */ +/* @@? package_module_with_syntax_error.ets:18:1 Error Syntax error ESY0291: Invalid package toplevel statement */ +/* @@? package_module_with_syntax_error.ets:18:2 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? package_module_with_syntax_error.ets:18:2 Error Syntax error ESY0291: Invalid package toplevel statement */ + +/* @@? package_with_both_errors.ets:21:16 Error Semantic error ESE0371: Cannot find type 'good'. */ +/* @@? package_with_both_errors.ets:21:21 Error Syntax error ESY0227: Unexpected token 'Day'. */ +/* @@? package_with_both_errors.ets:21:21 Error Semantic error ESE0172: No static $_invoke method and static $_instantiate method in Day. Day() is not allowed. */ +/* @@? package_with_both_errors.ets:21:21 Error Semantic error ESE0002: Type 'Day' has no call signatures. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_9/package_module_with_semantic_error.ets b/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_9/package_module_with_semantic_error.ets index ecb87c42d0..d8b0ad9d48 100644 --- a/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_9/package_module_with_semantic_error.ets +++ b/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_9/package_module_with_semantic_error.ets @@ -17,14 +17,15 @@ package mypack; let a: int = "I am a number, I promise..."; -/* @@? package_module_with_syntax_error.ets:18:1 Error SyntaxError: Unexpected token '='. */ -/* @@? package_module_with_syntax_error.ets:18:1 Error SyntaxError: Invalid package toplevel statement */ -/* @@? package_module_with_syntax_error.ets:18:2 Error SyntaxError: Unexpected token ')'. */ -/* @@? package_module_with_syntax_error.ets:18:2 Error SyntaxError: Invalid package toplevel statement */ -/* @@? package_with_both_errors.ets:21:16 Error TypeError: Cannot find type 'good'. */ -/* @@? package_with_both_errors.ets:21:21 Error SyntaxError: Unexpected token 'Day'. */ -/* @@? package_with_both_errors.ets:21:21 Error TypeError: No static $_invoke method and static $_instantiate method in Day. Day() is not allowed. */ -/* @@? package_with_both_errors.ets:21:21 Error TypeError: Type 'Day' has no call signatures. */ +/* @@? package_module_with_syntax_error.ets:18:1 Error Syntax error ESY0227: Unexpected token '='. */ +/* @@? package_module_with_syntax_error.ets:18:1 Error Syntax error ESY0291: Invalid package toplevel statement */ +/* @@? package_module_with_syntax_error.ets:18:2 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? package_module_with_syntax_error.ets:18:2 Error Syntax error ESY0291: Invalid package toplevel statement */ -/* @@? package_module_with_semantic_error.ets:18:14 Error TypeError: Type '"I am a number, I promise..."' cannot be assigned to type 'Int' */ +/* @@? package_with_both_errors.ets:21:16 Error Semantic error ESE0371: Cannot find type 'good'. */ +/* @@? package_with_both_errors.ets:21:21 Error Syntax error ESY0227: Unexpected token 'Day'. */ +/* @@? package_with_both_errors.ets:21:21 Error Semantic error ESE0172: No static $_invoke method and static $_instantiate method in Day. Day() is not allowed. */ +/* @@? package_with_both_errors.ets:21:21 Error Semantic error ESE0002: Type 'Day' has no call signatures. */ + +/* @@? package_module_with_semantic_error.ets:18:14 Error Semantic error ESE0318: Type '"I am a number, I promise..."' cannot be assigned to type 'Int' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_9/package_module_with_syntax_error.ets b/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_9/package_module_with_syntax_error.ets index 18341d2998..b076c733ac 100644 --- a/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_9/package_module_with_syntax_error.ets +++ b/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_9/package_module_with_syntax_error.ets @@ -17,14 +17,15 @@ package mypack; =) -/* @@? package_module_with_semantic_error.ets:18:14 Error TypeError: Type '"I am a number, I promise..."' cannot be assigned to type 'Int' */ -/* @@? package_with_both_errors.ets:21:16 Error TypeError: Cannot find type 'good'. */ -/* @@? package_with_both_errors.ets:21:21 Error SyntaxError: Unexpected token 'Day'. */ -/* @@? package_with_both_errors.ets:21:21 Error TypeError: No static $_invoke method and static $_instantiate method in Day. Day() is not allowed. */ -/* @@? package_with_both_errors.ets:21:21 Error TypeError: Type 'Day' has no call signatures. */ +/* @@? package_module_with_semantic_error.ets:18:14 Error Semantic error ESE0318: Type '"I am a number, I promise..."' cannot be assigned to type 'Int' */ -/* @@? package_module_with_syntax_error.ets:18:1 Error SyntaxError: Unexpected token '='. */ -/* @@? package_module_with_syntax_error.ets:18:1 Error SyntaxError: Invalid package toplevel statement */ -/* @@? package_module_with_syntax_error.ets:18:2 Error SyntaxError: Unexpected token ')'. */ -/* @@? package_module_with_syntax_error.ets:18:2 Error SyntaxError: Invalid package toplevel statement */ +/* @@? package_with_both_errors.ets:21:16 Error Semantic error ESE0371: Cannot find type 'good'. */ +/* @@? package_with_both_errors.ets:21:21 Error Syntax error ESY0227: Unexpected token 'Day'. */ +/* @@? package_with_both_errors.ets:21:21 Error Semantic error ESE0172: No static $_invoke method and static $_instantiate method in Day. Day() is not allowed. */ +/* @@? package_with_both_errors.ets:21:21 Error Semantic error ESE0002: Type 'Day' has no call signatures. */ + +/* @@? package_module_with_syntax_error.ets:18:1 Error Syntax error ESY0227: Unexpected token '='. */ +/* @@? package_module_with_syntax_error.ets:18:1 Error Syntax error ESY0291: Invalid package toplevel statement */ +/* @@? package_module_with_syntax_error.ets:18:2 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? package_module_with_syntax_error.ets:18:2 Error Syntax error ESY0291: Invalid package toplevel statement */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_9/package_with_both_errors.ets b/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_9/package_with_both_errors.ets index bab0e7b0a5..7954e7f303 100644 --- a/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_9/package_with_both_errors.ets +++ b/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_9/package_with_both_errors.ets @@ -21,14 +21,15 @@ function foo(): Day { return new good Day(); } -/* @@? package_module_with_semantic_error.ets:18:14 Error TypeError: Type '"I am a number, I promise..."' cannot be assigned to type 'Int' */ -/* @@? package_module_with_syntax_error.ets:18:1 Error SyntaxError: Unexpected token '='. */ -/* @@? package_module_with_syntax_error.ets:18:1 Error SyntaxError: Invalid package toplevel statement */ -/* @@? package_module_with_syntax_error.ets:18:2 Error SyntaxError: Unexpected token ')'. */ -/* @@? package_module_with_syntax_error.ets:18:2 Error SyntaxError: Invalid package toplevel statement */ +/* @@? package_module_with_semantic_error.ets:18:14 Error Semantic error ESE0318: Type '"I am a number, I promise..."' cannot be assigned to type 'Int' */ -/* @@? package_with_both_errors.ets:21:16 Error TypeError: Cannot find type 'good'. */ -/* @@? package_with_both_errors.ets:21:21 Error SyntaxError: Unexpected token 'Day'. */ -/* @@? package_with_both_errors.ets:21:21 Error TypeError: No static $_invoke method and static $_instantiate method in Day. Day() is not allowed. */ -/* @@? package_with_both_errors.ets:21:21 Error TypeError: Type 'Day' has no call signatures. */ +/* @@? package_module_with_syntax_error.ets:18:1 Error Syntax error ESY0227: Unexpected token '='. */ +/* @@? package_module_with_syntax_error.ets:18:1 Error Syntax error ESY0291: Invalid package toplevel statement */ +/* @@? package_module_with_syntax_error.ets:18:2 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? package_module_with_syntax_error.ets:18:2 Error Syntax error ESY0291: Invalid package toplevel statement */ + +/* @@? package_with_both_errors.ets:21:16 Error Semantic error ESE0371: Cannot find type 'good'. */ +/* @@? package_with_both_errors.ets:21:21 Error Syntax error ESY0227: Unexpected token 'Day'. */ +/* @@? package_with_both_errors.ets:21:21 Error Semantic error ESE0172: No static $_invoke method and static $_instantiate method in Day. Day() is not allowed. */ +/* @@? package_with_both_errors.ets:21:21 Error Semantic error ESE0002: Type 'Day' has no call signatures. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/implicit_package_import/scopes_multi_error.ets b/ets2panda/test/ast/compiler/ets/implicit_package_import/scopes_multi_error.ets index 3a8d9a4390..4ccca1ac96 100644 --- a/ets2panda/test/ast/compiler/ets/implicit_package_import/scopes_multi_error.ets +++ b/ets2panda/test/ast/compiler/ets/implicit_package_import/scopes_multi_error.ets @@ -28,8 +28,9 @@ function main(i : string[], g : int): void { export default function TestFunc(): void {} export default function TestFuncToo(): void {} -/* @@? 20:10 Error TypeError: Main overload is not enabled */ -/* @@? 20:15 Error TypeError: Only 'FixedArray' type argument is allowed. */ -/* @@? 24:10 Error TypeError: Main overload is not enabled */ -/* @@? 24:10 Error TypeError: 0 or 1 argument are allowed */ -/* @@? 29:16 Error TypeError: Only one default export is allowed in a module */ + +/* @@? 20:10 Error Semantic error ESE0373: Main overload is not enabled */ +/* @@? 20:15 Error Semantic error ESE0135: Only 'FixedArray' type argument is allowed. */ +/* @@? 24:10 Error Semantic error ESE0373: Main overload is not enabled */ +/* @@? 24:10 Error Semantic error ESE0133: 0 or 1 argument are allowed */ +/* @@? 29:16 Error Semantic error ESE0374: Only one default export is allowed in a module */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/import_export/eitest_import_A_1_ne.ets b/ets2panda/test/ast/compiler/ets/import_export/eitest_import_A_1_ne.ets index 3fed30fb92..afa900c4ab 100644 --- a/ets2panda/test/ast/compiler/ets/import_export/eitest_import_A_1_ne.ets +++ b/ets2panda/test/ast/compiler/ets/import_export/eitest_import_A_1_ne.ets @@ -19,6 +19,6 @@ function main(){ let a :A = new A() } -/* @@? 16:15 Error TypeError: Cannot find default imported element in the target */ -/* @@? 19:12 Error TypeError: Cannot find type 'A'. */ -/* @@? 19:20 Error TypeError: Cannot find type 'A'. */ \ No newline at end of file +/* @@? 16:15 Error Semantic error ESE0358: Cannot find default imported element in the target */ +/* @@? 19:12 Error Semantic error ESE0371: Cannot find type 'A'. */ +/* @@? 19:20 Error Semantic error ESE0371: Cannot find type 'A'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/import_export/eitest_import_A_2_ne.ets b/ets2panda/test/ast/compiler/ets/import_export/eitest_import_A_2_ne.ets index a1da533413..3f516baf6f 100644 --- a/ets2panda/test/ast/compiler/ets/import_export/eitest_import_A_2_ne.ets +++ b/ets2panda/test/ast/compiler/ets/import_export/eitest_import_A_2_ne.ets @@ -19,6 +19,6 @@ function main(){ let a :A = new A() } -/* @@? 16:15 Error TypeError: Cannot find default imported element in the target */ -/* @@? 19:12 Error TypeError: Cannot find type 'A'. */ -/* @@? 19:20 Error TypeError: Cannot find type 'A'. */ \ No newline at end of file +/* @@? 16:15 Error Semantic error ESE0358: Cannot find default imported element in the target */ +/* @@? 19:12 Error Semantic error ESE0371: Cannot find type 'A'. */ +/* @@? 19:20 Error Semantic error ESE0371: Cannot find type 'A'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/import_export/eitest_import_A_3_ne.ets b/ets2panda/test/ast/compiler/ets/import_export/eitest_import_A_3_ne.ets index 5b0fa10162..8fc588c2e6 100644 --- a/ets2panda/test/ast/compiler/ets/import_export/eitest_import_A_3_ne.ets +++ b/ets2panda/test/ast/compiler/ets/import_export/eitest_import_A_3_ne.ets @@ -19,6 +19,6 @@ function main(){ let a :A = new A() } -/* @@? 16:15 Error TypeError: Cannot find default imported element in the target */ -/* @@? 19:12 Error TypeError: Cannot find type 'A'. */ -/* @@? 19:20 Error TypeError: Cannot find type 'A'. */ \ No newline at end of file +/* @@? 16:15 Error Semantic error ESE0358: Cannot find default imported element in the target */ +/* @@? 19:12 Error Semantic error ESE0371: Cannot find type 'A'. */ +/* @@? 19:20 Error Semantic error ESE0371: Cannot find type 'A'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/import_export/eitest_import_A_4_ne.ets b/ets2panda/test/ast/compiler/ets/import_export/eitest_import_A_4_ne.ets index aa8c172b1f..ccf6e1a998 100644 --- a/ets2panda/test/ast/compiler/ets/import_export/eitest_import_A_4_ne.ets +++ b/ets2panda/test/ast/compiler/ets/import_export/eitest_import_A_4_ne.ets @@ -19,6 +19,6 @@ function main(){ let a :A = new A() } -/* @@? 16:15 Error TypeError: Cannot find default imported element in the target */ -/* @@? 19:12 Error TypeError: Cannot find type 'A'. */ -/* @@? 19:20 Error TypeError: Cannot find type 'A'. */ \ No newline at end of file +/* @@? 16:15 Error Semantic error ESE0358: Cannot find default imported element in the target */ +/* @@? 19:12 Error Semantic error ESE0371: Cannot find type 'A'. */ +/* @@? 19:20 Error Semantic error ESE0371: Cannot find type 'A'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/import_export/eitest_import_A_5_ne.ets b/ets2panda/test/ast/compiler/ets/import_export/eitest_import_A_5_ne.ets index 38e266873e..d264596a5c 100644 --- a/ets2panda/test/ast/compiler/ets/import_export/eitest_import_A_5_ne.ets +++ b/ets2panda/test/ast/compiler/ets/import_export/eitest_import_A_5_ne.ets @@ -19,6 +19,6 @@ function main(){ let a :A = new A() } -/* @@? 16:15 Error TypeError: Cannot find default imported element in the target */ -/* @@? 19:12 Error TypeError: Cannot find type 'A'. */ -/* @@? 19:20 Error TypeError: Cannot find type 'A'. */ \ No newline at end of file +/* @@? 16:15 Error Semantic error ESE0358: Cannot find default imported element in the target */ +/* @@? 19:12 Error Semantic error ESE0371: Cannot find type 'A'. */ +/* @@? 19:20 Error Semantic error ESE0371: Cannot find type 'A'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/import_export/eitest_import_A_6_ne.ets b/ets2panda/test/ast/compiler/ets/import_export/eitest_import_A_6_ne.ets index 06251d9939..554abdffe9 100644 --- a/ets2panda/test/ast/compiler/ets/import_export/eitest_import_A_6_ne.ets +++ b/ets2panda/test/ast/compiler/ets/import_export/eitest_import_A_6_ne.ets @@ -19,6 +19,6 @@ function main(){ let a :A = new A() } -/* @@? 16:15 Error TypeError: Cannot find default imported element in the target */ -/* @@? 19:12 Error TypeError: Cannot find type 'A'. */ -/* @@? 19:20 Error TypeError: Cannot find type 'A'. */ \ No newline at end of file +/* @@? 16:15 Error Semantic error ESE0358: Cannot find default imported element in the target */ +/* @@? 19:12 Error Semantic error ESE0371: Cannot find type 'A'. */ +/* @@? 19:20 Error Semantic error ESE0371: Cannot find type 'A'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/import_export/eitest_import_A_7_ne.ets b/ets2panda/test/ast/compiler/ets/import_export/eitest_import_A_7_ne.ets index 2aa03a66a4..52ed151895 100644 --- a/ets2panda/test/ast/compiler/ets/import_export/eitest_import_A_7_ne.ets +++ b/ets2panda/test/ast/compiler/ets/import_export/eitest_import_A_7_ne.ets @@ -19,6 +19,6 @@ function main(){ let a :A = new A() } -/* @@? 16:15 Error TypeError: Cannot find default imported element in the target */ -/* @@? 19:12 Error TypeError: Cannot find type 'A'. */ -/* @@? 19:20 Error TypeError: Cannot find type 'A'. */ \ No newline at end of file +/* @@? 16:15 Error Semantic error ESE0358: Cannot find default imported element in the target */ +/* @@? 19:12 Error Semantic error ESE0371: Cannot find type 'A'. */ +/* @@? 19:20 Error Semantic error ESE0371: Cannot find type 'A'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/import_export/eitest_import_A_B_1_ne.ets b/ets2panda/test/ast/compiler/ets/import_export/eitest_import_A_B_1_ne.ets index 259a491d0a..16eedb2482 100644 --- a/ets2panda/test/ast/compiler/ets/import_export/eitest_import_A_B_1_ne.ets +++ b/ets2panda/test/ast/compiler/ets/import_export/eitest_import_A_B_1_ne.ets @@ -19,6 +19,6 @@ function main(){ let a :A = new A() } -/* @@? 16:15 Error TypeError: Cannot find default imported element in the target */ -/* @@? 19:12 Error TypeError: Cannot find type 'A'. */ -/* @@? 19:20 Error TypeError: Cannot find type 'A'. */ \ No newline at end of file +/* @@? 16:15 Error Semantic error ESE0358: Cannot find default imported element in the target */ +/* @@? 19:12 Error Semantic error ESE0371: Cannot find type 'A'. */ +/* @@? 19:20 Error Semantic error ESE0371: Cannot find type 'A'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/import_export/eitest_import_all_1_ne.ets b/ets2panda/test/ast/compiler/ets/import_export/eitest_import_all_1_ne.ets index 8350e64f91..17875b0e79 100644 --- a/ets2panda/test/ast/compiler/ets/import_export/eitest_import_all_1_ne.ets +++ b/ets2panda/test/ast/compiler/ets/import_export/eitest_import_all_1_ne.ets @@ -16,6 +16,6 @@ import * as ns from "./eitest_import_all_2_ne" const f: ns.qw.Root.Foo = {x:10} -/* @@? eitest_import_all_1_ne.ets:17:13 Error TypeError: 'qw' type does not exist. */ -/* @@? eitest_import_all_1_ne.ets:17:16 Error TypeError: 'Root' type does not exist. */ -/* @@? eitest_import_all_1_ne.ets:17:21 Error TypeError: 'Foo' type does not exist. */ \ No newline at end of file +/* @@? 17:13 Error Semantic error ESE0070: 'qw' type does not exist. */ +/* @@? 17:16 Error Semantic error ESE0070: 'Root' type does not exist. */ +/* @@? 17:21 Error Semantic error ESE0070: 'Foo' type does not exist. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/import_export/eitest_import_all_4_ne.ets b/ets2panda/test/ast/compiler/ets/import_export/eitest_import_all_4_ne.ets index 22fc4900fc..4b2243e553 100644 --- a/ets2panda/test/ast/compiler/ets/import_export/eitest_import_all_4_ne.ets +++ b/ets2panda/test/ast/compiler/ets/import_export/eitest_import_all_4_ne.ets @@ -16,5 +16,6 @@ import * as ns from "./eitest_import_all_5_ne" const t: ns.B = new ns.B() -/* @@? eitest_import_all_4_ne.ets:17:13 Error TypeError: 'B' type does not exist. */ -/* @@? eitest_import_all_4_ne.ets:17:24 Error TypeError: 'B' type does not exist. */ + +/* @@? 17:13 Error Semantic error ESE0070: 'B' type does not exist. */ +/* @@? 17:24 Error Semantic error ESE0070: 'B' type does not exist. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/import_export/eitest_import_default_A_1_ne.ets b/ets2panda/test/ast/compiler/ets/import_export/eitest_import_default_A_1_ne.ets index da65463362..5b4ff29bb5 100644 --- a/ets2panda/test/ast/compiler/ets/import_export/eitest_import_default_A_1_ne.ets +++ b/ets2panda/test/ast/compiler/ets/import_export/eitest_import_default_A_1_ne.ets @@ -19,4 +19,4 @@ function main(){ let a :A = new A() } -/* @@? 16:17 Error TypeError: Use the default import syntax to import a default exported element */ \ No newline at end of file +/* @@? 16:17 Error Semantic error ESE0353: Use the default import syntax to import a default exported element */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/import_export/eitest_import_default_A_2_ne.ets b/ets2panda/test/ast/compiler/ets/import_export/eitest_import_default_A_2_ne.ets index 6758e4fdde..b0cae593cb 100644 --- a/ets2panda/test/ast/compiler/ets/import_export/eitest_import_default_A_2_ne.ets +++ b/ets2panda/test/ast/compiler/ets/import_export/eitest_import_default_A_2_ne.ets @@ -19,6 +19,6 @@ function main(){ let a :B = new B() } -/* @@? 16:17 Error TypeError: Cannot find imported element 'B' */ -/* @@? 19:12 Error TypeError: Cannot find type 'B'. */ -/* @@? 19:20 Error TypeError: Cannot find type 'B'. */ \ No newline at end of file +/* @@? 16:17 Error Semantic error ESE0356: Cannot find imported element 'B' */ +/* @@? 19:12 Error Semantic error ESE0371: Cannot find type 'B'. */ +/* @@? 19:20 Error Semantic error ESE0371: Cannot find type 'B'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/import_export/eitest_import_default_A_3_ne.ets b/ets2panda/test/ast/compiler/ets/import_export/eitest_import_default_A_3_ne.ets index 95df0589cc..1ac67c040d 100644 --- a/ets2panda/test/ast/compiler/ets/import_export/eitest_import_default_A_3_ne.ets +++ b/ets2panda/test/ast/compiler/ets/import_export/eitest_import_default_A_3_ne.ets @@ -19,4 +19,4 @@ function main(){ let a :A = new A() } -/* @@? 16:17 Error TypeError: Use the default import syntax to import a default exported element */ \ No newline at end of file +/* @@? 16:17 Error Semantic error ESE0353: Use the default import syntax to import a default exported element */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/import_export/eitest_import_type_A_1_ne.ets b/ets2panda/test/ast/compiler/ets/import_export/eitest_import_type_A_1_ne.ets index a5e1725a38..622873bcb9 100644 --- a/ets2panda/test/ast/compiler/ets/import_export/eitest_import_type_A_1_ne.ets +++ b/ets2panda/test/ast/compiler/ets/import_export/eitest_import_type_A_1_ne.ets @@ -19,4 +19,5 @@ function main(){ let a :CLASS_A = new CLASS_A() } -/* @@? 16:23 Error TypeError: Use the default import syntax to import a default exported element */ + +/* @@? 16:23 Error Semantic error ESE0353: Use the default import syntax to import a default exported element */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/import_export/import_type_star.ets b/ets2panda/test/ast/compiler/ets/import_export/import_type_star.ets index 048b836045..53aecccc17 100644 --- a/ets2panda/test/ast/compiler/ets/import_export/import_type_star.ets +++ b/ets2panda/test/ast/compiler/ets/import_export/import_type_star.ets @@ -20,6 +20,7 @@ let bad1 : TEST.CallBack = () => { } let bad2 : TEST.A = new TEST.A() -/* @@? 19:12 Error TypeError: Type '"A"' is not compatible with the enclosing method's return type 'Int' */ -/* @@? 21:21 Error TypeError: Expected 1 arguments, got 0. */ -/* @@? 21:21 Error TypeError: No matching construct signature */ + +/* @@? 19:12 Error Semantic error ESE0091: Type '"A"' is not compatible with the enclosing method's return type 'Int' */ +/* @@? 21:21 Error Semantic error ESE0124: Expected 1 arguments, got 0. */ +/* @@? 21:21 Error Semantic error ESE0128: No matching construct signature */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/import_export/re_export.ets b/ets2panda/test/ast/compiler/ets/import_export/re_export.ets index 7988832afb..79d405d6d3 100644 --- a/ets2panda/test/ast/compiler/ets/import_export/re_export.ets +++ b/ets2panda/test/ast/compiler/ets/import_export/re_export.ets @@ -13,4 +13,4 @@ * limitations under the License. */ -export { A, A as B } from "./eitest_export_A_1" \ No newline at end of file +export { A, A as B } from "./eitest_export_A_1"/* @@? 16:13 Warning Warning W125428: 'A' has already imported */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/import_tests/export_multi_error.ets b/ets2panda/test/ast/compiler/ets/import_tests/export_multi_error.ets index 1bcecf5a36..30c474dc28 100644 --- a/ets2panda/test/ast/compiler/ets/import_tests/export_multi_error.ets +++ b/ets2panda/test/ast/compiler/ets/import_tests/export_multi_error.ets @@ -57,7 +57,9 @@ export default function TestFunc(): void {} export default function TestFuncToo(): void {} /*-----------------*/ -/* @@? 16:10 Error SyntaxError: Cannot find name 'foo' to export. */ -/* @@? 27:14 Error SyntaxError: Cannot export two different names with the same export alias name 'foo2'. */ -/* @@? 56:16 Error TypeError: Only one default export is allowed in a module */ -/* @@? 57:16 Error TypeError: Only one default export is allowed in a module */ + +/* @@? 46:13 Warning Warning W0000: Duplicated export aliases for 'MyI'. */ +/* @@? 16:10 Error Syntax error ESY0279: Cannot find name 'foo' to export. */ +/* @@? 27:14 Error Syntax error ESY0344: Cannot export two different names with the same export alias name 'foo2'. */ +/* @@? 56:16 Error Semantic error ESE0374: Only one default export is allowed in a module */ +/* @@? 57:16 Error Semantic error ESE0374: Only one default export is allowed in a module */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/import_tests/import_chain_with_errors/import_1.ets b/ets2panda/test/ast/compiler/ets/import_tests/import_chain_with_errors/import_1.ets index fbf91a5f6d..f27c87e44d 100644 --- a/ets2panda/test/ast/compiler/ets/import_tests/import_chain_with_errors/import_1.ets +++ b/ets2panda/test/ast/compiler/ets/import_tests/import_chain_with_errors/import_1.ets @@ -24,10 +24,10 @@ export class A { let 1: number // First level import with both types of error -/* @@? import_1.ets:21:17 Error TypeError: Type 'Int' cannot be assigned to type 'String' */ -/* @@? import_1.ets:24:5 Error SyntaxError: Identifier expected, got 'number literal'. */ -/* @@? import_1.ets:24:5 Error SyntaxError: Number, string or computed value property name '1' is not allowed, use classes to access data by property names that are identifiers */ -// Second level import import with both types of error -/* @@? import_2.ets:17:17 Error TypeError: Type 'Int' cannot be assigned to type 'String' */ -/* @@? import_2.ets:20:5 Error SyntaxError: 'var' keyword is not supported. Use 'let' instead. */ +/* @@? import_2.ets:17:17 Error Semantic error ESE0318: Type 'Int' cannot be assigned to type 'String' */ +/* @@? import_2.ets:20:5 Error Syntax error ESY0297: 'var' keyword is not supported. Use 'let' instead. */ + +/* @@? import_1.ets:21:17 Error Semantic error ESE0318: Type 'Int' cannot be assigned to type 'String' */ +/* @@? import_1.ets:24:5 Error Syntax error ESY0315: Number, string or computed value property name '1' is not allowed, use classes to access data by property names that are identifiers */ +/* @@? import_1.ets:24:5 Error Syntax error ESY0224: Identifier expected, got 'number literal'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/import_tests/import_chain_with_errors/import_2.ets b/ets2panda/test/ast/compiler/ets/import_tests/import_chain_with_errors/import_2.ets index ce4e0f0704..ede1576bf4 100644 --- a/ets2panda/test/ast/compiler/ets/import_tests/import_chain_with_errors/import_2.ets +++ b/ets2panda/test/ast/compiler/ets/import_tests/import_chain_with_errors/import_2.ets @@ -20,6 +20,7 @@ export class B { var not_ok = false // Second level import import with both types of error -/* @@? import_2.ets:17:17 Error TypeError: Type 'Int' cannot be assigned to type 'String' */ -/* @@? import_2.ets:20:5 Error SyntaxError: 'var' keyword is not supported. Use 'let' instead. */ + +/* @@? 17:17 Error Semantic error ESE0318: Type 'Int' cannot be assigned to type 'String' */ +/* @@? 20:5 Error Syntax error ESY0297: 'var' keyword is not supported. Use 'let' instead. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/import_tests/import_chain_with_errors/master_file.ets b/ets2panda/test/ast/compiler/ets/import_tests/import_chain_with_errors/master_file.ets index c7b79fc31d..e00dd88ea0 100644 --- a/ets2panda/test/ast/compiler/ets/import_tests/import_chain_with_errors/master_file.ets +++ b/ets2panda/test/ast/compiler/ets/import_tests/import_chain_with_errors/master_file.ets @@ -18,16 +18,15 @@ import {A, B} from "./import_1.ets" let b = new B(10); // First level import with both types of error -/* @@? import_1.ets:21:17 Error TypeError: Type 'Int' cannot be assigned to type 'String' */ -/* @@? import_1.ets:24:5 Error SyntaxError: Identifier expected, got 'number literal'. */ -/* @@? import_1.ets:24:5 Error SyntaxError: Number, string or computed value property name '1' is not allowed, use classes to access data by property names that are identifiers */ -// Second level import import with both types of error -/* @@? import_2.ets:17:17 Error TypeError: Type 'Int' cannot be assigned to type 'String' */ -/* @@? import_2.ets:20:5 Error SyntaxError: 'var' keyword is not supported. Use 'let' instead. */ +/* @@? import_1.ets:21:17 Error Semantic error ESE0318: Type 'Int' cannot be assigned to type 'String' */ +/* @@? import_1.ets:24:5 Error Syntax error ESY0315: Number, string or computed value property name '1' is not allowed, use classes to access data by property names that are identifiers */ +/* @@? import_1.ets:24:5 Error Syntax error ESY0224: Identifier expected, got 'number literal'. */ -// Error in main file based on class from the most distant file -/* @@? master_file.ets:18:9 Error TypeError: Expected 0 arguments, got 1. */ -/* @@? master_file.ets:18:9 Error TypeError: No matching construct signature for import_2.B(Int) */ -/* @@? master_file.ets:18:9 Error TypeError: Expected 0 arguments, got 1. */ -/* @@? master_file.ets:18:9 Error TypeError: No matching construct signature for import_2.B(Int) */ +/* @@? import_2.ets:17:17 Error Semantic error ESE0318: Type 'Int' cannot be assigned to type 'String' */ +/* @@? import_2.ets:20:5 Error Syntax error ESY0297: 'var' keyword is not supported. Use 'let' instead. */ + +/* @@? master_file.ets:18:9 Error Semantic error ESE0124: Expected 0 arguments, got 1. */ +/* @@? master_file.ets:18:9 Error Semantic error ESE0127: No matching construct signature for import_2.B(Int) */ +/* @@? master_file.ets:18:9 Error Semantic error ESE0124: Expected 0 arguments, got 1. */ +/* @@? master_file.ets:18:9 Error Semantic error ESE0127: No matching construct signature for import_2.B(Int) */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/import_tests/import_distant_package/master_file.ets b/ets2panda/test/ast/compiler/ets/import_tests/import_distant_package/master_file.ets index 47707baa9f..810d1ee454 100644 --- a/ets2panda/test/ast/compiler/ets/import_tests/import_distant_package/master_file.ets +++ b/ets2panda/test/ast/compiler/ets/import_tests/import_distant_package/master_file.ets @@ -17,18 +17,25 @@ import { moreImportantInfo, notInit, notExist } from "./package_with_errors" console.log(notExist) -/* @@? import_in_package_with_error.ets:20:17 Error TypeError: Cannot find type 'notInit'. */ -/* @@? import_in_package_with_error.ets:20:29 Error SyntaxError: Unexpected token '='. */ -/* @@? import_in_package_with_error.ets:20:30 Error SyntaxError: Unexpected token, expected ')'. */ -/* @@? import_in_package_with_error.ets:20:32 Error SyntaxError: Unexpected token ')'. */ -/* @@? distant_package.ets:22:22 Error SyntaxError: Variable must be initialized or it's type must be declared. */ +/* @@? import_in_package_with_error.ets:20:17 Error Semantic error ESE0371: Cannot find type 'notInit'. */ +/* @@? import_in_package_with_error.ets:20:29 Error Syntax error ESY0227: Unexpected token '='. */ +/* @@? import_in_package_with_error.ets:20:30 Error Syntax error ESY0228: Unexpected token, expected ')'. */ +/* @@? import_in_package_with_error.ets:20:32 Error Syntax error ESY0227: Unexpected token ')'. */ -/* @@? package_with_errors_1.ets:19:32 Error SyntaxError: Non-constant initializer of Package should be apply in Initializer Block. */ -/* @@? package_with_errors_1.ets:19:32 Error TypeError: Cannot cast type 'String' to 'double' */ +/* @@? distant_package.ets:22:22 Error Syntax error ESY0105: Variable must be initialized or it's type must be declared. */ -/* @@? package_with_errors_2.ets:19:16 Error SyntaxError: Non-constant initializer of Package should be apply in Initializer Block. */ -/* @@? package_with_errors_2.ets:19:16 Error TypeError: Unresolved reference foo */ +/* @@? package_with_errors_1.ets:19:32 Error Semantic error ESE0326: Cannot cast type 'String' to 'Double' */ -/* @@? master_file.ets:16:54 Error TypeError: Cannot find imported element 'notExist' */ -/* @@? master_file.ets:18:13 Error TypeError: Unresolved reference notExist */ +/* @@? package_with_errors_2.ets:19:16 Error Semantic error ESE0143: Unresolved reference foo */ + +/* @@? master_file.ets:16:54 Error Semantic error ESE0356: Cannot find imported element 'notExist' */ +/* @@? master_file.ets:18:1 Error Semantic error ESE0142: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Double): void` */ +/* @@? master_file.ets:18:1 Error Semantic error ESE0142: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Float): void` */ +/* @@? master_file.ets:18:1 Error Semantic error ESE0142: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Long): void` */ +/* @@? master_file.ets:18:1 Error Semantic error ESE0142: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Int): void` */ +/* @@? master_file.ets:18:1 Error Semantic error ESE0142: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Char): void` */ +/* @@? master_file.ets:18:1 Error Semantic error ESE0142: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Short): void` */ +/* @@? master_file.ets:18:1 Error Semantic error ESE0142: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Byte): void` */ +/* @@? master_file.ets:18:1 Error Semantic error ESE0142: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Boolean): void` */ +/* @@? master_file.ets:18:13 Error Semantic error ESE0143: Unresolved reference notExist */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/import_tests/import_distant_package/package_with_errors/import_in_package_with_error.ets b/ets2panda/test/ast/compiler/ets/import_tests/import_distant_package/package_with_errors/import_in_package_with_error.ets index 417776eca0..67b584badd 100644 --- a/ets2panda/test/ast/compiler/ets/import_tests/import_distant_package/package_with_errors/import_in_package_with_error.ets +++ b/ets2panda/test/ast/compiler/ets/import_tests/import_distant_package/package_with_errors/import_in_package_with_error.ets @@ -19,11 +19,15 @@ import { notInit, importantInfo } from "./inner_package_with_errors" function bar(x: notInit) { (=_=) } -/* @@? distant_package.ets:22:22 Error SyntaxError: Variable must be initialized or it's type must be declared. */ -/* @@? package_with_errors_1.ets:19:32 Error TypeError: Cannot cast type 'String' to 'Double' */ -/* @@? package_with_errors_2.ets:19:16 Error TypeError: Unresolved reference foo */ -/* @@? package_with_errors_2.ets:19:16 Error TypeError: This expression is not callable. */ -/* @@? import_in_package_with_error.ets:20:17 Error TypeError: Cannot find type 'notInit'. */ -/* @@? import_in_package_with_error.ets:20:29 Error SyntaxError: Unexpected token '='. */ -/* @@? import_in_package_with_error.ets:20:30 Error SyntaxError: Unexpected token, expected ')'. */ -/* @@? import_in_package_with_error.ets:20:32 Error SyntaxError: Unexpected token ')'. */ + +/* @@? distant_package.ets:22:22 Error Syntax error ESY0105: Variable must be initialized or it's type must be declared. */ + +/* @@? package_with_errors_1.ets:19:32 Error Semantic error ESE0326: Cannot cast type 'String' to 'Double' */ + +/* @@? package_with_errors_2.ets:19:16 Error Semantic error ESE0143: Unresolved reference foo */ +/* @@? package_with_errors_2.ets:19:16 Error Semantic error ESE0289: This expression is not callable. */ + +/* @@? import_in_package_with_error.ets:20:17 Error Semantic error ESE0371: Cannot find type 'notInit'. */ +/* @@? import_in_package_with_error.ets:20:29 Error Syntax error ESY0227: Unexpected token '='. */ +/* @@? import_in_package_with_error.ets:20:30 Error Syntax error ESY0228: Unexpected token, expected ')'. */ +/* @@? import_in_package_with_error.ets:20:32 Error Syntax error ESY0227: Unexpected token ')'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/import_tests/import_distant_package/package_with_errors/inner_package_with_errors/distant_package.ets b/ets2panda/test/ast/compiler/ets/import_tests/import_distant_package/package_with_errors/inner_package_with_errors/distant_package.ets index fb0a7d4075..ebaa3ef1d4 100644 --- a/ets2panda/test/ast/compiler/ets/import_tests/import_distant_package/package_with_errors/inner_package_with_errors/distant_package.ets +++ b/ets2panda/test/ast/compiler/ets/import_tests/import_distant_package/package_with_errors/inner_package_with_errors/distant_package.ets @@ -21,5 +21,6 @@ export let importantInfo = "All good!" export const notInit ; -/* @@? distant_package.ets:22:14 Error SyntaxError: Missing initialization for const package property */ -/* @@? distant_package.ets:22:22 Error SyntaxError: Variable must be initialized or it's type must be declared. */ + +/* @@? 22:14 Error Syntax error ESY0294: Missing initialization for const package property */ +/* @@? 22:22 Error Syntax error ESY0105: Variable must be initialized or it's type must be declared. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/import_tests/import_distant_package/package_with_errors/package_with_errors_1.ets b/ets2panda/test/ast/compiler/ets/import_tests/import_distant_package/package_with_errors/package_with_errors_1.ets index cb95afc31a..d47cbc6216 100644 --- a/ets2panda/test/ast/compiler/ets/import_tests/import_distant_package/package_with_errors/package_with_errors_1.ets +++ b/ets2panda/test/ast/compiler/ets/import_tests/import_distant_package/package_with_errors/package_with_errors_1.ets @@ -18,11 +18,15 @@ package package_with_errors // "importantInfo" is imported in "import_in_package_with_error.ets" export let moreImportantInfo = importantInfo as number; -/* @@? import_in_package_with_error.ets:20:17 Error TypeError: Cannot find type 'notInit'. */ -/* @@? import_in_package_with_error.ets:20:29 Error SyntaxError: Unexpected token '='. */ -/* @@? import_in_package_with_error.ets:20:30 Error SyntaxError: Unexpected token, expected ')'. */ -/* @@? import_in_package_with_error.ets:20:32 Error SyntaxError: Unexpected token ')'. */ -/* @@? distant_package.ets:22:22 Error SyntaxError: Variable must be initialized or it's type must be declared. */ -/* @@? package_with_errors_2.ets:19:16 Error TypeError: Unresolved reference foo */ -/* @@? package_with_errors_2.ets:19:16 Error TypeError: This expression is not callable. */ -/* @@? package_with_errors_1.ets:19:32 Error TypeError: Cannot cast type 'String' to 'Double' */ + +/* @@? import_in_package_with_error.ets:20:17 Error Semantic error ESE0371: Cannot find type 'notInit'. */ +/* @@? import_in_package_with_error.ets:20:29 Error Syntax error ESY0227: Unexpected token '='. */ +/* @@? import_in_package_with_error.ets:20:30 Error Syntax error ESY0228: Unexpected token, expected ')'. */ +/* @@? import_in_package_with_error.ets:20:32 Error Syntax error ESY0227: Unexpected token ')'. */ + +/* @@? distant_package.ets:22:22 Error Syntax error ESY0105: Variable must be initialized or it's type must be declared. */ + +/* @@? package_with_errors_2.ets:19:16 Error Semantic error ESE0143: Unresolved reference foo */ +/* @@? package_with_errors_2.ets:19:16 Error Semantic error ESE0289: This expression is not callable. */ + +/* @@? package_with_errors_1.ets:19:32 Error Semantic error ESE0326: Cannot cast type 'String' to 'Double' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/import_tests/import_distant_package/package_with_errors/package_with_errors_2.ets b/ets2panda/test/ast/compiler/ets/import_tests/import_distant_package/package_with_errors/package_with_errors_2.ets index 58ca5496f1..2d353e0db3 100644 --- a/ets2panda/test/ast/compiler/ets/import_tests/import_distant_package/package_with_errors/package_with_errors_2.ets +++ b/ets2panda/test/ast/compiler/ets/import_tests/import_distant_package/package_with_errors/package_with_errors_2.ets @@ -20,11 +20,15 @@ let newValue = foo(notInit) export notInit -/* @@? import_in_package_with_error.ets:20:17 Error TypeError: Cannot find type 'notInit'. */ -/* @@? import_in_package_with_error.ets:20:29 Error SyntaxError: Unexpected token '='. */ -/* @@? import_in_package_with_error.ets:20:30 Error SyntaxError: Unexpected token, expected ')'. */ -/* @@? import_in_package_with_error.ets:20:32 Error SyntaxError: Unexpected token ')'. */ -/* @@? distant_package.ets:22:22 Error SyntaxError: Variable must be initialized or it's type must be declared. */ -/* @@? package_with_errors_1.ets:19:32 Error TypeError: Cannot cast type 'String' to 'Double' */ -/* @@? package_with_errors_2.ets:19:16 Error TypeError: Unresolved reference foo */ -/* @@? package_with_errors_2.ets:19:16 Error TypeError: This expression is not callable. */ + +/* @@? import_in_package_with_error.ets:20:17 Error Semantic error ESE0371: Cannot find type 'notInit'. */ +/* @@? import_in_package_with_error.ets:20:29 Error Syntax error ESY0227: Unexpected token '='. */ +/* @@? import_in_package_with_error.ets:20:30 Error Syntax error ESY0228: Unexpected token, expected ')'. */ +/* @@? import_in_package_with_error.ets:20:32 Error Syntax error ESY0227: Unexpected token ')'. */ + +/* @@? distant_package.ets:22:22 Error Syntax error ESY0105: Variable must be initialized or it's type must be declared. */ + +/* @@? package_with_errors_1.ets:19:32 Error Semantic error ESE0326: Cannot cast type 'String' to 'Double' */ + +/* @@? package_with_errors_2.ets:19:16 Error Semantic error ESE0143: Unresolved reference foo */ +/* @@? package_with_errors_2.ets:19:16 Error Semantic error ESE0289: This expression is not callable. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/import_tests/import_within_scope/scope_import_1.ets b/ets2panda/test/ast/compiler/ets/import_tests/import_within_scope/scope_import_1.ets index e7628a6a70..e74be9301e 100644 --- a/ets2panda/test/ast/compiler/ets/import_tests/import_within_scope/scope_import_1.ets +++ b/ets2panda/test/ast/compiler/ets/import_tests/import_within_scope/scope_import_1.ets @@ -17,4 +17,5 @@ namespace ns { import * as nsi from './export_file'; } -/* @@? 17:5 Error SyntaxError: Import declarations can only be used on the top level and before any other declaration, top level statement or directive. */ + +/* @@? 17:5 Error Syntax error ESY0226: Import declarations can only be used on the top level and before any other declaration, top level statement or directive. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/import_tests/import_within_scope/scope_import_2.ets b/ets2panda/test/ast/compiler/ets/import_tests/import_within_scope/scope_import_2.ets index e5dbc4c1f5..d90c45fafc 100644 --- a/ets2panda/test/ast/compiler/ets/import_tests/import_within_scope/scope_import_2.ets +++ b/ets2panda/test/ast/compiler/ets/import_tests/import_within_scope/scope_import_2.ets @@ -19,4 +19,5 @@ function main() { } } -/* @@? 18:9 Error SyntaxError: Import declarations can only be used on the top level and before any other declaration, top level statement or directive. */ + +/* @@? 18:9 Error Syntax error ESY0226: Import declarations can only be used on the top level and before any other declaration, top level statement or directive. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/import_tests/import_within_scope/scope_import_3.ets b/ets2panda/test/ast/compiler/ets/import_tests/import_within_scope/scope_import_3.ets index b57db80392..7ff3d40b07 100644 --- a/ets2panda/test/ast/compiler/ets/import_tests/import_within_scope/scope_import_3.ets +++ b/ets2panda/test/ast/compiler/ets/import_tests/import_within_scope/scope_import_3.ets @@ -19,4 +19,4 @@ function main() { } } -/* @@? 18:9 Error SyntaxError: Import declarations can only be used on the top level and before any other declaration, top level statement or directive. */ \ No newline at end of file +/* @@? 18:9 Error Syntax error ESY0226: Import declarations can only be used on the top level and before any other declaration, top level statement or directive. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/import_tests/selective_export_tests/export_type_several_times_1.ets b/ets2panda/test/ast/compiler/ets/import_tests/selective_export_tests/export_type_several_times_1.ets index 3262d1a839..c61cb19164 100644 --- a/ets2panda/test/ast/compiler/ets/import_tests/selective_export_tests/export_type_several_times_1.ets +++ b/ets2panda/test/ast/compiler/ets/import_tests/selective_export_tests/export_type_several_times_1.ets @@ -22,3 +22,5 @@ export { A as a1, A as a2 } +/* @@? 21:3 Warning Warning W32596: 'foo' is explicitly used with alias several times */ +/* @@? 23:3 Warning Warning W32596: 'A' is explicitly used with alias several times */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/import_tests/selective_export_tests/export_type_several_times_2.ets b/ets2panda/test/ast/compiler/ets/import_tests/selective_export_tests/export_type_several_times_2.ets index 54f88f12e3..1eb6cb8d67 100644 --- a/ets2panda/test/ast/compiler/ets/import_tests/selective_export_tests/export_type_several_times_2.ets +++ b/ets2panda/test/ast/compiler/ets/import_tests/selective_export_tests/export_type_several_times_2.ets @@ -25,3 +25,6 @@ export { a as a3, a as a4 } +/* @@? 22:3 Warning Warning W32596: 'foo' is explicitly used with alias several times */ +/* @@? 24:3 Warning Warning W32596: 'A' is explicitly used with alias several times */ +/* @@? 26:3 Warning Warning W32596: 'a' is explicitly used with alias several times */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/import_tests/selective_export_tests/import_function_wrong_name.ets b/ets2panda/test/ast/compiler/ets/import_tests/selective_export_tests/import_function_wrong_name.ets index 232dd176a1..7a91c43979 100644 --- a/ets2panda/test/ast/compiler/ets/import_tests/selective_export_tests/import_function_wrong_name.ets +++ b/ets2panda/test/ast/compiler/ets/import_tests/selective_export_tests/import_function_wrong_name.ets @@ -15,4 +15,5 @@ import {/* @@ label */test_func} from "./selective_export_function" -/* @@@ label Error TypeError: Cannot find imported element 'test_func' */ + +/* @@@ label Error Semantic error ESE0356: Cannot find imported element 'test_func' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/import_tests/selective_export_tests/import_interface_wrong_name.ets b/ets2panda/test/ast/compiler/ets/import_tests/selective_export_tests/import_interface_wrong_name.ets index 317a1ed4e0..2e431fcb3c 100644 --- a/ets2panda/test/ast/compiler/ets/import_tests/selective_export_tests/import_interface_wrong_name.ets +++ b/ets2panda/test/ast/compiler/ets/import_tests/selective_export_tests/import_interface_wrong_name.ets @@ -15,4 +15,5 @@ import {/* @@ label */InterfaceToAlias} from "./selective_export_interface"; -/* @@@ label Error TypeError: Cannot find imported element 'InterfaceToAlias' */ + +/* @@@ label Error Semantic error ESE0356: Cannot find imported element 'InterfaceToAlias' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/import_tests/selective_export_tests/import_same_type_form_alias_1.ets b/ets2panda/test/ast/compiler/ets/import_tests/selective_export_tests/import_same_type_form_alias_1.ets index f3d2d5d4dc..5a6640ab1c 100644 --- a/ets2panda/test/ast/compiler/ets/import_tests/selective_export_tests/import_same_type_form_alias_1.ets +++ b/ets2panda/test/ast/compiler/ets/import_tests/selective_export_tests/import_same_type_form_alias_1.ets @@ -20,4 +20,5 @@ f1() f2() let c: A = new A() let c1: A = new a1() -let c2: A = new a2() \ No newline at end of file +let c2: A = new a2()/* @@? export_type_several_times_1.ets:21:3 Warning Warning W32596: 'foo' is explicitly used with alias several times */ +/* @@? export_type_several_times_1.ets:23:3 Warning Warning W32596: 'A' is explicitly used with alias several times */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/import_tests/selective_export_tests/import_same_type_form_alias_2.ets b/ets2panda/test/ast/compiler/ets/import_tests/selective_export_tests/import_same_type_form_alias_2.ets index 91be1a73db..dca0f4128a 100644 --- a/ets2panda/test/ast/compiler/ets/import_tests/selective_export_tests/import_same_type_form_alias_2.ets +++ b/ets2panda/test/ast/compiler/ets/import_tests/selective_export_tests/import_same_type_form_alias_2.ets @@ -20,4 +20,6 @@ f2() let c1: a1 = new a1() let c2: a2 = new a2() c1 = a3 -c2 = a4 \ No newline at end of file +c2 = a4/* @@? export_type_several_times_2.ets:22:3 Warning Warning W32596: 'foo' is explicitly used with alias several times */ +/* @@? export_type_several_times_2.ets:24:3 Warning Warning W32596: 'A' is explicitly used with alias several times */ +/* @@? export_type_several_times_2.ets:26:3 Warning Warning W32596: 'a' is explicitly used with alias several times */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/import_tests/selective_export_tests/import_same_type_form_alias_3.ets b/ets2panda/test/ast/compiler/ets/import_tests/selective_export_tests/import_same_type_form_alias_3.ets index fec071802f..8c0a14a1f1 100644 --- a/ets2panda/test/ast/compiler/ets/import_tests/selective_export_tests/import_same_type_form_alias_3.ets +++ b/ets2panda/test/ast/compiler/ets/import_tests/selective_export_tests/import_same_type_form_alias_3.ets @@ -20,5 +20,10 @@ f2() let c1: a1 = new a1() let c2: a2 = new a2() -/* @@? 16:10 Error TypeError: Cannot find imported element 'foo' */ -/* @@? 16:23 Error TypeError: Cannot find imported element 'A' */ + +/* @@? export_type_several_times_2.ets:22:3 Warning Warning W32596: 'foo' is explicitly used with alias several times */ +/* @@? export_type_several_times_2.ets:24:3 Warning Warning W32596: 'A' is explicitly used with alias several times */ +/* @@? export_type_several_times_2.ets:26:3 Warning Warning W32596: 'a' is explicitly used with alias several times */ + +/* @@? import_same_type_form_alias_3.ets:16:10 Error Semantic error ESE0356: Cannot find imported element 'foo' */ +/* @@? import_same_type_form_alias_3.ets:16:23 Error Semantic error ESE0356: Cannot find imported element 'A' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/import_tests/selective_export_tests/namespace_import_wrong_access_name.ets b/ets2panda/test/ast/compiler/ets/import_tests/selective_export_tests/namespace_import_wrong_access_name.ets index b594028cb9..80aca4501f 100644 --- a/ets2panda/test/ast/compiler/ets/import_tests/selective_export_tests/namespace_import_wrong_access_name.ets +++ b/ets2panda/test/ast/compiler/ets/import_tests/selective_export_tests/namespace_import_wrong_access_name.ets @@ -17,4 +17,5 @@ import * as all from "./selective_export" let test_var = new all.TestClass(); -/* @@? 18:24 Error TypeError: 'TestClass' type does not exist. */ + +/* @@? 18:24 Error Semantic error ESE0070: 'TestClass' type does not exist. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/import_tests/selective_export_tests/selective_export_clashing_exports_3.ets b/ets2panda/test/ast/compiler/ets/import_tests/selective_export_tests/selective_export_clashing_exports_3.ets index b9e214dc37..0c363025e4 100644 --- a/ets2panda/test/ast/compiler/ets/import_tests/selective_export_tests/selective_export_clashing_exports_3.ets +++ b/ets2panda/test/ast/compiler/ets/import_tests/selective_export_tests/selective_export_clashing_exports_3.ets @@ -21,4 +21,5 @@ export { msg as foo } -/* @@? 21:10 Error SyntaxError: The given name 'foo' is already used in another export. */ + +/* @@? 21:10 Error Syntax error ESY0281: The given name 'foo' is already used in another export. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/import_tests/selective_export_tests/selective_export_clashing_exports_4.ets b/ets2panda/test/ast/compiler/ets/import_tests/selective_export_tests/selective_export_clashing_exports_4.ets index 38dc700daf..a1f5d053c4 100644 --- a/ets2panda/test/ast/compiler/ets/import_tests/selective_export_tests/selective_export_clashing_exports_4.ets +++ b/ets2panda/test/ast/compiler/ets/import_tests/selective_export_tests/selective_export_clashing_exports_4.ets @@ -21,4 +21,5 @@ export { msg as foo } -/* @@? 21:10 Error SyntaxError: The given name 'foo' is already used in another export. */ + +/* @@? 21:10 Error Syntax error ESY0281: The given name 'foo' is already used in another export. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/import_type_with_invalid_syntax.ets b/ets2panda/test/ast/compiler/ets/import_type_with_invalid_syntax.ets index 9b7ecfe360..6c8c677cd3 100644 --- a/ets2panda/test/ast/compiler/ets/import_type_with_invalid_syntax.ets +++ b/ets2panda/test/ast/compiler/ets/import_type_with_invalid_syntax.ets @@ -19,6 +19,8 @@ let a = new A(); class C implements B {}; let c = new C() -/* @@@ label1 Error SyntaxError: Unexpected token, expected 'as'. */ -/* @@? 16:35 Error TypeError: Class 'C' is already defined. */ -/* @@? export_type.ets:1:1 Error TypeError: Function main is already declared. */ + +/* @@? export_type.ets:1:1 Error Semantic error ESE0130: Function main is already declared. */ + +/* @@@ label1 Error Syntax error ESY0228: Unexpected token, expected 'as'. */ +/* @@? import_type_with_invalid_syntax.ets:16:35 Error Semantic error ESE0349: Class 'C' is already defined. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/incorrect_call_getter.ets b/ets2panda/test/ast/compiler/ets/incorrect_call_getter.ets index 61d54f1ecd..0679bc2abb 100644 --- a/ets2panda/test/ast/compiler/ets/incorrect_call_getter.ets +++ b/ets2panda/test/ast/compiler/ets/incorrect_call_getter.ets @@ -30,8 +30,8 @@ export class ConM implements inter { } } -/* @@? 22:10 Error TypeError: 'The special predefined method '$_get' shouldn't have void return type. */ -/* @@? 25:36 Error TypeError: ConM is not abstract and does not override abstract method gett(k: Double): Double in inter */ -/* @@? 29:9 Error TypeError: No matching indexing signature for $_get((p1: Double) => Double) */ -/* @@? 29:22 Error TypeError: Type '(p1: Double) => Double' is not compatible with type 'Double' at index 1 */ -/* @@? 29:22 Error TypeError: Cannot find index access method with the required signature. */ +/* @@? 22:10 Error Semantic error ESE0093: 'The special predefined method '$_get' shouldn't have void return type. */ +/* @@? 25:36 Error Semantic error ESE0190: ConM is not abstract and does not override abstract method gett(k: Double): Double in inter */ +/* @@? 29:9 Error Semantic error ESE0127: No matching indexing signature for $_get((p1: Double) => Double) */ +/* @@? 29:22 Error Semantic error ESE0046: Type '(p1: Double) => Double' is not compatible with type 'Double' at index 1 */ +/* @@? 29:22 Error Semantic error ESE0251: Cannot find index access method with the required signature. */ diff --git a/ets2panda/test/ast/compiler/ets/index_callExpression.ets b/ets2panda/test/ast/compiler/ets/index_callExpression.ets index 9ce5b1325d..a26e94fec4 100644 --- a/ets2panda/test/ast/compiler/ets/index_callExpression.ets +++ b/ets2panda/test/ast/compiler/ets/index_callExpression.ets @@ -17,6 +17,7 @@ function testInfo() { DataView => ""[main]() } -/* @@? 17:5 Error TypeError: The type of parameter 'DataView' cannot be inferred */ -/* @@? 17:17 Error TypeError: Type 'String' has no call signatures. */ -/* @@? 17:20 Error TypeError: Function name 'main' used in the wrong context */ + +/* @@? 17:5 Error Semantic error ESE0132: The type of parameter 'DataView' cannot be inferred */ +/* @@? 17:17 Error Semantic error ESE0002: Type 'String' has no call signatures. */ +/* @@? 17:20 Error Semantic error ESE0144: Function name 'main' used in the wrong context */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/inferTypeLambda_0.ets b/ets2panda/test/ast/compiler/ets/inferTypeLambda_0.ets index c4664c65f9..76eff0967c 100644 --- a/ets2panda/test/ast/compiler/ets/inferTypeLambda_0.ets +++ b/ets2panda/test/ast/compiler/ets/inferTypeLambda_0.ets @@ -24,5 +24,6 @@ function bar(arr:number[]){ }) } -/* @@? 17:12 Error TypeError: No matching call signature for (T) */ -/* @@? 17:14 Error TypeError: Type 'T' is not compatible with type 'Array' at index 1 */ + +/* @@? 17:12 Error Semantic error ESE0127: No matching call signature for (T) */ +/* @@? 17:14 Error Semantic error ESE0046: Type 'T' is not compatible with type 'Array' at index 1 */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/inferTypeOfArrayNegative2.ets b/ets2panda/test/ast/compiler/ets/inferTypeOfArrayNegative2.ets index d886e32944..161ec8aad3 100644 --- a/ets2panda/test/ast/compiler/ets/inferTypeOfArrayNegative2.ets +++ b/ets2panda/test/ast/compiler/ets/inferTypeOfArrayNegative2.ets @@ -18,8 +18,9 @@ a[0] = 1 a[1] = "1" let b = a[0] + a[1] -/* @@? 16:9 Error TypeError: Can't resolve array type */ -/* @@? 17:1 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@? 18:1 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@? 19:9 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@? 19:16 Error TypeError: Indexed access is not supported for such expression type. */ + +/* @@? 16:9 Error Semantic error ESE0301: Can't resolve array type */ +/* @@? 17:1 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 18:1 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 19:9 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 19:16 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/inferTypeOfArrayNegative3.ets b/ets2panda/test/ast/compiler/ets/inferTypeOfArrayNegative3.ets index c8400f2b11..991ad18830 100644 --- a/ets2panda/test/ast/compiler/ets/inferTypeOfArrayNegative3.ets +++ b/ets2panda/test/ast/compiler/ets/inferTypeOfArrayNegative3.ets @@ -16,6 +16,7 @@ let a = [1, 2, 3] a[0] = /* @@ label */"1" -/* @@? 17:1 Error TypeError: No matching indexing signature for $_set(Int, "1") */ -/* @@? 17:3 Error TypeError: Cannot find index access method with the required signature. */ -/* @@? 17:22 Error TypeError: Type '"1"' is not compatible with type 'Double' at index 2 */ + +/* @@? 17:1 Error Semantic error ESE0127: No matching indexing signature for $_set(Int, "1") */ +/* @@? 17:3 Error Semantic error ESE0251: Cannot find index access method with the required signature. */ +/* @@@ label Error Semantic error ESE0046: Type '"1"' is not compatible with type 'Double' at index 2 */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/infinityNarrowing.ets b/ets2panda/test/ast/compiler/ets/infinityNarrowing.ets index ee3013210a..4ebfef877c 100644 --- a/ets2panda/test/ast/compiler/ets/infinityNarrowing.ets +++ b/ets2panda/test/ast/compiler/ets/infinityNarrowing.ets @@ -18,10 +18,11 @@ export const byteInf: /* @@ dst_type2 */byte = /* @@ value2 */1.0 / 0.0 export const shortInf: /* @@ dst_type3 */short = /* @@ value3 */1.0 / 0.0 -/* @@? 16:42 Error TypeError: Invalid destination type for floating-point constant value */ -/* @@? 16:65 Error TypeError: Type 'Double' cannot be assigned to type 'Float' */ -/* @@? 17:42 Error TypeError: Invalid destination type for floating-point constant value */ -/* @@? 17:64 Error TypeError: Type 'Double' cannot be assigned to type 'Byte' */ -/* @@? 18:42 Error TypeError: Invalid destination type for floating-point constant value */ -/* @@? 18:65 Error TypeError: Type 'Double' cannot be assigned to type 'Short' */ + +/* @@@ dst_type1 Error Semantic error ESE0344: Invalid destination type for floating-point constant value */ +/* @@@ value1 Error Semantic error ESE0318: Type 'Double' cannot be assigned to type 'Float' */ +/* @@@ dst_type2 Error Semantic error ESE0344: Invalid destination type for floating-point constant value */ +/* @@@ value2 Error Semantic error ESE0318: Type 'Double' cannot be assigned to type 'Byte' */ +/* @@@ dst_type3 Error Semantic error ESE0344: Invalid destination type for floating-point constant value */ +/* @@@ value3 Error Semantic error ESE0318: Type 'Double' cannot be assigned to type 'Short' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/init_module_tests/init_module_negative1.ets b/ets2panda/test/ast/compiler/ets/init_module_tests/init_module_negative1.ets index 683b62432d..13650161f5 100644 --- a/ets2panda/test/ast/compiler/ets/init_module_tests/init_module_negative1.ets +++ b/ets2panda/test/ast/compiler/ets/init_module_tests/init_module_negative1.ets @@ -17,4 +17,5 @@ function foo() { /* @@ label */initModule('./module_to_init.ets') } -/* @@@ label Error SyntaxError: initModule() must only be called immediately after the import statement, and before any other declarations or statements. */ + +/* @@@ label Error Syntax error ESY0322: initModule() must only be called immediately after the import statement, and before any other declarations or statements. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/init_module_tests/init_module_negative2.ets b/ets2panda/test/ast/compiler/ets/init_module_tests/init_module_negative2.ets index 7887e38abf..1d78051e77 100644 --- a/ets2panda/test/ast/compiler/ets/init_module_tests/init_module_negative2.ets +++ b/ets2panda/test/ast/compiler/ets/init_module_tests/init_module_negative2.ets @@ -18,4 +18,5 @@ class A { /* @@ label */initModule('./module_to_init.ets') -/* @@@ label Error SyntaxError: initModule() must only be called immediately after the import statement, and before any other declarations or statements. */ + +/* @@@ label Error Syntax error ESY0322: initModule() must only be called immediately after the import statement, and before any other declarations or statements. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/init_module_tests/init_module_negative3.ets b/ets2panda/test/ast/compiler/ets/init_module_tests/init_module_negative3.ets index 18a7108e93..90cb154a57 100644 --- a/ets2panda/test/ast/compiler/ets/init_module_tests/init_module_negative3.ets +++ b/ets2panda/test/ast/compiler/ets/init_module_tests/init_module_negative3.ets @@ -16,4 +16,5 @@ let b = 1 /* @@ label */initModule('./module_to_init.ets') -/* @@@ label Error SyntaxError: initModule() must only be called immediately after the import statement, and before any other declarations or statements. */ + +/* @@@ label Error Syntax error ESY0322: initModule() must only be called immediately after the import statement, and before any other declarations or statements. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/init_module_tests/init_module_negative4.ets b/ets2panda/test/ast/compiler/ets/init_module_tests/init_module_negative4.ets index e9d9ffd119..5428d06609 100644 --- a/ets2panda/test/ast/compiler/ets/init_module_tests/init_module_negative4.ets +++ b/ets2panda/test/ast/compiler/ets/init_module_tests/init_module_negative4.ets @@ -15,4 +15,5 @@ /* @@ label */initModule(1) -/* @@@ label Error SyntaxError: initModule() only accept string literal as argument. */ + +/* @@@ label Error Syntax error ESY0321: initModule() only accept string literal as argument. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/init_module_tests/init_module_negative5.ets b/ets2panda/test/ast/compiler/ets/init_module_tests/init_module_negative5.ets index 5bf4e846f0..fa2f8f0327 100644 --- a/ets2panda/test/ast/compiler/ets/init_module_tests/init_module_negative5.ets +++ b/ets2panda/test/ast/compiler/ets/init_module_tests/init_module_negative5.ets @@ -15,5 +15,6 @@ initModule( -/* @@? 16:1 Error SyntaxError: initModule() only accept string literal as argument. */ -/* @@? 20:1 Error SyntaxError: Expected ')', got 'end of stream'. */ + +/* @@? 16:1 Error Syntax error ESY0321: initModule() only accept string literal as argument. */ +/* @@? 20:79 Error Syntax error ESY0230: Expected ')', got 'end of stream'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/init_module_tests/init_module_negative6.ets b/ets2panda/test/ast/compiler/ets/init_module_tests/init_module_negative6.ets index 3bc35e5a51..a42394fce3 100644 --- a/ets2panda/test/ast/compiler/ets/init_module_tests/init_module_negative6.ets +++ b/ets2panda/test/ast/compiler/ets/init_module_tests/init_module_negative6.ets @@ -15,6 +15,7 @@ initModule) -/* @@? 16:11 Error SyntaxError: Unexpected token, expected '('. */ -/* @@? 21:1 Error SyntaxError: Unexpected token 'end of stream'. */ -/* @@? 21:1 Error SyntaxError: Unexpected token, expected ')'. */ + +/* @@? 16:11 Error Syntax error ESY0228: Unexpected token, expected '('. */ +/* @@? 21:76 Error Syntax error ESY0227: Unexpected token 'end of stream'. */ +/* @@? 21:76 Error Syntax error ESY0228: Unexpected token, expected ')'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/init_module_tests/init_module_negative7.ets b/ets2panda/test/ast/compiler/ets/init_module_tests/init_module_negative7.ets index f91b70836f..82693d9ee2 100644 --- a/ets2panda/test/ast/compiler/ets/init_module_tests/init_module_negative7.ets +++ b/ets2panda/test/ast/compiler/ets/init_module_tests/init_module_negative7.ets @@ -15,4 +15,5 @@ /* @@ label */initmodule('./module_to_init.ets') -/* @@@ label Error TypeError: Unresolved reference initmodule */ + +/* @@@ label Error Semantic error ESE0143: Unresolved reference initmodule */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/init_module_tests/init_module_negative8.ets b/ets2panda/test/ast/compiler/ets/init_module_tests/init_module_negative8.ets index 20adc6d8ff..2ab0f92c95 100644 --- a/ets2panda/test/ast/compiler/ets/init_module_tests/init_module_negative8.ets +++ b/ets2panda/test/ast/compiler/ets/init_module_tests/init_module_negative8.ets @@ -15,4 +15,5 @@ initModule() -/* @@? 16:1 Error SyntaxError: initModule() only accept string literal as argument. */ + +/* @@? 16:1 Error Syntax error ESY0321: initModule() only accept string literal as argument. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/initializer_block_namesapce04.ets b/ets2panda/test/ast/compiler/ets/initializer_block_namesapce04.ets index 630cd8cdfc..1f527e531f 100644 --- a/ets2panda/test/ast/compiler/ets/initializer_block_namesapce04.ets +++ b/ets2panda/test/ast/compiler/ets/initializer_block_namesapce04.ets @@ -23,8 +23,9 @@ export namespace xml { } } -/* @@? 17:3 Error SyntaxError: Unexpected token 'static'. */ -/* @@? 17:10 Error SyntaxError: Unexpected token 'a'. */ -/* @@? 17:13 Error SyntaxError: Label must be followed by a loop statement. */ -/* @@? 17:13 Error TypeError: Type name 'number' used in the wrong context */ -/* @@? 20:3 Error SyntaxError: Only one static block is allowed in one namespace or class. */ + +/* @@? 17:3 Error Syntax error ESY0227: Unexpected token 'static'. */ +/* @@? 17:10 Error Syntax error ESY0227: Unexpected token 'a'. */ +/* @@? 17:13 Error Syntax error ESY0038: Label must be followed by a loop statement. */ +/* @@? 17:13 Error Semantic error ESE0144: Type name 'number' used in the wrong context */ +/* @@? 20:3 Error Syntax error ESY0034: Only one static block is allowed in one namespace or class. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/interface-constructor-signatures.ets b/ets2panda/test/ast/compiler/ets/interface-constructor-signatures.ets index 72657a795c..4633a328f1 100644 --- a/ets2panda/test/ast/compiler/ets/interface-constructor-signatures.ets +++ b/ets2panda/test/ast/compiler/ets/interface-constructor-signatures.ets @@ -23,14 +23,15 @@ function fn(i: I) { return new i("hello") } -/* @@? 19:5 Error SyntaxError: Identifier expected, got 'new'. */ -/* @@? 19:5 Error SyntaxError: Constructor signatures are not supported in interfaces, use methods instead! */ -/* @@? 19:10 Error TypeError: Cannot find type 's'. */ -/* @@? 19:11 Error SyntaxError: Unexpected token, expected ','. */ -/* @@? 19:11 Error SyntaxError: Identifier expected, got 'end of stream'. */ -/* @@? 19:19 Error SyntaxError: Interface fields must have type annotation. */ -/* @@? 19:20 Error SyntaxError: Invalid Type. */ -/* @@? 19:20 Error SyntaxError: Unexpected token, expected ','. */ -/* @@? 19:20 Error SyntaxError: Identifier expected, got 'end of stream'. */ -/* @@? 20:1 Error SyntaxError: Invalid Type. */ -/* @@? 23:16 Error TypeError: Cannot find type 'i'. */ + +/* @@? 19:5 Error Syntax error ESY0224: Identifier expected, got 'new'. */ +/* @@? 19:5 Error Syntax error ESY81515: Constructor signatures are not supported in interfaces, use methods instead! */ +/* @@? 19:10 Error Semantic error ESE0371: Cannot find type 's'. */ +/* @@? 19:11 Error Syntax error ESY0228: Unexpected token, expected ','. */ +/* @@? 19:11 Error Syntax error ESY0224: Identifier expected, got 'end of stream'. */ +/* @@? 19:19 Error Syntax error ESY0119: Interface fields must have type annotation. */ +/* @@? 19:20 Error Syntax error ESY0138: Invalid Type. */ +/* @@? 19:20 Error Syntax error ESY0228: Unexpected token, expected ','. */ +/* @@? 19:20 Error Syntax error ESY0224: Identifier expected, got 'end of stream'. */ +/* @@? 20:1 Error Syntax error ESY0138: Invalid Type. */ +/* @@? 23:16 Error Semantic error ESE0371: Cannot find type 'i'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/interfaceMethodNotOverridden.ets b/ets2panda/test/ast/compiler/ets/interfaceMethodNotOverridden.ets index 2d32350377..61d41c0b9d 100644 --- a/ets2panda/test/ast/compiler/ets/interfaceMethodNotOverridden.ets +++ b/ets2panda/test/ast/compiler/ets/interfaceMethodNotOverridden.ets @@ -23,4 +23,5 @@ class B implements A /* @@ label */{ } } -/* @@@ label Error TypeError: B is not abstract and does not override abstract method foo(): void in A */ + +/* @@@ label Error Semantic error ESE0190: B is not abstract and does not override abstract method foo(): void in A */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/interface_ambient_call_signature_1.ets b/ets2panda/test/ast/compiler/ets/interface_ambient_call_signature_1.ets index 23b238851c..acd053bd51 100644 --- a/ets2panda/test/ast/compiler/ets/interface_ambient_call_signature_1.ets +++ b/ets2panda/test/ast/compiler/ets/interface_ambient_call_signature_1.ets @@ -16,7 +16,7 @@ declare interface A { (arg :string) string } -/* @@? 17:7 Error TypeError: Native and Declare methods should have explicit return type. */ -/* @@? 17:21 Error SyntaxError: Unexpected token, expected ','. */ -/* @@? 17:21 Error SyntaxError: Identifier expected, got 'string'. */ -/* @@? 18:3 Error SyntaxError: Identifier expected. */ \ No newline at end of file +/* @@? 17:7 Error Semantic error ESE0018: Native and Declare methods should have explicit return type. */ +/* @@? 17:21 Error Syntax error ESY0228: Unexpected token, expected ','. */ +/* @@? 17:21 Error Syntax error ESY0224: Identifier expected, got 'string'. */ +/* @@? 18:3 Error Syntax error ESY0122: Identifier expected. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/interface_class_implement.ets b/ets2panda/test/ast/compiler/ets/interface_class_implement.ets index 41591ce408..33cff3c4b1 100644 --- a/ets2panda/test/ast/compiler/ets/interface_class_implement.ets +++ b/ets2panda/test/ast/compiler/ets/interface_class_implement.ets @@ -20,4 +20,5 @@ class A implements AA{ static X :int=1; } -/* @@? 19:22 Error TypeError: A is not abstract and does not implement getter for X property in AA */ + +/* @@? 19:22 Error Semantic error ESE0188: A is not abstract and does not implement getter for X property in AA */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/interface_class_implement_extend.ets b/ets2panda/test/ast/compiler/ets/interface_class_implement_extend.ets index afa9486646..fe253e5829 100644 --- a/ets2panda/test/ast/compiler/ets/interface_class_implement_extend.ets +++ b/ets2panda/test/ast/compiler/ets/interface_class_implement_extend.ets @@ -23,5 +23,6 @@ class extendA extends A{ } -/* @@? 19:22 Error TypeError: A is not abstract and does not implement getter for X property in AA */ -/* @@? 22:24 Error TypeError: extendA is not abstract and does not implement getter for X property in AA */ + +/* @@? 19:22 Error Semantic error ESE0188: A is not abstract and does not implement getter for X property in AA */ +/* @@? 22:24 Error Semantic error ESE0188: extendA is not abstract and does not implement getter for X property in AA */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/interface_field.ets b/ets2panda/test/ast/compiler/ets/interface_field.ets index c2e9213980..114599ef04 100644 --- a/ets2panda/test/ast/compiler/ets/interface_field.ets +++ b/ets2panda/test/ast/compiler/ets/interface_field.ets @@ -22,24 +22,25 @@ interface Todo { return {...todo, ...fieldToUpdate }; } -/* @@? 17:17 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ -/* @@? 17:19 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 17:19 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ -/* @@? 17:19 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 18:22 Error SyntaxError: Label must be followed by a loop statement. */ -/* @@? 18:22 Error TypeError: Type name 'string' used in the wrong context */ -/* @@? 21:14 Error SyntaxError: Unexpected token, expected ','. */ -/* @@? 21:14 Error SyntaxError: Identifier expected, got 'identification literal'. */ -/* @@? 21:25 Error TypeError: Cannot find type 'todo'. */ -/* @@? 21:29 Error SyntaxError: Unexpected token, expected ','. */ -/* @@? 21:29 Error SyntaxError: Identifier expected, got 'end of stream'. */ -/* @@? 21:34 Error SyntaxError: Interface fields must have type annotation. */ -/* @@? 21:36 Error TypeError: Cannot find type 'fieldToUpdate'. */ -/* @@? 21:49 Error SyntaxError: Identifier expected, got 'end of stream'. */ -/* @@? 21:49 Error SyntaxError: Unexpected token, expected ','. */ -/* @@? 21:64 Error SyntaxError: Unexpected token, expected '('. */ -/* @@? 21:66 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 21:66 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ -/* @@? 21:66 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 22:16 Error TypeError: need to specify target type for class composite */ -/* @@? 46:1 Error SyntaxError: Unexpected token, expected '}'. */ + +/* @@? 17:17 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ +/* @@? 17:19 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 17:19 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ +/* @@? 17:19 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 18:22 Error Syntax error ESY0038: Label must be followed by a loop statement. */ +/* @@? 18:22 Error Semantic error ESE0144: Type name 'string' used in the wrong context */ +/* @@? 21:14 Error Syntax error ESY0228: Unexpected token, expected ','. */ +/* @@? 21:14 Error Syntax error ESY0224: Identifier expected, got 'identification literal'. */ +/* @@? 21:25 Error Semantic error ESE0371: Cannot find type 'todo'. */ +/* @@? 21:29 Error Syntax error ESY0228: Unexpected token, expected ','. */ +/* @@? 21:29 Error Syntax error ESY0224: Identifier expected, got 'end of stream'. */ +/* @@? 21:34 Error Syntax error ESY0119: Interface fields must have type annotation. */ +/* @@? 21:36 Error Semantic error ESE0371: Cannot find type 'fieldToUpdate'. */ +/* @@? 21:49 Error Syntax error ESY0224: Identifier expected, got 'end of stream'. */ +/* @@? 21:49 Error Syntax error ESY0228: Unexpected token, expected ','. */ +/* @@? 21:64 Error Syntax error ESY0228: Unexpected token, expected '('. */ +/* @@? 21:66 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 21:66 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ +/* @@? 21:66 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 22:16 Error Semantic error ESE0062: need to specify target type for class composite */ +/* @@? 46:76 Error Syntax error ESY0228: Unexpected token, expected '}'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/interface_literal.ets b/ets2panda/test/ast/compiler/ets/interface_literal.ets index 81abf38433..b8bd53e6d4 100644 --- a/ets2panda/test/ast/compiler/ets/interface_literal.ets +++ b/ets2panda/test/ast/compiler/ets/interface_literal.ets @@ -28,4 +28,5 @@ function main() { arktest.assertEQ(r, 5); } -/* @@@ label Error TypeError: Class or interface methods cannot be initialized within an object literal. */ + +/* @@@ label Error Semantic error ESE0074: Class or interface methods cannot be initialized within an object literal. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/interface_object_literal_missing_assignment0.ets b/ets2panda/test/ast/compiler/ets/interface_object_literal_missing_assignment0.ets index fb08582a04..1bfa7469e5 100644 --- a/ets2panda/test/ast/compiler/ets/interface_object_literal_missing_assignment0.ets +++ b/ets2panda/test/ast/compiler/ets/interface_object_literal_missing_assignment0.ets @@ -21,4 +21,5 @@ function createA(): A{ return /* @@ label */{}; } -/* @@@ label Error TypeError: Non-optional property 'name' in type 'A' is missing in object literal. */ + +/* @@@ label Error Semantic error ESE0400: Non-optional property 'name' in type 'A' is missing in object literal. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/interface_object_literal_missing_assignment1.ets b/ets2panda/test/ast/compiler/ets/interface_object_literal_missing_assignment1.ets index 3dc305d1ea..2a5e0f6106 100644 --- a/ets2panda/test/ast/compiler/ets/interface_object_literal_missing_assignment1.ets +++ b/ets2panda/test/ast/compiler/ets/interface_object_literal_missing_assignment1.ets @@ -24,6 +24,7 @@ interface X { function foo(x: X) {} foo(/* @@ label */{}) -/* @@@ label Error TypeError: Non-optional property 'a' in type 'X' is missing in object literal. */ -/* @@@ label Error TypeError: Non-optional property 'nm' in type 'X' is missing in object literal. */ -/* @@@ label Error TypeError: Non-optional property 'id' in type 'X' is missing in object literal. */ + +/* @@@ label Error Semantic error ESE0400: Non-optional property 'a' in type 'X' is missing in object literal. */ +/* @@@ label Error Semantic error ESE0400: Non-optional property 'nm' in type 'X' is missing in object literal. */ +/* @@@ label Error Semantic error ESE0400: Non-optional property 'id' in type 'X' is missing in object literal. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/interface_object_literal_missing_assignment2.ets b/ets2panda/test/ast/compiler/ets/interface_object_literal_missing_assignment2.ets index ffe940d1f5..408514b1fa 100644 --- a/ets2panda/test/ast/compiler/ets/interface_object_literal_missing_assignment2.ets +++ b/ets2panda/test/ast/compiler/ets/interface_object_literal_missing_assignment2.ets @@ -32,5 +32,6 @@ interface X extends Y, Z { function foo(x: X) {} foo(/* @@ label */{}) -/* @@@ label Error TypeError: Non-optional property 'c' in super type 'Z' of type 'X' is missing in object literal. */ -/* @@@ label Error TypeError: Non-optional property 'b' in super type 'Y' of type 'X' is missing in object literal. */ + +/* @@@ label Error Semantic error ESE0401: Non-optional property 'c' in super type 'Z' of type 'X' is missing in object literal. */ +/* @@@ label Error Semantic error ESE0401: Non-optional property 'b' in super type 'Y' of type 'X' is missing in object literal. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/interface_partial.ets b/ets2panda/test/ast/compiler/ets/interface_partial.ets index f3f836c47b..5e7650afe8 100644 --- a/ets2panda/test/ast/compiler/ets/interface_partial.ets +++ b/ets2panda/test/ast/compiler/ets/interface_partial.ets @@ -30,11 +30,11 @@ function main() { foo(break.var_one); } -/* @@? 18:1 Error SyntaxError: Invalid Type. */ -/* @@? 21:13 Error TypeError: Property 'var_one' does not exist on type 'I$partial' */ -/* @@? 22:13 Error TypeError: Property 'var_one' does not exist on type 'I$partial' */ -/* @@? 27:18 Error TypeError: type I has no property named var_one */ -/* @@? 28:11 Error TypeError: Property 'var_one' does not exist on type 'I' */ -/* @@? 29:9 Error TypeError: Variable 'a' has already been declared. */ -/* @@? 29:18 Error TypeError: type I has no property named var_two */ -/* @@? 30:9 Error SyntaxError: Unexpected token 'break'. */ \ No newline at end of file +/* @@? 18:1 Error Syntax error ESY0138: Invalid Type. */ +/* @@? 21:13 Error Semantic error ESE0087: Property 'var_one' does not exist on type 'I$partial' */ +/* @@? 22:13 Error Semantic error ESE0087: Property 'var_one' does not exist on type 'I$partial' */ +/* @@? 27:18 Error Semantic error ESE0065: type I has no property named var_one */ +/* @@? 28:11 Error Semantic error ESE0087: Property 'var_one' does not exist on type 'I' */ +/* @@? 29:9 Error Semantic error ESE0351: Variable 'a' has already been declared. */ +/* @@? 29:18 Error Semantic error ESE0065: type I has no property named var_two */ +/* @@? 30:9 Error Syntax error ESY0227: Unexpected token 'break'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/interface_property_scope.ets b/ets2panda/test/ast/compiler/ets/interface_property_scope.ets index ed2b2c03b0..f9b917995f 100644 --- a/ets2panda/test/ast/compiler/ets/interface_property_scope.ets +++ b/ets2panda/test/ast/compiler/ets/interface_property_scope.ets @@ -18,10 +18,11 @@ interface itf0{ @Anno(()=> {testList.subArrayList(0, 1)}, exceptionCherckEmptyContainer) } -/* @@? 16:2 Error TypeError: Cannot find type 'Anno'. */ -/* @@? 18:6 Error TypeError: Cannot find type 'Anno'. */ -/* @@? 18:11 Error SyntaxError: Invalid value for annotation field, expected a constant literal. */ -/* @@? 18:45 Error SyntaxError: Expected ')', got ','. */ -/* @@? 18:45 Error SyntaxError: Identifier expected, got 'end of stream'. */ -/* @@? 18:76 Error SyntaxError: Interface fields must have type annotation. */ -/* @@? 19:1 Error SyntaxError: Invalid Type. */ + +/* @@? 16:2 Error Semantic error ESE0371: Cannot find type 'Anno'. */ +/* @@? 18:6 Error Semantic error ESE0371: Cannot find type 'Anno'. */ +/* @@? 18:11 Error Syntax error ESY0027: Invalid value for annotation field, expected a constant literal. */ +/* @@? 18:45 Error Syntax error ESY0230: Expected ')', got ','. */ +/* @@? 18:45 Error Syntax error ESY0224: Identifier expected, got 'end of stream'. */ +/* @@? 18:76 Error Syntax error ESY0119: Interface fields must have type annotation. */ +/* @@? 19:1 Error Syntax error ESY0138: Invalid Type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/invalidIndirectInheritanceFromClass.ets b/ets2panda/test/ast/compiler/ets/invalidIndirectInheritanceFromClass.ets index 260287ee8b..c215aa7c5a 100644 --- a/ets2panda/test/ast/compiler/ets/invalidIndirectInheritanceFromClass.ets +++ b/ets2panda/test/ast/compiler/ets/invalidIndirectInheritanceFromClass.ets @@ -34,5 +34,6 @@ function main(): void { arktest.assertEQ(instance.getX(), true); } -/* @@@ label1 Error TypeError: Type 'Boolean' has no call signatures. */ -/* @@@ label Error TypeError: Cannot inherit from class C, because field x is inherited with a different declaration type */ + +/* @@@ label Error Semantic error ESE0216: Cannot inherit from class C, because field x is inherited with a different declaration type */ +/* @@@ label1 Error Semantic error ESE0002: Type 'Boolean' has no call signatures. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/invalidIndirectInheritanceFromInterface.ets b/ets2panda/test/ast/compiler/ets/invalidIndirectInheritanceFromInterface.ets index 75c6af1ac9..ce4bc6c154 100644 --- a/ets2panda/test/ast/compiler/ets/invalidIndirectInheritanceFromInterface.ets +++ b/ets2panda/test/ast/compiler/ets/invalidIndirectInheritanceFromInterface.ets @@ -34,5 +34,6 @@ function main(): void { arktest.assertEQ(instance.getX(), true); } -/* @@@ label1 Error TypeError: Type 'Boolean' has no call signatures. */ -/* @@@ label Error TypeError: Cannot inherit from class C, because field x is inherited with a different declaration type */ + +/* @@@ label Error Semantic error ESE0216: Cannot inherit from class C, because field x is inherited with a different declaration type */ +/* @@@ label1 Error Semantic error ESE0002: Type 'Boolean' has no call signatures. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/invalidInheritance1.ets b/ets2panda/test/ast/compiler/ets/invalidInheritance1.ets index 4a53c7b860..230e51fa5c 100644 --- a/ets2panda/test/ast/compiler/ets/invalidInheritance1.ets +++ b/ets2panda/test/ast/compiler/ets/invalidInheritance1.ets @@ -23,4 +23,5 @@ class B extends /* @@ label */A { } } -/* @@@ label Error TypeError: Cannot inherit from class A, because method a is inherited with a different declaration type */ + +/* @@@ label Error Semantic error ESE0216: Cannot inherit from class A, because method a is inherited with a different declaration type */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/invalidInheritance2.ets b/ets2panda/test/ast/compiler/ets/invalidInheritance2.ets index c3f4fde638..8623eed2c7 100644 --- a/ets2panda/test/ast/compiler/ets/invalidInheritance2.ets +++ b/ets2panda/test/ast/compiler/ets/invalidInheritance2.ets @@ -26,5 +26,6 @@ class C extends B { } } -/* @@@ label Error SyntaxError: Unexpected token. A constructor, method, accessor, or property was expected. */ -/* @@? 23:17 Error TypeError: Cannot inherit from class B, because class a is inherited with a different declaration type */ + +/* @@? 23:17 Error Semantic error ESE0216: Cannot inherit from class B, because class a is inherited with a different declaration type */ +/* @@@ label Error Syntax error ESY0233: Unexpected token. A constructor, method, accessor, or property was expected. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/invalidInheritance4.ets b/ets2panda/test/ast/compiler/ets/invalidInheritance4.ets index dad9d78408..57c29a20f9 100644 --- a/ets2panda/test/ast/compiler/ets/invalidInheritance4.ets +++ b/ets2panda/test/ast/compiler/ets/invalidInheritance4.ets @@ -21,4 +21,5 @@ class B extends /* @@ label */A { name(): int {} } -/* @@@ label Error TypeError: Cannot inherit from class A, because method name is inherited with a different declaration type */ + +/* @@@ label Error Semantic error ESE0216: Cannot inherit from class A, because method name is inherited with a different declaration type */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/invalidInheritanceFromClass.ets b/ets2panda/test/ast/compiler/ets/invalidInheritanceFromClass.ets index 966bca830e..9db29e57c7 100644 --- a/ets2panda/test/ast/compiler/ets/invalidInheritanceFromClass.ets +++ b/ets2panda/test/ast/compiler/ets/invalidInheritanceFromClass.ets @@ -30,5 +30,6 @@ function main(): void { let instance: B = new B(); arktest.assertEQ(instance.getX(), true); } -/* @@@ label1 Error TypeError: Type 'Boolean' has no call signatures. */ -/* @@@ label Error TypeError: Cannot inherit from class A, because field x is inherited with a different declaration type */ + +/* @@@ label Error Semantic error ESE0216: Cannot inherit from class A, because field x is inherited with a different declaration type */ +/* @@@ label1 Error Semantic error ESE0002: Type 'Boolean' has no call signatures. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/invalidInheritanceFromInterface.ets b/ets2panda/test/ast/compiler/ets/invalidInheritanceFromInterface.ets index c406f86f39..f297e8a33b 100644 --- a/ets2panda/test/ast/compiler/ets/invalidInheritanceFromInterface.ets +++ b/ets2panda/test/ast/compiler/ets/invalidInheritanceFromInterface.ets @@ -30,5 +30,6 @@ function main(): void { let instance: B = new B(); arktest.assertEQ(instance.getX(), true); } -/* @@@ label1 Error TypeError: Type 'Boolean' has no call signatures. */ -/* @@@ label Error TypeError: Cannot inherit from interface A because field x is inherited with a different declaration type */ + +/* @@@ label Error Semantic error ESE0215: Cannot inherit from interface A because field x is inherited with a different declaration type */ +/* @@@ label1 Error Semantic error ESE0002: Type 'Boolean' has no call signatures. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/invalidMemberExpressionFromStaticContext1.ets b/ets2panda/test/ast/compiler/ets/invalidMemberExpressionFromStaticContext1.ets index 1dee731ac2..3ace764b33 100644 --- a/ets2panda/test/ast/compiler/ets/invalidMemberExpressionFromStaticContext1.ets +++ b/ets2panda/test/ast/compiler/ets/invalidMemberExpressionFromStaticContext1.ets @@ -22,4 +22,5 @@ class A { } } -/* @@@ label Error TypeError: 'this' cannot be referenced from a static context */ + +/* @@@ label Error Semantic error ESE0202: 'this' cannot be referenced from a static context */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/invalidMemberExpressionFromStaticContext2.ets b/ets2panda/test/ast/compiler/ets/invalidMemberExpressionFromStaticContext2.ets index 1dee731ac2..3ace764b33 100644 --- a/ets2panda/test/ast/compiler/ets/invalidMemberExpressionFromStaticContext2.ets +++ b/ets2panda/test/ast/compiler/ets/invalidMemberExpressionFromStaticContext2.ets @@ -22,4 +22,5 @@ class A { } } -/* @@@ label Error TypeError: 'this' cannot be referenced from a static context */ + +/* @@@ label Error Semantic error ESE0202: 'this' cannot be referenced from a static context */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/invalidMemberExpressionFromStaticContext3.ets b/ets2panda/test/ast/compiler/ets/invalidMemberExpressionFromStaticContext3.ets index 639026ee3f..f24697490b 100644 --- a/ets2panda/test/ast/compiler/ets/invalidMemberExpressionFromStaticContext3.ets +++ b/ets2panda/test/ast/compiler/ets/invalidMemberExpressionFromStaticContext3.ets @@ -22,4 +22,5 @@ class A { } } -/* @@@ label Error TypeError: 'foo_in_A' is an instance property of 'A' */ + +/* @@@ label Error Semantic error ESE0208: 'foo_in_A' is an instance property of 'A' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/invalidMemberExpressionFromStaticContext4.ets b/ets2panda/test/ast/compiler/ets/invalidMemberExpressionFromStaticContext4.ets index 4150dacde6..2b1fb65f5c 100644 --- a/ets2panda/test/ast/compiler/ets/invalidMemberExpressionFromStaticContext4.ets +++ b/ets2panda/test/ast/compiler/ets/invalidMemberExpressionFromStaticContext4.ets @@ -24,4 +24,5 @@ final class B { } } -/* @@@ label Error TypeError: 'foo_in_A' is an instance property of 'A' */ + +/* @@@ label Error Semantic error ESE0208: 'foo_in_A' is an instance property of 'A' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/invalidMemberExpressionFromStaticContext5.ets b/ets2panda/test/ast/compiler/ets/invalidMemberExpressionFromStaticContext5.ets index dc02b67ec1..040648bb2d 100644 --- a/ets2panda/test/ast/compiler/ets/invalidMemberExpressionFromStaticContext5.ets +++ b/ets2panda/test/ast/compiler/ets/invalidMemberExpressionFromStaticContext5.ets @@ -24,4 +24,5 @@ final class B extends A { } } -/* @@@ label Error TypeError: 'this' cannot be referenced from a static context */ + +/* @@@ label Error Semantic error ESE0202: 'this' cannot be referenced from a static context */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/invalidMemberExpressionFromStaticContext6.ets b/ets2panda/test/ast/compiler/ets/invalidMemberExpressionFromStaticContext6.ets index dc02b67ec1..040648bb2d 100644 --- a/ets2panda/test/ast/compiler/ets/invalidMemberExpressionFromStaticContext6.ets +++ b/ets2panda/test/ast/compiler/ets/invalidMemberExpressionFromStaticContext6.ets @@ -24,4 +24,5 @@ final class B extends A { } } -/* @@@ label Error TypeError: 'this' cannot be referenced from a static context */ + +/* @@@ label Error Semantic error ESE0202: 'this' cannot be referenced from a static context */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/invalidMemberExpressionFromStaticContext7.ets b/ets2panda/test/ast/compiler/ets/invalidMemberExpressionFromStaticContext7.ets index c2c56037a8..d52b024502 100644 --- a/ets2panda/test/ast/compiler/ets/invalidMemberExpressionFromStaticContext7.ets +++ b/ets2panda/test/ast/compiler/ets/invalidMemberExpressionFromStaticContext7.ets @@ -24,4 +24,5 @@ final class B extends A { } } -/* @@@ label Error TypeError: 'foo_in_A' is an instance property of 'A' */ + +/* @@@ label Error Semantic error ESE0208: 'foo_in_A' is an instance property of 'A' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/invalidMemberExpressionFromStaticContext8.ets b/ets2panda/test/ast/compiler/ets/invalidMemberExpressionFromStaticContext8.ets index 07c477480d..06c0feeb8b 100644 --- a/ets2panda/test/ast/compiler/ets/invalidMemberExpressionFromStaticContext8.ets +++ b/ets2panda/test/ast/compiler/ets/invalidMemberExpressionFromStaticContext8.ets @@ -24,4 +24,5 @@ final class B extends A { } } -/* @@@ label Error TypeError: 'foo_in_A' is an instance property of 'B' */ + +/* @@@ label Error Semantic error ESE0208: 'foo_in_A' is an instance property of 'B' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/invalidPrivateAccess1.ets b/ets2panda/test/ast/compiler/ets/invalidPrivateAccess1.ets index a4057a4135..e715f6536c 100644 --- a/ets2panda/test/ast/compiler/ets/invalidPrivateAccess1.ets +++ b/ets2panda/test/ast/compiler/ets/invalidPrivateAccess1.ets @@ -24,4 +24,5 @@ function main(): void { let a = klass./* @@ label */a; } -/* @@@ label Error TypeError: Property a is not visible here. */ + +/* @@@ label Error Semantic error ESE0293: Property a is not visible here. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/invalidPrivateAccess2.ets b/ets2panda/test/ast/compiler/ets/invalidPrivateAccess2.ets index f517470b8d..8db9578001 100644 --- a/ets2panda/test/ast/compiler/ets/invalidPrivateAccess2.ets +++ b/ets2panda/test/ast/compiler/ets/invalidPrivateAccess2.ets @@ -25,5 +25,6 @@ function main(): void { let klass: Klass = new Klass(); } -/* @@? 25:24 Error TypeError: Signature constructor(): void is not visible here. */ -/* @@? 25:24 Error TypeError: No matching construct signature */ + +/* @@? 25:24 Error Semantic error ESE0139: Signature constructor(): void is not visible here. */ +/* @@? 25:24 Error Semantic error ESE0128: No matching construct signature */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/invalidPrivateAccess3.ets b/ets2panda/test/ast/compiler/ets/invalidPrivateAccess3.ets index 511ee961f9..dac801c056 100644 --- a/ets2panda/test/ast/compiler/ets/invalidPrivateAccess3.ets +++ b/ets2panda/test/ast/compiler/ets/invalidPrivateAccess3.ets @@ -35,6 +35,7 @@ function main(): void { klass.foo(); } -/* @@? 35:5 Error TypeError: Expected 1 arguments, got 0. */ -/* @@? 35:5 Error TypeError: Signature foo(): void is not visible here. */ -/* @@? 35:5 Error TypeError: No matching call signature */ + +/* @@? 35:5 Error Semantic error ESE0124: Expected 1 arguments, got 0. */ +/* @@? 35:5 Error Semantic error ESE0139: Signature foo(): void is not visible here. */ +/* @@? 35:5 Error Semantic error ESE0128: No matching call signature */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/invalidPrivateAccess4.ets b/ets2panda/test/ast/compiler/ets/invalidPrivateAccess4.ets index 575b66b453..ce8750c00d 100644 --- a/ets2panda/test/ast/compiler/ets/invalidPrivateAccess4.ets +++ b/ets2panda/test/ast/compiler/ets/invalidPrivateAccess4.ets @@ -23,5 +23,6 @@ class B extends A { } } -/* @@@ label Error TypeError: Class field 'a' defined by the parent class is not accessible in the child class via super. */ -/* @@@ label Error TypeError: Property a is not visible here. */ + +/* @@@ label Error Semantic error ESE0377: Class field 'a' defined by the parent class is not accessible in the child class via super. */ +/* @@@ label Error Semantic error ESE0293: Property a is not visible here. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/invalidPrivateAccess5.ets b/ets2panda/test/ast/compiler/ets/invalidPrivateAccess5.ets index 64d7e24678..9a1b1c2985 100644 --- a/ets2panda/test/ast/compiler/ets/invalidPrivateAccess5.ets +++ b/ets2panda/test/ast/compiler/ets/invalidPrivateAccess5.ets @@ -27,9 +27,10 @@ class Outer { } } -/* @@@ label Error SyntaxError: Unexpected token. A constructor, method, accessor, or property was expected. */ -/* @@@ label1 Error SyntaxError: Unexpected token. A constructor, method, accessor, or property was expected. */ -/* @@? 24:13 Error TypeError: Signature a(): void is not visible here. */ -/* @@? 24:13 Error TypeError: No matching call signature */ -/* @@? 25:13 Error TypeError: Signature a(): void is not visible here. */ -/* @@? 25:13 Error TypeError: No matching call signature */ + +/* @@@ label Error Syntax error ESY0233: Unexpected token. A constructor, method, accessor, or property was expected. */ +/* @@@ label1 Error Syntax error ESY0233: Unexpected token. A constructor, method, accessor, or property was expected. */ +/* @@? 24:13 Error Semantic error ESE0139: Signature a(): void is not visible here. */ +/* @@? 24:13 Error Semantic error ESE0128: No matching call signature */ +/* @@? 25:13 Error Semantic error ESE0139: Signature a(): void is not visible here. */ +/* @@? 25:13 Error Semantic error ESE0128: No matching call signature */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/invalidPrivateAccess6.ets b/ets2panda/test/ast/compiler/ets/invalidPrivateAccess6.ets index 1dbd8709db..bfa34421a8 100644 --- a/ets2panda/test/ast/compiler/ets/invalidPrivateAccess6.ets +++ b/ets2panda/test/ast/compiler/ets/invalidPrivateAccess6.ets @@ -38,6 +38,7 @@ class D { } } -/* @@@ label Error SyntaxError: Unexpected token. A constructor, method, accessor, or property was expected. */ -/* @@@ label1 Error SyntaxError: Unexpected token. A constructor, method, accessor, or property was expected. */ -/* @@? 37:11 Error TypeError: Property c is not visible here. */ + +/* @@@ label Error Syntax error ESY0233: Unexpected token. A constructor, method, accessor, or property was expected. */ +/* @@@ label1 Error Syntax error ESY0233: Unexpected token. A constructor, method, accessor, or property was expected. */ +/* @@? 37:11 Error Semantic error ESE0293: Property c is not visible here. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/invalidProtectedAccess1.ets b/ets2panda/test/ast/compiler/ets/invalidProtectedAccess1.ets index a83be828c6..08159aae30 100644 --- a/ets2panda/test/ast/compiler/ets/invalidProtectedAccess1.ets +++ b/ets2panda/test/ast/compiler/ets/invalidProtectedAccess1.ets @@ -24,4 +24,5 @@ function main(): void { let a = klass./* @@ label */a; } -/* @@@ label Error TypeError: Property a is not visible here. */ + +/* @@@ label Error Semantic error ESE0293: Property a is not visible here. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/invalidProtectedAccess2.ets b/ets2panda/test/ast/compiler/ets/invalidProtectedAccess2.ets index e05cbd8ccd..6a33237f29 100644 --- a/ets2panda/test/ast/compiler/ets/invalidProtectedAccess2.ets +++ b/ets2panda/test/ast/compiler/ets/invalidProtectedAccess2.ets @@ -25,5 +25,6 @@ function main(): void { let klass : Klass = new Klass(); } -/* @@? 25:25 Error TypeError: Signature constructor(): void is not visible here. */ -/* @@? 25:25 Error TypeError: No matching construct signature */ + +/* @@? 25:25 Error Semantic error ESE0139: Signature constructor(): void is not visible here. */ +/* @@? 25:25 Error Semantic error ESE0128: No matching construct signature */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/invalidProtectedAccess3.ets b/ets2panda/test/ast/compiler/ets/invalidProtectedAccess3.ets index eeaa22daaa..4aff844da2 100644 --- a/ets2panda/test/ast/compiler/ets/invalidProtectedAccess3.ets +++ b/ets2panda/test/ast/compiler/ets/invalidProtectedAccess3.ets @@ -35,6 +35,7 @@ function main(): void { klass.foo(); } -/* @@? 35:5 Error TypeError: Expected 1 arguments, got 0. */ -/* @@? 35:5 Error TypeError: Signature foo(): void is not visible here. */ -/* @@? 35:5 Error TypeError: No matching call signature */ + +/* @@? 35:5 Error Semantic error ESE0124: Expected 1 arguments, got 0. */ +/* @@? 35:5 Error Semantic error ESE0139: Signature foo(): void is not visible here. */ +/* @@? 35:5 Error Semantic error ESE0128: No matching call signature */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/invalid_access_modifier.ets b/ets2panda/test/ast/compiler/ets/invalid_access_modifier.ets index 14f2dbbba7..a15490b2b2 100644 --- a/ets2panda/test/ast/compiler/ets/invalid_access_modifier.ets +++ b/ets2panda/test/ast/compiler/ets/invalid_access_modifier.ets @@ -17,11 +17,12 @@ class A{ private \\\\foo(){} } -/* @@? 17:13 Error SyntaxError: Invalid character. */ -/* @@? 17:13 Error SyntaxError: Access modifier must precede field and method modifiers. */ -/* @@? 17:14 Error SyntaxError: Invalid character. */ -/* @@? 17:14 Error SyntaxError: Access modifier must precede field and method modifiers. */ -/* @@? 17:15 Error SyntaxError: Invalid character. */ -/* @@? 17:15 Error SyntaxError: Access modifier must precede field and method modifiers. */ -/* @@? 17:16 Error SyntaxError: Invalid character. */ -/* @@? 17:16 Error SyntaxError: Access modifier must precede field and method modifiers. */ + +/* @@? 17:13 Error Syntax error ESY0077: Invalid character. */ +/* @@? 17:13 Error Syntax error ESY0120: Access modifier must precede field and method modifiers. */ +/* @@? 17:14 Error Syntax error ESY0077: Invalid character. */ +/* @@? 17:14 Error Syntax error ESY0120: Access modifier must precede field and method modifiers. */ +/* @@? 17:15 Error Syntax error ESY0077: Invalid character. */ +/* @@? 17:15 Error Syntax error ESY0120: Access modifier must precede field and method modifiers. */ +/* @@? 17:16 Error Syntax error ESY0077: Invalid character. */ +/* @@? 17:16 Error Syntax error ESY0120: Access modifier must precede field and method modifiers. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/invalid_cast_generic_type_neg_0.ets b/ets2panda/test/ast/compiler/ets/invalid_cast_generic_type_neg_0.ets index eaf899d40c..0373736b7c 100644 --- a/ets2panda/test/ast/compiler/ets/invalid_cast_generic_type_neg_0.ets +++ b/ets2panda/test/ast/compiler/ets/invalid_cast_generic_type_neg_0.ets @@ -17,4 +17,5 @@ function foo() { let x = 1 as T; } -/* @@? 17:13 Error TypeError: Cannot cast type 'Int' to 'T' */ + +/* @@? 17:13 Error Semantic error ESE0326: Cannot cast type 'Int' to 'T' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/invalid_cast_generic_type_neg_1.ets b/ets2panda/test/ast/compiler/ets/invalid_cast_generic_type_neg_1.ets index 030e6da0b0..071f1869bd 100644 --- a/ets2panda/test/ast/compiler/ets/invalid_cast_generic_type_neg_1.ets +++ b/ets2panda/test/ast/compiler/ets/invalid_cast_generic_type_neg_1.ets @@ -17,4 +17,5 @@ function foo() { let x = 1 as (T | U); } -/* @@? 17:13 Error TypeError: Cannot cast type 'Int' to 'T|U' */ + +/* @@? 17:13 Error Semantic error ESE0326: Cannot cast type 'Int' to 'T|U' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/invalid_cast_generic_type_neg_2.ets b/ets2panda/test/ast/compiler/ets/invalid_cast_generic_type_neg_2.ets index 728f82f7f6..38718f7c44 100644 --- a/ets2panda/test/ast/compiler/ets/invalid_cast_generic_type_neg_2.ets +++ b/ets2panda/test/ast/compiler/ets/invalid_cast_generic_type_neg_2.ets @@ -15,4 +15,5 @@ function foo(v: X = 1 as (X | Y)){} -/* @@? 16:55 Error TypeError: Cannot cast type 'Int' to 'X|Y' */ + +/* @@? 16:55 Error Semantic error ESE0326: Cannot cast type 'Int' to 'X|Y' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/invalid_class_declare.ets b/ets2panda/test/ast/compiler/ets/invalid_class_declare.ets index 082a7347c6..8b9bec9eec 100644 --- a/ets2panda/test/ast/compiler/ets/invalid_class_declare.ets +++ b/ets2panda/test/ast/compiler/ets/invalid_class_declare.ets @@ -16,5 +16,6 @@ class Integral {} class Numeric {} -/* @@? 1:3 Error TypeError: Class 'Integral' is already defined. */ -/* @@? 1:3 Error TypeError: Class 'Numeric' is already defined. */ + +/* @@? 1:3 Error Semantic error ESE0349: Class 'Integral' is already defined. */ +/* @@? 1:3 Error Semantic error ESE0349: Class 'Numeric' is already defined. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/invalid_namespace_neg.ets b/ets2panda/test/ast/compiler/ets/invalid_namespace_neg.ets index 2f3707f2ac..09a5f0466b 100644 --- a/ets2panda/test/ast/compiler/ets/invalid_namespace_neg.ets +++ b/ets2panda/test/ast/compiler/ets/invalid_namespace_neg.ets @@ -23,5 +23,6 @@ namespace C{ } } -/* @@@ label1 Error SyntaxError: Unexpected token '}'. */ -/* @@? 28:1 Error SyntaxError: Unexpected token. */ + +/* @@@ label1 Error Syntax error ESY0227: Unexpected token '}'. */ +/* @@? 28:62 Error Syntax error ESY0016: Unexpected token. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/invalid_namespace_neg2.ets b/ets2panda/test/ast/compiler/ets/invalid_namespace_neg2.ets index c7941e4248..4f03a76a57 100644 --- a/ets2panda/test/ast/compiler/ets/invalid_namespace_neg2.ets +++ b/ets2panda/test/ast/compiler/ets/invalid_namespace_neg2.ets @@ -19,4 +19,5 @@ } } -/* @@@ label1 Error SyntaxError: Namespace is allowed only at the top level or inside a namespace. */ + +/* @@@ label1 Error Syntax error ESY0134: Namespace is allowed only at the top level or inside a namespace. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/invalid_object.ets b/ets2panda/test/ast/compiler/ets/invalid_object.ets index 72a416d9ba..2d5c329da0 100644 --- a/ets2panda/test/ast/compiler/ets/invalid_object.ets +++ b/ets2panda/test/ast/compiler/ets/invalid_object.ets @@ -18,11 +18,11 @@ const object1: Obj = {}; console.log(Objˆct.keys(object1)); -/* @@? 19:13 Error TypeError: Class name can't be the argument of function or method. */ -/* @@? 19:13 Error TypeError: Class or interface or enum 'Obj' cannot be used as object */ -/* @@? 19:16 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 19:16 Error SyntaxError: Unexpected token 'ˆct'. */ -/* @@? 19:16 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 19:16 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 19:16 Error TypeError: Unresolved reference ˆct */ -/* @@? 19:33 Error SyntaxError: Unexpected token ')'. */ \ No newline at end of file +/* @@? 19:13 Error Semantic error ESE0122: Class name can't be the argument of function or method. */ +/* @@? 19:13 Error Semantic error ESE0294: Class or interface or enum 'Obj' cannot be used as object */ +/* @@? 19:16 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 19:16 Error Syntax error ESY0227: Unexpected token 'ˆct'. */ +/* @@? 19:16 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 19:16 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 19:16 Error Semantic error ESE0143: Unresolved reference ˆct */ +/* @@? 19:33 Error Syntax error ESY0227: Unexpected token ')'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/invalid_param_in_constructor.ets b/ets2panda/test/ast/compiler/ets/invalid_param_in_constructor.ets index c24f12ba16..87c2e9ace2 100644 --- a/ets2panda/test/ast/compiler/ets/invalid_param_in_constructor.ets +++ b/ets2panda/test/ast/compiler/ets/invalid_param_in_constructor.ets @@ -18,11 +18,12 @@ class A { } } -/* @@? 17:16 Error TypeError: Only abstract or native methods can't have body. */ -/* @@? 17:21 Error SyntaxError: The function parameter 'this' must explicitly specify the typeAnnotation. */ -/* @@? 17:21 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 17:21 Error SyntaxError: Unexpected token '.'. */ -/* @@? 17:23 Error SyntaxError: Field type annotation expected. */ -/* @@? 17:23 Error SyntaxError: Unexpected token ')'. */ -/* @@? 17:25 Error SyntaxError: Unexpected token '{'. */ -/* @@? 19:1 Error SyntaxError: Unexpected token '}'. */ + +/* @@? 17:16 Error Semantic error ESE0017: Only abstract or native methods can't have body. */ +/* @@? 17:21 Error Syntax error ESY0099: The function parameter 'this' must explicitly specify the typeAnnotation. */ +/* @@? 17:21 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 17:21 Error Syntax error ESY0227: Unexpected token '.'. */ +/* @@? 17:23 Error Syntax error ESY0121: Field type annotation expected. */ +/* @@? 17:23 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 17:25 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 19:1 Error Syntax error ESY0227: Unexpected token '}'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/invalid_param_pack.ets b/ets2panda/test/ast/compiler/ets/invalid_param_pack.ets index 0ef867033b..e625bc9110 100644 --- a/ets2panda/test/ast/compiler/ets/invalid_param_pack.ets +++ b/ets2panda/test/ast/compiler/ets/invalid_param_pack.ets @@ -37,8 +37,9 @@ class Derived2 extends Base2{ } } -/* @@? 17:17 Error SyntaxError: Rest parameter should be either array or tuple type. */ -/* @@? 17:24 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ -/* @@? 29:13 Error SyntaxError: Rest parameter should be either array or tuple type. */ -/* @@? 29:20 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ -/* @@? 36:3 Error TypeError: Property 'my_func' must be accessed through 'this' */ + +/* @@? 17:17 Error Syntax error ESY0193: Rest parameter should be either array or tuple type. */ +/* @@? 17:24 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ +/* @@? 29:13 Error Syntax error ESY0193: Rest parameter should be either array or tuple type. */ +/* @@? 29:20 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ +/* @@? 36:3 Error Semantic error ESE0145: Property 'my_func' must be accessed through 'this' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/invalid_switch_case_in_function_assignment.ets b/ets2panda/test/ast/compiler/ets/invalid_switch_case_in_function_assignment.ets index 37691e5067..7f478c6c18 100644 --- a/ets2panda/test/ast/compiler/ets/invalid_switch_case_in_function_assignment.ets +++ b/ets2panda/test/ast/compiler/ets/invalid_switch_case_in_function_assignment.ets @@ -19,7 +19,8 @@ let a = foo() { } } -/* @@? 16:9 Error TypeError: Unresolved reference foo */ -/* @@? 16:9 Error TypeError: This expression is not callable. */ -/* @@? 18:9 Error SyntaxError: Unexpected token 'string literal', expected 'case' or 'default'. */ -/* @@? 18:9 Error SyntaxError: Expected ':', got 'string literal'. */ + +/* @@? 16:9 Error Semantic error ESE0143: Unresolved reference foo */ +/* @@? 16:9 Error Semantic error ESE0289: This expression is not callable. */ +/* @@? 18:9 Error Syntax error ESY0231: Unexpected token 'string literal', expected 'case' or 'default'. */ +/* @@? 18:9 Error Syntax error ESY0230: Expected ':', got 'string literal'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/invalid_token.ets b/ets2panda/test/ast/compiler/ets/invalid_token.ets index 0d30da416f..8ebd0321aa 100644 --- a/ets2panda/test/ast/compiler/ets/invalid_token.ets +++ b/ets2panda/test/ast/compiler/ets/invalid_token.ets @@ -17,7 +17,8 @@ class A { bit1: int =< 2 } -/* @@? 17:18 Error SyntaxError: Number, string or computed value property name '2' is not allowed, use classes to access data by property names that are identifiers */ -/* @@? 17:18 Error SyntaxError: Identifier expected, got 'number literal'. */ -/* @@? 17:18 Error SyntaxError: Unexpected token '2'. */ -/* @@? 18:1 Error SyntaxError: Unexpected token, expected '>'. */ + +/* @@? 17:18 Error Syntax error ESY0315: Number, string or computed value property name '2' is not allowed, use classes to access data by property names that are identifiers */ +/* @@? 17:18 Error Syntax error ESY0224: Identifier expected, got 'number literal'. */ +/* @@? 17:18 Error Syntax error ESY0227: Unexpected token '2'. */ +/* @@? 18:1 Error Syntax error ESY0228: Unexpected token, expected '>'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/invalid_trailing_lambda_call.ets b/ets2panda/test/ast/compiler/ets/invalid_trailing_lambda_call.ets index 809db2982b..3853346a52 100644 --- a/ets2panda/test/ast/compiler/ets/invalid_trailing_lambda_call.ets +++ b/ets2panda/test/ast/compiler/ets/invalid_trailing_lambda_call.ets @@ -25,15 +25,15 @@ foo3(){} foo4(){} foo5(){} -/* @@? 17:17 Error SyntaxError: 'Required' is reserved and cannot be used as a variable/type name */ -/* @@? 18:17 Error SyntaxError: 'Partial' is reserved and cannot be used as a variable/type name */ -/* @@? 19:17 Error SyntaxError: 'Readonly' is reserved and cannot be used as a variable/type name */ -/* @@? 20:17 Error TypeError: FixedArray must have only one type parameter. */ -/* @@? 23:1 Error TypeError: Expected 1 arguments, got 0. */ -/* @@? 23:1 Error TypeError: No matching call signature */ -/* @@? 24:1 Error TypeError: Expected 1 arguments, got 0. */ -/* @@? 24:1 Error TypeError: No matching call signature */ -/* @@? 25:1 Error TypeError: Expected 1 arguments, got 0. */ -/* @@? 25:1 Error TypeError: No matching call signature */ -/* @@? 26:1 Error TypeError: Expected 1 arguments, got 0. */ -/* @@? 26:1 Error TypeError: No matching call signature */ \ No newline at end of file +/* @@? 17:17 Error Syntax error ESY0242: 'Required' is reserved and cannot be used as a variable/type name */ +/* @@? 18:17 Error Syntax error ESY0242: 'Partial' is reserved and cannot be used as a variable/type name */ +/* @@? 19:17 Error Syntax error ESY0242: 'Readonly' is reserved and cannot be used as a variable/type name */ +/* @@? 20:17 Error Semantic error ESE0277: FixedArray must have only one type parameter. */ +/* @@? 23:1 Error Semantic error ESE0124: Expected 1 arguments, got 0. */ +/* @@? 23:1 Error Semantic error ESE0128: No matching call signature */ +/* @@? 24:1 Error Semantic error ESE0124: Expected 1 arguments, got 0. */ +/* @@? 24:1 Error Semantic error ESE0128: No matching call signature */ +/* @@? 25:1 Error Semantic error ESE0124: Expected 1 arguments, got 0. */ +/* @@? 25:1 Error Semantic error ESE0128: No matching call signature */ +/* @@? 26:1 Error Semantic error ESE0124: Expected 1 arguments, got 0. */ +/* @@? 26:1 Error Semantic error ESE0128: No matching call signature */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/invalid_two_functions.ets b/ets2panda/test/ast/compiler/ets/invalid_two_functions.ets index f4850751e5..67b714801a 100644 --- a/ets2panda/test/ast/compiler/ets/invalid_two_functions.ets +++ b/ets2panda/test/ast/compiler/ets/invalid_two_functions.ets @@ -20,6 +20,7 @@ const b = a.map(function (e) { return e * 2; }); -/* @@? 16:2 Error SyntaxError: Function expressions are not supported, use arrow functions instead */ -/* @@? 19:17 Error SyntaxError: Function expressions are not supported, use arrow functions instead */ -/* @@? 19:28 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ + +/* @@? 16:2 Error Syntax error ESY0320: Function expressions are not supported, use arrow functions instead */ +/* @@? 19:17 Error Syntax error ESY0320: Function expressions are not supported, use arrow functions instead */ +/* @@? 19:28 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/iterabletypes_with_protected_iterator_neg.ets b/ets2panda/test/ast/compiler/ets/iterabletypes_with_protected_iterator_neg.ets index 64cce0d8f4..ac904afadb 100644 --- a/ets2panda/test/ast/compiler/ets/iterabletypes_with_protected_iterator_neg.ets +++ b/ets2panda/test/ast/compiler/ets/iterabletypes_with_protected_iterator_neg.ets @@ -44,5 +44,6 @@ function main(): int { return 0; } -/* @@? 40:19 Error TypeError: Cannot find iterator method with the required signature. */ -/* @@? 40:19 Error TypeError: 'For-of' statement source expression is not of iterable type. */ + +/* @@? 40:19 Error Semantic error ESE0259: Cannot find iterator method with the required signature. */ +/* @@? 40:19 Error Semantic error ESE0076: 'For-of' statement source expression is not of iterable type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/keyof_invalid_argument.ets b/ets2panda/test/ast/compiler/ets/keyof_invalid_argument.ets index 5edd48126e..cc5b583970 100644 --- a/ets2panda/test/ast/compiler/ets/keyof_invalid_argument.ets +++ b/ets2panda/test/ast/compiler/ets/keyof_invalid_argument.ets @@ -23,41 +23,42 @@ class ObservableImpl extends Observable { type NestedKey = T[K] extends object ? keyof T[K] : never; -/* @@? 16:24 Error SyntaxError: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ -/* @@? 16:42 Error SyntaxError: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ -/* @@? 16:45 Error TypeError: The `keyof` keyword can only be used for class or interface type. */ -/* @@? 18:33 Error TypeError: Cannot find type 'Observable'. */ -/* @@? 18:33 Error TypeError: The super type of 'ObservableImpl' class is not extensible. */ -/* @@? 20:24 Error SyntaxError: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ -/* @@? 20:27 Error TypeError: Indexed signatures are not allowed. Use arrays instead! */ -/* @@? 20:31 Error SyntaxError: Field type annotation expected. */ -/* @@? 20:41 Error SyntaxError: Unexpected token '&'. */ -/* @@? 20:41 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 20:41 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ -/* @@? 20:44 Error SyntaxError: Unexpected token ')'. */ -/* @@? 20:44 Error SyntaxError: Field type annotation expected. */ -/* @@? 20:45 Error SyntaxError: Unexpected token ']'. */ -/* @@? 20:46 Error SyntaxError: Unexpected token ':'. */ -/* @@? 20:48 Error SyntaxError: Call signatures in object types are not supported. Use '$_invoke' method instead. */ -/* @@? 20:51 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ -/* @@? 20:51 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 20:51 Error SyntaxError: Unexpected token '&'. */ -/* @@? 20:54 Error SyntaxError: Unexpected token ')'. */ -/* @@? 20:54 Error SyntaxError: Field type annotation expected. */ -/* @@? 20:56 Error TypeError: Indexed signatures are not allowed. Use arrays instead! */ -/* @@? 20:57 Error SyntaxError: Unexpected token ']'. */ -/* @@? 24:36 Error TypeError: The `keyof` keyword can only be used for class or interface type. */ -/* @@? 24:42 Error SyntaxError: Unexpected token, expected ']'. */ -/* @@? 24:42 Error SyntaxError: Unexpected token ']'. */ -/* @@? 24:43 Error SyntaxError: Unexpected token ']'. */ -/* @@? 24:45 Error SyntaxError: Unexpected token 'extends'. */ -/* @@? 24:53 Error SyntaxError: Unexpected token 'object'. */ -/* @@? 24:53 Error TypeError: Type name 'object' used in the wrong context */ -/* @@? 24:62 Error TypeError: Unresolved reference keyof */ -/* @@? 24:68 Error SyntaxError: Unexpected token. */ -/* @@? 24:68 Error TypeError: Unresolved reference T */ -/* @@? 24:68 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@? 24:70 Error SyntaxError: Unexpected token, expected ']'. */ -/* @@? 24:73 Error SyntaxError: Unexpected token ':'. */ -/* @@? 24:75 Error SyntaxError: Class cannot be used as object. */ -/* @@? 24:75 Error SyntaxError: Unexpected token 'never'. */ + +/* @@? 16:24 Error Syntax error ESY177354: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ +/* @@? 16:42 Error Syntax error ESY177354: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ +/* @@? 16:45 Error Semantic error ESE0276: The `keyof` keyword can only be used for class or interface type. */ +/* @@? 18:33 Error Semantic error ESE0371: Cannot find type 'Observable'. */ +/* @@? 18:33 Error Semantic error ESE0176: The super type of 'ObservableImpl' class is not extensible. */ +/* @@? 20:24 Error Syntax error ESY177354: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ +/* @@? 20:27 Error Semantic error ESE0343: Indexed signatures are not allowed. Use arrays instead! */ +/* @@? 20:31 Error Syntax error ESY0121: Field type annotation expected. */ +/* @@? 20:41 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ +/* @@? 20:41 Error Syntax error ESY0227: Unexpected token '&'. */ +/* @@? 20:41 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 20:44 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 20:44 Error Syntax error ESY0121: Field type annotation expected. */ +/* @@? 20:45 Error Syntax error ESY0227: Unexpected token ']'. */ +/* @@? 20:46 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 20:48 Error Syntax error ESY103145: Call signatures in object types are not supported. Use '$_invoke' method instead. */ +/* @@? 20:51 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ +/* @@? 20:51 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 20:51 Error Syntax error ESY0227: Unexpected token '&'. */ +/* @@? 20:54 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 20:54 Error Syntax error ESY0121: Field type annotation expected. */ +/* @@? 20:56 Error Semantic error ESE0343: Indexed signatures are not allowed. Use arrays instead! */ +/* @@? 20:57 Error Syntax error ESY0227: Unexpected token ']'. */ +/* @@? 24:36 Error Semantic error ESE0276: The `keyof` keyword can only be used for class or interface type. */ +/* @@? 24:42 Error Syntax error ESY0228: Unexpected token, expected ']'. */ +/* @@? 24:42 Error Syntax error ESY0227: Unexpected token ']'. */ +/* @@? 24:43 Error Syntax error ESY0227: Unexpected token ']'. */ +/* @@? 24:45 Error Syntax error ESY0227: Unexpected token 'extends'. */ +/* @@? 24:53 Error Syntax error ESY0227: Unexpected token 'object'. */ +/* @@? 24:53 Error Semantic error ESE0144: Type name 'object' used in the wrong context */ +/* @@? 24:62 Error Semantic error ESE0143: Unresolved reference keyof */ +/* @@? 24:68 Error Syntax error ESY0016: Unexpected token. */ +/* @@? 24:68 Error Semantic error ESE0143: Unresolved reference T */ +/* @@? 24:68 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 24:70 Error Syntax error ESY0228: Unexpected token, expected ']'. */ +/* @@? 24:73 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 24:75 Error Syntax error ESY0318: Class cannot be used as object. */ +/* @@? 24:75 Error Syntax error ESY0227: Unexpected token 'never'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/keywords/issue26215_restricted_super.ets b/ets2panda/test/ast/compiler/ets/keywords/issue26215_restricted_super.ets index a12fa1c5d2..a01c125932 100644 --- a/ets2panda/test/ast/compiler/ets/keywords/issue26215_restricted_super.ets +++ b/ets2panda/test/ast/compiler/ets/keywords/issue26215_restricted_super.ets @@ -17,5 +17,6 @@ declare namespace super { } -/* @@? 16:19 Error SyntaxError: Hard keyword 'super' cannot be used as identifier */ -/* @@? 16:19 Error SyntaxError: Identifier expected, got 'super'. */ + +/* @@? 16:19 Error Syntax error ESY0316: Hard keyword 'super' cannot be used as identifier */ +/* @@? 16:19 Error Syntax error ESY0224: Identifier expected, got 'super'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/keywords/issue26215_restricted_this.ets b/ets2panda/test/ast/compiler/ets/keywords/issue26215_restricted_this.ets index 4e6aabb12a..f17ca3ee17 100644 --- a/ets2panda/test/ast/compiler/ets/keywords/issue26215_restricted_this.ets +++ b/ets2panda/test/ast/compiler/ets/keywords/issue26215_restricted_this.ets @@ -17,5 +17,6 @@ declare namespace this { } -/* @@? 16:19 Error SyntaxError: Hard keyword 'this' cannot be used as identifier */ -/* @@? 16:19 Error SyntaxError: Identifier expected, got 'this'. */ + +/* @@? 16:19 Error Syntax error ESY0316: Hard keyword 'this' cannot be used as identifier */ +/* @@? 16:19 Error Syntax error ESY0224: Identifier expected, got 'this'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/lambdaExpressionWithoutBlockStatementDifferentType.ets b/ets2panda/test/ast/compiler/ets/lambdaExpressionWithoutBlockStatementDifferentType.ets index 3bb62aa9f2..c962491b98 100644 --- a/ets2panda/test/ast/compiler/ets/lambdaExpressionWithoutBlockStatementDifferentType.ets +++ b/ets2panda/test/ast/compiler/ets/lambdaExpressionWithoutBlockStatementDifferentType.ets @@ -18,4 +18,5 @@ 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' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/lambdaExpressionWithoutBlockStatementDifferentTypeInfunction.ets b/ets2panda/test/ast/compiler/ets/lambdaExpressionWithoutBlockStatementDifferentTypeInfunction.ets index 30a62660c7..de283faf84 100644 --- a/ets2panda/test/ast/compiler/ets/lambdaExpressionWithoutBlockStatementDifferentTypeInfunction.ets +++ b/ets2panda/test/ast/compiler/ets/lambdaExpressionWithoutBlockStatementDifferentTypeInfunction.ets @@ -22,4 +22,5 @@ function main(): void { test1() } -/* @@@ label Error TypeError: Type 'String' is not compatible with the enclosing method's return type 'Int' */ + +/* @@@ label Error Semantic error ESE0091: Type 'String' is not compatible with the enclosing method's return type 'Int' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/lambdaFunction3.ets b/ets2panda/test/ast/compiler/ets/lambdaFunction3.ets index c57775d264..423ed7e036 100644 --- a/ets2panda/test/ast/compiler/ets/lambdaFunction3.ets +++ b/ets2panda/test/ast/compiler/ets/lambdaFunction3.ets @@ -19,4 +19,4 @@ function foo(): void { } } -/* @@@ label Error TypeError: Type '(p1: Int) => void' cannot be assigned to type '(p1: String) => void' */ +/* @@@ label Error Semantic error ESE0318: Type '(p1: Int) => void' cannot be assigned to type '(p1: String) => void' */ diff --git a/ets2panda/test/ast/compiler/ets/lambdaFunction4.ets b/ets2panda/test/ast/compiler/ets/lambdaFunction4.ets index 80a0e01511..fc4c489e21 100644 --- a/ets2panda/test/ast/compiler/ets/lambdaFunction4.ets +++ b/ets2panda/test/ast/compiler/ets/lambdaFunction4.ets @@ -25,4 +25,5 @@ class A { } } -/* @@@ label Error TypeError: Bad operand type, the type of the operand must be numeric type. */ + +/* @@@ label Error Semantic error ESE0066: Bad operand type, the type of the operand must be numeric type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/lambdaFunction5.ets b/ets2panda/test/ast/compiler/ets/lambdaFunction5.ets index bfd7f381cf..799a2441cc 100644 --- a/ets2panda/test/ast/compiler/ets/lambdaFunction5.ets +++ b/ets2panda/test/ast/compiler/ets/lambdaFunction5.ets @@ -39,5 +39,6 @@ function main(): void { /* @@ label */a.foo(1)(1, /* @@ label1 */"foo"); } -/* @@@ label Error TypeError: No matching call signature for (Int, "foo") */ -/* @@@ label1 Error TypeError: Type '"foo"' is not compatible with type 'Int' at index 2 */ + +/* @@@ label Error Semantic error ESE0127: No matching call signature for (Int, "foo") */ +/* @@@ label1 Error Semantic error ESE0046: Type '"foo"' is not compatible with type 'Int' at index 2 */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/lambda_infer_type/lambda_param_type_cannot_be_determined.ets b/ets2panda/test/ast/compiler/ets/lambda_infer_type/lambda_param_type_cannot_be_determined.ets index c97d4a4f45..3a33c48495 100644 --- a/ets2panda/test/ast/compiler/ets/lambda_infer_type/lambda_param_type_cannot_be_determined.ets +++ b/ets2panda/test/ast/compiler/ets/lambda_infer_type/lambda_param_type_cannot_be_determined.ets @@ -19,4 +19,3 @@ function main() { /* @@ label */foo((value) => {}) } -/* @@@ label Error TypeError: No matching call signature for foo((p1: *ERROR_TYPE*) => void) */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/lambda_override.ets b/ets2panda/test/ast/compiler/ets/lambda_override.ets index f48a63238c..47481ef637 100644 --- a/ets2panda/test/ast/compiler/ets/lambda_override.ets +++ b/ets2panda/test/ast/compiler/ets/lambda_override.ets @@ -20,5 +20,6 @@ class bbb extends aaa { /* @@ label1 */x: ()=>string } -/* @@@ label Error TypeError: Property 'x' might not have been initialized. */ -/* @@@ label1 Error TypeError: Property 'x' might not have been initialized. */ + +/* @@@ label Error Semantic error ESE0280: Property 'x' might not have been initialized. */ +/* @@@ label1 Error Semantic error ESE0280: Property 'x' might not have been initialized. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/lambda_type_infer_async_1.ets b/ets2panda/test/ast/compiler/ets/lambda_type_infer_async_1.ets index ee105ffb91..b3fedb6ed7 100644 --- a/ets2panda/test/ast/compiler/ets/lambda_type_infer_async_1.ets +++ b/ets2panda/test/ast/compiler/ets/lambda_type_infer_async_1.ets @@ -19,4 +19,5 @@ p.then(obj => { const result = typeof obj?.prop; }); -/* @@? 19:27 Error TypeError: Value is possibly nullish. */ + +/* @@? 19:27 Error Semantic error ESE0010: Value is possibly nullish. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/lambda_type_infer_async_2.ets b/ets2panda/test/ast/compiler/ets/lambda_type_infer_async_2.ets index 0ee1d1d128..ab51ed2efd 100644 --- a/ets2panda/test/ast/compiler/ets/lambda_type_infer_async_2.ets +++ b/ets2panda/test/ast/compiler/ets/lambda_type_infer_async_2.ets @@ -22,4 +22,5 @@ function main() { }); } -/* @@? 20:23 Error TypeError: Value is possibly nullish. */ + +/* @@? 20:23 Error Semantic error ESE0010: Value is possibly nullish. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/lambda_type_infer_async_3.ets b/ets2panda/test/ast/compiler/ets/lambda_type_infer_async_3.ets index 5283c804c9..52bbc38508 100644 --- a/ets2panda/test/ast/compiler/ets/lambda_type_infer_async_3.ets +++ b/ets2panda/test/ast/compiler/ets/lambda_type_infer_async_3.ets @@ -19,4 +19,5 @@ p.then(obj => { const result = typeof obj.prop; }); -/* @@? 19:27 Error TypeError: Value is possibly nullish. */ + +/* @@? 19:27 Error Semantic error ESE0010: Value is possibly nullish. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/lambda_type_infer_async_4.ets b/ets2panda/test/ast/compiler/ets/lambda_type_infer_async_4.ets index c7cadbc577..7000d7325b 100644 --- a/ets2panda/test/ast/compiler/ets/lambda_type_infer_async_4.ets +++ b/ets2panda/test/ast/compiler/ets/lambda_type_infer_async_4.ets @@ -19,4 +19,5 @@ p.then(obj => { const result = typeof obj.prop; }); -/* @@? 19:31 Error TypeError: Property 'prop' does not exist on type 'String' */ + +/* @@? 19:31 Error Semantic error ESE0087: Property 'prop' does not exist on type 'String' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/lambda_type_infer_to_rest_type.ets b/ets2panda/test/ast/compiler/ets/lambda_type_infer_to_rest_type.ets index 1c5366e750..0613c58625 100644 --- a/ets2panda/test/ast/compiler/ets/lambda_type_infer_to_rest_type.ets +++ b/ets2panda/test/ast/compiler/ets/lambda_type_infer_to_rest_type.ets @@ -17,4 +17,4 @@ declare function testRest(a: (t: T, t1: T, ...ts: T[]) => void): T testRest((t1:number, t2:boolean, t3) => {}) -/* @@? 18:10 Error TypeError: Type '(p1: Double, p2: Boolean, p3: never) => void' is not compatible with type '(p1: never, p2: never, ...p3: Array) => void' at index 1 */ +/* @@? 18:10 Error Semantic error ESE0046: Type '(p1: Double, p2: Boolean, p3: never) => void' is not compatible with type '(p1: never, p2: never, ...p3: Array) => void' at index 1 */ diff --git a/ets2panda/test/ast/compiler/ets/lambda_type_mismatch.ets b/ets2panda/test/ast/compiler/ets/lambda_type_mismatch.ets index 6c0759b713..91bec53f85 100644 --- a/ets2panda/test/ast/compiler/ets/lambda_type_mismatch.ets +++ b/ets2panda/test/ast/compiler/ets/lambda_type_mismatch.ets @@ -19,6 +19,6 @@ let fob:(...args:number[])=>number = (...args:number[]) =>{} let foc:(c:string, ...args:number[])=>string = (c:number, ...args:string[]):string=>{} -/* @@? 16:46 Error TypeError: Type '(p1: Double, ...p2: Array) => void' cannot be assigned to type '(p1: String, ...p2: Array) => void' */ -/* @@? 18:38 Error TypeError: Type '(...p1: Array) => void' cannot be assigned to type '(...p1: Array) => Double' */ -/* @@? 20:48 Error TypeError: Type '(p1: Double, ...p2: Array) => String' cannot be assigned to type '(p1: String, ...p2: Array) => String' */ +/* @@? 16:46 Error Semantic error ESE0318: Type '(p1: Double, ...p2: Array) => void' cannot be assigned to type '(p1: String, ...p2: Array) => void' */ +/* @@? 18:38 Error Semantic error ESE0318: Type '(...p1: Array) => void' cannot be assigned to type '(...p1: Array) => Double' */ +/* @@? 20:48 Error Semantic error ESE0318: Type '(p1: Double, ...p2: Array) => String' cannot be assigned to type '(p1: String, ...p2: Array) => String' */ diff --git a/ets2panda/test/ast/compiler/ets/lambda_type_param_bad.ets b/ets2panda/test/ast/compiler/ets/lambda_type_param_bad.ets index d9802fb401..cd57f5cfab 100644 --- a/ets2panda/test/ast/compiler/ets/lambda_type_param_bad.ets +++ b/ets2panda/test/ast/compiler/ets/lambda_type_param_bad.ets @@ -28,4 +28,4 @@ class A { } } -/* @@? 19:40 Error TypeError: Type '(p1: String) => void' is not compatible with type '(p1: Double) => void' at index 1 */ +/* @@? 19:40 Error Semantic error ESE0046: Type '(p1: String) => void' is not compatible with type '(p1: Double) => void' at index 1 */ diff --git a/ets2panda/test/ast/compiler/ets/lambda_with_receiver_tests/ExtensionFunctypeUncompatible.ets b/ets2panda/test/ast/compiler/ets/lambda_with_receiver_tests/ExtensionFunctypeUncompatible.ets index 7ef5539f5a..4a9b351bf3 100644 --- a/ets2panda/test/ast/compiler/ets/lambda_with_receiver_tests/ExtensionFunctypeUncompatible.ets +++ b/ets2panda/test/ast/compiler/ets/lambda_with_receiver_tests/ExtensionFunctypeUncompatible.ets @@ -34,6 +34,7 @@ bb = /* @@ label1 */db; bb = /* @@ label2 */dd; bd = /* @@ label3 */db; -/* @@@ label1 Error TypeError: Type '(p1: Derived) => Base' cannot be assigned to type '(p1: Base) => Base' */ -/* @@@ label2 Error TypeError: Type '(p1: Derived) => Derived' cannot be assigned to type '(p1: Base) => Base' */ -/* @@@ label3 Error TypeError: Type '(p1: Derived) => Base' cannot be assigned to type '(p1: Base) => Derived' */ + +/* @@@ label1 Error Semantic error ESE0318: Type '(=t: Derived) => Base' cannot be assigned to type '(=t: Base) => Base' */ +/* @@@ label2 Error Semantic error ESE0318: Type '(=t: Derived) => Derived' cannot be assigned to type '(=t: Base) => Base' */ +/* @@@ label3 Error Semantic error ESE0318: Type '(=t: Derived) => Base' cannot be assigned to type '(=t: Base) => Derived' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/lambda_with_receiver_tests/MakeNormalFunctypeAsMethodCall.ets b/ets2panda/test/ast/compiler/ets/lambda_with_receiver_tests/MakeNormalFunctypeAsMethodCall.ets index 618b2d2289..95f174c5d1 100644 --- a/ets2panda/test/ast/compiler/ets/lambda_with_receiver_tests/MakeNormalFunctypeAsMethodCall.ets +++ b/ets2panda/test/ast/compiler/ets/lambda_with_receiver_tests/MakeNormalFunctypeAsMethodCall.ets @@ -29,5 +29,6 @@ let f2: F2 = (this: A): boolean => { return this.value } a./* @@ label1 */f1(); a./* @@ label2 */f2(); -/* @@@ label1 Error TypeError: Property 'f1' does not exist on type 'A' */ -/* @@@ label2 Error TypeError: Property 'f2' does not exist on type 'A' */ + +/* @@@ label1 Error Semantic error ESE0087: Property 'f1' does not exist on type 'A' */ +/* @@@ label2 Error Semantic error ESE0087: Property 'f2' does not exist on type 'A' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/lambda_with_receiver_tests/extensionFuncTypeAsParamsNameDuplicated.ets b/ets2panda/test/ast/compiler/ets/lambda_with_receiver_tests/extensionFuncTypeAsParamsNameDuplicated.ets index eab917e75a..d3dae1d993 100644 --- a/ets2panda/test/ast/compiler/ets/lambda_with_receiver_tests/extensionFuncTypeAsParamsNameDuplicated.ets +++ b/ets2panda/test/ast/compiler/ets/lambda_with_receiver_tests/extensionFuncTypeAsParamsNameDuplicated.ets @@ -20,4 +20,5 @@ class A { /* @@ label1 */foo(n: number, g: (this: B) => void) {} } -/* @@@ label1 Error TypeError: Function foo is already declared. */ + +/* @@@ label1 Error Semantic error ESE0131: Function foo with this assembly signature already declared. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/lambda_with_receiver_tests/extensionFuncTypeAsParamsNameDuplicated2.ets b/ets2panda/test/ast/compiler/ets/lambda_with_receiver_tests/extensionFuncTypeAsParamsNameDuplicated2.ets index 6ca8fa0fc2..0abddffb71 100644 --- a/ets2panda/test/ast/compiler/ets/lambda_with_receiver_tests/extensionFuncTypeAsParamsNameDuplicated2.ets +++ b/ets2panda/test/ast/compiler/ets/lambda_with_receiver_tests/extensionFuncTypeAsParamsNameDuplicated2.ets @@ -18,4 +18,5 @@ class A {} function foo(this: A, f: (this: A) => void) {} /* @@ label1 */function foo(this: A, f: (this: B) => void) {} -/* @@@ label1 Error TypeError: Function foo is already declared. */ + +/* @@@ label1 Error Semantic error ESE0131: Function foo with this assembly signature already declared. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/lambda_with_receiver_tests/extensionFuncTypeAsParamsNameDuplicated3.ets b/ets2panda/test/ast/compiler/ets/lambda_with_receiver_tests/extensionFuncTypeAsParamsNameDuplicated3.ets index e97bafda8f..a299c6c315 100644 --- a/ets2panda/test/ast/compiler/ets/lambda_with_receiver_tests/extensionFuncTypeAsParamsNameDuplicated3.ets +++ b/ets2panda/test/ast/compiler/ets/lambda_with_receiver_tests/extensionFuncTypeAsParamsNameDuplicated3.ets @@ -21,4 +21,5 @@ class A { function foo(this: A, f: (this: A) => void) /* @@ label1 */{} -/* @@@ label1 Error TypeError: The extension function 'foo' has the same name with public method in class A */ + +/* @@@ label1 Error Semantic error ESE0081: The extension function 'foo' has the same name with public method in class A */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/literal_init_parameterless_constructor.ets b/ets2panda/test/ast/compiler/ets/literal_init_parameterless_constructor.ets index 17cdbda390..332738ecfd 100644 --- a/ets2panda/test/ast/compiler/ets/literal_init_parameterless_constructor.ets +++ b/ets2panda/test/ast/compiler/ets/literal_init_parameterless_constructor.ets @@ -27,4 +27,4 @@ function main(): void { } - /* @@? 26:14 Error TypeError: Type C has no parameterless constructor. Initialization with literals is not supported if the type has no parameterless constructor. Declare the parameterless constructor explicitly or remove parametered constructors! */ \ No newline at end of file + /* @@? 26:14 Error Semantic error ESE0291: Type C has no parameterless constructor. Initialization with literals is not supported if the type has no parameterless constructor. Declare the parameterless constructor explicitly or remove parametered constructors! */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/localTypeAlias.ets b/ets2panda/test/ast/compiler/ets/localTypeAlias.ets index 406e90965e..dd219b5e4f 100644 --- a/ets2panda/test/ast/compiler/ets/localTypeAlias.ets +++ b/ets2panda/test/ast/compiler/ets/localTypeAlias.ets @@ -76,30 +76,31 @@ function foo(){ } - /* @@? 17:16 Error TypeError: Cannot find type 'a'. */ - /* @@? 19:5 Error SyntaxError: Illegal start of Type Alias expression. */ - /* @@? 21:13 Error TypeError: Cannot find type 'a'. */ - /* @@? 30:13 Error SyntaxError: Illegal start of Type Alias expression. */ - /* @@? 31:23 Error TypeError: Cannot find type 'dsa'. */ - /* @@? 34:22 Error TypeError: Cannot find type 'asd'. */ - /* @@? 37:13 Error SyntaxError: Illegal start of Type Alias expression. */ - /* @@? 41:19 Error TypeError: Cannot find type 'asd'. */ - /* @@? 42:9 Error SyntaxError: Illegal start of Type Alias expression. */ - /* @@? 43:9 Error SyntaxError: Illegal start of Type Alias expression. */ - /* @@? 44:19 Error TypeError: Cannot find type 'dsa'. */ - /* @@? 48:19 Error TypeError: Cannot find type 'asd'. */ - /* @@? 49:9 Error SyntaxError: Illegal start of Type Alias expression. */ - /* @@? 50:9 Error SyntaxError: Illegal start of Type Alias expression. */ - /* @@? 51:19 Error TypeError: Cannot find type 'dsa'. */ - /* @@? 56:19 Error TypeError: Cannot find type 'asd'. */ - /* @@? 57:9 Error SyntaxError: Illegal start of Type Alias expression. */ - /* @@? 59:9 Error SyntaxError: Illegal start of Type Alias expression. */ - /* @@? 60:19 Error TypeError: Cannot find type 'dsa'. */ - /* @@? 64:19 Error TypeError: Cannot find type 'asd'. */ - /* @@? 65:9 Error SyntaxError: Illegal start of Type Alias expression. */ - /* @@? 67:9 Error SyntaxError: Illegal start of Type Alias expression. */ - /* @@? 68:19 Error TypeError: Cannot find type 'dsa'. */ - /* @@? 70:19 Error TypeError: Cannot find type 'asd'. */ - /* @@? 71:9 Error SyntaxError: Illegal start of Type Alias expression. */ - /* @@? 73:9 Error SyntaxError: Illegal start of Type Alias expression. */ - /* @@? 74:19 Error TypeError: Cannot find type 'dsa'. */ + +/* @@? 17:16 Error Semantic error ESE0371: Cannot find type 'a'. */ +/* @@? 19:5 Error Syntax error ESY0040: Illegal start of Type Alias expression. */ +/* @@? 21:13 Error Semantic error ESE0371: Cannot find type 'a'. */ +/* @@? 30:13 Error Syntax error ESY0040: Illegal start of Type Alias expression. */ +/* @@? 31:23 Error Semantic error ESE0371: Cannot find type 'dsa'. */ +/* @@? 34:22 Error Semantic error ESE0371: Cannot find type 'asd'. */ +/* @@? 37:13 Error Syntax error ESY0040: Illegal start of Type Alias expression. */ +/* @@? 41:19 Error Semantic error ESE0371: Cannot find type 'asd'. */ +/* @@? 42:9 Error Syntax error ESY0040: Illegal start of Type Alias expression. */ +/* @@? 43:9 Error Syntax error ESY0040: Illegal start of Type Alias expression. */ +/* @@? 44:19 Error Semantic error ESE0371: Cannot find type 'dsa'. */ +/* @@? 48:19 Error Semantic error ESE0371: Cannot find type 'asd'. */ +/* @@? 49:9 Error Syntax error ESY0040: Illegal start of Type Alias expression. */ +/* @@? 50:9 Error Syntax error ESY0040: Illegal start of Type Alias expression. */ +/* @@? 51:19 Error Semantic error ESE0371: Cannot find type 'dsa'. */ +/* @@? 56:19 Error Semantic error ESE0371: Cannot find type 'asd'. */ +/* @@? 57:9 Error Syntax error ESY0040: Illegal start of Type Alias expression. */ +/* @@? 59:9 Error Syntax error ESY0040: Illegal start of Type Alias expression. */ +/* @@? 60:19 Error Semantic error ESE0371: Cannot find type 'dsa'. */ +/* @@? 64:19 Error Semantic error ESE0371: Cannot find type 'asd'. */ +/* @@? 65:9 Error Syntax error ESY0040: Illegal start of Type Alias expression. */ +/* @@? 67:9 Error Syntax error ESY0040: Illegal start of Type Alias expression. */ +/* @@? 68:19 Error Semantic error ESE0371: Cannot find type 'dsa'. */ +/* @@? 70:19 Error Semantic error ESE0371: Cannot find type 'asd'. */ +/* @@? 71:9 Error Syntax error ESY0040: Illegal start of Type Alias expression. */ +/* @@? 73:9 Error Syntax error ESY0040: Illegal start of Type Alias expression. */ +/* @@? 74:19 Error Semantic error ESE0371: Cannot find type 'dsa'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/local_enum02.ets b/ets2panda/test/ast/compiler/ets/local_enum02.ets index 43b006318a..04fa324e56 100644 --- a/ets2panda/test/ast/compiler/ets/local_enum02.ets +++ b/ets2panda/test/ast/compiler/ets/local_enum02.ets @@ -25,5 +25,6 @@ function main() { arktest.assertEQ(Foo.Bar as int, 0) } -/* @@? 21:7 Error SyntaxError: Illegal start of ENUM expression. */ -/* @@? 22:24 Warning Warning: Enum cast is deprecated. Cast support from 'Foo' to 'Int' will be removed. */ + +/* @@? 21:7 Error Syntax error ESY0040: Illegal start of ENUM expression. */ +/* @@? 22:24 Warning Warning W0030: Enum cast is deprecated. Cast support from 'Foo' to 'Int' will be removed. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/local_enum03.ets b/ets2panda/test/ast/compiler/ets/local_enum03.ets index 0b08ef9258..7db4b80e58 100644 --- a/ets2panda/test/ast/compiler/ets/local_enum03.ets +++ b/ets2panda/test/ast/compiler/ets/local_enum03.ets @@ -22,5 +22,6 @@ function main() { arktest.assertEQ(Foo.Baz, 1) } - /* @@? 19:5 Error SyntaxError: Illegal start of ENUM expression. */ - /* @@? 20:22 Error TypeError: Unresolved reference Foo */ + +/* @@? 19:5 Error Syntax error ESY0040: Illegal start of ENUM expression. */ +/* @@? 20:22 Error Semantic error ESE0143: Unresolved reference Foo */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/manyLocalsParamRegUsage.ets b/ets2panda/test/ast/compiler/ets/manyLocalsParamRegUsage.ets new file mode 100644 index 0000000000..b0c681e0f5 --- /dev/null +++ b/ets2panda/test/ast/compiler/ets/manyLocalsParamRegUsage.ets @@ -0,0 +1,2174 @@ +/* + * Copyright (c) 2023-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +class Mat4 { + constructor( + m0: double, + m1: double, + m2: double, + m3: double, + m4: double, + m5: double, + m6: double, + m7: double, + m8: double, + m9: double, + m10: double, + m11: double, + m12: double, + m13: double, + m14: double, + m15: double, + m16: double, + m17: double, + m18: double, + m19: double, + m20: double, + m21: double, + m22: double, + m23: double, + m24: double, + m25: double, + m26: double, + m27: double, + m28: double, + m29: double, + m30: double, + m31: double, + m32: double, + m33: double, + m34: double, + m35: double, + m36: double, + m37: double, + m38: double, + m39: double, + m40: double, + m41: double, + m42: double, + m43: double, + m44: double, + m45: double, + m46: double, + m47: double, + m48: double, + m49: double, + m50: double, + m51: double, + m52: double, + m53: double, + m54: double, + m55: double, + m56: double, + m57: double, + m58: double, + m59: double, + m60: double, + m61: double, + m62: double, + m63: double, + m64: double, + m65: double, + m66: double, + m67: double, + m68: double, + m69: double, + m70: double, + m71: double, + m72: double, + m73: double, + m74: double, + m75: double, + m76: double, + m77: double, + m78: double, + m79: double, + m80: double, + m81: double, + m82: double, + m83: double, + m84: double, + m85: double, + m86: double, + m87: double, + m88: double, + m89: double, + m90: double, + m91: double, + m92: double, + m93: double, + m94: double, + m95: double, + m96: double, + m97: double, + m98: double, + m99: double, + m100: double, + m101: double, + m102: double, + m103: double, + m104: double, + m105: double, + m106: double, + m107: double, + m108: double, + m109: double, + m110: double, + m111: double, + m112: double, + m113: double, + m114: double, + m115: double, + m116: double, + m117: double, + m118: double, + m119: double, + m120: double, + m121: double, + m122: double, + m123: double, + m124: double, + m125: double, + m126: double, + m127: double, + m128: double, + m129: double, + m130: double, + m131: double, + m132: double, + m133: double, + m134: double, + m135: double, + m136: double, + m137: double, + m138: double, + m139: double, + m140: double, + m141: double, + m142: double, + m143: double, + m144: double, + m145: double, + m146: double, + m147: double, + m148: double, + m149: double, + m150: double, + m151: double, + m152: double, + m153: double, + m154: double, + m155: double, + m156: double, + m157: double, + m158: double, + m159: double, + m160: double, + m161: double, + m162: double, + m163: double, + m164: double, + m165: double, + m166: double, + m167: double, + m168: double, + m169: double, + m170: double, + m171: double, + m172: double, + m173: double, + m174: double, + m175: double, + m176: double, + m177: double, + m178: double, + m179: double, + m180: double, + m181: double, + m182: double, + m183: double, + m184: double, + m185: double, + m186: double, + m187: double, + m188: double, + m189: double, + m190: double, + m191: double, + m192: double, + m193: double, + m194: double, + m195: double, + m196: double, + m197: double, + m198: double, + m199: double, + m200: double, + m201: double, + m202: double, + m203: double, + m204: double, + m205: double, + m206: double, + m207: double, + m208: double, + m209: double, + m210: double, + m211: double, + m212: double, + m213: double, + m214: double, + m215: double, + m216: double, + m217: double, + m218: double, + m219: double, + m220: double, + m221: double, + m222: double, + m223: double, + m224: double, + m225: double, + m226: double, + m227: double, + m228: double, + m229: double, + m230: double, + m231: double, + m232: double, + m233: double, + m234: double, + m235: double, + m236: double, + m237: double, + m238: double, + m239: double, + m240: double, + m241: double, + m242: double, + m243: double, + m244: double, + m245: double, + m246: double, + m247: double, + m248: double, + m249: double, + m250: double, + m251: double, + m252: double, + m253: double, + m254: double, + m255: double + ) {} +} + +function func(): void {} + +class ParticleSystem { + public f: int; + public m = new Mat4( + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0 + ); + + foo() { + let x0 = 0; + let x1 = 1; + let x2 = 2; + let x3 = 3; + let x4 = 4; + let x5 = 5; + let x6 = 6; + let x7 = 7; + let x8 = 8; + let x9 = 9; + let x10 = 10; + let x11 = 11; + let x12 = 12; + let x13 = 13; + let x14 = 14; + let x15 = 15; + let x16 = 16; + let x: () => Mat4 = (): Mat4 => { + return this.m; + } + } + + bar() { + let x0 = 0 + let x1 = 0 + let x2 = 0 + let x3 = 0 + let x4 = 0 + let x5 = 0 + let x6 = 0 + let x7 = 0 + let x8 = 0 + let x9 = 0 + let x10 = 0 + let x11 = 0 + let x12 = 0 + let x13 = 0 + let x14 = 0 + let x15 = 0 + let x16 = 0 + let x17 = 0 + let x18 = 0 + let x19 = 0 + let x20 = 0 + let x21 = 0 + let x22 = 0 + let x23 = 0 + let x24 = 0 + let x25 = 0 + let x26 = 0 + let x27 = 0 + let x28 = 0 + let x29 = 0 + let x30 = 0 + let x31 = 0 + let x32 = 0 + let x33 = 0 + let x34 = 0 + let x35 = 0 + let x36 = 0 + let x37 = 0 + let x38 = 0 + let x39 = 0 + let x40 = 0 + let x41 = 0 + let x42 = 0 + let x43 = 0 + let x44 = 0 + let x45 = 0 + let x46 = 0 + let x47 = 0 + let x48 = 0 + let x49 = 0 + let x50 = 0 + let x51 = 0 + let x52 = 0 + let x53 = 0 + let x54 = 0 + let x55 = 0 + let x56 = 0 + let x57 = 0 + let x58 = 0 + let x59 = 0 + let x60 = 0 + let x61 = 0 + let x62 = 0 + let x63 = 0 + let x64 = 0 + let x65 = 0 + let x66 = 0 + let x67 = 0 + let x68 = 0 + let x69 = 0 + let x70 = 0 + let x71 = 0 + let x72 = 0 + let x73 = 0 + let x74 = 0 + let x75 = 0 + let x76 = 0 + let x77 = 0 + let x78 = 0 + let x79 = 0 + let x80 = 0 + let x81 = 0 + let x82 = 0 + let x83 = 0 + let x84 = 0 + let x85 = 0 + let x86 = 0 + let x87 = 0 + let x88 = 0 + let x89 = 0 + let x90 = 0 + let x91 = 0 + let x92 = 0 + let x93 = 0 + let x94 = 0 + let x95 = 0 + let x96 = 0 + let x97 = 0 + let x98 = 0 + let x99 = 0 + let x100 = 0 + let x101 = 0 + let x102 = 0 + let x103 = 0 + let x104 = 0 + let x105 = 0 + let x106 = 0 + let x107 = 0 + let x108 = 0 + let x109 = 0 + let x110 = 0 + let x111 = 0 + let x112 = 0 + let x113 = 0 + let x114 = 0 + let x115 = 0 + let x116 = 0 + let x117 = 0 + let x118 = 0 + let x119 = 0 + let x120 = 0 + let x121 = 0 + let x122 = 0 + let x123 = 0 + let x124 = 0 + let x125 = 0 + let x126 = 0 + let x127 = 0 + let x128 = 0 + let x129 = 0 + let x130 = 0 + let x131 = 0 + let x132 = 0 + let x133 = 0 + let x134 = 0 + let x135 = 0 + let x136 = 0 + let x137 = 0 + let x138 = 0 + let x139 = 0 + let x140 = 0 + let x141 = 0 + let x142 = 0 + let x143 = 0 + let x144 = 0 + let x145 = 0 + let x146 = 0 + let x147 = 0 + let x148 = 0 + let x149 = 0 + let x150 = 0 + let x151 = 0 + let x152 = 0 + let x153 = 0 + let x154 = 0 + let x155 = 0 + let x156 = 0 + let x157 = 0 + let x158 = 0 + let x159 = 0 + let x160 = 0 + let x161 = 0 + let x162 = 0 + let x163 = 0 + let x164 = 0 + let x165 = 0 + let x166 = 0 + let x167 = 0 + let x168 = 0 + let x169 = 0 + let x170 = 0 + let x171 = 0 + let x172 = 0 + let x173 = 0 + let x174 = 0 + let x175 = 0 + let x176 = 0 + let x177 = 0 + let x178 = 0 + let x179 = 0 + let x180 = 0 + let x181 = 0 + let x182 = 0 + let x183 = 0 + let x184 = 0 + let x185 = 0 + let x186 = 0 + let x187 = 0 + let x188 = 0 + let x189 = 0 + let x190 = 0 + let x191 = 0 + let x192 = 0 + let x193 = 0 + let x194 = 0 + let x195 = 0 + let x196 = 0 + let x197 = 0 + let x198 = 0 + let x199 = 0 + let x200 = 0 + let x201 = 0 + let x202 = 0 + let x203 = 0 + let x204 = 0 + let x205 = 0 + let x206 = 0 + let x207 = 0 + let x208 = 0 + let x209 = 0 + let x210 = 0 + let x211 = 0 + let x212 = 0 + let x213 = 0 + let x214 = 0 + let x215 = 0 + let x216 = 0 + let x217 = 0 + let x218 = 0 + let x219 = 0 + let x220 = 0 + let x221 = 0 + let x222 = 0 + let x223 = 0 + let x224 = 0 + let x225 = 0 + let x226 = 0 + let x227 = 0 + let x228 = 0 + let x229 = 0 + let x230 = 0 + let x231 = 0 + let x232 = 0 + let x233 = 0 + let x234 = 0 + let x235 = 0 + let x236 = 0 + let x237 = 0 + let x238 = 0 + let x239 = 0 + let x240 = 0 + let x241 = 0 + let x242 = 0 + let x243 = 0 + let x244 = 0 + let x245 = 0 + let x246 = 0 + let x247 = 0 + let x248 = 0 + let x249 = 0 + let x250 = 0 + let x251 = 0 + let x252 = 0 + let x253 = 0 + let x254 = 0 + let x255 = 0 + let x = this.f + this.f = 0 + } +} + +function foo(p1: int, p2: int): int { + let x0 = 0 + let x1 = 0 + let x2 = 0 + let x3 = 0 + let x4 = 0 + let x5 = 0 + let x6 = 0 + let x7 = 0 + let x8 = 0 + let x9 = 0 + let x10 = 0 + let x11 = 0 + let x12 = 0 + let x13 = 0 + let x14 = 0 + let x15 = 0 + let x16 = 0 + let x17 = 0 + let x18 = 0 + let x19 = 0 + let x20 = 0 + let x21 = 0 + let x22 = 0 + let x23 = 0 + let x24 = 0 + let x25 = 0 + let x26 = 0 + let x27 = 0 + let x28 = 0 + let x29 = 0 + let x30 = 0 + let x31 = 0 + let x32 = 0 + let x33 = 0 + let x34 = 0 + let x35 = 0 + let x36 = 0 + let x37 = 0 + let x38 = 0 + let x39 = 0 + let x40 = 0 + let x41 = 0 + let x42 = 0 + let x43 = 0 + let x44 = 0 + let x45 = 0 + let x46 = 0 + let x47 = 0 + let x48 = 0 + let x49 = 0 + let x50 = 0 + let x51 = 0 + let x52 = 0 + let x53 = 0 + let x54 = 0 + let x55 = 0 + let x56 = 0 + let x57 = 0 + let x58 = 0 + let x59 = 0 + let x60 = 0 + let x61 = 0 + let x62 = 0 + let x63 = 0 + let x64 = 0 + let x65 = 0 + let x66 = 0 + let x67 = 0 + let x68 = 0 + let x69 = 0 + let x70 = 0 + let x71 = 0 + let x72 = 0 + let x73 = 0 + let x74 = 0 + let x75 = 0 + let x76 = 0 + let x77 = 0 + let x78 = 0 + let x79 = 0 + let x80 = 0 + let x81 = 0 + let x82 = 0 + let x83 = 0 + let x84 = 0 + let x85 = 0 + let x86 = 0 + let x87 = 0 + let x88 = 0 + let x89 = 0 + let x90 = 0 + let x91 = 0 + let x92 = 0 + let x93 = 0 + let x94 = 0 + let x95 = 0 + let x96 = 0 + let x97 = 0 + let x98 = 0 + let x99 = 0 + let x100 = 0 + let x101 = 0 + let x102 = 0 + let x103 = 0 + let x104 = 0 + let x105 = 0 + let x106 = 0 + let x107 = 0 + let x108 = 0 + let x109 = 0 + let x110 = 0 + let x111 = 0 + let x112 = 0 + let x113 = 0 + let x114 = 0 + let x115 = 0 + let x116 = 0 + let x117 = 0 + let x118 = 0 + let x119 = 0 + let x120 = 0 + let x121 = 0 + let x122 = 0 + let x123 = 0 + let x124 = 0 + let x125 = 0 + let x126 = 0 + let x127 = 0 + let x128 = 0 + let x129 = 0 + let x130 = 0 + let x131 = 0 + let x132 = 0 + let x133 = 0 + let x134 = 0 + let x135 = 0 + let x136 = 0 + let x137 = 0 + let x138 = 0 + let x139 = 0 + let x140 = 0 + let x141 = 0 + let x142 = 0 + let x143 = 0 + let x144 = 0 + let x145 = 0 + let x146 = 0 + let x147 = 0 + let x148 = 0 + let x149 = 0 + let x150 = 0 + let x151 = 0 + let x152 = 0 + let x153 = 0 + let x154 = 0 + let x155 = 0 + let x156 = 0 + let x157 = 0 + let x158 = 0 + let x159 = 0 + let x160 = 0 + let x161 = 0 + let x162 = 0 + let x163 = 0 + let x164 = 0 + let x165 = 0 + let x166 = 0 + let x167 = 0 + let x168 = 0 + let x169 = 0 + let x170 = 0 + let x171 = 0 + let x172 = 0 + let x173 = 0 + let x174 = 0 + let x175 = 0 + let x176 = 0 + let x177 = 0 + let x178 = 0 + let x179 = 0 + let x180 = 0 + let x181 = 0 + let x182 = 0 + let x183 = 0 + let x184 = 0 + let x185 = 0 + let x186 = 0 + let x187 = 0 + let x188 = 0 + let x189 = 0 + let x190 = 0 + let x191 = 0 + let x192 = 0 + let x193 = 0 + let x194 = 0 + let x195 = 0 + let x196 = 0 + let x197 = 0 + let x198 = 0 + let x199 = 0 + let x200 = 0 + let x201 = 0 + let x202 = 0 + let x203 = 0 + let x204 = 0 + let x205 = 0 + let x206 = 0 + let x207 = 0 + let x208 = 0 + let x209 = 0 + let x210 = 0 + let x211 = 0 + let x212 = 0 + let x213 = 0 + let x214 = 0 + let x215 = 0 + let x216 = 0 + let x217 = 0 + let x218 = 0 + let x219 = 0 + let x220 = 0 + let x221 = 0 + let x222 = 0 + let x223 = 0 + let x224 = 0 + let x225 = 0 + let x226 = 0 + let x227 = 0 + let x228 = 0 + let x229 = 0 + let x230 = 0 + let x231 = 0 + let x232 = 0 + let x233 = 0 + let x234 = 0 + let x235 = 0 + let x236 = 0 + let x237 = 0 + let x238 = 0 + let x239 = 0 + let x240 = 0 + let x241 = 0 + let x242 = 0 + let x243 = 0 + let x244 = 0 + let x245 = 0 + let x246 = 0 + let x247 = 0 + let x248 = 0 + let x249 = 0 + let x250 = 0 + let x251 = 0 + let x252 = 0 + let x253 = 0 + let x254 = 0 + let x255 = 0 + return p1 + p2 +} + +/* + * Copyright (c) 2023-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +class Mat4 { + constructor( + m0: double, + m1: double, + m2: double, + m3: double, + m4: double, + m5: double, + m6: double, + m7: double, + m8: double, + m9: double, + m10: double, + m11: double, + m12: double, + m13: double, + m14: double, + m15: double, + m16: double, + m17: double, + m18: double, + m19: double, + m20: double, + m21: double, + m22: double, + m23: double, + m24: double, + m25: double, + m26: double, + m27: double, + m28: double, + m29: double, + m30: double, + m31: double, + m32: double, + m33: double, + m34: double, + m35: double, + m36: double, + m37: double, + m38: double, + m39: double, + m40: double, + m41: double, + m42: double, + m43: double, + m44: double, + m45: double, + m46: double, + m47: double, + m48: double, + m49: double, + m50: double, + m51: double, + m52: double, + m53: double, + m54: double, + m55: double, + m56: double, + m57: double, + m58: double, + m59: double, + m60: double, + m61: double, + m62: double, + m63: double, + m64: double, + m65: double, + m66: double, + m67: double, + m68: double, + m69: double, + m70: double, + m71: double, + m72: double, + m73: double, + m74: double, + m75: double, + m76: double, + m77: double, + m78: double, + m79: double, + m80: double, + m81: double, + m82: double, + m83: double, + m84: double, + m85: double, + m86: double, + m87: double, + m88: double, + m89: double, + m90: double, + m91: double, + m92: double, + m93: double, + m94: double, + m95: double, + m96: double, + m97: double, + m98: double, + m99: double, + m100: double, + m101: double, + m102: double, + m103: double, + m104: double, + m105: double, + m106: double, + m107: double, + m108: double, + m109: double, + m110: double, + m111: double, + m112: double, + m113: double, + m114: double, + m115: double, + m116: double, + m117: double, + m118: double, + m119: double, + m120: double, + m121: double, + m122: double, + m123: double, + m124: double, + m125: double, + m126: double, + m127: double, + m128: double, + m129: double, + m130: double, + m131: double, + m132: double, + m133: double, + m134: double, + m135: double, + m136: double, + m137: double, + m138: double, + m139: double, + m140: double, + m141: double, + m142: double, + m143: double, + m144: double, + m145: double, + m146: double, + m147: double, + m148: double, + m149: double, + m150: double, + m151: double, + m152: double, + m153: double, + m154: double, + m155: double, + m156: double, + m157: double, + m158: double, + m159: double, + m160: double, + m161: double, + m162: double, + m163: double, + m164: double, + m165: double, + m166: double, + m167: double, + m168: double, + m169: double, + m170: double, + m171: double, + m172: double, + m173: double, + m174: double, + m175: double, + m176: double, + m177: double, + m178: double, + m179: double, + m180: double, + m181: double, + m182: double, + m183: double, + m184: double, + m185: double, + m186: double, + m187: double, + m188: double, + m189: double, + m190: double, + m191: double, + m192: double, + m193: double, + m194: double, + m195: double, + m196: double, + m197: double, + m198: double, + m199: double, + m200: double, + m201: double, + m202: double, + m203: double, + m204: double, + m205: double, + m206: double, + m207: double, + m208: double, + m209: double, + m210: double, + m211: double, + m212: double, + m213: double, + m214: double, + m215: double, + m216: double, + m217: double, + m218: double, + m219: double, + m220: double, + m221: double, + m222: double, + m223: double, + m224: double, + m225: double, + m226: double, + m227: double, + m228: double, + m229: double, + m230: double, + m231: double, + m232: double, + m233: double, + m234: double, + m235: double, + m236: double, + m237: double, + m238: double, + m239: double, + m240: double, + m241: double, + m242: double, + m243: double, + m244: double, + m245: double, + m246: double, + m247: double, + m248: double, + m249: double, + m250: double, + m251: double, + m252: double, + m253: double, + m254: double, + m255: double + ) {} +} + +function func(): void {} + +class ParticleSystem { + public f: int; + public m = new Mat4( + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0 + ); + + foo() { + let x0 = 0; + let x1 = 1; + let x2 = 2; + let x3 = 3; + let x4 = 4; + let x5 = 5; + let x6 = 6; + let x7 = 7; + let x8 = 8; + let x9 = 9; + let x10 = 10; + let x11 = 11; + let x12 = 12; + let x13 = 13; + let x14 = 14; + let x15 = 15; + let x16 = 16; + let x: () => Mat4 = (): Mat4 => { + return this.m; + } + } + + bar() { + let x0 = 0 + let x1 = 0 + let x2 = 0 + let x3 = 0 + let x4 = 0 + let x5 = 0 + let x6 = 0 + let x7 = 0 + let x8 = 0 + let x9 = 0 + let x10 = 0 + let x11 = 0 + let x12 = 0 + let x13 = 0 + let x14 = 0 + let x15 = 0 + let x16 = 0 + let x17 = 0 + let x18 = 0 + let x19 = 0 + let x20 = 0 + let x21 = 0 + let x22 = 0 + let x23 = 0 + let x24 = 0 + let x25 = 0 + let x26 = 0 + let x27 = 0 + let x28 = 0 + let x29 = 0 + let x30 = 0 + let x31 = 0 + let x32 = 0 + let x33 = 0 + let x34 = 0 + let x35 = 0 + let x36 = 0 + let x37 = 0 + let x38 = 0 + let x39 = 0 + let x40 = 0 + let x41 = 0 + let x42 = 0 + let x43 = 0 + let x44 = 0 + let x45 = 0 + let x46 = 0 + let x47 = 0 + let x48 = 0 + let x49 = 0 + let x50 = 0 + let x51 = 0 + let x52 = 0 + let x53 = 0 + let x54 = 0 + let x55 = 0 + let x56 = 0 + let x57 = 0 + let x58 = 0 + let x59 = 0 + let x60 = 0 + let x61 = 0 + let x62 = 0 + let x63 = 0 + let x64 = 0 + let x65 = 0 + let x66 = 0 + let x67 = 0 + let x68 = 0 + let x69 = 0 + let x70 = 0 + let x71 = 0 + let x72 = 0 + let x73 = 0 + let x74 = 0 + let x75 = 0 + let x76 = 0 + let x77 = 0 + let x78 = 0 + let x79 = 0 + let x80 = 0 + let x81 = 0 + let x82 = 0 + let x83 = 0 + let x84 = 0 + let x85 = 0 + let x86 = 0 + let x87 = 0 + let x88 = 0 + let x89 = 0 + let x90 = 0 + let x91 = 0 + let x92 = 0 + let x93 = 0 + let x94 = 0 + let x95 = 0 + let x96 = 0 + let x97 = 0 + let x98 = 0 + let x99 = 0 + let x100 = 0 + let x101 = 0 + let x102 = 0 + let x103 = 0 + let x104 = 0 + let x105 = 0 + let x106 = 0 + let x107 = 0 + let x108 = 0 + let x109 = 0 + let x110 = 0 + let x111 = 0 + let x112 = 0 + let x113 = 0 + let x114 = 0 + let x115 = 0 + let x116 = 0 + let x117 = 0 + let x118 = 0 + let x119 = 0 + let x120 = 0 + let x121 = 0 + let x122 = 0 + let x123 = 0 + let x124 = 0 + let x125 = 0 + let x126 = 0 + let x127 = 0 + let x128 = 0 + let x129 = 0 + let x130 = 0 + let x131 = 0 + let x132 = 0 + let x133 = 0 + let x134 = 0 + let x135 = 0 + let x136 = 0 + let x137 = 0 + let x138 = 0 + let x139 = 0 + let x140 = 0 + let x141 = 0 + let x142 = 0 + let x143 = 0 + let x144 = 0 + let x145 = 0 + let x146 = 0 + let x147 = 0 + let x148 = 0 + let x149 = 0 + let x150 = 0 + let x151 = 0 + let x152 = 0 + let x153 = 0 + let x154 = 0 + let x155 = 0 + let x156 = 0 + let x157 = 0 + let x158 = 0 + let x159 = 0 + let x160 = 0 + let x161 = 0 + let x162 = 0 + let x163 = 0 + let x164 = 0 + let x165 = 0 + let x166 = 0 + let x167 = 0 + let x168 = 0 + let x169 = 0 + let x170 = 0 + let x171 = 0 + let x172 = 0 + let x173 = 0 + let x174 = 0 + let x175 = 0 + let x176 = 0 + let x177 = 0 + let x178 = 0 + let x179 = 0 + let x180 = 0 + let x181 = 0 + let x182 = 0 + let x183 = 0 + let x184 = 0 + let x185 = 0 + let x186 = 0 + let x187 = 0 + let x188 = 0 + let x189 = 0 + let x190 = 0 + let x191 = 0 + let x192 = 0 + let x193 = 0 + let x194 = 0 + let x195 = 0 + let x196 = 0 + let x197 = 0 + let x198 = 0 + let x199 = 0 + let x200 = 0 + let x201 = 0 + let x202 = 0 + let x203 = 0 + let x204 = 0 + let x205 = 0 + let x206 = 0 + let x207 = 0 + let x208 = 0 + let x209 = 0 + let x210 = 0 + let x211 = 0 + let x212 = 0 + let x213 = 0 + let x214 = 0 + let x215 = 0 + let x216 = 0 + let x217 = 0 + let x218 = 0 + let x219 = 0 + let x220 = 0 + let x221 = 0 + let x222 = 0 + let x223 = 0 + let x224 = 0 + let x225 = 0 + let x226 = 0 + let x227 = 0 + let x228 = 0 + let x229 = 0 + let x230 = 0 + let x231 = 0 + let x232 = 0 + let x233 = 0 + let x234 = 0 + let x235 = 0 + let x236 = 0 + let x237 = 0 + let x238 = 0 + let x239 = 0 + let x240 = 0 + let x241 = 0 + let x242 = 0 + let x243 = 0 + let x244 = 0 + let x245 = 0 + let x246 = 0 + let x247 = 0 + let x248 = 0 + let x249 = 0 + let x250 = 0 + let x251 = 0 + let x252 = 0 + let x253 = 0 + let x254 = 0 + let x255 = 0 + let x = this.f + this.f = 0 + } +} + +function foo(p1: int, p2: int): int { + let x0 = 0 + let x1 = 0 + let x2 = 0 + let x3 = 0 + let x4 = 0 + let x5 = 0 + let x6 = 0 + let x7 = 0 + let x8 = 0 + let x9 = 0 + let x10 = 0 + let x11 = 0 + let x12 = 0 + let x13 = 0 + let x14 = 0 + let x15 = 0 + let x16 = 0 + let x17 = 0 + let x18 = 0 + let x19 = 0 + let x20 = 0 + let x21 = 0 + let x22 = 0 + let x23 = 0 + let x24 = 0 + let x25 = 0 + let x26 = 0 + let x27 = 0 + let x28 = 0 + let x29 = 0 + let x30 = 0 + let x31 = 0 + let x32 = 0 + let x33 = 0 + let x34 = 0 + let x35 = 0 + let x36 = 0 + let x37 = 0 + let x38 = 0 + let x39 = 0 + let x40 = 0 + let x41 = 0 + let x42 = 0 + let x43 = 0 + let x44 = 0 + let x45 = 0 + let x46 = 0 + let x47 = 0 + let x48 = 0 + let x49 = 0 + let x50 = 0 + let x51 = 0 + let x52 = 0 + let x53 = 0 + let x54 = 0 + let x55 = 0 + let x56 = 0 + let x57 = 0 + let x58 = 0 + let x59 = 0 + let x60 = 0 + let x61 = 0 + let x62 = 0 + let x63 = 0 + let x64 = 0 + let x65 = 0 + let x66 = 0 + let x67 = 0 + let x68 = 0 + let x69 = 0 + let x70 = 0 + let x71 = 0 + let x72 = 0 + let x73 = 0 + let x74 = 0 + let x75 = 0 + let x76 = 0 + let x77 = 0 + let x78 = 0 + let x79 = 0 + let x80 = 0 + let x81 = 0 + let x82 = 0 + let x83 = 0 + let x84 = 0 + let x85 = 0 + let x86 = 0 + let x87 = 0 + let x88 = 0 + let x89 = 0 + let x90 = 0 + let x91 = 0 + let x92 = 0 + let x93 = 0 + let x94 = 0 + let x95 = 0 + let x96 = 0 + let x97 = 0 + let x98 = 0 + let x99 = 0 + let x100 = 0 + let x101 = 0 + let x102 = 0 + let x103 = 0 + let x104 = 0 + let x105 = 0 + let x106 = 0 + let x107 = 0 + let x108 = 0 + let x109 = 0 + let x110 = 0 + let x111 = 0 + let x112 = 0 + let x113 = 0 + let x114 = 0 + let x115 = 0 + let x116 = 0 + let x117 = 0 + let x118 = 0 + let x119 = 0 + let x120 = 0 + let x121 = 0 + let x122 = 0 + let x123 = 0 + let x124 = 0 + let x125 = 0 + let x126 = 0 + let x127 = 0 + let x128 = 0 + let x129 = 0 + let x130 = 0 + let x131 = 0 + let x132 = 0 + let x133 = 0 + let x134 = 0 + let x135 = 0 + let x136 = 0 + let x137 = 0 + let x138 = 0 + let x139 = 0 + let x140 = 0 + let x141 = 0 + let x142 = 0 + let x143 = 0 + let x144 = 0 + let x145 = 0 + let x146 = 0 + let x147 = 0 + let x148 = 0 + let x149 = 0 + let x150 = 0 + let x151 = 0 + let x152 = 0 + let x153 = 0 + let x154 = 0 + let x155 = 0 + let x156 = 0 + let x157 = 0 + let x158 = 0 + let x159 = 0 + let x160 = 0 + let x161 = 0 + let x162 = 0 + let x163 = 0 + let x164 = 0 + let x165 = 0 + let x166 = 0 + let x167 = 0 + let x168 = 0 + let x169 = 0 + let x170 = 0 + let x171 = 0 + let x172 = 0 + let x173 = 0 + let x174 = 0 + let x175 = 0 + let x176 = 0 + let x177 = 0 + let x178 = 0 + let x179 = 0 + let x180 = 0 + let x181 = 0 + let x182 = 0 + let x183 = 0 + let x184 = 0 + let x185 = 0 + let x186 = 0 + let x187 = 0 + let x188 = 0 + let x189 = 0 + let x190 = 0 + let x191 = 0 + let x192 = 0 + let x193 = 0 + let x194 = 0 + let x195 = 0 + let x196 = 0 + let x197 = 0 + let x198 = 0 + let x199 = 0 + let x200 = 0 + let x201 = 0 + let x202 = 0 + let x203 = 0 + let x204 = 0 + let x205 = 0 + let x206 = 0 + let x207 = 0 + let x208 = 0 + let x209 = 0 + let x210 = 0 + let x211 = 0 + let x212 = 0 + let x213 = 0 + let x214 = 0 + let x215 = 0 + let x216 = 0 + let x217 = 0 + let x218 = 0 + let x219 = 0 + let x220 = 0 + let x221 = 0 + let x222 = 0 + let x223 = 0 + let x224 = 0 + let x225 = 0 + let x226 = 0 + let x227 = 0 + let x228 = 0 + let x229 = 0 + let x230 = 0 + let x231 = 0 + let x232 = 0 + let x233 = 0 + let x234 = 0 + let x235 = 0 + let x236 = 0 + let x237 = 0 + let x238 = 0 + let x239 = 0 + let x240 = 0 + let x241 = 0 + let x242 = 0 + let x243 = 0 + let x244 = 0 + let x245 = 0 + let x246 = 0 + let x247 = 0 + let x248 = 0 + let x249 = 0 + let x250 = 0 + let x251 = 0 + let x252 = 0 + let x253 = 0 + let x254 = 0 + let x255 = 0 + return p1 + p2 +} + +/* @@? 1100:7 Error Semantic error ESE0351: Variable 'Mat4' has already been declared. */ +/* @@? 1100:7 Error Semantic error ESE0370: Merging declarations is not supported, please keep all definitions of classes, interfaces and enums compact in the codebase! */ +/* @@? 1361:1 Error Semantic error ESE0130: Function func is already declared. */ +/* @@? 1363:7 Error Semantic error ESE0351: Variable 'ParticleSystem' has already been declared. */ +/* @@? 1363:7 Error Semantic error ESE0370: Merging declarations is not supported, please keep all definitions of classes, interfaces and enums compact in the codebase! */ +/* @@? 1909:1 Error Semantic error ESE0130: Function foo is already declared. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/math_const_as_identifier.ets b/ets2panda/test/ast/compiler/ets/math_const_as_identifier.ets index ef222fcc9f..e5106ae031 100644 --- a/ets2panda/test/ast/compiler/ets/math_const_as_identifier.ets +++ b/ets2panda/test/ast/compiler/ets/math_const_as_identifier.ets @@ -23,9 +23,10 @@ function foo1() { let undefined }; -/* @@? 21:9 Error TypeError: Variable 'NaN' has already been declared. */ -/* @@? 22:9 Error TypeError: Variable 'Infinity' has already been declared. */ -/* @@? 22:20 Error TypeError: Unresolved reference test */ -/* @@? 23:9 Error SyntaxError: Hard keyword 'undefined' cannot be used as identifier */ -/* @@? 23:9 Error SyntaxError: Identifier expected, got 'undefined'. */ -/* @@? 24:1 Error SyntaxError: Variable must be initialized or it's type must be declared. */ + +/* @@? 21:9 Error Semantic error ESE0351: Variable 'NaN' has already been declared. */ +/* @@? 22:9 Error Semantic error ESE0351: Variable 'Infinity' has already been declared. */ +/* @@? 22:20 Error Semantic error ESE0143: Unresolved reference test */ +/* @@? 23:9 Error Syntax error ESY0316: Hard keyword 'undefined' cannot be used as identifier */ +/* @@? 23:9 Error Syntax error ESY0224: Identifier expected, got 'undefined'. */ +/* @@? 24:1 Error Syntax error ESY0105: Variable must be initialized or it's type must be declared. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/method-assignment.ets b/ets2panda/test/ast/compiler/ets/method-assignment.ets index 8bf46b3b8d..70969eb0ec 100644 --- a/ets2panda/test/ast/compiler/ets/method-assignment.ets +++ b/ets2panda/test/ast/compiler/ets/method-assignment.ets @@ -47,10 +47,11 @@ c.foo1 = bar; C.foo2 = bar; c.interfaceFoo = bar; -/* @@? 31:9 Error TypeError: Class methods cannot be overwritten. */ -/* @@? 36:9 Error TypeError: Class methods cannot be overwritten. */ -/* @@? 44:1 Error TypeError: Class methods cannot be overwritten. */ -/* @@? 45:1 Error TypeError: Class methods cannot be overwritten. */ -/* @@? 46:1 Error TypeError: Class methods cannot be overwritten. */ -/* @@? 47:1 Error TypeError: Class methods cannot be overwritten. */ -/* @@? 48:1 Error TypeError: Class methods cannot be overwritten. */ + +/* @@? 31:9 Error Semantic error ESE0394: Class methods cannot be overwritten. */ +/* @@? 36:9 Error Semantic error ESE0394: Class methods cannot be overwritten. */ +/* @@? 44:1 Error Semantic error ESE0394: Class methods cannot be overwritten. */ +/* @@? 45:1 Error Semantic error ESE0394: Class methods cannot be overwritten. */ +/* @@? 46:1 Error Semantic error ESE0394: Class methods cannot be overwritten. */ +/* @@? 47:1 Error Semantic error ESE0394: Class methods cannot be overwritten. */ +/* @@? 48:1 Error Semantic error ESE0394: Class methods cannot be overwritten. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/method-assignment_01.ets b/ets2panda/test/ast/compiler/ets/method-assignment_01.ets index e572ac6981..6e3084a418 100644 --- a/ets2panda/test/ast/compiler/ets/method-assignment_01.ets +++ b/ets2panda/test/ast/compiler/ets/method-assignment_01.ets @@ -38,4 +38,5 @@ function main() { } } -/* @@@ label Error TypeError: Class methods cannot be overwritten. */ + +/* @@@ label Error Semantic error ESE0394: Class methods cannot be overwritten. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/method-resolution-class-and-interface-in-signatures_1.ets b/ets2panda/test/ast/compiler/ets/method-resolution-class-and-interface-in-signatures_1.ets index 999bdad93d..86769c6089 100644 --- a/ets2panda/test/ast/compiler/ets/method-resolution-class-and-interface-in-signatures_1.ets +++ b/ets2panda/test/ast/compiler/ets/method-resolution-class-and-interface-in-signatures_1.ets @@ -39,4 +39,5 @@ function main(): int { } -/* @@@ label Error TypeError: Call to `foo` is ambiguous as `2` versions of `foo` are available: `foo(x: I): String` and `foo(x: J): String` */ + +/* @@@ label Error Semantic error ESE0142: Call to `foo` is ambiguous as `2` versions of `foo` are available: `foo(x: I): String` and `foo(x: J): String` */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/method-resolution-class-and-interface-in-signatures_2.ets b/ets2panda/test/ast/compiler/ets/method-resolution-class-and-interface-in-signatures_2.ets index 6fa2b2d5ba..184c7a5491 100644 --- a/ets2panda/test/ast/compiler/ets/method-resolution-class-and-interface-in-signatures_2.ets +++ b/ets2panda/test/ast/compiler/ets/method-resolution-class-and-interface-in-signatures_2.ets @@ -39,4 +39,5 @@ function main(): int { } -/* @@@ label Error TypeError: Call to `foo` is ambiguous as `2` versions of `foo` are available: `foo(x: B): String` and `foo(x: I): String` */ + +/* @@@ label Error Semantic error ESE0142: Call to `foo` is ambiguous as `2` versions of `foo` are available: `foo(x: B): String` and `foo(x: I): String` */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/method-resolution-class-and-interface-in-signatures_3.ets b/ets2panda/test/ast/compiler/ets/method-resolution-class-and-interface-in-signatures_3.ets index 1914bd1ec3..68839514d8 100644 --- a/ets2panda/test/ast/compiler/ets/method-resolution-class-and-interface-in-signatures_3.ets +++ b/ets2panda/test/ast/compiler/ets/method-resolution-class-and-interface-in-signatures_3.ets @@ -34,4 +34,5 @@ function main(): int { } -/* @@@ label Error TypeError: Call to `foo` is ambiguous as `2` versions of `foo` are available: `foo(x: I): String` and `foo(x: J): String` */ + +/* @@@ label Error Semantic error ESE0142: Call to `foo` is ambiguous as `2` versions of `foo` are available: `foo(x: I): String` and `foo(x: J): String` */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/method-resolution-class-and-interface-in-signatures_4.ets b/ets2panda/test/ast/compiler/ets/method-resolution-class-and-interface-in-signatures_4.ets index edc7a14ec1..581a43af02 100644 --- a/ets2panda/test/ast/compiler/ets/method-resolution-class-and-interface-in-signatures_4.ets +++ b/ets2panda/test/ast/compiler/ets/method-resolution-class-and-interface-in-signatures_4.ets @@ -36,5 +36,6 @@ function main(): int { } -/* @@? 34:22 Error TypeError: Call to `foo` is ambiguous as `2` versions of `foo` are available: `foo(x: A): String` and `foo(x: I): String` */ -/* @@? 34:22 Error TypeError: Call to `foo` is ambiguous as `2` versions of `foo` are available: `foo(x: A): String` and `foo(x: J): String` */ + +/* @@? 34:22 Error Semantic error ESE0142: Call to `foo` is ambiguous as `2` versions of `foo` are available: `foo(x: A): String` and `foo(x: I): String` */ +/* @@? 34:22 Error Semantic error ESE0142: Call to `foo` is ambiguous as `2` versions of `foo` are available: `foo(x: A): String` and `foo(x: J): String` */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/method-resolution-class-and-interface-in-signatures_6.ets b/ets2panda/test/ast/compiler/ets/method-resolution-class-and-interface-in-signatures_6.ets index 670b535d0d..0eab7c56c7 100644 --- a/ets2panda/test/ast/compiler/ets/method-resolution-class-and-interface-in-signatures_6.ets +++ b/ets2panda/test/ast/compiler/ets/method-resolution-class-and-interface-in-signatures_6.ets @@ -42,6 +42,7 @@ function main(): int { let asd5: double = /* @@ label */foo(new A(), 2.1); return 0; } -/* @@? 38:21 Error TypeError: Call to `foo` is ambiguous as `2` versions of `foo` are available: `foo(b: Int, a: I): Int` and `foo(d: Double, a: J): Double` */ -/* @@? 41:21 Error TypeError: Call to `foo` is ambiguous as `2` versions of `foo` are available: `foo(a: I, b: Int): Int` and `foo(a: J, d: Double): Double` */ -/* @@@ label Error TypeError: Call to `foo` is ambiguous as `2` versions of `foo` are available: `foo(a: J, d: Double): Double` and `foo(a: I, d: Double): Double` */ + +/* @@? 38:21 Error Semantic error ESE0142: Call to `foo` is ambiguous as `2` versions of `foo` are available: `foo(b: Int, a: I): Int` and `foo(d: Double, a: J): Double` */ +/* @@? 41:21 Error Semantic error ESE0142: Call to `foo` is ambiguous as `2` versions of `foo` are available: `foo(a: I, b: Int): Int` and `foo(a: J, d: Double): Double` */ +/* @@@ label Error Semantic error ESE0142: Call to `foo` is ambiguous as `2` versions of `foo` are available: `foo(a: J, d: Double): Double` and `foo(a: I, d: Double): Double` */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/method_call_confilict_in_union_types.ets b/ets2panda/test/ast/compiler/ets/method_call_confilict_in_union_types.ets index a0a65edf47..555ab1fa70 100644 --- a/ets2panda/test/ast/compiler/ets/method_call_confilict_in_union_types.ets +++ b/ets2panda/test/ast/compiler/ets/method_call_confilict_in_union_types.ets @@ -26,17 +26,18 @@ function foo(x: A | B) { x.foo("123") } -/* @@? 17:8 Error SyntaxError: Field type annotation expected. */ -/* @@? 17:14 Error SyntaxError: Field type annotation expected. */ -/* @@? 17:18 Error SyntaxError: Field type annotation expected. */ -/* @@? 17:27 Error SyntaxError: Field type annotation expected. */ -/* @@? 17:28 Error SyntaxError: Unexpected token '{'. */ -/* @@? 18:9 Error TypeError: Unresolved reference v */ -/* @@? 18:10 Error SyntaxError: Unexpected token ':'. */ -/* @@? 18:10 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 18:12 Error SyntaxError: Unexpected token 'int'. */ -/* @@? 18:15 Error SyntaxError: Unexpected token ')'. */ -/* @@? 18:16 Error SyntaxError: Unexpected token ':'. */ -/* @@? 18:18 Error SyntaxError: Unexpected token 'void'. */ -/* @@? 18:23 Error SyntaxError: Unexpected token '{'. */ -/* @@? 19:1 Error SyntaxError: Unexpected token '}'. */ + +/* @@? 17:8 Error Syntax error ESY0121: Field type annotation expected. */ +/* @@? 17:14 Error Syntax error ESY0121: Field type annotation expected. */ +/* @@? 17:18 Error Syntax error ESY0121: Field type annotation expected. */ +/* @@? 17:27 Error Syntax error ESY0121: Field type annotation expected. */ +/* @@? 17:28 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 18:9 Error Semantic error ESE0143: Unresolved reference v */ +/* @@? 18:10 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 18:10 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 18:12 Error Syntax error ESY0227: Unexpected token 'int'. */ +/* @@? 18:15 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 18:16 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 18:18 Error Syntax error ESY0227: Unexpected token 'void'. */ +/* @@? 18:23 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 19:1 Error Syntax error ESY0227: Unexpected token '}'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/method_error_identifier.ets b/ets2panda/test/ast/compiler/ets/method_error_identifier.ets index 4ccc872657..1fc272323a 100644 --- a/ets2panda/test/ast/compiler/ets/method_error_identifier.ets +++ b/ets2panda/test/ast/compiler/ets/method_error_identifier.ets @@ -20,11 +20,12 @@ class BindFuncExpr { callback1 = callback1 || function () { } } -/* @@? 16:1 Error SyntaxError: Unexpected token 'void'. */ -/* @@? 16:6 Error SyntaxError: Unexpected token 'function'. */ -/* @@? 16:15 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 19:5 Error SyntaxError: Unexpected token 'let'. */ -/* @@? 19:21 Error SyntaxError: Function expressions are not supported, use arrow functions instead */ -/* @@? 20:5 Error TypeError: Variable 'callback1' has already been declared. */ -/* @@? 20:17 Error TypeError: Unresolved reference callback1 */ -/* @@? 20:30 Error SyntaxError: Function expressions are not supported, use arrow functions instead */ + +/* @@? 16:1 Error Syntax error ESY0227: Unexpected token 'void'. */ +/* @@? 16:6 Error Syntax error ESY0227: Unexpected token 'function'. */ +/* @@? 16:15 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 19:5 Error Syntax error ESY0227: Unexpected token 'let'. */ +/* @@? 19:21 Error Syntax error ESY0320: Function expressions are not supported, use arrow functions instead */ +/* @@? 20:5 Error Semantic error ESE0351: Variable 'callback1' has already been declared. */ +/* @@? 20:17 Error Semantic error ESE0143: Unresolved reference callback1 */ +/* @@? 20:30 Error Syntax error ESY0320: Function expressions are not supported, use arrow functions instead */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/missing_CTE_access_private.ets b/ets2panda/test/ast/compiler/ets/missing_CTE_access_private.ets index d37040e338..e6a7876a16 100644 --- a/ets2panda/test/ast/compiler/ets/missing_CTE_access_private.ets +++ b/ets2panda/test/ast/compiler/ets/missing_CTE_access_private.ets @@ -26,5 +26,6 @@ function main(): void { A.val = 1 } -/* @@? 25:23 Error TypeError: Signature val(): Double is not visible here. */ -/* @@? 26:7 Error TypeError: Signature val(i: Double): void is not visible here. */ + +/* @@? 25:23 Error Semantic error ESE0139: Signature val(): Double is not visible here. */ +/* @@? 26:7 Error Semantic error ESE0139: Signature val(i: Double): void is not visible here. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/missing_CTE_access_protected.ets b/ets2panda/test/ast/compiler/ets/missing_CTE_access_protected.ets index fb1fd61647..cde9fc1984 100644 --- a/ets2panda/test/ast/compiler/ets/missing_CTE_access_protected.ets +++ b/ets2panda/test/ast/compiler/ets/missing_CTE_access_protected.ets @@ -26,5 +26,6 @@ function main(): void { A.val = 1 } -/* @@? 25:23 Error TypeError: Signature val(): Double is not visible here. */ -/* @@? 26:7 Error TypeError: Signature val(i: Double): void is not visible here. */ + +/* @@? 25:23 Error Semantic error ESE0139: Signature val(): Double is not visible here. */ +/* @@? 26:7 Error Semantic error ESE0139: Signature val(i: Double): void is not visible here. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/mostSpecificMethod1.ets b/ets2panda/test/ast/compiler/ets/mostSpecificMethod1.ets index 8668545833..6bfb9e1c2f 100644 --- a/ets2panda/test/ast/compiler/ets/mostSpecificMethod1.ets +++ b/ets2panda/test/ast/compiler/ets/mostSpecificMethod1.ets @@ -24,4 +24,5 @@ function main() : void { /* @@ label */foo(a, a); } -/* @@@ label Error TypeError: Reference to foo is ambiguous */ + +/* @@@ label Error Semantic error ESE0126: Reference to foo is ambiguous */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/mostSpecificMethod2.ets b/ets2panda/test/ast/compiler/ets/mostSpecificMethod2.ets index 4ff78ff8d2..2f3049c3a0 100644 --- a/ets2panda/test/ast/compiler/ets/mostSpecificMethod2.ets +++ b/ets2panda/test/ast/compiler/ets/mostSpecificMethod2.ets @@ -30,4 +30,5 @@ function main() : void { /* @@ label */obj.Foo(a, a); } -/* @@@ label Error TypeError: Reference to Foo is ambiguous */ + +/* @@@ label Error Semantic error ESE0126: Reference to Foo is ambiguous */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/most_specific_method_with_empty_rest_param.ets b/ets2panda/test/ast/compiler/ets/most_specific_method_with_empty_rest_param.ets index 28f72a3b38..3d213b858e 100644 --- a/ets2panda/test/ast/compiler/ets/most_specific_method_with_empty_rest_param.ets +++ b/ets2panda/test/ast/compiler/ets/most_specific_method_with_empty_rest_param.ets @@ -27,4 +27,5 @@ function main() { c.met() } -/* @@? 20:12 Error TypeError: Function met with this assembly signature already declared. */ + +/* @@? 20:12 Error Semantic error ESE0131: Function met with this assembly signature already declared. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/multiple_inheritance_neg.ets b/ets2panda/test/ast/compiler/ets/multiple_inheritance_neg.ets index fae775ab98..dfe67966cb 100644 --- a/ets2panda/test/ast/compiler/ets/multiple_inheritance_neg.ets +++ b/ets2panda/test/ast/compiler/ets/multiple_inheritance_neg.ets @@ -25,5 +25,6 @@ class B extends A{ } -/* @@? 23:17 Error TypeError: Cannot inherit from class A, because field callback is inherited with a different declaration type */ + +/* @@? 23:17 Error Semantic error ESE0216: Cannot inherit from class A, because field callback is inherited with a different declaration type */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/multiple_inheritance_neg_2.ets b/ets2panda/test/ast/compiler/ets/multiple_inheritance_neg_2.ets index f8eb76600c..32c1489f62 100644 --- a/ets2panda/test/ast/compiler/ets/multiple_inheritance_neg_2.ets +++ b/ets2panda/test/ast/compiler/ets/multiple_inheritance_neg_2.ets @@ -24,5 +24,6 @@ class B extends A{ } -/* @@? 20:17 Error TypeError: Cannot inherit from class A, because method foo is inherited with a different declaration type */ + +/* @@? 20:17 Error Semantic error ESE0216: Cannot inherit from class A, because method foo is inherited with a different declaration type */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/n_assignGenericWithNullableTypeParamToNonNullable.ets b/ets2panda/test/ast/compiler/ets/n_assignGenericWithNullableTypeParamToNonNullable.ets index 7650215aa6..135c21e703 100644 --- a/ets2panda/test/ast/compiler/ets/n_assignGenericWithNullableTypeParamToNonNullable.ets +++ b/ets2panda/test/ast/compiler/ets/n_assignGenericWithNullableTypeParamToNonNullable.ets @@ -21,5 +21,6 @@ function main(): void { let ab : A = /* @@ label1 */abn; // should not work: nullable B (the type of abn) is not the subtype of non nullable B } -/* @@@ label Error TypeError: Type 'A' cannot be assigned to type 'A' */ -/* @@@ label1 Error TypeError: Type 'A' cannot be assigned to type 'A' */ + +/* @@@ label Error Semantic error ESE0318: Type 'A' cannot be assigned to type 'A' */ +/* @@@ label1 Error Semantic error ESE0318: Type 'A' cannot be assigned to type 'A' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/nagative_trailingLambda_abort.ets b/ets2panda/test/ast/compiler/ets/nagative_trailingLambda_abort.ets index 0d6b629fdc..f65c8d9e0d 100644 --- a/ets2panda/test/ast/compiler/ets/nagative_trailingLambda_abort.ets +++ b/ets2panda/test/ast/compiler/ets/nagative_trailingLambda_abort.ets @@ -26,11 +26,12 @@ idx++; 222222??222.27?22dXX2222 -/* @@? 16:1 Error SyntaxError: Unexpected token '*'. */ -/* @@? 16:2 Error SyntaxError: Unexpected token '22'. */ -/* @@? 16:4 Error SyntaxError: Unexpected token 'Array'. */ -/* @@? 16:4 Error TypeError: No matching call signature with trailing lambda */ -/* @@? 20:74 Error SyntaxError: Expected '}', got 'identification literal'. */ -/* @@? 27:5 Error TypeError: Wrong type of operands for binary expression */ -/* @@? 27:22 Error SyntaxError: Unexpected token. */ -/* @@? 37:1 Error SyntaxError: Expected '}', got 'end of stream'. */ + +/* @@? 16:1 Error Syntax error ESY0227: Unexpected token '*'. */ +/* @@? 16:2 Error Syntax error ESY0227: Unexpected token '22'. */ +/* @@? 16:4 Error Syntax error ESY0227: Unexpected token 'Array'. */ +/* @@? 16:4 Error Semantic error ESE0140: No matching call signature with trailing lambda */ +/* @@? 20:74 Error Syntax error ESY0230: Expected '}', got 'identification literal'. */ +/* @@? 27:5 Error Semantic error ESE0346: Wrong type of operands for binary expression */ +/* @@? 27:22 Error Syntax error ESY0016: Unexpected token. */ +/* @@? 37:79 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/namespace_class_decl.ets b/ets2panda/test/ast/compiler/ets/namespace_class_decl.ets index 2cc3edecb5..5735a03aad 100644 --- a/ets2panda/test/ast/compiler/ets/namespace_class_decl.ets +++ b/ets2panda/test/ast/compiler/ets/namespace_class_decl.ets @@ -60,15 +60,16 @@ function retC() { let d = new testing2.ArrayLike(); } -/* @@? 26:13 Error SyntaxError: Unexpected token 'this'. */ -/* @@? 26:17 Error SyntaxError: Unexpected token '.'. */ -/* @@? 26:25 Error SyntaxError: Field type annotation expected. */ -/* @@? 26:25 Error SyntaxError: Unexpected token '.'. */ -/* @@? 26:37 Error SyntaxError: Field type annotation expected. */ -/* @@? 26:37 Error SyntaxError: Unexpected token '--'. */ -/* @@? 36:29 Error TypeError: Indexed signatures are not allowed. Use arrays instead! */ -/* @@? 37:37 Error TypeError: Indexed signatures are not allowed. Use arrays instead! */ -/* @@? 38:35 Error TypeError: Indexed signatures are not allowed. Use arrays instead! */ -/* @@? 39:33 Error TypeError: Indexed signatures are not allowed. Use arrays instead! */ -/* @@? 45:34 Error TypeError: Type 'Array' cannot be assigned to type 'ConcatArray' */ -/* @@? 46:32 Error TypeError: Type 'Array' cannot be assigned to type 'ArrayLike' */ + +/* @@? 26:13 Error Syntax error ESY0227: Unexpected token 'this'. */ +/* @@? 26:17 Error Syntax error ESY0227: Unexpected token '.'. */ +/* @@? 26:25 Error Syntax error ESY0121: Field type annotation expected. */ +/* @@? 26:25 Error Syntax error ESY0227: Unexpected token '.'. */ +/* @@? 26:37 Error Syntax error ESY0121: Field type annotation expected. */ +/* @@? 26:37 Error Syntax error ESY0227: Unexpected token '--'. */ +/* @@? 36:29 Error Semantic error ESE0343: Indexed signatures are not allowed. Use arrays instead! */ +/* @@? 37:37 Error Semantic error ESE0343: Indexed signatures are not allowed. Use arrays instead! */ +/* @@? 38:35 Error Semantic error ESE0343: Indexed signatures are not allowed. Use arrays instead! */ +/* @@? 39:33 Error Semantic error ESE0343: Indexed signatures are not allowed. Use arrays instead! */ +/* @@? 45:34 Error Semantic error ESE0318: Type 'Array' cannot be assigned to type 'ConcatArray' */ +/* @@? 46:32 Error Semantic error ESE0318: Type 'Array' cannot be assigned to type 'ArrayLike' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/namespace_export_invalid01.ets b/ets2panda/test/ast/compiler/ets/namespace_export_invalid01.ets index 5b5f4986f7..f5d734fdae 100644 --- a/ets2panda/test/ast/compiler/ets/namespace_export_invalid01.ets +++ b/ets2panda/test/ast/compiler/ets/namespace_export_invalid01.ets @@ -20,6 +20,7 @@ namespace NS { NS.baz(); -/* @@? 17:12 Error SyntaxError: Export declarations are not permitted in a namespace. */ -/* @@? 17:14 Error SyntaxError: Cannot find name 'baz' to export. */ -/* @@? 20:4 Error TypeError: Property 'baz' does not exist on type 'NS' */ + +/* @@? 17:12 Error Syntax error ESY0111: Export declarations are not permitted in a namespace. */ +/* @@? 17:14 Error Syntax error ESY0279: Cannot find name 'baz' to export. */ +/* @@? 20:4 Error Semantic error ESE0087: Property 'baz' does not exist on type 'NS' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/namespace_export_invalid02.ets b/ets2panda/test/ast/compiler/ets/namespace_export_invalid02.ets index 3d09af97b6..57842ea660 100644 --- a/ets2panda/test/ast/compiler/ets/namespace_export_invalid02.ets +++ b/ets2panda/test/ast/compiler/ets/namespace_export_invalid02.ets @@ -20,4 +20,4 @@ namespace X { } -/* @@? 19:12 Error SyntaxError: Export declarations are not permitted in a namespace. */ \ No newline at end of file +/* @@? 19:12 Error Syntax error ESY0111: Export declarations are not permitted in a namespace. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/namespace_modifiers.ets b/ets2panda/test/ast/compiler/ets/namespace_modifiers.ets index d019c77f6e..4b9729ea89 100644 --- a/ets2panda/test/ast/compiler/ets/namespace_modifiers.ets +++ b/ets2panda/test/ast/compiler/ets/namespace_modifiers.ets @@ -41,9 +41,10 @@ namespace M { } } -/* @@? 18:18 Error SyntaxError: Unexpected token 'const'. */ -/* @@? 23:14 Error SyntaxError: Unexpected token 'const'. */ -/* @@? 27:5 Error TypeError: Unresolved reference readonly */ -/* @@? 27:14 Error SyntaxError: Unexpected token 'R'. */ -/* @@? 27:14 Error TypeError: Unresolved reference R */ -/* @@? 27:16 Error SyntaxError: 'readonly' type modifier is only permitted on resizable array and tuple types. */ + +/* @@? 18:18 Error Syntax error ESY0227: Unexpected token 'const'. */ +/* @@? 23:14 Error Syntax error ESY0227: Unexpected token 'const'. */ +/* @@? 27:5 Error Semantic error ESE0143: Unresolved reference readonly */ +/* @@? 27:14 Error Syntax error ESY0227: Unexpected token 'R'. */ +/* @@? 27:14 Error Semantic error ESE0143: Unresolved reference R */ +/* @@? 27:16 Error Syntax error ESY0141: 'readonly' type modifier is only permitted on resizable array and tuple types. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/namespace_static_block_init_neg.ets b/ets2panda/test/ast/compiler/ets/namespace_static_block_init_neg.ets index 282ee1ede5..a188d11183 100644 --- a/ets2panda/test/ast/compiler/ets/namespace_static_block_init_neg.ets +++ b/ets2panda/test/ast/compiler/ets/namespace_static_block_init_neg.ets @@ -20,4 +20,5 @@ namespace NS { } } -/* @@@ label Error TypeError: Property 'ss' is used before being assigned. */ + +/* @@@ label Error Semantic error ESE0375: Property 'ss' is used before being assigned. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_access_violation.ets b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_access_violation.ets index b94f23b401..424517bae9 100644 --- a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_access_violation.ets +++ b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_access_violation.ets @@ -56,12 +56,12 @@ let a = new Array() // CTE MySpace.C.a // CTE -/* @@? 55:27 Error TypeError: 'C' is not exported in 'MySpace' */ -/* @@? 44:13 Error TypeError: 'innerClass' is not exported in 'MySpace' */ -/* @@? 49:9 Error TypeError: 'privateVariable' is not exported in 'MySpace' */ -/* @@? 51:9 Error TypeError: 'foo' is not exported in 'MySpace' */ -/* @@? 53:13 Error TypeError: 'C' is not exported in 'MySpace' */ -/* @@? 57:9 Error TypeError: 'C' is not exported in 'MySpace' */ -/* @@? 42:28 Error TypeError: 'myInterface' is not exported in 'MySpace' */ -/* @@? 46:10 Error TypeError: 'Anno' is not exported in 'MySpace' */ -/* @@? 46:23 Error TypeError: 'Color' is not exported in 'MySpace' */ \ No newline at end of file +/* @@? 42:28 Error Semantic error ESE0206: 'myInterface' is not exported in 'MySpace' */ +/* @@? 44:13 Error Semantic error ESE0206: 'innerClass' is not exported in 'MySpace' */ +/* @@? 46:10 Error Semantic error ESE0206: 'Anno' is not exported in 'MySpace' */ +/* @@? 46:23 Error Semantic error ESE0206: 'Color' is not exported in 'MySpace' */ +/* @@? 49:9 Error Semantic error ESE0206: 'privateVariable' is not exported in 'MySpace' */ +/* @@? 51:9 Error Semantic error ESE0206: 'foo' is not exported in 'MySpace' */ +/* @@? 53:13 Error Semantic error ESE0206: 'C' is not exported in 'MySpace' */ +/* @@? 55:27 Error Semantic error ESE0206: 'C' is not exported in 'MySpace' */ +/* @@? 57:9 Error Semantic error ESE0206: 'C' is not exported in 'MySpace' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_access_violation_circular_dependencies.ets b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_access_violation_circular_dependencies.ets index 854d49684b..5fef65c985 100644 --- a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_access_violation_circular_dependencies.ets +++ b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_access_violation_circular_dependencies.ets @@ -22,4 +22,4 @@ namespace NS2 { export let constant = NS1.value; // Error: Circular dependency } -/* @@? 18:16 Error TypeError: Circular dependency detected for identifier: value */ \ No newline at end of file +/* @@? 18:16 Error Semantic error ESE0308: Circular dependency detected for identifier: value */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_access_violation_conflicts.ets b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_access_violation_conflicts.ets index 04395a8577..ad0f678a04 100644 --- a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_access_violation_conflicts.ets +++ b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_access_violation_conflicts.ets @@ -21,5 +21,6 @@ namespace ConflictedSpace { } } -/* @@? 19:22 Error TypeError: Variable 'InnerSpace' has already been declared. */ -/* @@? 19:22 Error TypeError: Merging declarations is not supported, please keep all definitions of classes, interfaces and enums compact in the codebase! */ + +/* @@? 19:22 Error Semantic error ESE0351: Variable 'InnerSpace' has already been declared. */ +/* @@? 19:22 Error Semantic error ESE0370: Merging declarations is not supported, please keep all definitions of classes, interfaces and enums compact in the codebase! */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_access_violation_exports.ets b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_access_violation_exports.ets index e590afd056..6304ca4020 100644 --- a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_access_violation_exports.ets +++ b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_access_violation_exports.ets @@ -20,4 +20,4 @@ namespace DuplicateSpace { } -/* @@? 19:16 Error TypeError: Variable 'shared' has already been declared. */ \ No newline at end of file +/* @@? 19:16 Error Semantic error ESE0351: Variable 'shared' has already been declared. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_access_violation_import_conflicts.ets b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_access_violation_import_conflicts.ets index 0b828cc131..3943c96de1 100644 --- a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_access_violation_import_conflicts.ets +++ b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_access_violation_import_conflicts.ets @@ -23,7 +23,8 @@ if (Space1.variable == Space1.constant) { // CTE Space1.foo(); // CTE Space1.foo(1234); //ok -/* @@? 19:31 Error TypeError: Property 'constant' does not exist on type 'Space2' */ -/* @@? 20:23 Error TypeError: Type 'Int' cannot be assigned to type 'String' */ -/* @@? 23:1 Error TypeError: Expected 1 arguments, got 0. */ -/* @@? 23:1 Error TypeError: No matching call signature */ + +/* @@? 19:31 Error Semantic error ESE0087: Property 'constant' does not exist on type 'Space2' */ +/* @@? 20:23 Error Semantic error ESE0318: Type 'Int' cannot be assigned to type 'String' */ +/* @@? 23:1 Error Semantic error ESE0124: Expected 1 arguments, got 0. */ +/* @@? 23:1 Error Semantic error ESE0128: No matching call signature */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_access_violation_merge_conflicts.ets b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_access_violation_merge_conflicts.ets index 6ad2245981..cba434b136 100644 --- a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_access_violation_merge_conflicts.ets +++ b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_access_violation_merge_conflicts.ets @@ -18,4 +18,5 @@ export namespace MergeSpace { export function foo() { return 42; } // Error: Conflicting 'foo()' definitions } -/* @@? src01.ets:19:11 Error TypeError: Function foo is already declared. */ + +/* @@? src01.ets:19:11 Error Semantic error ESE0130: Function foo is already declared. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_access_violation_nested_scopes.ets b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_access_violation_nested_scopes.ets index d0b7b04d91..e7457efffb 100644 --- a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_access_violation_nested_scopes.ets +++ b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_access_violation_nested_scopes.ets @@ -50,14 +50,14 @@ class C{} OuterSpace.InnerSpace.privateVariable = 456; // CTE -/* @@? 45:16 Error TypeError: 'InnerSpace' is not exported in 'OuterSpace' */ -/* @@? 45:27 Error TypeError: 'innerClass' is not exported in 'InnerSpace' */ -/* @@? 40:27 Error TypeError: 'privateVariable' is not exported in 'InnerSpace' */ -/* @@? 50:12 Error TypeError: 'InnerSpace' is not exported in 'OuterSpace' */ -/* @@? 50:23 Error TypeError: 'privateVariable' is not exported in 'InnerSpace' */ -/* @@? 43:31 Error TypeError: 'InnerSpace' is not exported in 'OuterSpace' */ -/* @@? 43:42 Error TypeError: 'myInterface' is not exported in 'InnerSpace' */ -/* @@? 47:13 Error TypeError: 'InnerSpace' is not exported in 'OuterSpace' */ -/* @@? 47:24 Error TypeError: 'Anno' is not exported in 'InnerSpace' */ -/* @@? 47:40 Error TypeError: 'InnerSpace' is not exported in 'OuterSpace' */ -/* @@? 47:51 Error TypeError: 'Color' is not exported in 'InnerSpace' */ \ No newline at end of file +/* @@? 40:27 Error Semantic error ESE0206: 'privateVariable' is not exported in 'InnerSpace' */ +/* @@? 43:31 Error Semantic error ESE0206: 'InnerSpace' is not exported in 'OuterSpace' */ +/* @@? 43:42 Error Semantic error ESE0206: 'myInterface' is not exported in 'InnerSpace' */ +/* @@? 45:16 Error Semantic error ESE0206: 'InnerSpace' is not exported in 'OuterSpace' */ +/* @@? 45:27 Error Semantic error ESE0206: 'innerClass' is not exported in 'InnerSpace' */ +/* @@? 47:13 Error Semantic error ESE0206: 'InnerSpace' is not exported in 'OuterSpace' */ +/* @@? 47:24 Error Semantic error ESE0206: 'Anno' is not exported in 'InnerSpace' */ +/* @@? 47:40 Error Semantic error ESE0206: 'InnerSpace' is not exported in 'OuterSpace' */ +/* @@? 47:51 Error Semantic error ESE0206: 'Color' is not exported in 'InnerSpace' */ +/* @@? 50:12 Error Semantic error ESE0206: 'InnerSpace' is not exported in 'OuterSpace' */ +/* @@? 50:23 Error Semantic error ESE0206: 'privateVariable' is not exported in 'InnerSpace' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_access_violation_non_exported_merge.ets b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_access_violation_non_exported_merge.ets index 3f5830f942..e07a2be7d0 100644 --- a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_access_violation_non_exported_merge.ets +++ b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_access_violation_non_exported_merge.ets @@ -26,4 +26,4 @@ namespace A.B { A.B.bar(); // Error: 'bar()' cannot be accessed -/* @@? 27:5 Error TypeError: 'bar' is not exported in 'B' */ \ No newline at end of file +/* @@? 27:5 Error Semantic error ESE0206: 'bar' is not exported in 'B' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_access_violation_scope_resolution.ets b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_access_violation_scope_resolution.ets index 59f35f113c..c7df581f7d 100644 --- a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_access_violation_scope_resolution.ets +++ b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_access_violation_scope_resolution.ets @@ -22,4 +22,5 @@ namespace A.B { A.foo(); // Error: 'A' does not contain a member named 'foo' -/* @@? 22:3 Error TypeError: Property 'foo' does not exist on type 'A' */ + +/* @@? 22:3 Error Semantic error ESE0087: Property 'foo' does not exist on type 'A' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_access_violation_undefined_scopes.ets b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_access_violation_undefined_scopes.ets index a30b66e6de..9c856c922e 100644 --- a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_access_violation_undefined_scopes.ets +++ b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_access_violation_undefined_scopes.ets @@ -21,4 +21,5 @@ namespace ParentSpace { let result = ParentSpace.ChildSpace.value; // Error: 'ChildSpace' is not defined -/* @@? 22:26 Error TypeError: Property 'ChildSpace' does not exist on type 'ParentSpace' */ + +/* @@? 22:26 Error Semantic error ESE0087: Property 'ChildSpace' does not exist on type 'ParentSpace' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type01.ets b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type01.ets index bdda956488..9a2745e3e5 100644 --- a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type01.ets +++ b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type01.ets @@ -18,4 +18,5 @@ namespace MySpace { let a = new MySpace() -/* @@? 19:13 Error TypeError: Namespace 'MySpace' cannot be used as a type. */ + +/* @@? 19:13 Error Semantic error ESE0158: Namespace 'MySpace' cannot be used as a type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type02.ets b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type02.ets index 84ddce2b34..052ef63719 100644 --- a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type02.ets +++ b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type02.ets @@ -20,8 +20,8 @@ class A extends MySpace{} class B implements MySpace{} type C = MySpace -/* @@? 19:17 Error TypeError: Namespace 'MySpace' cannot be used as a type. */ -/* @@? 19:17 Error TypeError: The super type of 'A' class is not extensible. */ -/* @@? 20:20 Error TypeError: Namespace 'MySpace' cannot be used as a type. */ -/* @@? 20:20 Error TypeError: Interface expected here. */ -/* @@? 21:10 Error TypeError: Namespace 'MySpace' cannot be used as a type. */ \ No newline at end of file + /* @@? 19:17 Error Semantic error ESE0158: Namespace 'MySpace' cannot be used as a type. */ +/* @@? 19:17 Error Semantic error ESE0176: The super type of 'A' class is not extensible. */ +/* @@? 20:20 Error Semantic error ESE0158: Namespace 'MySpace' cannot be used as a type. */ +/* @@? 20:20 Error Semantic error ESE0179: Interface expected here. */ +/* @@? 21:10 Error Semantic error ESE0158: Namespace 'MySpace' cannot be used as a type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type03.ets b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type03.ets index 2839a3f207..bec5ac0897 100644 --- a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type03.ets +++ b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type03.ets @@ -20,5 +20,6 @@ function foo(a:T){} let array:Array = new Array() -/* @@? 21:17 Error TypeError: Namespace 'MySpace' cannot be used as a type. */ -/* @@? 21:38 Error TypeError: Namespace 'MySpace' cannot be used as a type. */ + +/* @@? 21:17 Error Semantic error ESE0158: Namespace 'MySpace' cannot be used as a type. */ +/* @@? 21:38 Error Semantic error ESE0158: Namespace 'MySpace' cannot be used as a type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type04.ets b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type04.ets index ca16bb7470..8f0af22104 100644 --- a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type04.ets +++ b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type04.ets @@ -20,5 +20,6 @@ function foo(a:T){} foo(new MySpace()) -/* @@? 21:5 Error TypeError: Namespace 'MySpace' cannot be used as a type. */ -/* @@? 21:18 Error TypeError: Namespace 'MySpace' cannot be used as a type. */ + +/* @@? 21:5 Error Semantic error ESE0158: Namespace 'MySpace' cannot be used as a type. */ +/* @@? 21:18 Error Semantic error ESE0158: Namespace 'MySpace' cannot be used as a type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type05.ets b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type05.ets index 1be4203664..5f4efa7147 100644 --- a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type05.ets +++ b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type05.ets @@ -22,4 +22,5 @@ class A{ new A() -/* @@? 23:7 Error TypeError: Namespace 'MySpace' cannot be used as a type. */ + +/* @@? 23:7 Error Semantic error ESE0158: Namespace 'MySpace' cannot be used as a type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type06.ets b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type06.ets index 291ec97cf1..07b6066355 100644 --- a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type06.ets +++ b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type06.ets @@ -21,6 +21,7 @@ function foo2(): MySpace {} foo1(new MySpace()) -/* @@? 20:18 Error TypeError: Namespace 'MySpace' cannot be used as a type. */ -/* @@? 19:17 Error TypeError: Namespace 'MySpace' cannot be used as a type. */ -/* @@? 22:10 Error TypeError: Namespace 'MySpace' cannot be used as a type. */ + +/* @@? 19:17 Error Semantic error ESE0158: Namespace 'MySpace' cannot be used as a type. */ +/* @@? 20:18 Error Semantic error ESE0158: Namespace 'MySpace' cannot be used as a type. */ +/* @@? 22:10 Error Semantic error ESE0158: Namespace 'MySpace' cannot be used as a type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type07.ets b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type07.ets index a3d4f85994..ae6ac59a35 100644 --- a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type07.ets +++ b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type07.ets @@ -23,7 +23,7 @@ class A{ let tuple:[int, string, MySpace] = [1, "1", new MySpace()] let union:int|string|MySpace = 1 -/* @@? 23:25 Error TypeError: Namespace 'MySpace' cannot be used as a type. */ -/* @@? 24:22 Error TypeError: Namespace 'MySpace' cannot be used as a type. */ -/* @@? 23:49 Error TypeError: Namespace 'MySpace' cannot be used as a type. */ -/* @@? 20:7 Error TypeError: Namespace 'MySpace' cannot be used as a type. */ \ No newline at end of file +/* @@? 20:7 Error Semantic error ESE0158: Namespace 'MySpace' cannot be used as a type. */ +/* @@? 23:25 Error Semantic error ESE0158: Namespace 'MySpace' cannot be used as a type. */ +/* @@? 23:49 Error Semantic error ESE0158: Namespace 'MySpace' cannot be used as a type. */ +/* @@? 24:22 Error Semantic error ESE0158: Namespace 'MySpace' cannot be used as a type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type08.ets b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type08.ets index c9b3a95bee..6c90d45750 100644 --- a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type08.ets +++ b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type08.ets @@ -19,5 +19,5 @@ namespace MySpace { let foo1:(a:MySpace)=>int let foo2:()=>MySpace -/* @@? 19:13 Error TypeError: Namespace 'MySpace' cannot be used as a type. */ -/* @@? 20:14 Error TypeError: Namespace 'MySpace' cannot be used as a type. */ \ No newline at end of file +/* @@? 19:13 Error Semantic error ESE0158: Namespace 'MySpace' cannot be used as a type. */ +/* @@? 20:14 Error Semantic error ESE0158: Namespace 'MySpace' cannot be used as a type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type09.ets b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type09.ets index 34b0e476d3..200fb21be0 100644 --- a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type09.ets +++ b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type09.ets @@ -18,4 +18,5 @@ namespace MySpace { let a = 1 as MySpace -/* @@? 19:14 Error TypeError: Namespace 'MySpace' cannot be used as a type. */ + +/* @@? 19:14 Error Semantic error ESE0158: Namespace 'MySpace' cannot be used as a type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type10.ets b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type10.ets index 89f6b4e676..da943de418 100644 --- a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type10.ets +++ b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type10.ets @@ -18,5 +18,4 @@ namespace MySpace { let a = 1 instanceof MySpace -/* @@? 19:22 Error TypeError: Namespace 'MySpace' cannot be used as a type. */ -/* @@? 19:22 Error TypeError: Namespace 'MySpace' cannot be used as a type. */ \ No newline at end of file +/* @@? 19:22 Error Semantic error ESE0158: Namespace 'MySpace' cannot be used as a type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type11.ets b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type11.ets index eb120df6c8..9d3002af87 100644 --- a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type11.ets +++ b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type11.ets @@ -18,4 +18,5 @@ namespace MySpace { let a = /* @@ label */MySpace -/* @@@ label Error SyntaxError: Namespace cannot be used as object. */ + +/* @@@ label Error Syntax error ESY0318: Namespace cannot be used as object. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type12.ets b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type12.ets index 897da0a756..6c6e67c5e6 100644 --- a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type12.ets +++ b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_as_type12.ets @@ -19,5 +19,6 @@ namespace MySpace{ function foo(a: MySpace) {} -/* @@? 20:17 Error TypeError: Namespace 'MySpace' cannot be used as a type. */ -/* @@? 17:12 Error TypeError: Namespace 'MySpace' cannot be used as a type. */ + +/* @@? 17:12 Error Semantic error ESE0158: Namespace 'MySpace' cannot be used as a type. */ +/* @@? 20:17 Error Semantic error ESE0158: Namespace 'MySpace' cannot be used as a type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_bad_merged01.ets b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_bad_merged01.ets index e2854245d4..4805e4c2bf 100644 --- a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_bad_merged01.ets +++ b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_bad_merged01.ets @@ -21,6 +21,7 @@ namespace B { namespace C {} // CTE } -/* @@? 17:1 Error SyntaxError: Unable to merge namespaces 'A', because their modifiers are different. */ -/* @@? 21:3 Error SyntaxError: Unable to merge namespaces 'C', because their modifiers are different. */ + +/* @@? 17:1 Error Syntax error ESY0006: Unable to merge namespaces 'A', because their modifiers are different. */ +/* @@? 21:3 Error Syntax error ESY0006: Unable to merge namespaces 'C', because their modifiers are different. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_bad_merged02.ets b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_bad_merged02.ets index dbb6238cad..8f8c556fc8 100644 --- a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_bad_merged02.ets +++ b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_bad_merged02.ets @@ -29,5 +29,6 @@ namespace P { namespace R {} // OK } -/* @@? 20:10 Error SyntaxError: Unable to merge namespaces 'Y', because their modifiers are different. */ + +/* @@? 20:10 Error Syntax error ESY0006: Unable to merge namespaces 'Y', because their modifiers are different. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_default_import.ets b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_default_import.ets index 6277f52621..76c049e993 100644 --- a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_default_import.ets +++ b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_default_import.ets @@ -17,4 +17,4 @@ import A from "./src03" A.foo() -/* @@? 18:3 Error TypeError: 'foo' is not exported in 'A' */ \ No newline at end of file +/* @@? 18:3 Error Semantic error ESE0206: 'foo' is not exported in 'A' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_merge_conflicts.ets b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_merge_conflicts.ets index a46528de4d..2b7fb2d120 100644 --- a/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_merge_conflicts.ets +++ b/ets2panda/test/ast/compiler/ets/namespace_tests/namespace_merge_conflicts.ets @@ -33,4 +33,4 @@ namespace A.C { function moo() { too(); } } -/* @@? 29:5 Error TypeError: Function foo is already declared. */ \ No newline at end of file +/* @@? 29:5 Error Semantic error ESE0130: Function foo is already declared. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/namespace_tests/src01.ets b/ets2panda/test/ast/compiler/ets/namespace_tests/src01.ets index 21ffae50b6..236aed163e 100644 --- a/ets2panda/test/ast/compiler/ets/namespace_tests/src01.ets +++ b/ets2panda/test/ast/compiler/ets/namespace_tests/src01.ets @@ -19,4 +19,5 @@ export namespace MergeSpace { export function foo() { return "string"; } } -/* @@? namespace_access_violation_merge_conflicts.ets:18:12 Error TypeError: Function foo is already declared. */ + +/* @@? namespace_access_violation_merge_conflicts.ets:18:12 Error Semantic error ESE0130: Function foo is already declared. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/negative_optional_constructor.ets b/ets2panda/test/ast/compiler/ets/negative_optional_constructor.ets index f38f0c8d9d..9679cc0493 100644 --- a/ets2panda/test/ast/compiler/ets/negative_optional_constructor.ets +++ b/ets2panda/test/ast/compiler/ets/negative_optional_constructor.ets @@ -16,12 +16,13 @@ class A { constructor(buffer: ArrayBuffer, byteOffset?: number, length?V number); -/* @@? 17:3 Error TypeError: No matching call signature for constructor */ -/* @@? 17:14 Error TypeError: Only abstract or native methods can't have body. */ -/* @@? 17:64 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ -/* @@? 17:64 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 17:65 Error SyntaxError: Field type annotation expected. */ -/* @@? 17:66 Error SyntaxError: number is a predefined type, cannot be used as an identifier */ -/* @@? 17:72 Error SyntaxError: Unexpected token ')'. */ -/* @@? 28:1 Error SyntaxError: Expected '}', got 'end of stream'. */ + +/* @@? 17:3 Error Semantic error ESE0204: No matching call signature for constructor */ +/* @@? 17:14 Error Semantic error ESE0017: Only abstract or native methods can't have body. */ +/* @@? 17:64 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ +/* @@? 17:64 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 17:65 Error Syntax error ESY0121: Field type annotation expected. */ +/* @@? 17:66 Error Syntax error ESY0295: number is a predefined type, cannot be used as an identifier */ +/* @@? 17:72 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 28:79 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/negative_typo_1.ets b/ets2panda/test/ast/compiler/ets/negative_typo_1.ets index a50b132cbe..991b593bf0 100644 --- a/ets2panda/test/ast/compiler/ets/negative_typo_1.ets +++ b/ets2panda/test/ast/compiler/ets/negative_typo_1.ets @@ -17,7 +17,8 @@ e: @ring[][] = [["a", (c +ue)]] } -/* @@? 17:3 Error TypeError: Invalid annotation field type. Only numeric, boolean, string, enum, or arrays of these types are permitted for annotation fields. */ -/* @@? 17:7 Error TypeError: Cannot find type 'ring'. */ -/* @@? 17:18 Error TypeError: Invalid value for annotation field, expected a constant literal. */ -/* @@? 17:19 Error TypeError: Initializer has 2 elements, but tuple requires 0 */ + +/* @@? 17:3 Error Semantic error ESE0042: Invalid annotation field type. Only numeric, boolean, string, enum, or arrays of these types are permitted for annotation fields. */ +/* @@? 17:7 Error Semantic error ESE0371: Cannot find type 'ring'. */ +/* @@? 17:18 Error Semantic error ESE0012: Invalid value for annotation field, expected a constant literal. */ +/* @@? 17:19 Error Semantic error ESE0231: Initializer has 2 elements, but tuple requires 0 */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/never_type_cast.ets b/ets2panda/test/ast/compiler/ets/never_type_cast.ets index fe13b872f6..5ebe5b0051 100644 --- a/ets2panda/test/ast/compiler/ets/never_type_cast.ets +++ b/ets2panda/test/ast/compiler/ets/never_type_cast.ets @@ -24,4 +24,5 @@ function foo() { } foo(); -/* @@? 21:17 Error TypeError: Cannot cast type 'Boolean' to 'String|Double|null' */ + +/* @@? 21:17 Error Semantic error ESE0326: Cannot cast type 'Boolean' to 'String|Double|null' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/newClassInstanceExpression.ets b/ets2panda/test/ast/compiler/ets/newClassInstanceExpression.ets index c09b2b929e..7196e4abd2 100644 --- a/ets2panda/test/ast/compiler/ets/newClassInstanceExpression.ets +++ b/ets2panda/test/ast/compiler/ets/newClassInstanceExpression.ets @@ -24,4 +24,5 @@ function main(): int { return 0; } -/* @@@ label Error TypeError: 'fun' type does not exist. */ + +/* @@@ label Error Semantic error ESE0070: 'fun' type does not exist. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/new_expr_with_succesive_multi_dot.ets b/ets2panda/test/ast/compiler/ets/new_expr_with_succesive_multi_dot.ets index dc623f5b1a..6c543e822c 100644 --- a/ets2panda/test/ast/compiler/ets/new_expr_with_succesive_multi_dot.ets +++ b/ets2panda/test/ast/compiler/ets/new_expr_with_succesive_multi_dot.ets @@ -15,10 +15,11 @@ importet lock1 = new ArkTSUt../main; -/* @@? 16:1 Error TypeError: Unresolved reference importet */ -/* @@? 16:10 Error SyntaxError: Unexpected token 'lock1'. */ -/* @@? 16:10 Error TypeError: Unresolved reference lock1 */ -/* @@? 16:18 Error TypeError: Bad operand type, the types of the operands must be numeric type. */ -/* @@? 16:30 Error SyntaxError: Identifier expected. */ -/* @@? 16:31 Error SyntaxError: Identifier expected. */ -/* @@? 16:31 Error TypeError: Invalid type reference. */ + +/* @@? 16:1 Error Semantic error ESE0143: Unresolved reference importet */ +/* @@? 16:10 Error Syntax error ESY0227: Unexpected token 'lock1'. */ +/* @@? 16:10 Error Semantic error ESE0143: Unresolved reference lock1 */ +/* @@? 16:18 Error Semantic error ESE0107: Bad operand type, the types of the operands must be numeric type. */ +/* @@? 16:30 Error Syntax error ESY0122: Identifier expected. */ +/* @@? 16:31 Error Syntax error ESY0122: Identifier expected. */ +/* @@? 16:31 Error Semantic error ESE0299: Invalid type reference. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/noInOperator.ets b/ets2panda/test/ast/compiler/ets/noInOperator.ets index 27aa68a1cc..558ae6e411 100644 --- a/ets2panda/test/ast/compiler/ets/noInOperator.ets +++ b/ets2panda/test/ast/compiler/ets/noInOperator.ets @@ -21,6 +21,7 @@ let b = "name" /* @@ label1 */in p let c = "name" /* @@ label2 */in {name: 1, some: 2} let d = 2 /* @@ label3 */in [44, 55] -/* @@@ label1 Error SyntaxError: 'in' operator is not supported. Use 'instanceof' operator to check whether an object is the instance of a class that contains the necessary class member. */ -/* @@@ label2 Error SyntaxError: 'in' operator is not supported. Use 'instanceof' operator to check whether an object is the instance of a class that contains the necessary class member. */ -/* @@@ label3 Error SyntaxError: 'in' operator is not supported. Use 'instanceof' operator to check whether an object is the instance of a class that contains the necessary class member. */ + +/* @@@ label1 Error Syntax error ESY105822: 'in' operator is not supported. Use 'instanceof' operator to check whether an object is the instance of a class that contains the necessary class member. */ +/* @@@ label2 Error Syntax error ESY105822: 'in' operator is not supported. Use 'instanceof' operator to check whether an object is the instance of a class that contains the necessary class member. */ +/* @@@ label3 Error Syntax error ESY105822: 'in' operator is not supported. Use 'instanceof' operator to check whether an object is the instance of a class that contains the necessary class member. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/noIsOperator.ets b/ets2panda/test/ast/compiler/ets/noIsOperator.ets index 01aab8be00..8a1591f733 100644 --- a/ets2panda/test/ast/compiler/ets/noIsOperator.ets +++ b/ets2panda/test/ast/compiler/ets/noIsOperator.ets @@ -17,4 +17,5 @@ function isString(test: string): test /* @@ label */is string { return typeof test === "string"; } -/* @@@ label Error SyntaxError: 'is' operator is not supported. Use 'instanceof' instead to check whether a variable is instance of a given type and use 'as' operator to cast to the appropriate type! */ + +/* @@@ label Error Syntax error ESY169587: 'is' operator is not supported. Use 'instanceof' instead to check whether a variable is instance of a given type and use 'as' operator to cast to the appropriate type! */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/no_match_sig.ets b/ets2panda/test/ast/compiler/ets/no_match_sig.ets index ac70bf305d..ba717a6888 100644 --- a/ets2panda/test/ast/compiler/ets/no_match_sig.ets +++ b/ets2panda/test/ast/compiler/ets/no_match_sig.ets @@ -31,4 +31,4 @@ function foo3(a: number, b: number, c?: number) { overload foo{ foo1, foo2, foo3 } -/* @@? 17:5 Error TypeError: No matching call signature for foo() */ \ No newline at end of file +/* @@? 17:5 Error Semantic error ESE0127: No matching call signature for foo() */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/nonNullableKeyword.ets b/ets2panda/test/ast/compiler/ets/nonNullableKeyword.ets index d58ca014b2..02242c3736 100644 --- a/ets2panda/test/ast/compiler/ets/nonNullableKeyword.ets +++ b/ets2panda/test/ast/compiler/ets/nonNullableKeyword.ets @@ -26,4 +26,5 @@ B.NonNullable(new Object()) class NonNullable{} -/* @@? 27:7 Error SyntaxError: Cannot be used as user-defined type. */ + +/* @@? 27:7 Error Syntax error ESY0145: Cannot be used as user-defined type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/nonNullishType_n_1.ets b/ets2panda/test/ast/compiler/ets/nonNullishType_n_1.ets index 409f8580b8..ce94d38b59 100644 --- a/ets2panda/test/ast/compiler/ets/nonNullishType_n_1.ets +++ b/ets2panda/test/ast/compiler/ets/nonNullishType_n_1.ets @@ -19,4 +19,5 @@ class A { } } -/* @@? 18:12 Error TypeError: Type 'T' is not compatible with the enclosing method's return type 'NonNullable' */ + +/* @@? 18:12 Error Semantic error ESE0091: Type 'T' is not compatible with the enclosing method's return type 'NonNullable' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/nonNullishType_n_2.ets b/ets2panda/test/ast/compiler/ets/nonNullishType_n_2.ets index d0f02874ff..62c1dae340 100644 --- a/ets2panda/test/ast/compiler/ets/nonNullishType_n_2.ets +++ b/ets2panda/test/ast/compiler/ets/nonNullishType_n_2.ets @@ -24,6 +24,7 @@ function main(){ a = undefined; } -/* @@? 23:7 Error TypeError: Type 'null' cannot be assigned to type 'Int|A' */ -/* @@? 24:7 Error TypeError: Type 'undefined' cannot be assigned to type 'Int|A' */ + +/* @@? 23:7 Error Semantic error ESE0318: Type 'null' cannot be assigned to type 'Int|A' */ +/* @@? 24:7 Error Semantic error ESE0318: Type 'undefined' cannot be assigned to type 'Int|A' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/nonNullishType_n_3.ets b/ets2panda/test/ast/compiler/ets/nonNullishType_n_3.ets index 2ac195de81..c646921228 100644 --- a/ets2panda/test/ast/compiler/ets/nonNullishType_n_3.ets +++ b/ets2panda/test/ast/compiler/ets/nonNullishType_n_3.ets @@ -20,6 +20,7 @@ function main(){ a = null; } -/* @@? 19:22 Error SyntaxError: Expected '<', got 'identification literal'. */ -/* @@? 19:31 Error SyntaxError: Expected '>', got ';'. */ -/* @@? 20:7 Error TypeError: Type 'null' cannot be assigned to type 'Object' */ + +/* @@? 19:22 Error Syntax error ESY0230: Expected '<', got 'identification literal'. */ +/* @@? 19:31 Error Syntax error ESY0230: Expected '>', got ';'. */ +/* @@? 20:7 Error Semantic error ESE0318: Type 'null' cannot be assigned to type 'Object' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/nonNullish_expr_is_null.ets b/ets2panda/test/ast/compiler/ets/nonNullish_expr_is_null.ets index e11875089d..6f37a56af4 100644 --- a/ets2panda/test/ast/compiler/ets/nonNullish_expr_is_null.ets +++ b/ets2panda/test/ast/compiler/ets/nonNullish_expr_is_null.ets @@ -41,5 +41,5 @@ function test() { test() -/* @@? 23:19 Warning Warning: Bad operand type, the operand of the non-nullish expression is 'null' or 'undefined'. */ -/* @@? 23:20 Warning Warning: Bad operand type, the operand of the non-nullish expression is 'null' or 'undefined'. */ \ No newline at end of file +/* @@? 23:19 Warning Warning W0014: Bad operand type, the operand of the non-nullish expression is 'null' or 'undefined'. */ +/* @@? 23:20 Warning Warning W0014: Bad operand type, the operand of the non-nullish expression is 'null' or 'undefined'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/not_all_paths_return_value.ets b/ets2panda/test/ast/compiler/ets/not_all_paths_return_value.ets index bb0b7a74cb..7af119833e 100644 --- a/ets2panda/test/ast/compiler/ets/not_all_paths_return_value.ets +++ b/ets2panda/test/ast/compiler/ets/not_all_paths_return_value.ets @@ -41,5 +41,6 @@ async function test3(isError: boolean): Promise { //ok } -/* @@? 16:16 Error TypeError: Not all code paths return a value. */ -/* @@? 23:16 Error TypeError: Not all code paths return a value. */ + +/* @@? 16:16 Error Semantic error ESE0104: Not all code paths return a value. */ +/* @@? 23:16 Error Semantic error ESE0104: Not all code paths return a value. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/not_initialized_variable/complex_types.ets b/ets2panda/test/ast/compiler/ets/not_initialized_variable/complex_types.ets index 793e440b54..45bb6f0c51 100644 --- a/ets2panda/test/ast/compiler/ets/not_initialized_variable/complex_types.ets +++ b/ets2panda/test/ast/compiler/ets/not_initialized_variable/complex_types.ets @@ -35,8 +35,9 @@ export let plug: Plug console.log(car, animal, mutant, jsvalue, plug) -/* @@? 36:13 Error TypeError: Variable 'car' is used before being assigned. */ -/* @@? 36:18 Error TypeError: Variable 'animal' is used before being assigned. */ -/* @@? 36:26 Error TypeError: Variable 'mutant' is used before being assigned. */ -/* @@? 36:34 Error TypeError: Variable 'jsvalue' is used before being assigned. */ -/* @@? 36:43 Error TypeError: Variable 'plug' is used before being assigned. */ + +/* @@? 36:13 Error Semantic error ESE0375: Variable 'car' is used before being assigned. */ +/* @@? 36:18 Error Semantic error ESE0375: Variable 'animal' is used before being assigned. */ +/* @@? 36:26 Error Semantic error ESE0375: Variable 'mutant' is used before being assigned. */ +/* @@? 36:34 Error Semantic error ESE0375: Variable 'jsvalue' is used before being assigned. */ +/* @@? 36:43 Error Semantic error ESE0375: Variable 'plug' is used before being assigned. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/not_initialized_variable/primitive_types.ets b/ets2panda/test/ast/compiler/ets/not_initialized_variable/primitive_types.ets index 41b5889e00..cfa0c41f2a 100644 --- a/ets2panda/test/ast/compiler/ets/not_initialized_variable/primitive_types.ets +++ b/ets2panda/test/ast/compiler/ets/not_initialized_variable/primitive_types.ets @@ -19,4 +19,5 @@ let c: number console.log(a, b, c) -/* @@? 20:16 Error TypeError: Variable 'b' is used before being assigned. */ + +/* @@? 20:16 Error Semantic error ESE0375: Variable 'b' is used before being assigned. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/null_coalescing_generic_1_neg.ets b/ets2panda/test/ast/compiler/ets/null_coalescing_generic_1_neg.ets index 65df01f730..7ab63179da 100644 --- a/ets2panda/test/ast/compiler/ets/null_coalescing_generic_1_neg.ets +++ b/ets2panda/test/ast/compiler/ets/null_coalescing_generic_1_neg.ets @@ -18,4 +18,5 @@ function fos(a0: T): T { return /* @@ label */a0 ?? myval; } -/* @@@ label Error TypeError: Type 'T|Short' is not compatible with the enclosing method's return type 'T' */ + +/* @@@ label Error Semantic error ESE0091: Type 'T|Short' is not compatible with the enclosing method's return type 'T' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/null_coalescing_neg_01.ets b/ets2panda/test/ast/compiler/ets/null_coalescing_neg_01.ets index 095090df6f..c155924718 100644 --- a/ets2panda/test/ast/compiler/ets/null_coalescing_neg_01.ets +++ b/ets2panda/test/ast/compiler/ets/null_coalescing_neg_01.ets @@ -44,9 +44,10 @@ function foo6(z: float|undefined) { } -/* @@@ label1 Error TypeError: Value is out of range */ -/* @@@ label2 Error TypeError: Value is out of range */ -/* @@@ label3 Error TypeError: Value is out of range */ -/* @@@ label4 Error TypeError: Type 'Double' cannot be assigned to type 'Int' */ -/* @@@ label5 Error TypeError: Type 'Float' cannot be assigned to type 'Long' */ -/* @@@ label6 Error TypeError: Type 'Double' cannot be assigned to type 'Float' */ + +/* @@@ label1 Error Semantic error ESE0345: Value is out of range */ +/* @@@ label2 Error Semantic error ESE0345: Value is out of range */ +/* @@@ label3 Error Semantic error ESE0345: Value is out of range */ +/* @@@ label4 Error Semantic error ESE0318: Type 'Double' cannot be assigned to type 'Int' */ +/* @@@ label5 Error Semantic error ESE0318: Type 'Float' cannot be assigned to type 'Long' */ +/* @@@ label6 Error Semantic error ESE0318: Type 'Double' cannot be assigned to type 'Float' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/null_pointer_error.ets b/ets2panda/test/ast/compiler/ets/null_pointer_error.ets index 4297f3c7fe..ca379da612 100644 --- a/ets2panda/test/ast/compiler/ets/null_pointer_error.ets +++ b/ets2panda/test/ast/compiler/ets/null_pointer_error.ets @@ -21,8 +21,9 @@ export class AbstractDaoSession{ } } -/* @@? 1:3 Error TypeError: Cannot find type 'dataRdb'. */ -/* @@? 1:3 Error TypeError: 'ValueType' type does not exist. */ -/* @@? 17:62 Error SyntaxError: Rest parameter should be either array or tuple type. */ -/* @@? 19:17 Error TypeError: Cannot find type 'AbstractDao'. */ -/* @@? 20:16 Error TypeError: Type '*ERROR_TYPE*' can not be awaited, it is not a Promise. */ + +/* @@? 1:3 Error Semantic error ESE0371: Cannot find type 'dataRdb'. */ +/* @@? 1:3 Error Semantic error ESE0070: 'ValueType' type does not exist. */ +/* @@? 17:62 Error Syntax error ESY0193: Rest parameter should be either array or tuple type. */ +/* @@? 19:17 Error Semantic error ESE0371: Cannot find type 'AbstractDao'. */ +/* @@? 20:16 Error Semantic error ESE0303: Type '*ERROR_TYPE*' can not be awaited, it is not a Promise. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/null_pointer_error1.ets b/ets2panda/test/ast/compiler/ets/null_pointer_error1.ets index 6d70096136..1eb271a21b 100644 --- a/ets2panda/test/ast/compiler/ets/null_pointer_error1.ets +++ b/ets2panda/test/ast/compiler/ets/null_pointer_error1.ets @@ -23,4 +23,5 @@ function mustCallArgSize() { }); } -/* @@? 19:5 Error TypeError: No matching call signature for push(() => void) */ + +/* @@? 19:5 Error Semantic error ESE0127: No matching call signature for push(() => void) */ \ No newline at end of file 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..71f0aeac11 100644 --- a/ets2panda/test/ast/compiler/ets/nullable_type_in_arithmeticmult_func.ets +++ b/ets2panda/test/ast/compiler/ets/nullable_type_in_arithmeticmult_func.ets @@ -21,4 +21,5 @@ function main() { let result = foo(null, null); } -/* @@@ label Error TypeError: Bad operand type: multiple types left in the normalized union type (Int|null). Unions are not allowed in binary expressions except equality. */ + +/* @@@ label Error Semantic error ESE0106: Bad operand type: multiple types left in the normalized union type (Int|null). Unions are not allowed in binary expressions except equality. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/nullable_type_in_arithmeticmult_func_w_undefined.ets b/ets2panda/test/ast/compiler/ets/nullable_type_in_arithmeticmult_func_w_undefined.ets index 36888a9df3..89cb2016c1 100644 --- a/ets2panda/test/ast/compiler/ets/nullable_type_in_arithmeticmult_func_w_undefined.ets +++ b/ets2panda/test/ast/compiler/ets/nullable_type_in_arithmeticmult_func_w_undefined.ets @@ -21,4 +21,5 @@ function main() { let result = foo(undefined, undefined); } -/* @@@ label Error TypeError: Bad operand type: multiple types left in the normalized union type (Int|undefined). Unions are not allowed in binary expressions except equality. */ + +/* @@@ label Error Semantic error ESE0106: Bad operand type: multiple types left in the normalized union type (Int|undefined). Unions are not allowed in binary expressions except equality. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/nullable_type_in_arithmeticplus_func.ets b/ets2panda/test/ast/compiler/ets/nullable_type_in_arithmeticplus_func.ets index 7a6a190621..ea6426a05f 100644 --- a/ets2panda/test/ast/compiler/ets/nullable_type_in_arithmeticplus_func.ets +++ b/ets2panda/test/ast/compiler/ets/nullable_type_in_arithmeticplus_func.ets @@ -21,4 +21,5 @@ function main() { let result = foo(null, null); } -/* @@@ label Error TypeError: Bad operand type: multiple types left in the normalized union type (Int|null). Unions are not allowed in binary expressions except equality. */ + +/* @@@ label Error Semantic error ESE0106: Bad operand type: multiple types left in the normalized union type (Int|null). Unions are not allowed in binary expressions except equality. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/nullable_type_in_arithmeticplus_w_undefined.ets b/ets2panda/test/ast/compiler/ets/nullable_type_in_arithmeticplus_w_undefined.ets index cd52b90aae..96e006576b 100644 --- a/ets2panda/test/ast/compiler/ets/nullable_type_in_arithmeticplus_w_undefined.ets +++ b/ets2panda/test/ast/compiler/ets/nullable_type_in_arithmeticplus_w_undefined.ets @@ -19,4 +19,5 @@ let result = /* @@ label */a + b; } -/* @@@ label Error TypeError: Bad operand type, the types of the operands must be numeric type, enum or String. */ + +/* @@@ label Error Semantic error ESE0108: Bad operand type, the types of the operands must be numeric type, enum or String. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/nullable_type_in_stringconcat_func.ets b/ets2panda/test/ast/compiler/ets/nullable_type_in_stringconcat_func.ets index c06bf74674..f21bd8893e 100644 --- a/ets2panda/test/ast/compiler/ets/nullable_type_in_stringconcat_func.ets +++ b/ets2panda/test/ast/compiler/ets/nullable_type_in_stringconcat_func.ets @@ -26,5 +26,6 @@ function main() { let result2 = foo2(null, null); } -/* @@@ label Error TypeError: Bad operand type: multiple types left in the normalized union type (String|null). Unions are not allowed in binary expressions except equality. */ -/* @@@ label1 Error TypeError: Bad operand type: multiple types left in the normalized union type (String|null). Unions are not allowed in binary expressions except equality. */ + +/* @@@ label Error Semantic error ESE0106: Bad operand type: multiple types left in the normalized union type (String|null). Unions are not allowed in binary expressions except equality. */ +/* @@@ label1 Error Semantic error ESE0106: Bad operand type: multiple types left in the normalized union type (String|null). Unions are not allowed in binary expressions except equality. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/objectLiteralBadKey.ets b/ets2panda/test/ast/compiler/ets/objectLiteralBadKey.ets index d93a7dccdd..bd39de2bbe 100644 --- a/ets2panda/test/ast/compiler/ets/objectLiteralBadKey.ets +++ b/ets2panda/test/ast/compiler/ets/objectLiteralBadKey.ets @@ -20,4 +20,5 @@ let c: C = /* @@ label */{ 33: 44, }; -/* @@@ label Error TypeError: key in class composite should be either identifier or string literal */ + +/* @@@ label Error Semantic error ESE0073: key in class composite should be either identifier or string literal */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/objectLiteralInaccessibleKey.ets b/ets2panda/test/ast/compiler/ets/objectLiteralInaccessibleKey.ets index 574c0ff1f1..93ff3024eb 100644 --- a/ets2panda/test/ast/compiler/ets/objectLiteralInaccessibleKey.ets +++ b/ets2panda/test/ast/compiler/ets/objectLiteralInaccessibleKey.ets @@ -21,4 +21,5 @@ let c: C = { /* @@ label */f: 44, }; -/* @@@ label Error TypeError: Property f is not visible here. */ + +/* @@@ label Error Semantic error ESE0293: Property f is not visible here. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/objectLiteralInterface3.ets b/ets2panda/test/ast/compiler/ets/objectLiteralInterface3.ets index 82af6eb978..807ff3c155 100644 --- a/ets2panda/test/ast/compiler/ets/objectLiteralInterface3.ets +++ b/ets2panda/test/ast/compiler/ets/objectLiteralInterface3.ets @@ -20,4 +20,5 @@ interface I { let c: I = /* @@ label */{ name: "Alice" }; -/* @@@ label Error TypeError: Interface has methods */ + +/* @@? 21:5 Error Semantic error ESE0256: Interface has methods */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/objectLiteralNoContextType.ets b/ets2panda/test/ast/compiler/ets/objectLiteralNoContextType.ets index a9609fd36b..3e2c2fce46 100644 --- a/ets2panda/test/ast/compiler/ets/objectLiteralNoContextType.ets +++ b/ets2panda/test/ast/compiler/ets/objectLiteralNoContextType.ets @@ -15,4 +15,5 @@ let /* @@ label */x = {}; -/* @@@ label Error TypeError: Cannot infer type for x because class composite needs an explicit target type */ + +/* @@@ label Error Semantic error ESE0174: Cannot infer type for x because class composite needs an explicit target type */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/objectLiteralNoParameterlessConstructor.ets b/ets2panda/test/ast/compiler/ets/objectLiteralNoParameterlessConstructor.ets index 35d389ecbf..caf4c70fce 100644 --- a/ets2panda/test/ast/compiler/ets/objectLiteralNoParameterlessConstructor.ets +++ b/ets2panda/test/ast/compiler/ets/objectLiteralNoParameterlessConstructor.ets @@ -19,4 +19,5 @@ class C { let c: C = /* @@ label */{}; -/* @@@ label Error TypeError: Type C has no parameterless constructor. Initialization with literals is not supported if the type has no parameterless constructor. Declare the parameterless constructor explicitly or remove parametered constructors! */ + +/* @@@ label Error Semantic error ESE0291: Type C has no parameterless constructor. Initialization with literals is not supported if the type has no parameterless constructor. Declare the parameterless constructor explicitly or remove parametered constructors! */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/objectLiteralNoSuchKey.ets b/ets2panda/test/ast/compiler/ets/objectLiteralNoSuchKey.ets index 8cd6e2dcf2..849e3bce43 100644 --- a/ets2panda/test/ast/compiler/ets/objectLiteralNoSuchKey.ets +++ b/ets2panda/test/ast/compiler/ets/objectLiteralNoSuchKey.ets @@ -20,4 +20,5 @@ let c: C = { /* @@ label */f: 44, }; -/* @@@ label Error TypeError: type C has no property named f */ + +/* @@@ label Error Semantic error ESE0065: type C has no property named f */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/objectLiteralPrivateConstructor.ets b/ets2panda/test/ast/compiler/ets/objectLiteralPrivateConstructor.ets index 23a7a7719e..7f3ee798c5 100644 --- a/ets2panda/test/ast/compiler/ets/objectLiteralPrivateConstructor.ets +++ b/ets2panda/test/ast/compiler/ets/objectLiteralPrivateConstructor.ets @@ -19,4 +19,5 @@ class C { let c: C = /* @@ label */{}; -/* @@@ label Error TypeError: Signature constructor(): void is not visible here. */ + +/* @@@ label Error Semantic error ESE0139: Signature constructor(): void is not visible here. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/objectLiteralWrongValueType.ets b/ets2panda/test/ast/compiler/ets/objectLiteralWrongValueType.ets index ce025f5c2a..3723e8639a 100644 --- a/ets2panda/test/ast/compiler/ets/objectLiteralWrongValueType.ets +++ b/ets2panda/test/ast/compiler/ets/objectLiteralWrongValueType.ets @@ -21,4 +21,5 @@ let c: C = { f: /* @@ label */"ouch" }; -/* @@@ label Error TypeError: Type '"ouch"' is not compatible with type 'Int' at property 'f' */ + +/* @@@ label Error Semantic error ESE0319: Type '"ouch"' is not compatible with type 'Int' at property 'f' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/objectLiteral_abstract_class.ets b/ets2panda/test/ast/compiler/ets/objectLiteral_abstract_class.ets index 876abd1349..3b84311d62 100644 --- a/ets2panda/test/ast/compiler/ets/objectLiteral_abstract_class.ets +++ b/ets2panda/test/ast/compiler/ets/objectLiteral_abstract_class.ets @@ -38,8 +38,9 @@ function main(){ let x5:C3 = /* @@ label5 */{field1:1000, field2:"some str"}; } -/* @@@ label Error TypeError: type C has no property named field3 */ -/* @@@ label2 Error TypeError: Property field2 is not visible here. */ -/* @@@ label3 Error TypeError: Type '"some str"' is not compatible with type 'Double' at property 'field1' */ -/* @@@ label4 Error TypeError: Type C2 has no parameterless constructor. Initialization with literals is not supported if the type has no parameterless constructor. Declare the parameterless constructor explicitly or remove parametered constructors! */ -/* @@@ label5 Error TypeError: Signature constructor(): void is not visible here. */ + +/* @@@ label Error Semantic error ESE0065: type C has no property named field3 */ +/* @@@ label2 Error Semantic error ESE0293: Property field2 is not visible here. */ +/* @@@ label3 Error Semantic error ESE0319: Type '"some str"' is not compatible with type 'Double' at property 'field1' */ +/* @@@ label4 Error Semantic error ESE0291: Type C2 has no parameterless constructor. Initialization with literals is not supported if the type has no parameterless constructor. Declare the parameterless constructor explicitly or remove parametered constructors! */ +/* @@@ label5 Error Semantic error ESE0139: Signature constructor(): void is not visible here. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/objectLiteral_abstract_class_2.ets b/ets2panda/test/ast/compiler/ets/objectLiteral_abstract_class_2.ets index 8c0a2cc2bb..f330498396 100644 --- a/ets2panda/test/ast/compiler/ets/objectLiteral_abstract_class_2.ets +++ b/ets2panda/test/ast/compiler/ets/objectLiteral_abstract_class_2.ets @@ -24,4 +24,5 @@ function main(){ let x:C4 = /* @@ label */{field1:1000,field2:"some str"}; } -/* @@@ label Error TypeError: Abstract class has abstract method method1 */ + +/* @@@ label Error Semantic error ESE0257: Abstract class has abstract method method1 */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/object_literal_initialization.ets b/ets2panda/test/ast/compiler/ets/object_literal_initialization.ets index de74d227c0..52f2620101 100644 --- a/ets2panda/test/ast/compiler/ets/object_literal_initialization.ets +++ b/ets2panda/test/ast/compiler/ets/object_literal_initialization.ets @@ -16,5 +16,6 @@ // arkts-no-untyped-obj-literals let o: Object = /* @@ label1 */{/* @@ label2 */n: 42, s: "foo"} -/* @@@ label1 Error TypeError: 'Object', 'object', 'any' types cannot be initialized with object literals. */ -/* @@@ label2 Error TypeError: type Object has no property named n */ + +/* @@@ label1 Error Semantic error ESE115343: 'Object', 'object', 'any' types cannot be initialized with object literals. */ +/* @@@ label2 Error Semantic error ESE0065: type Object has no property named n */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/optionalClassProperty1.ets b/ets2panda/test/ast/compiler/ets/optionalClassProperty1.ets index 3224058292..57f2b70fdd 100644 --- a/ets2panda/test/ast/compiler/ets/optionalClassProperty1.ets +++ b/ets2panda/test/ast/compiler/ets/optionalClassProperty1.ets @@ -96,4 +96,5 @@ class C8 implements I { a ?: Array } -/* @@? 57:5 Error SyntaxError: Identifier expected, got 'private'. */ + +/* @@? 57:5 Error Syntax error ESY0224: Identifier expected, got 'private'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/optional_method.ets b/ets2panda/test/ast/compiler/ets/optional_method.ets index 5f4df22834..171d73c326 100644 --- a/ets2panda/test/ast/compiler/ets/optional_method.ets +++ b/ets2panda/test/ast/compiler/ets/optional_method.ets @@ -20,5 +20,6 @@ interface Y { interfaceMethod?/* @@ label2 */(): void } -/* @@@ label1 Error SyntaxError: Optional methods are not supported. */ -/* @@@ label2 Error SyntaxError: Optional methods are not supported. */ + +/* @@@ label1 Error Syntax error ESY129375: Optional methods are not supported. */ +/* @@@ label2 Error Syntax error ESY129375: Optional methods are not supported. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/overload-resolution-rest.ets b/ets2panda/test/ast/compiler/ets/overload-resolution-rest.ets index f73c7e1334..58a1cd848f 100644 --- a/ets2panda/test/ast/compiler/ets/overload-resolution-rest.ets +++ b/ets2panda/test/ast/compiler/ets/overload-resolution-rest.ets @@ -27,4 +27,4 @@ function main() { /* @@ label */foo(1, 2, 3) } -/* @@@ label Error TypeError: Reference to foo is ambiguous */ \ No newline at end of file +/* @@@ label Error Semantic error ESE0126: Reference to foo is ambiguous */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/overload/class_overloaded_name_must_ident.ets b/ets2panda/test/ast/compiler/ets/overload/class_overloaded_name_must_ident.ets index 6559e6d66b..e03c6fedb0 100644 --- a/ets2panda/test/ast/compiler/ets/overload/class_overloaded_name_must_ident.ets +++ b/ets2panda/test/ast/compiler/ets/overload/class_overloaded_name_must_ident.ets @@ -21,4 +21,5 @@ class C { overload foo { /* @@label1 */B.foo1 } } -/* @@@ label1 Error SyntaxError: The overloaded method name in class/interface method overload declaration must be identifier. */ + +/* @@@ label1 Error Syntax error ESY0324: The overloaded method name in class/interface method overload declaration must be identifier. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/overload/constructor_overloaded_name_must_ident.ets b/ets2panda/test/ast/compiler/ets/overload/constructor_overloaded_name_must_ident.ets index d4a9648f60..094ba50cb4 100644 --- a/ets2panda/test/ast/compiler/ets/overload/constructor_overloaded_name_must_ident.ets +++ b/ets2panda/test/ast/compiler/ets/overload/constructor_overloaded_name_must_ident.ets @@ -21,4 +21,5 @@ class C { overload constructor { /* @@label1 */B.foo1 } } -/* @@@ label1 Error SyntaxError: The overloaded method name in class/interface method overload declaration must be identifier. */ + +/* @@@ label1 Error Syntax error ESY0324: The overloaded method name in class/interface method overload declaration must be identifier. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/overload/function_overloaded_name_must_qualified_name.ets b/ets2panda/test/ast/compiler/ets/overload/function_overloaded_name_must_qualified_name.ets index 70eb87ba28..a6b653fe74 100644 --- a/ets2panda/test/ast/compiler/ets/overload/function_overloaded_name_must_qualified_name.ets +++ b/ets2panda/test/ast/compiler/ets/overload/function_overloaded_name_must_qualified_name.ets @@ -23,4 +23,5 @@ namespace NS { overload foo {NS.foo1, NS.A.foo2, /* @@ label1 */NS.A.foo2} -/* @@@ label1 Error TypeError: Duplicate overloaded method. */ + +/* @@@ label1 Error Semantic error ESE0385: Duplicate overloaded method. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/overload/interface_overloaded_name_must_ident.ets b/ets2panda/test/ast/compiler/ets/overload/interface_overloaded_name_must_ident.ets index 3d5f01eb89..0a467cbe94 100644 --- a/ets2panda/test/ast/compiler/ets/overload/interface_overloaded_name_must_ident.ets +++ b/ets2panda/test/ast/compiler/ets/overload/interface_overloaded_name_must_ident.ets @@ -20,4 +20,5 @@ interface I { overload foo { /* @@label1 */B.foo1 } } -/* @@@ label1 Error SyntaxError: The overloaded method name in class/interface method overload declaration must be identifier. */ + +/* @@@ label1 Error Syntax error ESY0324: The overloaded method name in class/interface method overload declaration must be identifier. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/overload/overload_duplicate_function.ets b/ets2panda/test/ast/compiler/ets/overload/overload_duplicate_function.ets index 3b4308b99f..0dd5413b28 100644 --- a/ets2panda/test/ast/compiler/ets/overload/overload_duplicate_function.ets +++ b/ets2panda/test/ast/compiler/ets/overload/overload_duplicate_function.ets @@ -30,4 +30,5 @@ function foo113(a: C): C { overload foo{ foo111, foo112, foo113,/* @@ label1 */foo111 } -/* @@@ label1 Error TypeError: Duplicate overloaded method. */ + +/* @@@ label1 Error Semantic error ESE0385: Duplicate overloaded method. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/overload/overload_duplicate_function_2.ets b/ets2panda/test/ast/compiler/ets/overload/overload_duplicate_function_2.ets index fa182d50da..46a8b85137 100644 --- a/ets2panda/test/ast/compiler/ets/overload/overload_duplicate_function_2.ets +++ b/ets2panda/test/ast/compiler/ets/overload/overload_duplicate_function_2.ets @@ -33,5 +33,6 @@ namespace NS { overload foo{ NS.NS2.foo1, NS.NS2.NS3.foo2, NS.foo3, /* @@ label1 */NS.NS2.NS3.foo2}; -/* @@@ label1 Error TypeError: Duplicate overloaded method. */ + +/* @@@ label1 Error Semantic error ESE0385: Duplicate overloaded method. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/overload/overload_duplicate_method.ets b/ets2panda/test/ast/compiler/ets/overload/overload_duplicate_method.ets index 2d656eb4b7..a84e57d9f9 100644 --- a/ets2panda/test/ast/compiler/ets/overload/overload_duplicate_method.ets +++ b/ets2panda/test/ast/compiler/ets/overload/overload_duplicate_method.ets @@ -31,4 +31,4 @@ class Test1 { overload foo{ foo111, foo112, foo113,/* @@ label1 */foo111 } } -/* @@@ label1 Error TypeError: Duplicate overloaded method. */ \ No newline at end of file +/* @@@ label1 Error Semantic error ESE0385: Duplicate overloaded method. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/overload/overload_duplicate_overload_name_1.ets b/ets2panda/test/ast/compiler/ets/overload/overload_duplicate_overload_name_1.ets index d5a1d45da9..ecb995c5fa 100644 --- a/ets2panda/test/ast/compiler/ets/overload/overload_duplicate_overload_name_1.ets +++ b/ets2panda/test/ast/compiler/ets/overload/overload_duplicate_overload_name_1.ets @@ -19,7 +19,8 @@ class Base { overload foo {/* @@ label2 */foo, /* @@ label3 */foo} } -/* @@@ label1 Error TypeError: Only abstract or native methods can't have body. */ -/* @@@ label2 Error TypeError: The overloaded name 'foo' can't refer to a function with overload signatures. */ -/* @@@ label3 Error TypeError: Duplicate overloaded method. */ -/* @@@ label3 Error TypeError: The overloaded name 'foo' can't refer to a function with overload signatures. */ + +/* @@@ label1 Error Semantic error ESE0017: Only abstract or native methods can't have body. */ +/* @@@ label2 Error Semantic error ESE0389: The overloaded name 'foo' can't refer to a function with overload signatures. */ +/* @@@ label3 Error Semantic error ESE0385: Duplicate overloaded method. */ +/* @@@ label3 Error Semantic error ESE0389: The overloaded name 'foo' can't refer to a function with overload signatures. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/overload/overload_overloaded_name_at_most_once_1.ets b/ets2panda/test/ast/compiler/ets/overload/overload_overloaded_name_at_most_once_1.ets index 1a2ab17c31..f7cd9f9d33 100644 --- a/ets2panda/test/ast/compiler/ets/overload/overload_overloaded_name_at_most_once_1.ets +++ b/ets2panda/test/ast/compiler/ets/overload/overload_overloaded_name_at_most_once_1.ets @@ -28,4 +28,5 @@ class Test1 extends Test0 { overload foo{foo111, /* @@ label1 */foo111, foo112} } -/* @@@ label1 Error TypeError: Duplicate overloaded method. */ + +/* @@@ label1 Error Semantic error ESE0385: Duplicate overloaded method. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/overload/overload_overloaded_name_used_as_value_1.ets b/ets2panda/test/ast/compiler/ets/overload/overload_overloaded_name_used_as_value_1.ets index dec7657edd..8256934c44 100644 --- a/ets2panda/test/ast/compiler/ets/overload/overload_overloaded_name_used_as_value_1.ets +++ b/ets2panda/test/ast/compiler/ets/overload/overload_overloaded_name_used_as_value_1.ets @@ -23,5 +23,6 @@ class E { } } -/* @@? 22:22 Error TypeError: Overloaded method is used as value */ + +/* @@? 22:22 Error Semantic error ESE0307: Overloaded method is used as value */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/overload/overload_overloaded_name_used_as_value_2.ets b/ets2panda/test/ast/compiler/ets/overload/overload_overloaded_name_used_as_value_2.ets index 79401623d2..f40ae891aa 100644 --- a/ets2panda/test/ast/compiler/ets/overload/overload_overloaded_name_used_as_value_2.ets +++ b/ets2panda/test/ast/compiler/ets/overload/overload_overloaded_name_used_as_value_2.ets @@ -18,4 +18,5 @@ function foo2() {} overload foo{foo1, foo2} let OL = /* @@ label */foo; -/* @@@ label Error TypeError: Overloaded method is used as value */ + +/* @@@ label Error Semantic error ESE0307: Overloaded method is used as value */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/overload/overload_union_call.ets b/ets2panda/test/ast/compiler/ets/overload/overload_union_call.ets index f377a79a6a..0756d0ddde 100644 --- a/ets2panda/test/ast/compiler/ets/overload/overload_union_call.ets +++ b/ets2panda/test/ast/compiler/ets/overload/overload_union_call.ets @@ -35,4 +35,5 @@ function foo(a: T) { return /* @@ label1 */a.foo() } -/* @@@ label1 Error TypeError: Overload declaration cannot be called by union. */ + +/* @@@ label1 Error Semantic error ESE0391: Overload declaration cannot be called by union. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/overload/overload_union_call_2.ets b/ets2panda/test/ast/compiler/ets/overload/overload_union_call_2.ets index e718f62443..b6d49b8118 100644 --- a/ets2panda/test/ast/compiler/ets/overload/overload_union_call_2.ets +++ b/ets2panda/test/ast/compiler/ets/overload/overload_union_call_2.ets @@ -31,5 +31,6 @@ function foo(a: T) { return /* @@ label1 */a.foo() } -/* @@@ label1 Error TypeError: Member type must be the same for all union objects. */ -/* @@@ label1 Error TypeError: No matching call signature */ + +/* @@@ label1 Error Semantic error ESE0244: Member type must be the same for all union objects. */ +/* @@@ label1 Error Semantic error ESE0128: No matching call signature */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/overloadMethodNoReturn0.ets b/ets2panda/test/ast/compiler/ets/overloadMethodNoReturn0.ets index 9baccdcf5c..9f86facda4 100644 --- a/ets2panda/test/ast/compiler/ets/overloadMethodNoReturn0.ets +++ b/ets2panda/test/ast/compiler/ets/overloadMethodNoReturn0.ets @@ -25,4 +25,5 @@ function main() { foo(1, 2) } -/* @@@ label Error TypeError: Function with a non void return type must return a value. */ + +/* @@@ label Error Semantic error ESE0103: Function with a non void return type must return a value. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/overloadMethodNoReturn1.ets b/ets2panda/test/ast/compiler/ets/overloadMethodNoReturn1.ets index b1be5bf6b4..53924198eb 100644 --- a/ets2panda/test/ast/compiler/ets/overloadMethodNoReturn1.ets +++ b/ets2panda/test/ast/compiler/ets/overloadMethodNoReturn1.ets @@ -31,4 +31,5 @@ function /*@@ label */foo(x: int, y: int): int{ function main() { } -/* @@@ label Error TypeError: Not all code paths return a value. */ + +/* @@@ label Error Semantic error ESE0104: Not all code paths return a value. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/overload_crash.ets b/ets2panda/test/ast/compiler/ets/overload_crash.ets index 7350e84edd..e0f160dcfa 100644 --- a/ets2panda/test/ast/compiler/ets/overload_crash.ets +++ b/ets2panda/test/ast/compiler/ets/overload_crash.ets @@ -22,5 +22,6 @@ function f1(thing: string) { path(thing, ...['a']); } -/* @@? 16:10 Error TypeError: Only abstract or native methods can't have body. */ -/* @@? 18:1 Error TypeError: Function path with this assembly signature already declared. */ + +/* @@? 16:10 Error Semantic error ESE0017: Only abstract or native methods can't have body. */ +/* @@? 18:1 Error Semantic error ESE0131: Function path with this assembly signature already declared. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/overload_equivalent_generics.ets b/ets2panda/test/ast/compiler/ets/overload_equivalent_generics.ets index f5f2b2064a..47f955f182 100644 --- a/ets2panda/test/ast/compiler/ets/overload_equivalent_generics.ets +++ b/ets2panda/test/ast/compiler/ets/overload_equivalent_generics.ets @@ -20,4 +20,4 @@ class Base { } class Derived extends Base {} -/* @@@ label Error TypeError: Function foo with this assembly signature already declared. */ \ No newline at end of file +/* @@@ label Error Semantic error ESE0131: Function foo with this assembly signature already declared. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/overload_for_named_constructor.ets b/ets2panda/test/ast/compiler/ets/overload_for_named_constructor.ets index 0575959c2f..0a62ee3dc9 100644 --- a/ets2panda/test/ast/compiler/ets/overload_for_named_constructor.ets +++ b/ets2panda/test/ast/compiler/ets/overload_for_named_constructor.ets @@ -23,4 +23,4 @@ function main(){ new A() } -/* @@? 23:5 Error TypeError: No matching construct signature for A() */ \ No newline at end of file +/* @@? 23:5 Error Semantic error ESE0127: No matching construct signature for A() */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/override11.ets b/ets2panda/test/ast/compiler/ets/override11.ets index 2c43199671..ec738cf5d7 100644 --- a/ets2panda/test/ast/compiler/ets/override11.ets +++ b/ets2panda/test/ast/compiler/ets/override11.ets @@ -21,5 +21,6 @@ class B extends A { override fn(t: int): void { } } -/* @@? 21:14 Error TypeError: fn(t: Int): void in B cannot override fn(t: Int): Int in A because overriding return type is not compatible with the other return type. */ -/* @@? 21:14 Error TypeError: Method fn(t: Int): void in B not overriding any method */ + +/* @@? 21:14 Error Semantic error ESE0141: fn(t: Int): void in B cannot override fn(t: Int): Int in A because overriding return type is not compatible with the other return type. */ +/* @@? 21:14 Error Semantic error ESE0136: Method fn(t: Int): void in B not overriding any method */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/override15.ets b/ets2panda/test/ast/compiler/ets/override15.ets index 2afb8940d3..a83735c0a1 100644 --- a/ets2panda/test/ast/compiler/ets/override15.ets +++ b/ets2panda/test/ast/compiler/ets/override15.ets @@ -21,5 +21,6 @@ interface I2 extends I { fn(): float; } -/* @@? 21:3 Error TypeError: fn(): Float in I2 cannot override fn(): Int in I because overriding return type is not compatible with the other return type. */ -/* @@? 21:3 Error TypeError: Method fn(): Float in I2 not overriding any method */ + +/* @@? 21:3 Error Semantic error ESE0141: fn(): Float in I2 cannot override fn(): Int in I because overriding return type is not compatible with the other return type. */ +/* @@? 21:3 Error Semantic error ESE0136: Method fn(): Float in I2 not overriding any method */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/override3.ets b/ets2panda/test/ast/compiler/ets/override3.ets index 96cdf17944..99250f2fec 100644 --- a/ets2panda/test/ast/compiler/ets/override3.ets +++ b/ets2panda/test/ast/compiler/ets/override3.ets @@ -17,5 +17,6 @@ interface I { toString(): int; } -/* @@? 17:3 Error TypeError: toString(): Int in I cannot override toString(): String in Object because overriding return type is not compatible with the other return type. */ -/* @@? 17:3 Error TypeError: Method toString(): Int in I not overriding any method */ + +/* @@? 17:3 Error Semantic error ESE0141: toString(): Int in I cannot override toString(): String in Object because overriding return type is not compatible with the other return type. */ +/* @@? 17:3 Error Semantic error ESE0136: Method toString(): Int in I not overriding any method */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/override7.ets b/ets2panda/test/ast/compiler/ets/override7.ets index aca0ae3a32..9a9047be12 100644 --- a/ets2panda/test/ast/compiler/ets/override7.ets +++ b/ets2panda/test/ast/compiler/ets/override7.ets @@ -23,5 +23,6 @@ abstract class A implements I { public override fn(): int { return 1; } } -/* @@? 23:21 Error TypeError: fn(): Int in A cannot override fn(): void in J because overriding return type is not compatible with the other return type. */ -/* @@? 23:21 Error TypeError: Method fn(): Int in A not overriding any method */ + +/* @@? 23:21 Error Semantic error ESE0141: fn(): Int in A cannot override fn(): void in J because overriding return type is not compatible with the other return type. */ +/* @@? 23:21 Error Semantic error ESE0136: Method fn(): Int in A not overriding any method */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/overrideModifierNotOverriding.ets b/ets2panda/test/ast/compiler/ets/overrideModifierNotOverriding.ets index abc1ea4562..f23051bb82 100644 --- a/ets2panda/test/ast/compiler/ets/overrideModifierNotOverriding.ets +++ b/ets2panda/test/ast/compiler/ets/overrideModifierNotOverriding.ets @@ -25,4 +25,5 @@ class B { } } -/* @@@ label Error TypeError: Method foo(a: Int): Int in B not overriding any method */ + +/* @@@ label Error Semantic error ESE0136: Method foo(a: Int): Int in B not overriding any method */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/package_invalid_initializer/P3/P3.ets b/ets2panda/test/ast/compiler/ets/package_invalid_initializer/P3/P3.ets index 718607481d..900e47953d 100644 --- a/ets2panda/test/ast/compiler/ets/package_invalid_initializer/P3/P3.ets +++ b/ets2panda/test/ast/compiler/ets/package_invalid_initializer/P3/P3.ets @@ -42,10 +42,11 @@ static { var_tobe_shadowed = 2; } -/* @@? P3.ets:29:14 Error SyntaxError: Missing initialization for const package property */ -/* @@? P3.ets:29:18 Error SyntaxError: Variable must be initialized or it's type must be declared. */ -/* @@? P3.ets:30:30 Error SyntaxError: Non-constant initializer of Package should be apply in Initializer Block. */ -/* @@? P3.ets:31:14 Error TypeError: Cannot reassign constant c_nn2 */ -/* @@? P3.ets:33:1 Error SyntaxError: Invalid package toplevel statement */ -/* @@? P3.ets:34:1 Error SyntaxError: Invalid package toplevel statement */ -/* @@? P3.ets:39:14 Error SyntaxError: Missing initialization for const package property */ + +/* @@? 29:14 Error Syntax error ESY0294: Missing initialization for const package property */ +/* @@? 29:18 Error Syntax error ESY0105: Variable must be initialized or it's type must be declared. */ +/* @@? 30:30 Error Syntax error ESY0288: Non-constant initializer of Package should be apply in Initializer Block. */ +/* @@? 31:14 Error Semantic error ESE0297: Cannot reassign constant c_nn2 */ +/* @@? 33:1 Error Syntax error ESY0291: Invalid package toplevel statement */ +/* @@? 34:1 Error Syntax error ESY0291: Invalid package toplevel statement */ +/* @@? 39:14 Error Syntax error ESY0294: Missing initialization for const package property */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/package_invalid_initializer/main_test.ets b/ets2panda/test/ast/compiler/ets/package_invalid_initializer/main_test.ets index 442220438f..d1e18dd9bc 100644 --- a/ets2panda/test/ast/compiler/ets/package_invalid_initializer/main_test.ets +++ b/ets2panda/test/ast/compiler/ets/package_invalid_initializer/main_test.ets @@ -15,7 +15,8 @@ import {nn, nn1, nn2} from "./P3" -/* @@? P3.ets:29:18 Error SyntaxError: Variable must be initialized or it's type must be declared. */ -/* @@? P3.ets:30:30 Error SyntaxError: Non-constant initializer of Package should be apply in Initializer Block. */ -/* @@? P3.ets:33:1 Error SyntaxError: Invalid package toplevel statement */ -/* @@? P3.ets:34:1 Error SyntaxError: Invalid package toplevel statement */ + +/* @@? P3.ets:29:18 Error Syntax error ESY0105: Variable must be initialized or it's type must be declared. */ +/* @@? P3.ets:30:30 Error Syntax error ESY0288: Non-constant initializer of Package should be apply in Initializer Block. */ +/* @@? P3.ets:33:1 Error Syntax error ESY0291: Invalid package toplevel statement */ +/* @@? P3.ets:34:1 Error Syntax error ESY0291: Invalid package toplevel statement */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/package_namespace_static_block_multi/main_test.ets b/ets2panda/test/ast/compiler/ets/package_namespace_static_block_multi/main_test.ets index 9973e90217..bccd19553b 100644 --- a/ets2panda/test/ast/compiler/ets/package_namespace_static_block_multi/main_test.ets +++ b/ets2panda/test/ast/compiler/ets/package_namespace_static_block_multi/main_test.ets @@ -15,4 +15,4 @@ import {NS} from "./package" -/* @@? P2_01.ets:22:5 Error SyntaxError: Only one static block is allowed in one namespace or class. */ \ No newline at end of file +/* @@? P2_01.ets:22:5 Error Syntax error ESY0034: Only one static block is allowed in one namespace or class. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/package_namespace_static_block_multi/package/P2_01.ets b/ets2panda/test/ast/compiler/ets/package_namespace_static_block_multi/package/P2_01.ets index a61fb5e005..2c4c1fe849 100644 --- a/ets2panda/test/ast/compiler/ets/package_namespace_static_block_multi/package/P2_01.ets +++ b/ets2panda/test/ast/compiler/ets/package_namespace_static_block_multi/package/P2_01.ets @@ -22,4 +22,5 @@ export namespace NS { } } -/* @@? P2_01.ets:22:5 Error SyntaxError: Only one static block is allowed in one namespace or class. */ + +/* @@? 22:5 Error Syntax error ESY0034: Only one static block is allowed in one namespace or class. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/package_namespace_static_block_multi/package/P2_02.ets b/ets2panda/test/ast/compiler/ets/package_namespace_static_block_multi/package/P2_02.ets index 8d0dd86453..95b424bdfd 100644 --- a/ets2panda/test/ast/compiler/ets/package_namespace_static_block_multi/package/P2_02.ets +++ b/ets2panda/test/ast/compiler/ets/package_namespace_static_block_multi/package/P2_02.ets @@ -21,4 +21,5 @@ export namespace NS { } } -/* @@? P2_02.ets:21:5 Error SyntaxError: Only one static block is allowed in one namespace or class. */ + +/* @@? 21:5 Error Syntax error ESY0034: Only one static block is allowed in one namespace or class. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/package_static_block_multi_files/main_test.ets b/ets2panda/test/ast/compiler/ets/package_static_block_multi_files/main_test.ets index dfb039f82e..466b48b1df 100644 --- a/ets2panda/test/ast/compiler/ets/package_static_block_multi_files/main_test.ets +++ b/ets2panda/test/ast/compiler/ets/package_static_block_multi_files/main_test.ets @@ -15,4 +15,4 @@ import {nn3, nn4} from "./P1" -/* @@? P1_1.ets:20:5 Error SyntaxError: static block cannot apply to multi-files for one package */ \ No newline at end of file +/* @@? P1_1.ets:20:5 Error Syntax error ESY0289: static block cannot apply to multi-files for one package */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/param_sort_1.ets b/ets2panda/test/ast/compiler/ets/param_sort_1.ets index bba3a5f570..6d2a036581 100644 --- a/ets2panda/test/ast/compiler/ets/param_sort_1.ets +++ b/ets2panda/test/ast/compiler/ets/param_sort_1.ets @@ -14,4 +14,4 @@ */ function foo(p1: int, p2?: int, /* @@ label */p3: int) { } -/* @@@ label Error SyntaxError: A required parameter cannot follow an optional parameter. */ \ No newline at end of file +/* @@@ label Error Syntax error ESY0219: A required parameter cannot follow an optional parameter. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/param_sort_2.ets b/ets2panda/test/ast/compiler/ets/param_sort_2.ets index 17b9a79e2e..f79e9b4543 100644 --- a/ets2panda/test/ast/compiler/ets/param_sort_2.ets +++ b/ets2panda/test/ast/compiler/ets/param_sort_2.ets @@ -14,4 +14,4 @@ */ function foo(p1: boolean, p2?: int, /* @@ label */p3: string) { } -/* @@@ label Error SyntaxError: A required parameter cannot follow an optional parameter. */ \ No newline at end of file +/* @@@ label Error Syntax error ESY0219: A required parameter cannot follow an optional parameter. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/param_sort_3.ets b/ets2panda/test/ast/compiler/ets/param_sort_3.ets index 8a38d4cdac..e249693714 100644 --- a/ets2panda/test/ast/compiler/ets/param_sort_3.ets +++ b/ets2panda/test/ast/compiler/ets/param_sort_3.ets @@ -14,4 +14,4 @@ */ function foo(p1: int, p2: int = 44, /* @@ label */p3: int) { } -/* @@@ label Error SyntaxError: A required parameter cannot follow an optional parameter. */ \ No newline at end of file +/* @@@ label Error Syntax error ESY0219: A required parameter cannot follow an optional parameter. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/param_wrong_identifier.ets b/ets2panda/test/ast/compiler/ets/param_wrong_identifier.ets index 89ec5d49e4..71b491d921 100644 --- a/ets2panda/test/ast/compiler/ets/param_wrong_identifier.ets +++ b/ets2panda/test/ast/compiler/ets/param_wrong_identifier.ets @@ -38,24 +38,24 @@ function main() { } catch (e) { } } -/* @@? 28:3 Error TypeError: No matching call signature for foo1(Double) */ -/* @@? 28:10 Error TypeError: Class name can't be the argument of function or method. */ -/* @@? 29:3 Error TypeError: No matching call signature for foo2(Double) */ -/* @@? 29:10 Error TypeError: Class name can't be the argument of function or method. */ -/* @@? 30:3 Error TypeError: No matching call signature for foo3(Int) */ -/* @@? 30:10 Error TypeError: Class name can't be the argument of function or method. */ -/* @@? 30:10 Error TypeError: Class or interface or enum 'Int' cannot be used as object */ -/* @@? 31:3 Error TypeError: No matching call signature for foo4(String) */ -/* @@? 31:10 Error TypeError: Class name can't be the argument of function or method. */ -/* @@? 31:10 Error TypeError: Class or interface or enum 'String' cannot be used as object */ -/* @@? 32:3 Error TypeError: No matching call signature for foo5(Boolean) */ -/* @@? 32:10 Error TypeError: Class name can't be the argument of function or method. */ -/* @@? 32:10 Error TypeError: Class or interface or enum 'Boolean' cannot be used as object */ -/* @@? 33:3 Error TypeError: No matching call signature for foo6(Double) */ -/* @@? 33:10 Error TypeError: Class name can't be the argument of function or method. */ -/* @@? 34:3 Error TypeError: No matching call signature for foo7(Double) */ -/* @@? 34:8 Error TypeError: Class name can't be the argument of function or method. */ -/* @@? 35:14 Error TypeError: No matching call signature for isSafeInteger(Double) */ -/* @@? 35:35 Error TypeError: Class name can't be the argument of function or method. */ -/* @@? 37:16 Error TypeError: No matching call signature for isSafeInteger(Double) */ -/* @@? 37:37 Error TypeError: Class name can't be the argument of function or method. */ \ No newline at end of file +/* @@? 28:3 Error Semantic error ESE0127: No matching call signature for foo1(Double) */ +/* @@? 28:10 Error Semantic error ESE0122: Class name can't be the argument of function or method. */ +/* @@? 29:3 Error Semantic error ESE0127: No matching call signature for foo2(Double) */ +/* @@? 29:10 Error Semantic error ESE0122: Class name can't be the argument of function or method. */ +/* @@? 30:3 Error Semantic error ESE0127: No matching call signature for foo3(Int) */ +/* @@? 30:10 Error Semantic error ESE0122: Class name can't be the argument of function or method. */ +/* @@? 30:10 Error Semantic error ESE0294: Class or interface or enum 'Int' cannot be used as object */ +/* @@? 31:3 Error Semantic error ESE0127: No matching call signature for foo4(String) */ +/* @@? 31:10 Error Semantic error ESE0122: Class name can't be the argument of function or method. */ +/* @@? 31:10 Error Semantic error ESE0294: Class or interface or enum 'String' cannot be used as object */ +/* @@? 32:3 Error Semantic error ESE0127: No matching call signature for foo5(Boolean) */ +/* @@? 32:10 Error Semantic error ESE0122: Class name can't be the argument of function or method. */ +/* @@? 32:10 Error Semantic error ESE0294: Class or interface or enum 'Boolean' cannot be used as object */ +/* @@? 33:3 Error Semantic error ESE0127: No matching call signature for foo6(Double) */ +/* @@? 33:10 Error Semantic error ESE0122: Class name can't be the argument of function or method. */ +/* @@? 34:3 Error Semantic error ESE0127: No matching call signature for foo7(Double) */ +/* @@? 34:8 Error Semantic error ESE0122: Class name can't be the argument of function or method. */ +/* @@? 35:14 Error Semantic error ESE0127: No matching call signature for isSafeInteger(Double) */ +/* @@? 35:35 Error Semantic error ESE0122: Class name can't be the argument of function or method. */ +/* @@? 37:16 Error Semantic error ESE0127: No matching call signature for isSafeInteger(Double) */ +/* @@? 37:37 Error Semantic error ESE0122: Class name can't be the argument of function or method. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/parameter_anonymous_type.ets b/ets2panda/test/ast/compiler/ets/parameter_anonymous_type.ets index 39968154fe..091b8438e9 100644 --- a/ets2panda/test/ast/compiler/ets/parameter_anonymous_type.ets +++ b/ets2panda/test/ast/compiler/ets/parameter_anonymous_type.ets @@ -20,4 +20,5 @@ const _innerFunc = (arg: { x: number } | undefined): number => { return arg.x; }; -/* @@? 16:26 Error SyntaxError: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ + +/* @@? 16:26 Error Syntax error ESY177354: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/parser_annotation_n.ets b/ets2panda/test/ast/compiler/ets/parser_annotation_n.ets index 32781a0e03..ca038eddd1 100644 --- a/ets2panda/test/ast/compiler/ets/parser_annotation_n.ets +++ b/ets2panda/test/ast/compiler/ets/parser_annotation_n.ets @@ -15,5 +15,6 @@ @interface /* @@ label1 */� -/* @@@ label1 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 20:1 Error SyntaxError: Expected '{', got 'end of stream'. */ + +/* @@@ label1 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 20:79 Error Syntax error ESY0230: Expected '{', got 'end of stream'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/parser_format.ets b/ets2panda/test/ast/compiler/ets/parser_format.ets index 0cfa428977..e5712ef401 100644 --- a/ets2panda/test/ast/compiler/ets/parser_format.ets +++ b/ets2panda/test/ast/compiler/ets/parser_format.ets @@ -17,8 +17,9 @@ declaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaare struct MainProg2 { @@Stave } -/* @@? 16:1 Error TypeError: Unresolved reference declaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaare */ -/* @@? 16:39 Error SyntaxError: Unexpected token 'struct'. */ -/* @@? 16:39 Error TypeError: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ -/* @@? 17:5 Error SyntaxError: There is no any node to insert at the placeholder position. */ -/* @@? 17:12 Error SyntaxError: Field type annotation expected. */ + +/* @@? 16:1 Error Semantic error ESE0143: Unresolved reference declaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaare */ +/* @@? 16:39 Error Syntax error ESY0227: Unexpected token 'struct'. */ +/* @@? 16:39 Error Semantic error ESE0364: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ +/* @@? 17:5 Error Syntax error ESY0010: There is no any node to insert at the placeholder position. */ +/* @@? 17:12 Error Syntax error ESY0121: Field type annotation expected. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/parser_import.ets b/ets2panda/test/ast/compiler/ets/parser_import.ets index 3fb9464550..edf4c80d09 100644 --- a/ets2panda/test/ast/compiler/ets/parser_import.ets +++ b/ets2panda/test/ast/compiler/ets/parser_import.ets @@ -17,6 +17,6 @@ let callbackc = (arrElem: JSValue) => { import {a} from } -/* @@? 17:5 Error SyntaxError: Import declarations can only be used on the top level and before any other declaration, top level statement or directive. */ -/* @@? 18:1 Error SyntaxError: Unexpected token, expected string literal. */ -/* @@? 22:70 Error SyntaxError: Expected '}', got 'end of stream'. */ \ No newline at end of file +/* @@? 17:5 Error Syntax error ESY0226: Import declarations can only be used on the top level and before any other declaration, top level statement or directive. */ +/* @@? 18:1 Error Syntax error ESY0151: Unexpected token, expected string literal. */ +/* @@? 22:79 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/partialTypeParameterParamInfer.ets b/ets2panda/test/ast/compiler/ets/partialTypeParameterParamInfer.ets index 53e4be9d7d..8df0e68230 100644 --- a/ets2panda/test/ast/compiler/ets/partialTypeParameterParamInfer.ets +++ b/ets2panda/test/ast/compiler/ets/partialTypeParameterParamInfer.ets @@ -20,4 +20,5 @@ function foo(arg: Partial): void {} function main() { foo(new Partial()) } -/* @@? 18:29 Error TypeError: T in Partial must be a class or an interface type. */ + +/* @@? 18:29 Error Semantic error ESE124644: T in Partial must be a class or an interface type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/partialType_1_neg.ets b/ets2panda/test/ast/compiler/ets/partialType_1_neg.ets index 1692ddeb25..c7e35c26f8 100644 --- a/ets2panda/test/ast/compiler/ets/partialType_1_neg.ets +++ b/ets2panda/test/ast/compiler/ets/partialType_1_neg.ets @@ -28,4 +28,5 @@ function foo(): void { let fld_1: Partial = /* @@ label */new A(); // CTE } -/* @@@ label Error TypeError: Type 'A' cannot be assigned to type 'Partial' */ + +/* @@@ label Error Semantic error ESE0318: Type 'A' cannot be assigned to type 'Partial' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/partialType_2_neg.ets b/ets2panda/test/ast/compiler/ets/partialType_2_neg.ets index 9096cd90ec..60fc4aa01b 100644 --- a/ets2panda/test/ast/compiler/ets/partialType_2_neg.ets +++ b/ets2panda/test/ast/compiler/ets/partialType_2_neg.ets @@ -23,4 +23,5 @@ function foo(): void { let a_class: A = /* @@ label */partial_A; } -/* @@@ label Error TypeError: Type 'Partial' cannot be assigned to type 'A' */ + +/* @@@ label Error Semantic error ESE0318: Type 'Partial' cannot be assigned to type 'A' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/partialType_3_neg.ets b/ets2panda/test/ast/compiler/ets/partialType_3_neg.ets index eda9ef3758..7481693ad6 100644 --- a/ets2panda/test/ast/compiler/ets/partialType_3_neg.ets +++ b/ets2panda/test/ast/compiler/ets/partialType_3_neg.ets @@ -26,4 +26,5 @@ function foo(): void { a_class.mmeb = /* @@ label */undefined; } -/* @@@ label Error TypeError: Type 'undefined' cannot be assigned to type 'Double' */ + +/* @@@ label Error Semantic error ESE0318: Type 'undefined' cannot be assigned to type 'Double' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/partialType_check_in_RemoveUndefinedType.ets b/ets2panda/test/ast/compiler/ets/partialType_check_in_RemoveUndefinedType.ets index abe625355b..cf73efec02 100644 --- a/ets2panda/test/ast/compiler/ets/partialType_check_in_RemoveUndefinedType.ets +++ b/ets2panda/test/ast/compiler/ets/partialType_check_in_RemoveUndefinedType.ets @@ -21,7 +21,8 @@ function main() { genericFunc<{a: number, b: string}>({a: 1}) } -/* @@? 16:35 Error TypeError: T in Partial must be a class or an interface type. */ -/* @@? 21:3 Error TypeError: Bad operand type, the types of the operands must be numeric, same enumeration, or boolean type. */ -/* @@? 21:15 Error TypeError: need to specify target type for class composite */ -/* @@? 21:38 Error TypeError: need to specify target type for class composite */ + +/* @@? 16:35 Error Semantic error ESE124644: T in Partial must be a class or an interface type. */ +/* @@? 21:3 Error Semantic error ESE0114: Bad operand type, the types of the operands must be numeric, same enumeration, or boolean type. */ +/* @@? 21:15 Error Semantic error ESE0062: need to specify target type for class composite */ +/* @@? 21:38 Error Semantic error ESE0062: need to specify target type for class composite */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/privateMethodOverride.ets b/ets2panda/test/ast/compiler/ets/privateMethodOverride.ets index 7cd333f43e..25267d2e89 100644 --- a/ets2panda/test/ast/compiler/ets/privateMethodOverride.ets +++ b/ets2panda/test/ast/compiler/ets/privateMethodOverride.ets @@ -23,4 +23,5 @@ class B extends A { } } -/* @@@ label Error TypeError: Method foo(): void in B not overriding any method */ + +/* @@@ label Error Semantic error ESE0136: Method foo(): void in B not overriding any method */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/private_field_declaration.ets b/ets2panda/test/ast/compiler/ets/private_field_declaration.ets index 153546fc72..d68bc70597 100644 --- a/ets2panda/test/ast/compiler/ets/private_field_declaration.ets +++ b/ets2panda/test/ast/compiler/ets/private_field_declaration.ets @@ -18,5 +18,5 @@ #field: int = 0; } - /* @@? 18:5 Error SyntaxError: Use 'private' keyword to declare an identifier as private. */ - /* @@? 18:5 Error SyntaxError: Unexpected token '{'. */ \ No newline at end of file + /* @@? 18:5 Error Syntax error ESY0298: Use 'private' keyword to declare an identifier as private. */ +/* @@? 18:5 Error Syntax error ESY0227: Unexpected token '{'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/re-declare_in_local_scope.ets b/ets2panda/test/ast/compiler/ets/re-declare_in_local_scope.ets index ae18b2d15c..c58373d219 100644 --- a/ets2panda/test/ast/compiler/ets/re-declare_in_local_scope.ets +++ b/ets2panda/test/ast/compiler/ets/re-declare_in_local_scope.ets @@ -18,5 +18,5 @@ let ten = 10; } -/* @@? 17:9 Error SyntaxError: 'var' keyword is not supported. Use 'let' instead. */ -/* @@? 18:9 Error TypeError: Variable 'ten' has already been declared. */ \ No newline at end of file +/* @@? 17:9 Error Syntax error ESY0297: 'var' keyword is not supported. Use 'let' instead. */ +/* @@? 18:9 Error Semantic error ESE0351: Variable 'ten' has already been declared. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/readonly-type-reassignment0.ets b/ets2panda/test/ast/compiler/ets/readonly-type-reassignment0.ets index 9a07282a7a..69c862a0f8 100755 --- a/ets2panda/test/ast/compiler/ets/readonly-type-reassignment0.ets +++ b/ets2panda/test/ast/compiler/ets/readonly-type-reassignment0.ets @@ -23,4 +23,5 @@ function main() { /* @@ label */z.i = 2.9 } -/* @@@ label Error TypeError: The 'Readonly' property cannot be reassigned. */ + +/* @@@ label Error Semantic error ESE0338: The 'Readonly' property cannot be reassigned. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/readonly-type-reassignment1.ets b/ets2panda/test/ast/compiler/ets/readonly-type-reassignment1.ets index 974a88ae5f..75873d38e8 100755 --- a/ets2panda/test/ast/compiler/ets/readonly-type-reassignment1.ets +++ b/ets2panda/test/ast/compiler/ets/readonly-type-reassignment1.ets @@ -33,4 +33,5 @@ function main() { /* @@ label */z.j = "new str" } -/* @@@ label Error TypeError: The 'Readonly' property cannot be reassigned. */ + +/* @@@ label Error Semantic error ESE0338: The 'Readonly' property cannot be reassigned. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/readonly/label_readonly_true.ets b/ets2panda/test/ast/compiler/ets/readonly/label_readonly_true.ets index ffe851e573..10cf77e51c 100644 --- a/ets2panda/test/ast/compiler/ets/readonly/label_readonly_true.ets +++ b/ets2panda/test/ast/compiler/ets/readonly/label_readonly_true.ets @@ -16,9 +16,9 @@ WE: readonly true; let: readonly; -/* @@? 16:5 Error SyntaxError: Label must be followed by a loop statement. */ -/* @@? 16:5 Error TypeError: Unresolved reference readonly */ -/* @@? 16:14 Error SyntaxError: Unexpected token 'true'. */ -/* @@? 17:4 Error SyntaxError: Identifier expected, got ':'. */ -/* @@? 17:6 Error SyntaxError: Variable must be initialized or it's type must be declared. */ -/* @@? 17:6 Error SyntaxError: Unexpected token 'readonly'. */ \ No newline at end of file +/* @@? 16:5 Error Syntax error ESY0038: Label must be followed by a loop statement. */ +/* @@? 16:5 Error Semantic error ESE0143: Unresolved reference readonly */ +/* @@? 16:14 Error Syntax error ESY0227: Unexpected token 'true'. */ +/* @@? 17:4 Error Syntax error ESY0224: Identifier expected, got ':'. */ +/* @@? 17:6 Error Syntax error ESY0105: Variable must be initialized or it's type must be declared. */ +/* @@? 17:6 Error Syntax error ESY0227: Unexpected token 'readonly'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/readonly/readonly_array.ets b/ets2panda/test/ast/compiler/ets/readonly/readonly_array.ets index d00c74ecc1..18ffde2182 100644 --- a/ets2panda/test/ast/compiler/ets/readonly/readonly_array.ets +++ b/ets2panda/test/ast/compiler/ets/readonly/readonly_array.ets @@ -15,4 +15,4 @@ let a: readonly int [""]; -/* @@? 16:21 Error SyntaxError: Indexed access types are not supported, use type name instead! */ \ No newline at end of file +/* @@? 16:21 Error Syntax error ESY49888: Indexed access types are not supported, use type name instead! */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/readonly/readonly_as_args_type.ets b/ets2panda/test/ast/compiler/ets/readonly/readonly_as_args_type.ets index 32b89726ad..eef54f55dc 100644 --- a/ets2panda/test/ast/compiler/ets/readonly/readonly_as_args_type.ets +++ b/ets2panda/test/ast/compiler/ets/readonly/readonly_as_args_type.ets @@ -15,5 +15,6 @@ function foo(param1: readonly/* @@ foo_param1 */, param2: readonly /* @@ foo_param2 */true) {} -/* @@@ foo_param1 Error SyntaxError: Invalid Type. */ -/* @@@ foo_param2 Error SyntaxError: Invalid Type. */ + +/* @@@ foo_param1 Error Syntax error ESY0138: Invalid Type. */ +/* @@@ foo_param2 Error Syntax error ESY0138: Invalid Type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/readonly/readonly_as_fields_type.ets b/ets2panda/test/ast/compiler/ets/readonly/readonly_as_fields_type.ets index a8269c5aec..8149f7839e 100644 --- a/ets2panda/test/ast/compiler/ets/readonly/readonly_as_fields_type.ets +++ b/ets2panda/test/ast/compiler/ets/readonly/readonly_as_fields_type.ets @@ -19,8 +19,9 @@ class A { c: readonly /* @@ A_c */1; } -/* @@@ A_a Error SyntaxError: Invalid Type. */ -/* @@@ A_b Error SyntaxError: Invalid Type. */ -/* @@@ A_b Error SyntaxError: Unexpected token 'false'. */ -/* @@@ A_c Error SyntaxError: Invalid Type. */ -/* @@@ A_c Error SyntaxError: Unexpected token '1'. */ + +/* @@@ A_a Error Syntax error ESY0138: Invalid Type. */ +/* @@@ A_b Error Syntax error ESY0138: Invalid Type. */ +/* @@@ A_b Error Syntax error ESY0227: Unexpected token 'false'. */ +/* @@@ A_c Error Syntax error ESY0138: Invalid Type. */ +/* @@@ A_c Error Syntax error ESY0227: Unexpected token '1'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/readonly/readonly_static_var.ets b/ets2panda/test/ast/compiler/ets/readonly/readonly_static_var.ets index 46ad39e55c..cce871b410 100644 --- a/ets2panda/test/ast/compiler/ets/readonly/readonly_static_var.ets +++ b/ets2panda/test/ast/compiler/ets/readonly/readonly_static_var.ets @@ -15,7 +15,8 @@ readonly static S = c' '; -/* @@? 16:1 Error TypeError: Unresolved reference readonly */ -/* @@? 16:10 Error SyntaxError: Unexpected token 'static'. */ -/* @@? 16:17 Error SyntaxError: Unexpected token 'S'. */ -/* @@? 16:17 Error TypeError: Unresolved reference S */ + +/* @@? 16:1 Error Semantic error ESE0143: Unresolved reference readonly */ +/* @@? 16:10 Error Syntax error ESY0227: Unexpected token 'static'. */ +/* @@? 16:17 Error Syntax error ESY0227: Unexpected token 'S'. */ +/* @@? 16:17 Error Semantic error ESE0143: Unresolved reference S */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/readonlyField.ets b/ets2panda/test/ast/compiler/ets/readonlyField.ets index e635f36326..d8efac600e 100644 --- a/ets2panda/test/ast/compiler/ets/readonlyField.ets +++ b/ets2panda/test/ast/compiler/ets/readonlyField.ets @@ -24,4 +24,5 @@ function main(): void { /* @@ label */myData.value = "new data"; } -/* @@@ label Error TypeError: Cannot assign to a readonly field value */ + +/* @@@ label Error Semantic error ESE4002: Cannot assign to a readonly field value */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/readonlyField_2.ets b/ets2panda/test/ast/compiler/ets/readonlyField_2.ets index b43c2d1489..b0a3aa1112 100644 --- a/ets2panda/test/ast/compiler/ets/readonlyField_2.ets +++ b/ets2panda/test/ast/compiler/ets/readonlyField_2.ets @@ -27,4 +27,5 @@ function main(): void { updatePerson(person); } -/* @@@ label Error TypeError: Cannot assign to a readonly field name */ + +/* @@@ label Error Semantic error ESE4002: Cannot assign to a readonly field name */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/readonlyIntfObjectLiteral_neg_1.ets b/ets2panda/test/ast/compiler/ets/readonlyIntfObjectLiteral_neg_1.ets index b68cabb424..43929a45cb 100644 --- a/ets2panda/test/ast/compiler/ets/readonlyIntfObjectLiteral_neg_1.ets +++ b/ets2panda/test/ast/compiler/ets/readonlyIntfObjectLiteral_neg_1.ets @@ -23,4 +23,4 @@ function main() { } -/* @@? 22:7 Error TypeError: Cannot assign to this property because it is readonly. */ \ No newline at end of file +/* @@? 22:7 Error Semantic error ESE0209: Cannot assign to this property because it is readonly. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/readonlyIntfObjectLiteral_neg_2.ets b/ets2panda/test/ast/compiler/ets/readonlyIntfObjectLiteral_neg_2.ets index 1e8c2d5d48..5f6527b36e 100644 --- a/ets2panda/test/ast/compiler/ets/readonlyIntfObjectLiteral_neg_2.ets +++ b/ets2panda/test/ast/compiler/ets/readonlyIntfObjectLiteral_neg_2.ets @@ -28,4 +28,4 @@ function main() { } -/* @@? 27:12 Error TypeError: Cannot assign to this property because it is readonly. */ \ No newline at end of file +/* @@? 27:12 Error Semantic error ESE0209: Cannot assign to this property because it is readonly. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/readonlyType_1.ets b/ets2panda/test/ast/compiler/ets/readonlyType_1.ets index b4cb4f0277..bffb4de265 100644 --- a/ets2panda/test/ast/compiler/ets/readonlyType_1.ets +++ b/ets2panda/test/ast/compiler/ets/readonlyType_1.ets @@ -26,5 +26,6 @@ function foo(a0: A) { } -/* @@@ label Error TypeError: Cannot assign to a readonly field fld */ -/* @@@ label Error TypeError: The 'Readonly' property cannot be reassigned. */ + +/* @@@ label Error Semantic error ESE0338: The 'Readonly' property cannot be reassigned. */ +/* @@@ label Error Semantic error ESE4002: Cannot assign to a readonly field fld */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/readonlyType_2.ets b/ets2panda/test/ast/compiler/ets/readonlyType_2.ets index 7c73a1765c..25d22c543a 100644 --- a/ets2panda/test/ast/compiler/ets/readonlyType_2.ets +++ b/ets2panda/test/ast/compiler/ets/readonlyType_2.ets @@ -22,5 +22,6 @@ function foo(a0: A) { /* @@ label */a.fld = 5 } -/* @@@ label Error TypeError: Cannot assign to a readonly field fld */ -/* @@@ label Error TypeError: The 'Readonly' property cannot be reassigned. */ + +/* @@@ label Error Semantic error ESE0338: The 'Readonly' property cannot be reassigned. */ +/* @@@ label Error Semantic error ESE4002: Cannot assign to a readonly field fld */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/readonlyType_3.ets b/ets2panda/test/ast/compiler/ets/readonlyType_3.ets index 9bbf937c5e..ebc0e71734 100644 --- a/ets2panda/test/ast/compiler/ets/readonlyType_3.ets +++ b/ets2panda/test/ast/compiler/ets/readonlyType_3.ets @@ -20,5 +20,6 @@ class A { } } -/* @@@ label Error TypeError: Cannot assign to a readonly field fld */ -/* @@@ label Error TypeError: The 'Readonly' property cannot be reassigned. */ + +/* @@@ label Error Semantic error ESE0338: The 'Readonly' property cannot be reassigned. */ +/* @@@ label Error Semantic error ESE4002: Cannot assign to a readonly field fld */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/readonlyType_4.ets b/ets2panda/test/ast/compiler/ets/readonlyType_4.ets index 03edcf4a18..4872e821fa 100644 --- a/ets2panda/test/ast/compiler/ets/readonlyType_4.ets +++ b/ets2panda/test/ast/compiler/ets/readonlyType_4.ets @@ -29,5 +29,6 @@ class C extends B { } } -/* @@@ label Error TypeError: Cannot assign to a readonly field fld */ -/* @@@ label Error TypeError: The 'Readonly' property cannot be reassigned. */ + +/* @@@ label Error Semantic error ESE0338: The 'Readonly' property cannot be reassigned. */ +/* @@@ label Error Semantic error ESE4002: Cannot assign to a readonly field fld */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/readonlyType_5.ets b/ets2panda/test/ast/compiler/ets/readonlyType_5.ets index 16c1980911..c5ca3cd15a 100644 --- a/ets2panda/test/ast/compiler/ets/readonlyType_5.ets +++ b/ets2panda/test/ast/compiler/ets/readonlyType_5.ets @@ -22,4 +22,4 @@ function foo(): void { let a_class: A = /* @@ label */a; } -/* @@@ label Error TypeError: Type 'Readonly' cannot be assigned to type 'A' */ + diff --git a/ets2panda/test/ast/compiler/ets/readonlyType_6.ets b/ets2panda/test/ast/compiler/ets/readonlyType_6.ets index d037f8688f..2d99efda9f 100644 --- a/ets2panda/test/ast/compiler/ets/readonlyType_6.ets +++ b/ets2panda/test/ast/compiler/ets/readonlyType_6.ets @@ -25,4 +25,4 @@ function foo(): void { /* @@ label */a.foo2(); } -/* @@@ label Error TypeError: Cannot call readonly type methods. */ + diff --git a/ets2panda/test/ast/compiler/ets/readonly_array01.ets b/ets2panda/test/ast/compiler/ets/readonly_array01.ets index 35d50fac50..be9a9bcc7e 100644 --- a/ets2panda/test/ast/compiler/ets/readonly_array01.ets +++ b/ets2panda/test/ast/compiler/ets/readonly_array01.ets @@ -19,5 +19,6 @@ function main() { v[0] = [] // CTE } -/* @@? 19:5 Error TypeError: Object type doesn't have proper index access method. */ -/* @@? 19:12 Error TypeError: Can't resolve array type */ + +/* @@? 19:5 Error Semantic error ESE0250: Object type doesn't have proper index access method. */ +/* @@? 19:12 Error Semantic error ESE0301: Can't resolve array type */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/readonly_array02.ets b/ets2panda/test/ast/compiler/ets/readonly_array02.ets index 282f2fcfba..c4bb253e71 100644 --- a/ets2panda/test/ast/compiler/ets/readonly_array02.ets +++ b/ets2panda/test/ast/compiler/ets/readonly_array02.ets @@ -21,5 +21,5 @@ function main() { v[0] = [1.0,3.0] // CTE, readonly array } -/* @@? 21:5 Error TypeError: Cannot modify an array or tuple content that has the readonly parameter */ + diff --git a/ets2panda/test/ast/compiler/ets/recordWithLambdaFunction1.ets b/ets2panda/test/ast/compiler/ets/recordWithLambdaFunction1.ets index ea86b7f81d..09c93f805a 100644 --- a/ets2panda/test/ast/compiler/ets/recordWithLambdaFunction1.ets +++ b/ets2panda/test/ast/compiler/ets/recordWithLambdaFunction1.ets @@ -21,4 +21,4 @@ function main(): void { } } -/* @@? 20:12 Error TypeError: Type '(p1: String) => String' is not compatible with type '(p1: Double) => String' at index 2 */ +/* @@? 20:12 Error Semantic error ESE0046: Type '(p1: String) => String' is not compatible with type '(p1: Double) => String' at index 2 */ diff --git a/ets2panda/test/ast/compiler/ets/recordWithLambdaFunction2.ets b/ets2panda/test/ast/compiler/ets/recordWithLambdaFunction2.ets index 125802b3b0..708d45b2a4 100644 --- a/ets2panda/test/ast/compiler/ets/recordWithLambdaFunction2.ets +++ b/ets2panda/test/ast/compiler/ets/recordWithLambdaFunction2.ets @@ -23,6 +23,6 @@ function main(): void { handlerMap[2] = 1 } -/* @@? 23:5 Error TypeError: No matching indexing signature for $_set(Int, Int) */ -/* @@? 23:16 Error TypeError: Cannot find index access method with the required signature. */ -/* @@? 23:21 Error TypeError: Type 'Int' is not compatible with type '(p1: Double) => String' at index 2 */ +/* @@? 23:5 Error Semantic error ESE0127: No matching indexing signature for $_set(Int, Int) */ +/* @@? 23:16 Error Semantic error ESE0251: Cannot find index access method with the required signature. */ +/* @@? 23:21 Error Semantic error ESE0046: Type 'Int' is not compatible with type '(p1: Double) => String' at index 2 */ diff --git a/ets2panda/test/ast/compiler/ets/record_with_getter_crash.ets b/ets2panda/test/ast/compiler/ets/record_with_getter_crash.ets index a0daa87915..8b2e2776a8 100644 --- a/ets2panda/test/ast/compiler/ets/record_with_getter_crash.ets +++ b/ets2panda/test/ast/compiler/ets/record_with_getter_crash.ets @@ -44,6 +44,7 @@ function main() { assertEQ(u2.meth()['b'], 22.0) } -/* @@? 26:17 Error SyntaxError: Object pattern can't contain methods. */ -/* @@? 43:5 Error TypeError: Unresolved reference assertEQ */ -/* @@? 44:5 Error TypeError: This expression is not callable. */ + +/* @@? 26:17 Error Syntax error ESY0062: Object pattern can't contain methods. */ +/* @@? 43:5 Error Semantic error ESE0143: Unresolved reference assertEQ */ +/* @@? 44:5 Error Semantic error ESE0289: This expression is not callable. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/recursive_class_neg.ets b/ets2panda/test/ast/compiler/ets/recursive_class_neg.ets index f2f1b08aa9..74d4cb44c5 100644 --- a/ets2panda/test/ast/compiler/ets/recursive_class_neg.ets +++ b/ets2panda/test/ast/compiler/ets/recursive_class_neg.ets @@ -17,6 +17,7 @@ class A>>{} class C extends A/* @@ label1 */>{} /* A does not satisfy the constraint due to invariance of T */ -/* @@@ label Error TypeError: Type argument 'A' should be a subtype of 'A>>'-constraint */ -/* @@@ label2 Error TypeError: Type argument 'C' should be a subtype of 'A>'-constraint */ -/* @@@ label1 Error TypeError: Type argument 'A' should be a subtype of 'A>>'-constraint */ + +/* @@@ label Error Semantic error ESE0228: Type argument 'A' should be a subtype of 'A>>'-constraint */ +/* @@@ label1 Error Semantic error ESE0228: Type argument 'A' should be a subtype of 'A>>'-constraint */ +/* @@@ label2 Error Semantic error ESE0228: Type argument 'C' should be a subtype of 'A>'-constraint */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/recursive_function_neg_1.ets b/ets2panda/test/ast/compiler/ets/recursive_function_neg_1.ets index 9bc5f8cdcc..bd7554ea28 100644 --- a/ets2panda/test/ast/compiler/ets/recursive_function_neg_1.ets +++ b/ets2panda/test/ast/compiler/ets/recursive_function_neg_1.ets @@ -20,4 +20,5 @@ function main(){ /* @@ label */foo() } -/* @@@ label Error TypeError: No matching call signature */ + +/* @@@ label Error Semantic error ESE0128: No matching call signature */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/recursive_interface_neg_1.ets b/ets2panda/test/ast/compiler/ets/recursive_interface_neg_1.ets index 9ee831177a..a9898e1445 100644 --- a/ets2panda/test/ast/compiler/ets/recursive_interface_neg_1.ets +++ b/ets2panda/test/ast/compiler/ets/recursive_interface_neg_1.ets @@ -16,4 +16,5 @@ interface A>{} interface D{} interface B extends A/* @@ label */{} -/* @@@ label Error TypeError: Type argument 'D' should be a subtype of 'A'-constraint */ + +/* @@@ label Error Semantic error ESE0228: Type argument 'D' should be a subtype of 'A'-constraint */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/recursive_interface_neg_2.ets b/ets2panda/test/ast/compiler/ets/recursive_interface_neg_2.ets index 3596a49b97..b9975c2e24 100644 --- a/ets2panda/test/ast/compiler/ets/recursive_interface_neg_2.ets +++ b/ets2panda/test/ast/compiler/ets/recursive_interface_neg_2.ets @@ -16,4 +16,5 @@ interface A,T2 extends A>{} interface D{} interface B extends A/* @@ label */{} -/* @@@ label Error TypeError: Type argument 'D' should be a subtype of 'A'-constraint */ + +/* @@@ label Error Semantic error ESE0228: Type argument 'D' should be a subtype of 'A'-constraint */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/recursive_method_neg_1.ets b/ets2panda/test/ast/compiler/ets/recursive_method_neg_1.ets index 7cd9a2186a..5bba97884d 100644 --- a/ets2panda/test/ast/compiler/ets/recursive_method_neg_1.ets +++ b/ets2panda/test/ast/compiler/ets/recursive_method_neg_1.ets @@ -26,4 +26,5 @@ function main(){ /* @@ label */a_obj.foo(x) } -/* @@@ label Error TypeError: No matching call signature for foo(C) */ + +/* @@@ label Error Semantic error ESE0127: No matching call signature for foo(C) */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/recursive_method_neg_2.ets b/ets2panda/test/ast/compiler/ets/recursive_method_neg_2.ets index 6bd9794ea2..12d6eb627c 100644 --- a/ets2panda/test/ast/compiler/ets/recursive_method_neg_2.ets +++ b/ets2panda/test/ast/compiler/ets/recursive_method_neg_2.ets @@ -24,5 +24,6 @@ function main(){ let a_obj = new A() /* @@ label */a_obj.foo(/* @@ label1 */y) } -/* @@@ label1 Error TypeError: Type 'D' is not compatible with type 'C' at index 1 */ -/* @@@ label Error TypeError: No matching call signature for foo(D) */ + +/* @@@ label Error Semantic error ESE0127: No matching call signature for foo(D) */ +/* @@@ label1 Error Semantic error ESE0046: Type 'D' is not compatible with type 'C' at index 1 */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/recursive_union_neg_1.ets b/ets2panda/test/ast/compiler/ets/recursive_union_neg_1.ets index 0238b2626c..ed1f317b64 100644 --- a/ets2panda/test/ast/compiler/ets/recursive_union_neg_1.ets +++ b/ets2panda/test/ast/compiler/ets/recursive_union_neg_1.ets @@ -19,4 +19,5 @@ class T

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

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

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

' is generic but type argument were not provided. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/redecl_func_arow_param_in_body.ets b/ets2panda/test/ast/compiler/ets/redecl_func_arow_param_in_body.ets index a0f98280f5..11a19120af 100644 --- a/ets2panda/test/ast/compiler/ets/redecl_func_arow_param_in_body.ets +++ b/ets2panda/test/ast/compiler/ets/redecl_func_arow_param_in_body.ets @@ -22,10 +22,11 @@ function foo(bar: () => int) { foo(() => {}); } -/* @@? 18:11 Error SyntaxError: Variable must be initialized or it's type must be declared. */ -/* @@? 18:13 Error TypeError: Variable 'bar' has already been declared. */ -/* @@? 18:16 Error SyntaxError: Variable must be initialized or it's type must be declared. */ -/* @@? 18:16 Error SyntaxError: Unexpected token '('. */ -/* @@? 18:17 Error SyntaxError: Unexpected token ')'. */ -/* @@? 18:18 Error SyntaxError: Unexpected token, expected ')'. */ -/* @@? 22:14 Error TypeError: Type 'void' is not compatible with the enclosing method's return type 'Int' */ + +/* @@? 18:11 Error Syntax error ESY0105: Variable must be initialized or it's type must be declared. */ +/* @@? 18:13 Error Semantic error ESE0351: Variable 'bar' has already been declared. */ +/* @@? 18:16 Error Syntax error ESY0105: Variable must be initialized or it's type must be declared. */ +/* @@? 18:16 Error Syntax error ESY0227: Unexpected token '('. */ +/* @@? 18:17 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 18:18 Error Syntax error ESY0228: Unexpected token, expected ')'. */ +/* @@? 22:14 Error Semantic error ESE0091: Type 'void' is not compatible with the enclosing method's return type 'Int' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/redefine_class/redefine_array.ets b/ets2panda/test/ast/compiler/ets/redefine_class/redefine_array.ets index ec66c92c5e..07b5cf7e68 100644 --- a/ets2panda/test/ast/compiler/ets/redefine_class/redefine_array.ets +++ b/ets2panda/test/ast/compiler/ets/redefine_class/redefine_array.ets @@ -23,4 +23,4 @@ export class Array { a: T } -/* @@? 1:3 Error TypeError: Class 'Array' is already defined. */ \ No newline at end of file +/* @@? 1:3 Error Semantic error ESE0349: Class 'Array' is already defined. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/referenceEqualityNotCastable_n.ets b/ets2panda/test/ast/compiler/ets/referenceEqualityNotCastable_n.ets index 51f4fc103e..c69e84db1b 100644 --- a/ets2panda/test/ast/compiler/ets/referenceEqualityNotCastable_n.ets +++ b/ets2panda/test/ast/compiler/ets/referenceEqualityNotCastable_n.ets @@ -22,4 +22,4 @@ function main(): void { let c = /* @@ label */a === b; } -/* @@@ label Node { "type": "BinaryExpression", "operator": "===" } */ + diff --git a/ets2panda/test/ast/compiler/ets/referenceEqualityNotReference_n.ets b/ets2panda/test/ast/compiler/ets/referenceEqualityNotReference_n.ets index 5bad290bca..5acc3eccee 100644 --- a/ets2panda/test/ast/compiler/ets/referenceEqualityNotReference_n.ets +++ b/ets2panda/test/ast/compiler/ets/referenceEqualityNotReference_n.ets @@ -19,4 +19,4 @@ function main(): void { let c = /* @@ label */a === b; } -/* @@@ label Node { "type": "BinaryExpression", "operator": "===" } */ + diff --git a/ets2panda/test/ast/compiler/ets/requiredType_10_neg.ets b/ets2panda/test/ast/compiler/ets/requiredType_10_neg.ets index cc8b0e626c..81470be243 100644 --- a/ets2panda/test/ast/compiler/ets/requiredType_10_neg.ets +++ b/ets2panda/test/ast/compiler/ets/requiredType_10_neg.ets @@ -25,4 +25,5 @@ function main(): void { let req_a: A = {fld: /* @@ label */{}}; } -/* @@? 21:18 Error TypeError: T in Required must be a class or an interface type. */ + +/* @@? 21:18 Error Semantic error ESE124644: T in Required must be a class or an interface type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/requiredType_2_neg.ets b/ets2panda/test/ast/compiler/ets/requiredType_2_neg.ets index e2c98e264d..7dff852b74 100644 --- a/ets2panda/test/ast/compiler/ets/requiredType_2_neg.ets +++ b/ets2panda/test/ast/compiler/ets/requiredType_2_neg.ets @@ -22,4 +22,5 @@ function main(): void { req_b.fld = /* @@ label */undefined; } -/* @@@ label Error TypeError: Type 'undefined' cannot be assigned to type 'Double' */ + +/* @@@ label Error Semantic error ESE0318: Type 'undefined' cannot be assigned to type 'Double' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/requiredType_3_neg.ets b/ets2panda/test/ast/compiler/ets/requiredType_3_neg.ets index 28bad7ad5a..5f3e1f1f26 100644 --- a/ets2panda/test/ast/compiler/ets/requiredType_3_neg.ets +++ b/ets2panda/test/ast/compiler/ets/requiredType_3_neg.ets @@ -21,4 +21,5 @@ function main(): void { let req_b: Required = /* @@ label */new B(); } -/* @@@ label Error TypeError: Type 'B' cannot be assigned to type 'Required' */ + +/* @@@ label Error Semantic error ESE0318: Type 'B' cannot be assigned to type 'Required' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/requiredType_6.ets b/ets2panda/test/ast/compiler/ets/requiredType_6.ets index 399456dfc6..18ee601018 100644 --- a/ets2panda/test/ast/compiler/ets/requiredType_6.ets +++ b/ets2panda/test/ast/compiler/ets/requiredType_6.ets @@ -23,4 +23,5 @@ function main(): void { b_class = /* @@ label */req_b; } -/* @@@ label Error TypeError: Type 'Required' cannot be assigned to type 'B' */ + +/* @@@ label Error Semantic error ESE0318: Type 'Required' cannot be assigned to type 'B' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/requiredType_7_neg.ets b/ets2panda/test/ast/compiler/ets/requiredType_7_neg.ets index bbd431829c..9151bd7b26 100644 --- a/ets2panda/test/ast/compiler/ets/requiredType_7_neg.ets +++ b/ets2panda/test/ast/compiler/ets/requiredType_7_neg.ets @@ -23,4 +23,5 @@ function main(): void { let req_b: Required = /* @@ label */{fld: 3.0, fld2: 5.0}; } -/* @@@ label Error TypeError: Class property 'fld3' needs to be initialized for Required. */ + +/* @@@ label Error Semantic error ESE0226: Class property 'fld3' needs to be initialized for Required. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/requiredType_8_neg.ets b/ets2panda/test/ast/compiler/ets/requiredType_8_neg.ets index b9e237a906..2b5dc3e6fb 100644 --- a/ets2panda/test/ast/compiler/ets/requiredType_8_neg.ets +++ b/ets2panda/test/ast/compiler/ets/requiredType_8_neg.ets @@ -21,4 +21,5 @@ function main(): void { let req_a: Required = new /* @@ label */Required(); } -/* @@@ label Error TypeError: Required type can be instantiated only with object literal */ + +/* @@@ label Error Semantic error ESE0053: Required type can be instantiated only with object literal */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/resolve_class_declaration.ets b/ets2panda/test/ast/compiler/ets/resolve_class_declaration.ets index 71569d910a..ab19cd916c 100644 --- a/ets2panda/test/ast/compiler/ets/resolve_class_declaration.ets +++ b/ets2panda/test/ast/compiler/ets/resolve_class_declaration.ets @@ -18,11 +18,12 @@ interface I { return; } -/* @@? 17:20 Error SyntaxError: Interface fields must have type annotation. */ -/* @@? 17:30 Error SyntaxError: Unexpected token, expected ','. */ -/* @@? 17:30 Error SyntaxError: Identifier expected, got 'end of stream'. */ -/* @@? 17:31 Error SyntaxError: Identifier expected. */ -/* @@? 17:31 Error SyntaxError: Unexpected token, expected ','. */ -/* @@? 17:31 Error SyntaxError: Identifier expected, got 'end of stream'. */ -/* @@? 17:41 Error SyntaxError: Interface fields must have type annotation. */ -/* @@? 18:5 Error SyntaxError: Invalid Type. */ + +/* @@? 17:20 Error Syntax error ESY0119: Interface fields must have type annotation. */ +/* @@? 17:30 Error Syntax error ESY0228: Unexpected token, expected ','. */ +/* @@? 17:30 Error Syntax error ESY0224: Identifier expected, got 'end of stream'. */ +/* @@? 17:31 Error Syntax error ESY0122: Identifier expected. */ +/* @@? 17:31 Error Syntax error ESY0228: Unexpected token, expected ','. */ +/* @@? 17:31 Error Syntax error ESY0224: Identifier expected, got 'end of stream'. */ +/* @@? 17:41 Error Syntax error ESY0119: Interface fields must have type annotation. */ +/* @@? 18:5 Error Syntax error ESY0138: Invalid Type. */ \ No newline at end of file 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 04e64ab5de..dbda26305c 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,6 @@ 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. */ \ No newline at end of file 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..70d65096f6 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,6 @@ 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' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/restvar_type_infer.ets b/ets2panda/test/ast/compiler/ets/restvar_type_infer.ets index b24788ce95..db4ea20606 100644 --- a/ets2panda/test/ast/compiler/ets/restvar_type_infer.ets +++ b/ets2panda/test/ast/compiler/ets/restvar_type_infer.ets @@ -18,9 +18,10 @@ function main() { let r2 = ((a:number, ...args)=> { return args.length; })(1,2,3,4,5) } -/* @@? 17:14 Error TypeError: Cannot use type 'void' as value. */ -/* @@? 17:16 Error SyntaxError: Rest parameter should be either array or tuple type. */ -/* @@? 17:16 Error TypeError: The type of parameter 'args' cannot be inferred */ -/* @@? 18:14 Error TypeError: Cannot use type 'void' as value. */ -/* @@? 18:26 Error SyntaxError: Rest parameter should be either array or tuple type. */ -/* @@? 18:26 Error TypeError: The type of parameter 'args' cannot be inferred */ + +/* @@? 17:14 Error Semantic error ESE0078: Cannot use type 'void' as value. */ +/* @@? 17:16 Error Syntax error ESY0193: Rest parameter should be either array or tuple type. */ +/* @@? 17:16 Error Semantic error ESE0132: The type of parameter 'args' cannot be inferred */ +/* @@? 18:14 Error Semantic error ESE0078: Cannot use type 'void' as value. */ +/* @@? 18:26 Error Syntax error ESY0193: Rest parameter should be either array or tuple type. */ +/* @@? 18:26 Error Semantic error ESE0132: The type of parameter 'args' cannot be inferred */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/returnTypeAnnotation_typeParams_nullptr.ets b/ets2panda/test/ast/compiler/ets/returnTypeAnnotation_typeParams_nullptr.ets index 64f4958d34..0a6cd278a0 100755 --- a/ets2panda/test/ast/compiler/ets/returnTypeAnnotation_typeParams_nullptr.ets +++ b/ets2panda/test/ast/compiler/ets/returnTypeAnnotation_typeParams_nullptr.ets @@ -16,8 +16,8 @@ class Arr { public mp(a: int): FixedArray<()> } -/* @@? 16:11 Error TypeError: Only abstract or native methods can't have body. */ -/* @@? 16:24 Error TypeError: FixedArray must have only one type parameter. */ -/* @@? 16:37 Error SyntaxError: Unexpected token, expected '=>'. */ -/* @@? 16:37 Error SyntaxError: Unexpected token, expected '>'. */ -/* @@? 16:37 Error SyntaxError: Unexpected token '>'. */ \ No newline at end of file +/* @@? 16:11 Error Semantic error ESE0017: Only abstract or native methods can't have body. */ +/* @@? 16:24 Error Semantic error ESE0277: FixedArray must have only one type parameter. */ +/* @@? 16:37 Error Syntax error ESY0228: Unexpected token, expected '=>'. */ +/* @@? 16:37 Error Syntax error ESY0228: Unexpected token, expected '>'. */ +/* @@? 16:37 Error Syntax error ESY0227: Unexpected token '>'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/return_missing_argument.ets b/ets2panda/test/ast/compiler/ets/return_missing_argument.ets index 019bd7f77d..e3a9ed0414 100644 --- a/ets2panda/test/ast/compiler/ets/return_missing_argument.ets +++ b/ets2panda/test/ast/compiler/ets/return_missing_argument.ets @@ -22,4 +22,5 @@ function main(): void { let a: int = dummy(); } -/* @@@ label Error TypeError: Missing return value. */ + +/* @@@ label Error Semantic error ESE0032: Missing return value. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/return_protected_function.ets b/ets2panda/test/ast/compiler/ets/return_protected_function.ets index 81897a3516..45bbb5b592 100644 --- a/ets2panda/test/ast/compiler/ets/return_protected_function.ets +++ b/ets2panda/test/ast/compiler/ets/return_protected_function.ets @@ -23,4 +23,4 @@ class A{ } }; -/* @@@ label Error TypeError: Protected method is used as value */ \ No newline at end of file +/* @@@ label Error Semantic error ESE0306: Protected method is used as value */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/return_this/this_type_invalid_return_type.ets b/ets2panda/test/ast/compiler/ets/return_this/this_type_invalid_return_type.ets index 76d43fc869..045471de9a 100644 --- a/ets2panda/test/ast/compiler/ets/return_this/this_type_invalid_return_type.ets +++ b/ets2panda/test/ast/compiler/ets/return_this/this_type_invalid_return_type.ets @@ -19,4 +19,5 @@ class A { } } -/* @@@ label Error TypeError: Only extension function or a class method can return 'this' */ + +/* @@@ label Error Semantic error ESE0031: Only extension function or a class method can return 'this' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/return_this/this_type_overridden_by_child_class.ets b/ets2panda/test/ast/compiler/ets/return_this/this_type_overridden_by_child_class.ets index ad094e2acc..26d97fe965 100644 --- a/ets2panda/test/ast/compiler/ets/return_this/this_type_overridden_by_child_class.ets +++ b/ets2panda/test/ast/compiler/ets/return_this/this_type_overridden_by_child_class.ets @@ -23,5 +23,6 @@ abstract class A implements I { } } -/* @@@ label Error TypeError: foo(): A in A cannot override foo(): I in I because overriding return type is not compatible with the other return type. */ -/* @@@ label Error TypeError: Method foo(): A in A not overriding any method */ + +/* @@@ label Error Semantic error ESE0141: foo(): A in A cannot override foo(): I in I because overriding return type is not compatible with the other return type. */ +/* @@@ label Error Semantic error ESE0136: Method foo(): A in A not overriding any method */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/return_type_test.ets b/ets2panda/test/ast/compiler/ets/return_type_test.ets index 9171a58bbc..f72a2cf1e4 100644 --- a/ets2panda/test/ast/compiler/ets/return_type_test.ets +++ b/ets2panda/test/ast/compiler/ets/return_type_test.ets @@ -26,4 +26,5 @@ function test(): Promise { return thenResult; } -/* @@? 23:9 Error TypeError: Missing return value. */ + +/* @@? 23:9 Error Semantic error ESE0032: Missing return value. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/same_assembly_overload/callExpr_pos.ets b/ets2panda/test/ast/compiler/ets/same_assembly_overload/callExpr_pos.ets index 6d1a172270..f6f67328fa 100644 --- a/ets2panda/test/ast/compiler/ets/same_assembly_overload/callExpr_pos.ets +++ b/ets2panda/test/ast/compiler/ets/same_assembly_overload/callExpr_pos.ets @@ -24,5 +24,5 @@ foo(b) foo(1,2) foo(1.1) -/* @@? 17:1 Warning Warning: Function foo with this assembly signature already declared. */ -/* @@? 23:5 Warning Warning: Variable 'b' is used before being assigned. */ + +/* @@? 23:5 Error Semantic error ESE0375: Variable 'b' is used before being assigned. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/same_assembly_overload/identical_signature.ets b/ets2panda/test/ast/compiler/ets/same_assembly_overload/identical_signature.ets index 92b493beb7..ded142c01e 100644 --- a/ets2panda/test/ast/compiler/ets/same_assembly_overload/identical_signature.ets +++ b/ets2panda/test/ast/compiler/ets/same_assembly_overload/identical_signature.ets @@ -16,5 +16,5 @@ declare function foo(A:number|undefined|null) declare function foo(A:number|undefined|null) -/* @@? 16:18 Error TypeError: Native and Declare methods should have explicit return type. */ -/* @@? 17:1 Error TypeError: Function foo is already declared. */ \ No newline at end of file +/* @@? 16:18 Error Semantic error ESE0018: Native and Declare methods should have explicit return type. */ +/* @@? 17:1 Error Semantic error ESE0130: Function foo is already declared. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/same_assembly_overload/overload_signature_neg_1.ets b/ets2panda/test/ast/compiler/ets/same_assembly_overload/overload_signature_neg_1.ets index 78955a8122..c479d846e5 100644 --- a/ets2panda/test/ast/compiler/ets/same_assembly_overload/overload_signature_neg_1.ets +++ b/ets2panda/test/ast/compiler/ets/same_assembly_overload/overload_signature_neg_1.ets @@ -18,4 +18,5 @@ export class A {} export declare function foo(a:A):void export declare function foo(a:A):number {} -/* @@? 19:49 Error TypeError: Native, Abstract and Declare methods cannot have body. */ + +/* @@? 19:49 Error Semantic error ESE0083: Native, Abstract and Declare methods cannot have body. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/same_assembly_overload/overload_signature_neg_2.ets b/ets2panda/test/ast/compiler/ets/same_assembly_overload/overload_signature_neg_2.ets index 18bdf1ec9e..8129994689 100644 --- a/ets2panda/test/ast/compiler/ets/same_assembly_overload/overload_signature_neg_2.ets +++ b/ets2panda/test/ast/compiler/ets/same_assembly_overload/overload_signature_neg_2.ets @@ -18,4 +18,5 @@ export class A {} export declare function foo(a:A):void export function foo(a:A):number {} -/* @@? 19:8 Error TypeError: Method declaration `foo` must all ambient or non-ambient */ + +/* @@? 19:8 Error Semantic error ESE0399: Method declaration `foo` must all ambient or non-ambient */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/same_assembly_overload/str_overload.ets b/ets2panda/test/ast/compiler/ets/same_assembly_overload/str_overload.ets index d1d3c761c8..13d00da467 100644 --- a/ets2panda/test/ast/compiler/ets/same_assembly_overload/str_overload.ets +++ b/ets2panda/test/ast/compiler/ets/same_assembly_overload/str_overload.ets @@ -17,4 +17,5 @@ declare function foo(a:"str1"):void declare function foo(a:"str2"):void -/* @@? 17:1 Warning Warning: Function foo with this assembly signature already declared. */ + +/* @@? 17:1 Warning Warning W0022: Function foo with this assembly signature already declared. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/same_name_field_err.ets b/ets2panda/test/ast/compiler/ets/same_name_field_err.ets index fdfa470be3..477bc21fbd 100644 --- a/ets2panda/test/ast/compiler/ets/same_name_field_err.ets +++ b/ets2panda/test/ast/compiler/ets/same_name_field_err.ets @@ -23,4 +23,5 @@ function main(): void { arktest.assertEQ(SameName.a, 32); } -/* @@? 19:12 Error TypeError: Variable 'a' has already been declared. */ + +/* @@? 19:12 Error Semantic error ESE0351: Variable 'a' has already been declared. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/selective-export-multiple/import_ambient_const_neg.ets b/ets2panda/test/ast/compiler/ets/selective-export-multiple/import_ambient_const_neg.ets index 3817c2080e..19bd5b3111 100644 --- a/ets2panda/test/ast/compiler/ets/selective-export-multiple/import_ambient_const_neg.ets +++ b/ets2panda/test/ast/compiler/ets/selective-export-multiple/import_ambient_const_neg.ets @@ -19,5 +19,5 @@ import { double_3 } from "./ambient_const_vars.ets" import { double_4 } from "./ambient_const_vars.ets" import { double_5 } from "./ambient_const_vars.ets" -/* @@? 17:26 Error TypeError: Imported element not exported 'double_2' */ -/* @@? 19:26 Error TypeError: Imported element not exported 'double_4' */ \ No newline at end of file +/* @@? 17:26 Error Semantic error ESE0355: Imported element not exported 'double_2' */ +/* @@? 19:26 Error Semantic error ESE0355: Imported element not exported 'double_4' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/setPropertyTypeOf.ets b/ets2panda/test/ast/compiler/ets/setPropertyTypeOf.ets index 8821d43bc2..3c0ff501be 100644 --- a/ets2panda/test/ast/compiler/ets/setPropertyTypeOf.ets +++ b/ets2panda/test/ast/compiler/ets/setPropertyTypeOf.ets @@ -23,6 +23,7 @@ class CustomError extends Error { } } -/* @@@ label1 Error SyntaxError: Runtime prototype inheritance is not supported because of static typing. */ -/* @@@ label2 Error SyntaxError: Invalid Type. */ -/* @@@ label3 Error SyntaxError: Runtime prototype assignment is not supported because of static typing */ + +/* @@@ label1 Error Syntax error ESY167923: Runtime prototype inheritance is not supported because of static typing. */ +/* @@@ label2 Error Syntax error ESY0138: Invalid Type. */ +/* @@@ label3 Error Syntax error ESY30818: Runtime prototype assignment is not supported because of static typing */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/set_init_without_param.ets b/ets2panda/test/ast/compiler/ets/set_init_without_param.ets index 50710b371e..c4e78177c2 100644 --- a/ets2panda/test/ast/compiler/ets/set_init_without_param.ets +++ b/ets2panda/test/ast/compiler/ets/set_init_without_param.ets @@ -15,8 +15,8 @@ set a '1;' -/* @@? 16:1 Error SyntaxError: Extension Setter can only have 2 parameters. */ -/* @@? 16:5 Error TypeError: Only abstract or native methods can't have body. */ -/* @@? 16:7 Error SyntaxError: Unexpected token, expected '('. */ -/* @@? 22:77 Error SyntaxError: Expected ')', got 'end of stream'. */ -/* @@? 22:77 Error SyntaxError: Extension Accessor must have a receiver. */ \ No newline at end of file +/* @@? 16:1 Error Syntax error ESY0023: Extension Setter can only have 2 parameters. */ +/* @@? 16:5 Error Semantic error ESE0017: Only abstract or native methods can't have body. */ +/* @@? 16:7 Error Syntax error ESY0228: Unexpected token, expected '('. */ +/* @@? 22:85 Error Syntax error ESY0230: Expected ')', got 'end of stream'. */ +/* @@? 22:85 Error Syntax error ESY0146: Extension Accessor must have a receiver. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/setter_func_no_return_type.ets b/ets2panda/test/ast/compiler/ets/setter_func_no_return_type.ets index 741e45d5f3..89b541d671 100644 --- a/ets2panda/test/ast/compiler/ets/setter_func_no_return_type.ets +++ b/ets2panda/test/ast/compiler/ets/setter_func_no_return_type.ets @@ -30,6 +30,6 @@ class Class3 { set f(x: string): void {this._f = x} /* @@ label2 */} -/* @@@ label Error SyntaxError: Setter must not have return type even if it is void. */ -/* @@@ label1 Error SyntaxError: Setter must not have return type even if it is void. */ -/* @@@ label2 Error SyntaxError: Setter must not have return type even if it is void. */ \ No newline at end of file +/* @@@ label Error Syntax error ESY0241: Setter must not have return type even if it is void. */ +/* @@@ label1 Error Syntax error ESY0241: Setter must not have return type even if it is void. */ +/* @@@ label2 Error Syntax error ESY0241: Setter must not have return type even if it is void. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/signature_argument.ets b/ets2panda/test/ast/compiler/ets/signature_argument.ets index 4a2151301a..6a93886930 100644 --- a/ets2panda/test/ast/compiler/ets/signature_argument.ets +++ b/ets2panda/test/ast/compiler/ets/signature_argument.ets @@ -29,15 +29,16 @@ interface B { adRequestParams: advertising.adRequestParams; } -/* @@? 20:14 Error TypeError: Property 'buttonsOptions' does not exist on type 'Index' */ -/* @@? 21:27 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 21:27 Error SyntaxError: Unexpected token. */ -/* @@? 21:30 Error SyntaxError: Unexpected token, expected ':'. */ -/* @@? 21:31 Error SyntaxError: Unexpected token ','. */ -/* @@? 22:13 Error SyntaxError: Unexpected token. */ -/* @@? 22:30 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 23:10 Error SyntaxError: Unexpected token ')'. */ -/* @@? 25:1 Error SyntaxError: Unexpected token '}'. */ -/* @@? 28:11 Error TypeError: Cannot find type 'ResourceStr'. */ -/* @@? 29:22 Error TypeError: Cannot find type 'advertising'. */ -/* @@? 29:34 Error TypeError: 'adRequestParams' type does not exist. */ + +/* @@? 20:14 Error Semantic error ESE0087: Property 'buttonsOptions' does not exist on type 'Index' */ +/* @@? 21:27 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 21:27 Error Syntax error ESY0016: Unexpected token. */ +/* @@? 21:30 Error Syntax error ESY0228: Unexpected token, expected ':'. */ +/* @@? 21:31 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 22:13 Error Syntax error ESY0016: Unexpected token. */ +/* @@? 22:30 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 23:10 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 25:1 Error Syntax error ESY0227: Unexpected token '}'. */ +/* @@? 28:11 Error Semantic error ESE0371: Cannot find type 'ResourceStr'. */ +/* @@? 29:22 Error Semantic error ESE0371: Cannot find type 'advertising'. */ +/* @@? 29:34 Error Semantic error ESE0070: 'adRequestParams' type does not exist. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/signature_param.ets b/ets2panda/test/ast/compiler/ets/signature_param.ets index 9c758d7953..1dd6bcc88c 100644 --- a/ets2panda/test/ast/compiler/ets/signature_param.ets +++ b/ets2panda/test/ast/compiler/ets/signature_param.ets @@ -29,20 +29,21 @@ function foo3() { foo2(() => {}); } -/* @@? 20:35 Error SyntaxError: Newline is not allowed in strings */ -/* @@? 20:45 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 22:1 Error SyntaxError: Illegal start of CLASS expression. */ -/* @@? 24:1 Error SyntaxError: Unexpected token, expected ')'. */ -/* @@? 24:1 Error SyntaxError: Unexpected token '{'. */ -/* @@? 24:1 Error SyntaxError: Unexpected token, expected ')'. */ -/* @@? 24:1 Error SyntaxError: Expected '{', got 'let'. */ -/* @@? 24:1 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 24:1 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ -/* @@? 24:1 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 24:1 Error SyntaxError: Nested functions are not allowed. */ -/* @@? 24:1 Error TypeError: Variable 'f' has already been declared. */ -/* @@? 24:1 Error TypeError: Unresolved reference x */ -/* @@? 26:1 Error SyntaxError: Nested functions are not allowed. */ -/* @@? 27:18 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 27:18 Error SyntaxError: Unexpected token ')'. */ -/* @@? 28:21 Error TypeError: Unresolved reference foo2 */ + +/* @@? 20:35 Error Syntax error ESY0265: Newline is not allowed in strings */ +/* @@? 20:45 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 22:1 Error Syntax error ESY0040: Illegal start of CLASS expression. */ +/* @@? 24:1 Error Syntax error ESY0228: Unexpected token, expected ')'. */ +/* @@? 24:1 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 24:1 Error Syntax error ESY0228: Unexpected token, expected ')'. */ +/* @@? 24:1 Error Syntax error ESY0230: Expected '{', got 'let'. */ +/* @@? 24:1 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 24:1 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ +/* @@? 24:1 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 24:1 Error Syntax error ESY0135: Nested functions are not allowed. */ +/* @@? 24:1 Error Semantic error ESE0351: Variable 'f' has already been declared. */ +/* @@? 24:1 Error Semantic error ESE0143: Unresolved reference x */ +/* @@? 26:1 Error Syntax error ESY0135: Nested functions are not allowed. */ +/* @@? 27:18 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 27:18 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 28:21 Error Semantic error ESE0143: Unresolved reference foo2 */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/smart_cast.ets b/ets2panda/test/ast/compiler/ets/smart_cast.ets index 226a7a068e..1a9ed9c40b 100644 --- a/ets2panda/test/ast/compiler/ets/smart_cast.ets +++ b/ets2panda/test/ast/compiler/ets/smart_cast.ets @@ -24,5 +24,6 @@ function baz(p: "Double") { let s: "Object" = p != undefined ? p : "Double"// should be cte } -/* @@? 24:23 Error TypeError: Type '"Double"' cannot be assigned to type '"Object"' */ + +/* @@? 24:23 Error Semantic error ESE0318: Type '"Double"' cannot be assigned to type '"Object"' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/smart_cast_while_test_mod.ets b/ets2panda/test/ast/compiler/ets/smart_cast_while_test_mod.ets index 1f9a65afaa..3680afcabe 100644 --- a/ets2panda/test/ast/compiler/ets/smart_cast_while_test_mod.ets +++ b/ets2panda/test/ast/compiler/ets/smart_cast_while_test_mod.ets @@ -23,5 +23,6 @@ function main(): void { } } -/* @@? 21:12 Error TypeError: Member type must be the same for all union objects. */ -/* @@? 21:15 Error TypeError: Property 'test' does not exist on type 'B' */ + +/* @@? 21:12 Error Semantic error ESE0244: Member type must be the same for all union objects. */ +/* @@? 21:15 Error Semantic error ESE0087: Property 'test' does not exist on type 'B' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/smart_cast_wuth_break.ets b/ets2panda/test/ast/compiler/ets/smart_cast_wuth_break.ets index aedd842942..9d65d7dec0 100644 --- a/ets2panda/test/ast/compiler/ets/smart_cast_wuth_break.ets +++ b/ets2panda/test/ast/compiler/ets/smart_cast_wuth_break.ets @@ -32,4 +32,5 @@ function main() { console.log(foo("a")); } -/* @@@ label Error TypeError: Type 'String|undefined' is not compatible with the enclosing method's return type 'undefined' */ + +/* @@@ label Error Semantic error ESE0091: Type 'String|undefined' is not compatible with the enclosing method's return type 'undefined' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/special_type.ets b/ets2panda/test/ast/compiler/ets/special_type.ets index ba9771e62f..0c4f5d9728 100644 --- a/ets2panda/test/ast/compiler/ets/special_type.ets +++ b/ets2panda/test/ast/compiler/ets/special_type.ets @@ -24,12 +24,13 @@ foo3(()=>{}) foo4(()=>{}) foo5(()=>{}) -/* @@? 16:17 Error SyntaxError: 'Required' is reserved and cannot be used as a variable/type name */ -/* @@? 17:17 Error SyntaxError: 'Readonly' is reserved and cannot be used as a variable/type name */ -/* @@? 18:17 Error SyntaxError: 'Partial' is reserved and cannot be used as a variable/type name */ -/* @@? 19:17 Error TypeError: FixedArray must have only one type parameter. */ -/* @@? 22:1 Error TypeError: No matching call signature for foo2(() => void) */ -/* @@? 23:1 Error TypeError: No matching call signature for foo3(() => void) */ -/* @@? 24:1 Error TypeError: No matching call signature for foo4(() => void) */ -/* @@? 25:1 Error TypeError: No matching call signature for foo5(() => void) */ + +/* @@? 16:17 Error Syntax error ESY0242: 'Required' is reserved and cannot be used as a variable/type name */ +/* @@? 17:17 Error Syntax error ESY0242: 'Readonly' is reserved and cannot be used as a variable/type name */ +/* @@? 18:17 Error Syntax error ESY0242: 'Partial' is reserved and cannot be used as a variable/type name */ +/* @@? 19:17 Error Semantic error ESE0277: FixedArray must have only one type parameter. */ +/* @@? 22:1 Error Semantic error ESE0127: No matching call signature for foo2(() => void) */ +/* @@? 23:1 Error Semantic error ESE0127: No matching call signature for foo3(() => void) */ +/* @@? 24:1 Error Semantic error ESE0127: No matching call signature for foo4(() => void) */ +/* @@? 25:1 Error Semantic error ESE0127: No matching call signature for foo5(() => void) */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/spreadExpressionAsPropertyInObjectLiteral.ets b/ets2panda/test/ast/compiler/ets/spreadExpressionAsPropertyInObjectLiteral.ets index a73d747d90..9bf58e1389 100644 --- a/ets2panda/test/ast/compiler/ets/spreadExpressionAsPropertyInObjectLiteral.ets +++ b/ets2panda/test/ast/compiler/ets/spreadExpressionAsPropertyInObjectLiteral.ets @@ -20,8 +20,14 @@ const b1: Base = { n: 200 } const b2: Base = /* @@ label */{ ...{n: 200} } const c1: Child = /* @@ label1 */{ ...b1, a: "a" } -/* @@@ label Error TypeError: The object literal properties must be key-value pairs */ -/* @@@ label Error TypeError: Non-optional property 'n' in type 'Base' is missing in object literal. */ -/* @@@ label1 Error TypeError: The object literal properties must be key-value pairs */ -/* @@@ label1 Error TypeError: Non-optional property 'n' in super type 'Base' of type 'Child' is missing in object literal. */ -/* @@@ label1 Error TypeError: Non-optional property 'a' in type 'Child' is missing in object literal. */ + +/* @@@ label Error Semantic error ESE0064: The object literal properties must be key-value pairs */ +/* @@@ label Error Semantic error ESE0400: Non-optional property 'n' in type 'Base' is missing in object literal. */ +/* @@@ label Error Semantic error ESE0064: The object literal properties must be key-value pairs */ +/* @@@ label Error Semantic error ESE0400: Non-optional property 'n' in type 'Base' is missing in object literal. */ +/* @@@ label1 Error Semantic error ESE0064: The object literal properties must be key-value pairs */ +/* @@@ label1 Error Semantic error ESE0401: Non-optional property 'n' in super type 'Base' of type 'Child' is missing in object literal. */ +/* @@@ label1 Error Semantic error ESE0400: Non-optional property 'a' in type 'Child' is missing in object literal. */ +/* @@@ label1 Error Semantic error ESE0064: The object literal properties must be key-value pairs */ +/* @@@ label1 Error Semantic error ESE0401: Non-optional property 'n' in super type 'Base' of type 'Child' is missing in object literal. */ +/* @@@ label1 Error Semantic error ESE0400: Non-optional property 'a' in type 'Child' is missing in object literal. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/spreadMultiArrayInTuple.ets b/ets2panda/test/ast/compiler/ets/spreadMultiArrayInTuple.ets index de366a4ce9..6b3416c5b3 100644 --- a/ets2panda/test/ast/compiler/ets/spreadMultiArrayInTuple.ets +++ b/ets2panda/test/ast/compiler/ets/spreadMultiArrayInTuple.ets @@ -21,9 +21,10 @@ function main() { let y2: [boolean, int, string, string] = /* @@ label3 */[true, /* @@ label4 */...x2, /* @@ label5 */...x3] } -/* @@? 18:56 Error TypeError: Initializer has 2 elements, but tuple requires 4 */ -/* @@? 18:72 Error TypeError: 'Array' cannot be spread in tuple. */ -/* @@? 18:94 Error TypeError: 'Array' cannot be spread in tuple. */ -/* @@? 21:61 Error TypeError: Initializer has 3 elements, but tuple requires 4 */ -/* @@? 21:83 Error TypeError: 'Array' cannot be spread in tuple. */ -/* @@? 21:105 Error TypeError: 'Array' cannot be spread in tuple. */ + +/* @@@ label Error Semantic error ESE0231: Initializer has 2 elements, but tuple requires 4 */ +/* @@@ label1 Error Semantic error ESE0055: 'Array' cannot be spread in tuple. */ +/* @@@ label2 Error Semantic error ESE0055: 'Array' cannot be spread in tuple. */ +/* @@@ label3 Error Semantic error ESE0231: Initializer has 3 elements, but tuple requires 4 */ +/* @@@ label4 Error Semantic error ESE0055: 'Array' cannot be spread in tuple. */ +/* @@@ label5 Error Semantic error ESE0055: 'Array' cannot be spread in tuple. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/spread_record.ets b/ets2panda/test/ast/compiler/ets/spread_record.ets index f9782ab974..0747c11c0a 100644 --- a/ets2panda/test/ast/compiler/ets/spread_record.ets +++ b/ets2panda/test/ast/compiler/ets/spread_record.ets @@ -20,12 +20,13 @@ let r3: Record = { ...r1, ...r2 } console.log(...r3) // crash - Issue #26773 -/* @@? 17:1 Error TypeError: The function or method being called needs a rest parameter to accept arguments passed via the spread operator. */ -/* @@? 17:1 Error TypeError: No matching call signature for log(...r1) */ -/* @@? 17:1 Error TypeError: The function or method being called needs a rest parameter to accept arguments passed via the spread operator. */ -/* @@? 17:13 Error TypeError: Type 'Record' is not compatible with rest parameter type 'Array' at index 1 */ -/* @@? 17:13 Error TypeError: Spread expression can be applied only to array or tuple type, but 'Record' is provided */ -/* @@? 20:1 Error TypeError: No matching call signature for log(...r3) */ -/* @@? 20:1 Error TypeError: The function or method being called needs a rest parameter to accept arguments passed via the spread operator. */ -/* @@? 20:13 Error TypeError: Type 'Record' is not compatible with rest parameter type 'Array' at index 1 */ -/* @@? 20:13 Error TypeError: Spread expression can be applied only to array or tuple type, but 'Record' is provided */ + +/* @@? 17:1 Error Semantic error ESE44192: The function or method being called needs a rest parameter to accept arguments passed via the spread operator. */ +/* @@? 17:1 Error Semantic error ESE0127: No matching call signature for log(...r1) */ +/* @@? 17:1 Error Semantic error ESE44192: The function or method being called needs a rest parameter to accept arguments passed via the spread operator. */ +/* @@? 17:13 Error Semantic error ESE0323: Type 'Record' is not compatible with rest parameter type 'Array' at index 1 */ +/* @@? 17:13 Error Semantic error ESE0049: Spread expression can be applied only to array or tuple type, but 'Record' is provided */ +/* @@? 20:1 Error Semantic error ESE0127: No matching call signature for log(...r3) */ +/* @@? 20:1 Error Semantic error ESE44192: The function or method being called needs a rest parameter to accept arguments passed via the spread operator. */ +/* @@? 20:13 Error Semantic error ESE0323: Type 'Record' is not compatible with rest parameter type 'Array' at index 1 */ +/* @@? 20:13 Error Semantic error ESE0049: Spread expression can be applied only to array or tuple type, but 'Record' is provided */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/staticInitializerInInnerClass.ets b/ets2panda/test/ast/compiler/ets/staticInitializerInInnerClass.ets index 5ecd50b4cb..9cd7fbfc7a 100644 --- a/ets2panda/test/ast/compiler/ets/staticInitializerInInnerClass.ets +++ b/ets2panda/test/ast/compiler/ets/staticInitializerInInnerClass.ets @@ -31,6 +31,7 @@ class Outer { } } -/* @@@ label Error SyntaxError: Unexpected token. A constructor, method, accessor, or property was expected. */ -/* @@@ label1 Error SyntaxError: Unexpected token. A constructor, method, accessor, or property was expected. */ -/* @@? 20:9 Error TypeError: Static initializer is not allowed in inner class. */ + +/* @@@ label Error Syntax error ESY0233: Unexpected token. A constructor, method, accessor, or property was expected. */ +/* @@? 20:9 Error Semantic error ESE0014: Static initializer is not allowed in inner class. */ +/* @@@ label1 Error Syntax error ESY0233: Unexpected token. A constructor, method, accessor, or property was expected. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/static_index_function1.ets b/ets2panda/test/ast/compiler/ets/static_index_function1.ets index 36c1a7ebd5..279dc2df53 100644 --- a/ets2panda/test/ast/compiler/ets/static_index_function1.ets +++ b/ets2panda/test/ast/compiler/ets/static_index_function1.ets @@ -27,7 +27,8 @@ function main() { let e = /* @@ label2 */A[/* @@ label3 */'a'] } -/* @@@ label Error TypeError: '$_get' is a static property of 'A' */ -/* @@@ label1 Error TypeError: '$_get' is a static property of 'A' */ -/* @@@ label2 Error SyntaxError: Class cannot be used as object. */ -/* @@@ label3 Error TypeError: '$_get' is a static property of 'A' */ + +/* @@@ label Error Semantic error ESE0207: '$_get' is a static property of 'A' */ +/* @@@ label1 Error Semantic error ESE0207: '$_get' is a static property of 'A' */ +/* @@@ label2 Error Syntax error ESY0318: Class cannot be used as object. */ +/* @@@ label3 Error Semantic error ESE0207: '$_get' is a static property of 'A' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/static_index_function2.ets b/ets2panda/test/ast/compiler/ets/static_index_function2.ets index c6ae1e214f..55be6a8077 100644 --- a/ets2panda/test/ast/compiler/ets/static_index_function2.ets +++ b/ets2panda/test/ast/compiler/ets/static_index_function2.ets @@ -26,6 +26,7 @@ function main(): int { return 0 } -/* @@@ label Error TypeError: '$_set' is a static property of 'A' */ -/* @@@ label1 Error SyntaxError: Class cannot be used as object. */ -/* @@@ label2 Error TypeError: '$_set' is a static property of 'A' */ + +/* @@@ label Error Semantic error ESE0207: '$_set' is a static property of 'A' */ +/* @@@ label1 Error Syntax error ESY0318: Class cannot be used as object. */ +/* @@@ label2 Error Semantic error ESE0207: '$_set' is a static property of 'A' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/static_index_function3.ets b/ets2panda/test/ast/compiler/ets/static_index_function3.ets index 0f7fdaddb6..47ce28f98c 100644 --- a/ets2panda/test/ast/compiler/ets/static_index_function3.ets +++ b/ets2panda/test/ast/compiler/ets/static_index_function3.ets @@ -43,5 +43,6 @@ function main(): int { return 0 } -/* @@? 39:17 Error TypeError: '$_iterator' is a static property of 'C' */ -/* @@? 39:17 Error TypeError: 'For-of' statement source expression is not of iterable type. */ + +/* @@? 39:17 Error Semantic error ESE0207: '$_iterator' is a static property of 'C' */ +/* @@? 39:17 Error Semantic error ESE0076: 'For-of' statement source expression is not of iterable type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/string_enum_unary.ets b/ets2panda/test/ast/compiler/ets/string_enum_unary.ets index 68ca4eb5fa..f53ffde16c 100644 --- a/ets2panda/test/ast/compiler/ets/string_enum_unary.ets +++ b/ets2panda/test/ast/compiler/ets/string_enum_unary.ets @@ -24,6 +24,7 @@ function main() { arktest.assertEQ(!Color.Red, !10) } -/* @@@ label Error TypeError: Bad operand type, the type of the operand must be numeric type. */ -/* @@@ label1 Error TypeError: Bad operand type, the type of the operand must be numeric type. */ -/* @@@ label2 Error TypeError: Bad operand type, the type of the operand must be numeric type. */ + +/* @@@ label Error Semantic error ESE0066: Bad operand type, the type of the operand must be numeric type. */ +/* @@@ label1 Error Semantic error ESE0066: Bad operand type, the type of the operand must be numeric type. */ +/* @@@ label2 Error Semantic error ESE0066: Bad operand type, the type of the operand must be numeric type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/string_tuple_type_neg.ets b/ets2panda/test/ast/compiler/ets/string_tuple_type_neg.ets index aa876db244..2ba9bdd044 100644 --- a/ets2panda/test/ast/compiler/ets/string_tuple_type_neg.ets +++ b/ets2panda/test/ast/compiler/ets/string_tuple_type_neg.ets @@ -15,13 +15,14 @@ type A = [n1:string, n2:string] -/* @@? 16:11 Error TypeError: Cannot find type 'n1'. */ -/* @@? 16:13 Error SyntaxError: Unexpected token, expected ',' or ']'. */ -/* @@? 16:13 Error SyntaxError: Unexpected token ':'. */ -/* @@? 16:14 Error SyntaxError: Unexpected token 'string'. */ -/* @@? 16:14 Error TypeError: Type name 'string' used in the wrong context */ -/* @@? 16:20 Error SyntaxError: Unexpected token ','. */ -/* @@? 16:22 Error SyntaxError: Unexpected token 'n2'. */ -/* @@? 16:25 Error SyntaxError: Label must be followed by a loop statement. */ -/* @@? 16:25 Error TypeError: Type name 'string' used in the wrong context */ -/* @@? 16:31 Error SyntaxError: Unexpected token ']'. */ + +/* @@? 16:11 Error Semantic error ESE0371: Cannot find type 'n1'. */ +/* @@? 16:13 Error Syntax error ESY0229: Unexpected token, expected ',' or ']'. */ +/* @@? 16:13 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 16:14 Error Syntax error ESY0227: Unexpected token 'string'. */ +/* @@? 16:14 Error Semantic error ESE0144: Type name 'string' used in the wrong context */ +/* @@? 16:20 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 16:22 Error Syntax error ESY0227: Unexpected token 'n2'. */ +/* @@? 16:25 Error Syntax error ESY0038: Label must be followed by a loop statement. */ +/* @@? 16:25 Error Semantic error ESE0144: Type name 'string' used in the wrong context */ +/* @@? 16:31 Error Syntax error ESY0227: Unexpected token ']'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/stwitch_with_non_case.ets b/ets2panda/test/ast/compiler/ets/stwitch_with_non_case.ets index 9741d6c34d..354ad93861 100644 --- a/ets2panda/test/ast/compiler/ets/stwitch_with_non_case.ets +++ b/ets2panda/test/ast/compiler/ets/stwitch_with_non_case.ets @@ -18,4 +18,5 @@ function foo(x: int): string { switch (x) { } } -/* @@? 16:10 Error TypeError: Function with a non void return type must return a value. */ + +/* @@? 16:10 Error Semantic error ESE0103: Function with a non void return type must return a value. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/subtype.ets b/ets2panda/test/ast/compiler/ets/subtype.ets index 5207d81c18..0e789cf6f7 100644 --- a/ets2panda/test/ast/compiler/ets/subtype.ets +++ b/ets2panda/test/ast/compiler/ets/subtype.ets @@ -40,4 +40,5 @@ const factory = new GenericObjectFactory(); const obj = g(factory); obj.give({}); -/* @@? 19:58 Error TypeError: Type argument 'Interface_2' should be a subtype of 'Interface_1'-constraint */ + +/* @@? 19:58 Error Semantic error ESE0228: Type argument 'Interface_2' should be a subtype of 'Interface_1'-constraint */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/superReferenceFromStaticContext.ets b/ets2panda/test/ast/compiler/ets/superReferenceFromStaticContext.ets index 0299dda17c..cf44bdd83c 100644 --- a/ets2panda/test/ast/compiler/ets/superReferenceFromStaticContext.ets +++ b/ets2panda/test/ast/compiler/ets/superReferenceFromStaticContext.ets @@ -27,4 +27,5 @@ class B extends A { } } -/* @@@ label Error TypeError: 'super' cannot be referenced from a static context */ + +/* @@@ label Error Semantic error ESE0202: 'super' cannot be referenced from a static context */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/switch_case_null_tstype.ets b/ets2panda/test/ast/compiler/ets/switch_case_null_tstype.ets index e5cacaf668..06b61677e8 100644 --- a/ets2panda/test/ast/compiler/ets/switch_case_null_tstype.ets +++ b/ets2panda/test/ast/compiler/ets/switch_case_null_tstype.ets @@ -23,10 +23,11 @@ switch (arg){ break; } -/* @@? 17:7 Error SyntaxError: Variable must be initialized or it's type must be declared. */ -/* @@? 17:7 Error SyntaxError: Unexpected token 'null'. */ -/* @@? 17:7 Error TypeError: Bad operand type, the types of the operands must be numeric type. */ -/* @@? 17:12 Error SyntaxError: Unexpected token 'int'. */ -/* @@? 22:5 Error TypeError: Constant expression required */ -/* @@? 22:10 Error SyntaxError: Class cannot be used as object. */ -/* @@? 22:10 Error TypeError: Switch case type 'A' is not comparable to discriminant type 'String' */ + +/* @@? 17:7 Error Syntax error ESY0105: Variable must be initialized or it's type must be declared. */ +/* @@? 17:7 Error Syntax error ESY0227: Unexpected token 'null'. */ +/* @@? 17:7 Error Semantic error ESE0107: Bad operand type, the types of the operands must be numeric type. */ +/* @@? 17:12 Error Syntax error ESY0227: Unexpected token 'int'. */ +/* @@? 22:5 Error Semantic error ESE0163: Constant expression required */ +/* @@? 22:10 Error Syntax error ESY0318: Class cannot be used as object. */ +/* @@? 22:10 Error Semantic error ESE0262: Switch case type 'A' is not comparable to discriminant type 'String' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/switch_negative_5.ets b/ets2panda/test/ast/compiler/ets/switch_negative_5.ets index d0703f36d3..cf4a2f6ce4 100644 --- a/ets2panda/test/ast/compiler/ets/switch_negative_5.ets +++ b/ets2panda/test/ast/compiler/ets/switch_negative_5.ets @@ -24,4 +24,4 @@ function main(): void { f(0); } -/* @@? 18:14 Error TypeError: Switch case type 'undefined' is not comparable to discriminant type 'int' */ \ No newline at end of file +/* @@? 18:14 Error Semantic error ESE0262: Switch case type 'undefined' is not comparable to discriminant type 'int' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/switchcaseDuplicate.ets b/ets2panda/test/ast/compiler/ets/switchcaseDuplicate.ets index d1499c6e6e..889ac64354 100644 --- a/ets2panda/test/ast/compiler/ets/switchcaseDuplicate.ets +++ b/ets2panda/test/ast/compiler/ets/switchcaseDuplicate.ets @@ -31,4 +31,4 @@ class IndexStr { } } -/* @@@ label Error TypeError: Case duplicate */ \ No newline at end of file +/* @@@ label Error Semantic error ESE0165: Case duplicate */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/template_fold.ets b/ets2panda/test/ast/compiler/ets/template_fold.ets index c4255f98ba..137a322dbf 100644 --- a/ets2panda/test/ast/compiler/ets/template_fold.ets +++ b/ets2panda/test/ast/compiler/ets/template_fold.ets @@ -15,5 +15,6 @@ `\0#{(new (Reflect)() ? new () : {f: [], : 2})}${true}` -/* @@? 16:2 Error SyntaxError: Octal escape sequences are not allowed in template strings. */ + +/* @@? 16:2 Error Syntax error ESY0247: Octal escape sequences are not allowed in template strings. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/thisReferenceFromStaticContext.ets b/ets2panda/test/ast/compiler/ets/thisReferenceFromStaticContext.ets index 6ed9b3f87f..0cac1db874 100644 --- a/ets2panda/test/ast/compiler/ets/thisReferenceFromStaticContext.ets +++ b/ets2panda/test/ast/compiler/ets/thisReferenceFromStaticContext.ets @@ -21,5 +21,6 @@ class Klass { static a: int = 12; } -/* @@@ label Error TypeError: 'this' cannot be referenced from a static context */ -/* @@@ label1 Error TypeError: 'a' is a static property of 'Klass' */ + +/* @@@ label Error Semantic error ESE0202: 'this' cannot be referenced from a static context */ +/* @@@ label1 Error Semantic error ESE0207: 'a' is a static property of 'Klass' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/this_expr_invalid_call_in_annotation_decl.ets b/ets2panda/test/ast/compiler/ets/this_expr_invalid_call_in_annotation_decl.ets index ff742c6bdd..7c5e0dfbdf 100644 --- a/ets2panda/test/ast/compiler/ets/this_expr_invalid_call_in_annotation_decl.ets +++ b/ets2panda/test/ast/compiler/ets/this_expr_invalid_call_in_annotation_decl.ets @@ -19,4 +19,5 @@ ] } -/* @@? 17:28 Error SyntaxError: Invalid value for annotation field, expected a constant literal. */ + +/* @@? 17:28 Error Syntax error ESY0027: Invalid value for annotation field, expected a constant literal. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/this_in_wrong_context.ets b/ets2panda/test/ast/compiler/ets/this_in_wrong_context.ets index b9948db8a3..da91b5e3b1 100644 --- a/ets2panda/test/ast/compiler/ets/this_in_wrong_context.ets +++ b/ets2panda/test/ast/compiler/ets/this_in_wrong_context.ets @@ -17,9 +17,10 @@ export declare @interface ClassAuthor { color: Color[] = [this.listener !== undefined] } -/* @@? 1:3 Error TypeError: Cannot find type 'Color'. */ -/* @@? 17:5 Error TypeError: Invalid annotation field type. Only numeric, boolean, string, enum, or arrays of these types are permitted for annotation fields. */ -/* @@? 17:22 Error TypeError: Invalid value for annotation field, expected a constant literal. */ -/* @@? 17:23 Error TypeError: Cannot reference 'this' in this context. */ -/* @@? 17:23 Warning Warning: The instance field initializer expression cannot use the this. */ -/* @@? 17:28 Error TypeError: Property 'listener' does not exist on type 'Error' */ + +/* @@? 1:3 Error Semantic error ESE0371: Cannot find type 'Color'. */ +/* @@? 17:5 Error Semantic error ESE0042: Invalid annotation field type. Only numeric, boolean, string, enum, or arrays of these types are permitted for annotation fields. */ +/* @@? 17:22 Error Semantic error ESE0012: Invalid value for annotation field, expected a constant literal. */ +/* @@? 17:23 Error Semantic error ESE0203: Cannot reference 'this' in this context. */ +/* @@? 17:23 Warning Warning W0010: The instance field initializer expression cannot use the this. */ +/* @@? 17:28 Error Semantic error ESE0087: Property 'listener' does not exist on type 'Error' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/throwInFinallyBlock.ets b/ets2panda/test/ast/compiler/ets/throwInFinallyBlock.ets index d75a72da75..84fe5fa9b5 100644 --- a/ets2panda/test/ast/compiler/ets/throwInFinallyBlock.ets +++ b/ets2panda/test/ast/compiler/ets/throwInFinallyBlock.ets @@ -24,4 +24,5 @@ function main(): void { } catch (e) {} } -/* @@@ label Warning Warning: Finally clause cannot complete normally */ + +/* @@@ label Warning Warning W0021: Finally clause cannot complete normally */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/tolocalString.ets b/ets2panda/test/ast/compiler/ets/tolocalString.ets index e2576c4fd4..d7a2dd12c5 100644 --- a/ets2panda/test/ast/compiler/ets/tolocalString.ets +++ b/ets2panda/test/ast/compiler/ets/tolocalString.ets @@ -17,4 +17,5 @@ class A { toLocaleString = () => {} } -/* @@? 16:7 Error TypeError: Cannot inherit from class Object, because field toLocaleString is inherited with a different declaration type */ + +/* @@? 16:7 Error Semantic error ESE0216: Cannot inherit from class Object, because field toLocaleString is inherited with a different declaration type */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/trailing_lambda.ets b/ets2panda/test/ast/compiler/ets/trailing_lambda.ets index 4de45fbe09..8f1bd6cc93 100644 --- a/ets2panda/test/ast/compiler/ets/trailing_lambda.ets +++ b/ets2panda/test/ast/compiler/ets/trailing_lambda.ets @@ -25,8 +25,8 @@ Obb.foos(){} Error().fromEntries() {} -/* @@? 23:1 Error TypeError: Expected 1 arguments, got 0. */ -/* @@? 23:1 Error TypeError: No matching call signature */ -/* @@? 26:1 Error TypeError: Expected 1 arguments, got 0. */ -/* @@? 26:1 Error TypeError: No matching call signature */ -/* @@? 26:9 Error TypeError: 'fromEntries' is a static property of 'Error' */ \ No newline at end of file +/* @@? 23:1 Error Semantic error ESE0124: Expected 1 arguments, got 0. */ +/* @@? 23:1 Error Semantic error ESE0128: No matching call signature */ +/* @@? 26:1 Error Semantic error ESE0124: Expected 1 arguments, got 0. */ +/* @@? 26:1 Error Semantic error ESE0128: No matching call signature */ +/* @@? 26:9 Error Semantic error ESE0207: 'fromEntries' is a static property of 'Error' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/tryCatchErrorFlow.ets b/ets2panda/test/ast/compiler/ets/tryCatchErrorFlow.ets index 4efd4a36f8..6d10da99df 100644 --- a/ets2panda/test/ast/compiler/ets/tryCatchErrorFlow.ets +++ b/ets2panda/test/ast/compiler/ets/tryCatchErrorFlow.ets @@ -23,4 +23,5 @@ function main(): void { } } -/* @@@ label Error TypeError: Default catch clause should be the last in the try statement */ + +/* @@@ label Error Semantic error ESE0034: Default catch clause should be the last in the try statement */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/tryCatchMissingParam.ets b/ets2panda/test/ast/compiler/ets/tryCatchMissingParam.ets index ed8c64227c..c9006a557a 100644 --- a/ets2panda/test/ast/compiler/ets/tryCatchMissingParam.ets +++ b/ets2panda/test/ast/compiler/ets/tryCatchMissingParam.ets @@ -21,4 +21,5 @@ function main(): void { } } -/* @@@ label Error SyntaxError: Unexpected token, expected an identifier. */ + +/* @@@ label Error Syntax error ESY0112: Unexpected token, expected an identifier. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/try_catch_already_declared.ets b/ets2panda/test/ast/compiler/ets/try_catch_already_declared.ets index 81a718b121..8cc4ea1108 100644 --- a/ets2panda/test/ast/compiler/ets/try_catch_already_declared.ets +++ b/ets2panda/test/ast/compiler/ets/try_catch_already_declared.ets @@ -18,4 +18,5 @@ try { let a = 1 } -/* @@? 18:9 Error TypeError: Variable 'a' has already been declared. */ + +/* @@? 18:9 Error Semantic error ESE0351: Variable 'a' has already been declared. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/tuple_types_10_neg.ets b/ets2panda/test/ast/compiler/ets/tuple_types_10_neg.ets index b03095bb29..c7ebc85651 100644 --- a/ets2panda/test/ast/compiler/ets/tuple_types_10_neg.ets +++ b/ets2panda/test/ast/compiler/ets/tuple_types_10_neg.ets @@ -19,4 +19,5 @@ function main(): void { let b: [number, number, number] = /* @@ label */a; } -/* @@@ label Error TypeError: Type '[Double, Double]' cannot be assigned to type '[Double, Double, Double]' */ + +/* @@@ label Error Semantic error ESE0318: Type '[Double, Double]' cannot be assigned to type '[Double, Double, Double]' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/tuple_types_11_neg.ets b/ets2panda/test/ast/compiler/ets/tuple_types_11_neg.ets index b6a37f7126..aa69483b6f 100644 --- a/ets2panda/test/ast/compiler/ets/tuple_types_11_neg.ets +++ b/ets2panda/test/ast/compiler/ets/tuple_types_11_neg.ets @@ -19,4 +19,5 @@ function main(): void { let b: [number, number] = /* @@ label */a; } -/* @@@ label Error TypeError: Type '[Double, Double, Double]' cannot be assigned to type '[Double, Double]' */ + +/* @@@ label Error Semantic error ESE0318: Type '[Double, Double, Double]' cannot be assigned to type '[Double, Double]' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/tuple_types_13_neg.ets b/ets2panda/test/ast/compiler/ets/tuple_types_13_neg.ets index 6ffa4811bc..4d1a199a80 100644 --- a/ets2panda/test/ast/compiler/ets/tuple_types_13_neg.ets +++ b/ets2panda/test/ast/compiler/ets/tuple_types_13_neg.ets @@ -26,5 +26,6 @@ class A { } } -/* @@? 24:32 Error TypeError: Element accessor value is out of tuple size bounds. */ -/* @@? 25:32 Error TypeError: Element accessor value is out of tuple size bounds. */ + +/* @@? 24:32 Error Semantic error ESE0198: Element accessor value is out of tuple size bounds. */ +/* @@? 25:32 Error Semantic error ESE0198: Element accessor value is out of tuple size bounds. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/tuple_types_1_neg.ets b/ets2panda/test/ast/compiler/ets/tuple_types_1_neg.ets index ea8e9d99a5..6c15d31491 100644 --- a/ets2panda/test/ast/compiler/ets/tuple_types_1_neg.ets +++ b/ets2panda/test/ast/compiler/ets/tuple_types_1_neg.ets @@ -18,4 +18,5 @@ function main(): void { const array: (number|boolean) [] = tuple } -/* @@? 18:40 Error TypeError: Type '[Double, Double, Boolean]' cannot be assigned to type 'Array' */ + +/* @@? 18:40 Error Semantic error ESE0318: Type '[Double, Double, Boolean]' cannot be assigned to type 'Array' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/tuple_types_2_neg.ets b/ets2panda/test/ast/compiler/ets/tuple_types_2_neg.ets index d89ff56fa7..bd83e15c15 100644 --- a/ets2panda/test/ast/compiler/ets/tuple_types_2_neg.ets +++ b/ets2panda/test/ast/compiler/ets/tuple_types_2_neg.ets @@ -19,4 +19,5 @@ function main(): void { a[/* @@ label */2]; } -/* @@@ label Error TypeError: Element accessor value is out of tuple size bounds. */ + +/* @@@ label Error Semantic error ESE0198: Element accessor value is out of tuple size bounds. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/tuple_types_3_neg.ets b/ets2panda/test/ast/compiler/ets/tuple_types_3_neg.ets index 9ca00bbcd5..3b22c4dafc 100644 --- a/ets2panda/test/ast/compiler/ets/tuple_types_3_neg.ets +++ b/ets2panda/test/ast/compiler/ets/tuple_types_3_neg.ets @@ -18,4 +18,5 @@ function main(): void { let a: [number] = /* @@ label */[1, 2]; } -/* @@@ label Error TypeError: Initializer has 2 elements, but tuple requires 1 */ + +/* @@@ label Error Semantic error ESE0231: Initializer has 2 elements, but tuple requires 1 */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/tuple_types_4_neg.ets b/ets2panda/test/ast/compiler/ets/tuple_types_4_neg.ets index ec42c5f8b7..b66d9bae05 100644 --- a/ets2panda/test/ast/compiler/ets/tuple_types_4_neg.ets +++ b/ets2panda/test/ast/compiler/ets/tuple_types_4_neg.ets @@ -18,4 +18,5 @@ function main(): void { let a: [number, number] = /* @@ label */[1]; } -/* @@@ label Error TypeError: Initializer has 1 elements, but tuple requires 2 */ + +/* @@@ label Error Semantic error ESE0231: Initializer has 1 elements, but tuple requires 2 */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/tuple_types_5_neg.ets b/ets2panda/test/ast/compiler/ets/tuple_types_5_neg.ets index 6ccc172df0..ddd114846c 100644 --- a/ets2panda/test/ast/compiler/ets/tuple_types_5_neg.ets +++ b/ets2panda/test/ast/compiler/ets/tuple_types_5_neg.ets @@ -18,8 +18,9 @@ function main(): void { let a: [number, ...number[]] = [1]; } -/* @@? 18:21 Error SyntaxError: Invalid Type. */ -/* @@? 18:21 Error SyntaxError: Unexpected token, expected ',' or ']'. */ -/* @@? 18:21 Error SyntaxError: Unexpected token '...'. */ -/* @@? 18:24 Error SyntaxError: Unexpected token 'number'. */ -/* @@? 18:32 Error SyntaxError: Unexpected token ']'. */ + +/* @@? 18:21 Error Syntax error ESY0138: Invalid Type. */ +/* @@? 18:21 Error Syntax error ESY0229: Unexpected token, expected ',' or ']'. */ +/* @@? 18:21 Error Syntax error ESY0227: Unexpected token '...'. */ +/* @@? 18:24 Error Syntax error ESY0227: Unexpected token 'number'. */ +/* @@? 18:32 Error Syntax error ESY0227: Unexpected token ']'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/tuple_types_9_neg.ets b/ets2panda/test/ast/compiler/ets/tuple_types_9_neg.ets index ea48bd251d..4619c0bcbf 100644 --- a/ets2panda/test/ast/compiler/ets/tuple_types_9_neg.ets +++ b/ets2panda/test/ast/compiler/ets/tuple_types_9_neg.ets @@ -19,8 +19,9 @@ function main(): void { let b: [number, string, Int] = /* @@ label */a; } -/* @@? 18:29 Error SyntaxError: Invalid Type. */ -/* @@? 18:29 Error SyntaxError: Unexpected token, expected ',' or ']'. */ -/* @@? 18:29 Error SyntaxError: Unexpected token '...'. */ -/* @@? 18:32 Error SyntaxError: Unexpected token 'Int'. */ -/* @@? 18:37 Error SyntaxError: Unexpected token ']'. */ + +/* @@? 18:29 Error Syntax error ESY0138: Invalid Type. */ +/* @@? 18:29 Error Syntax error ESY0229: Unexpected token, expected ',' or ']'. */ +/* @@? 18:29 Error Syntax error ESY0227: Unexpected token '...'. */ +/* @@? 18:32 Error Syntax error ESY0227: Unexpected token 'Int'. */ +/* @@? 18:37 Error Syntax error ESY0227: Unexpected token ']'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/tuple_union_neg.ets b/ets2panda/test/ast/compiler/ets/tuple_union_neg.ets index 34a2d31c5a..963e40aaa7 100644 --- a/ets2panda/test/ast/compiler/ets/tuple_union_neg.ets +++ b/ets2panda/test/ast/compiler/ets/tuple_union_neg.ets @@ -14,5 +14,6 @@ */ let v: [number]|null = ["A"] -/* @@? 15:25 Error TypeError: Array initializer's type is not assignable to tuple type at index: 0 */ + +/* @@? 15:25 Error Semantic error ESE0057: Array initializer's type is not assignable to tuple type at index: 0 */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/typeAliasWithConstraint_01.ets b/ets2panda/test/ast/compiler/ets/typeAliasWithConstraint_01.ets index 976f1c71f6..2491d9cc3e 100644 --- a/ets2panda/test/ast/compiler/ets/typeAliasWithConstraint_01.ets +++ b/ets2panda/test/ast/compiler/ets/typeAliasWithConstraint_01.ets @@ -18,4 +18,5 @@ type ValueAlias = Record<"val", V>; declare function value(): ValueAlias; -/* @@@ label Error TypeError: Type argument 'U' should be a subtype of 'String'-constraint */ + +/* @@@ label Error Semantic error ESE0228: Type argument 'U' should be a subtype of 'String'-constraint */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/typeAliasWithConstraint_02.ets b/ets2panda/test/ast/compiler/ets/typeAliasWithConstraint_02.ets index 96cf4d0332..d4cd9d60bd 100644 --- a/ets2panda/test/ast/compiler/ets/typeAliasWithConstraint_02.ets +++ b/ets2panda/test/ast/compiler/ets/typeAliasWithConstraint_02.ets @@ -20,4 +20,5 @@ declare function value(): ValueAlias; /* @@ label */value(); -/* @@@ label Error TypeError: No matching call signature */ + +/* @@@ label Error Semantic error ESE0128: No matching call signature */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/typeAliasWithConstraint_04.ets b/ets2panda/test/ast/compiler/ets/typeAliasWithConstraint_04.ets index 7378bd24f9..117f32566b 100644 --- a/ets2panda/test/ast/compiler/ets/typeAliasWithConstraint_04.ets +++ b/ets2panda/test/ast/compiler/ets/typeAliasWithConstraint_04.ets @@ -18,5 +18,6 @@ type A = T; let v: A; -/* @@@ label1 Error TypeError: Type argument 'Int' should be a subtype of 'String'-constraint */ -/* @@@ label2 Error TypeError: Type argument 'String' should be a subtype of 'Numeric'-constraint */ + +/* @@@ label1 Error Semantic error ESE0228: Type argument 'Int' should be a subtype of 'String'-constraint */ +/* @@@ label2 Error Semantic error ESE0228: Type argument 'String' should be a subtype of 'Numeric'-constraint */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/typeOfString.ets b/ets2panda/test/ast/compiler/ets/typeOfString.ets index 24481e1f32..b7eee47354 100644 --- a/ets2panda/test/ast/compiler/ets/typeOfString.ets +++ b/ets2panda/test/ast/compiler/ets/typeOfString.ets @@ -15,4 +15,5 @@ V = typeof `m` -/* @@? 16:1 Error TypeError: Unresolved reference V */ + +/* @@? 16:1 Error Semantic error ESE0143: Unresolved reference V */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/typeVarReferenceFromStaticContext.ets b/ets2panda/test/ast/compiler/ets/typeVarReferenceFromStaticContext.ets index 0e3ad5e269..1bcff32fa1 100644 --- a/ets2panda/test/ast/compiler/ets/typeVarReferenceFromStaticContext.ets +++ b/ets2panda/test/ast/compiler/ets/typeVarReferenceFromStaticContext.ets @@ -19,4 +19,5 @@ class Klass { } } -/* @@@ label Error TypeError: Cannot make a static reference to the non-static type T */ + +/* @@@ label Error Semantic error ESE0288: Cannot make a static reference to the non-static type T */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/type_alise_with_lambda.ets b/ets2panda/test/ast/compiler/ets/type_alise_with_lambda.ets index 3b39e198c9..c6230c2c5e 100644 --- a/ets2panda/test/ast/compiler/ets/type_alise_with_lambda.ets +++ b/ets2panda/test/ast/compiler/ets/type_alise_with_lambda.ets @@ -15,6 +15,7 @@ export type L T> -/* @@? 16:26 Error TypeError: Cannot find type 'T'. */ -/* @@? 21:1 Error SyntaxError: Expected '=', got 'end of stream'. */ -/* @@? 21:1 Error SyntaxError: Invalid Type. */ + +/* @@? 16:26 Error Semantic error ESE0371: Cannot find type 'T'. */ +/* @@? 21:58 Error Syntax error ESY0230: Expected '=', got 'end of stream'. */ +/* @@? 21:58 Error Syntax error ESY0138: Invalid Type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/type_as_value.ets b/ets2panda/test/ast/compiler/ets/type_as_value.ets index fb69b217cc..bc4282f0b7 100644 --- a/ets2panda/test/ast/compiler/ets/type_as_value.ets +++ b/ets2panda/test/ast/compiler/ets/type_as_value.ets @@ -15,4 +15,4 @@ let a = number[][] -/* @@? 16:9 Error SyntaxError: Unexpected token 'number'. */ \ No newline at end of file +/* @@? 16:9 Error Syntax error ESY0227: Unexpected token 'number'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/type_error_processing/not_constructible_types.ets b/ets2panda/test/ast/compiler/ets/type_error_processing/not_constructible_types.ets index 46b03a8e16..572e00002f 100644 --- a/ets2panda/test/ast/compiler/ets/type_error_processing/not_constructible_types.ets +++ b/ets2panda/test/ast/compiler/ets/type_error_processing/not_constructible_types.ets @@ -28,12 +28,13 @@ WeakSet [12] = new undefined() // *NOTE* error has printed twice, that is known issue #20560 -/* @@? 16:9 Error TypeError: Type 'null' is not constructible. */ -/* @@? 17:1 Error TypeError: Type 'null' is not constructible. */ -/* @@? 18:1 Error TypeError: Type 'undefined' is not constructible. */ -/* @@? 19:1 Error TypeError: Type 'never' is not constructible. */ -/* @@? 20:1 Error TypeError: This expression is not constructible. */ -/* @@? 23:1 Error TypeError: The union type is not constructible. */ -/* @@? 26:1 Error TypeError: Object type doesn't have proper index access method. */ -/* @@? 26:1 Error SyntaxError: Class cannot be used as object. */ -/* @@? 26:16 Error TypeError: Type 'undefined' is not constructible. */ + +/* @@? 16:9 Error Semantic error ESE0290: Type 'null' is not constructible. */ +/* @@? 17:1 Error Semantic error ESE0290: Type 'null' is not constructible. */ +/* @@? 18:1 Error Semantic error ESE0290: Type 'undefined' is not constructible. */ +/* @@? 19:1 Error Semantic error ESE0290: Type 'never' is not constructible. */ +/* @@? 20:1 Error Semantic error ESE0292: This expression is not constructible. */ +/* @@? 23:1 Error Semantic error ESE0300: The union type is not constructible. */ +/* @@? 26:1 Error Syntax error ESY0318: Class cannot be used as object. */ +/* @@? 26:1 Error Semantic error ESE0250: Object type doesn't have proper index access method. */ +/* @@? 26:16 Error Semantic error ESE0290: Type 'undefined' is not constructible. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/type_error_processing/param_typeannotation_null.ets b/ets2panda/test/ast/compiler/ets/type_error_processing/param_typeannotation_null.ets index 71e76536db..daa78e836a 100644 --- a/ets2panda/test/ast/compiler/ets/type_error_processing/param_typeannotation_null.ets +++ b/ets2panda/test/ast/compiler/ets/type_error_processing/param_typeannotation_null.ets @@ -20,4 +20,5 @@ interface inter { function foo(i: Partial>): void {} -/* @@? 18:17 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ + +/* @@? 18:17 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/type_error_processing/property_typeerror.ets b/ets2panda/test/ast/compiler/ets/type_error_processing/property_typeerror.ets index 345a9e3ef7..3f0b0c420c 100644 --- a/ets2panda/test/ast/compiler/ets/type_error_processing/property_typeerror.ets +++ b/ets2panda/test/ast/compiler/ets/type_error_processing/property_typeerror.ets @@ -19,11 +19,12 @@ class A { function foo (partial: Partial) {} -/* @@? 17:15 Error TypeError: Only abstract or native methods can't have body. */ -/* @@? 17:16 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 17:16 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ -/* @@? 17:16 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 17:16 Error SyntaxError: Unexpected token 'break'. */ -/* @@? 17:21 Error SyntaxError: Unexpected token ')'. */ -/* @@? 17:23 Error SyntaxError: Unexpected token '{'. */ -/* @@? 18:1 Error SyntaxError: Unexpected token '}'. */ + +/* @@? 17:15 Error Semantic error ESE0017: Only abstract or native methods can't have body. */ +/* @@? 17:16 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 17:16 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ +/* @@? 17:16 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 17:16 Error Syntax error ESY0227: Unexpected token 'break'. */ +/* @@? 17:21 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 17:23 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 18:1 Error Syntax error ESY0227: Unexpected token '}'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/type_error_processing/type_handlers.ets b/ets2panda/test/ast/compiler/ets/type_error_processing/type_handlers.ets index f3cc9e64c3..8b61d41035 100644 --- a/ets2panda/test/ast/compiler/ets/type_error_processing/type_handlers.ets +++ b/ets2panda/test/ast/compiler/ets/type_error_processing/type_handlers.ets @@ -37,14 +37,13 @@ type T13 = Required type T14 = Required type T15 = Required -/* @@? 22:18 Error TypeError: Invalid number of type parameters for Partial type, should be 1. */ -/* @@? 24:18 Error TypeError: Invalid number of type parameters for Partial type, should be 1. */ -/* @@? 25:18 Error TypeError: Invalid number of type parameters for Partial type, should be 1. */ -/* @@? 28:19 Error TypeError: Invalid number of type parameters for Readonly type, should be 1. */ -/* @@? 30:19 Error TypeError: Invalid number of type parameters for Readonly type, should be 1. */ -/* @@? 31:19 Error TypeError: Invalid number of type parameters for Readonly type, should be 1. */ - -/* @@? 34:20 Error TypeError: Invalid number of type parameters for Required type, should be 1. */ -/* @@? 36:20 Error TypeError: Invalid number of type parameters for Required type, should be 1. */ -/* @@? 37:20 Error TypeError: Invalid number of type parameters for Required type, should be 1. */ +/* @@? 22:18 Error Semantic error ESE0223: Invalid number of type parameters for Partial type, should be 1. */ +/* @@? 24:18 Error Semantic error ESE0223: Invalid number of type parameters for Partial type, should be 1. */ +/* @@? 25:18 Error Semantic error ESE0223: Invalid number of type parameters for Partial type, should be 1. */ +/* @@? 28:19 Error Semantic error ESE0223: Invalid number of type parameters for Readonly type, should be 1. */ +/* @@? 30:19 Error Semantic error ESE0223: Invalid number of type parameters for Readonly type, should be 1. */ +/* @@? 31:19 Error Semantic error ESE0223: Invalid number of type parameters for Readonly type, should be 1. */ +/* @@? 34:20 Error Semantic error ESE0223: Invalid number of type parameters for Required type, should be 1. */ +/* @@? 36:20 Error Semantic error ESE0223: Invalid number of type parameters for Required type, should be 1. */ +/* @@? 37:20 Error Semantic error ESE0223: Invalid number of type parameters for Required type, should be 1. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/type_error_processing/var_without_def.ets b/ets2panda/test/ast/compiler/ets/type_error_processing/var_without_def.ets index 799e9d1a80..552ae21265 100644 --- a/ets2panda/test/ast/compiler/ets/type_error_processing/var_without_def.ets +++ b/ets2panda/test/ast/compiler/ets/type_error_processing/var_without_def.ets @@ -24,7 +24,8 @@ function foo() { void = [([...asyncGenerator])] } -/* @@? 21:9 Error TypeError: Unresolved reference a */ -/* @@? 21:17 Error TypeError: Unresolved reference c */ -/* @@? 24:5 Error SyntaxError: Unexpected token 'void'. */ -/* @@? 24:18 Error TypeError: Unresolved reference asyncGenerator */ + +/* @@? 21:9 Error Semantic error ESE0143: Unresolved reference a */ +/* @@? 21:17 Error Semantic error ESE0143: Unresolved reference c */ +/* @@? 24:5 Error Syntax error ESY0227: Unexpected token 'void'. */ +/* @@? 24:18 Error Semantic error ESE0143: Unresolved reference asyncGenerator */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/type_error_test.ets b/ets2panda/test/ast/compiler/ets/type_error_test.ets index cbb33753e8..186955fff7 100644 --- a/ets2panda/test/ast/compiler/ets/type_error_test.ets +++ b/ets2panda/test/ast/compiler/ets/type_error_test.ets @@ -21,4 +21,5 @@ export class SHA1Hash{ } const swap32:(num:int)=>int = ((c:int):int =>c) -/* @@? 19:16 Warning Warning: 'As' expression for cast is deprecated for numeric types. Use explicit conversion function Double.toInt(...) instead. */ + +/* @@? 19:16 Warning Warning W0029: 'As' expression for cast is deprecated for numeric types. Use explicit conversion function Double.toInt(...) instead. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/type_error_test2.ets b/ets2panda/test/ast/compiler/ets/type_error_test2.ets index 2763e7ec55..09a4d5755d 100644 --- a/ets2panda/test/ast/compiler/ets/type_error_test2.ets +++ b/ets2panda/test/ast/compiler/ets/type_error_test2.ets @@ -15,17 +15,17 @@ let f:(c:string, ...abe])=>void = (c:be ...abe])=>{} -/* @@? 16:18 Error SyntaxError: Rest parameter should be either array or tuple type. */ -/* @@? 16:24 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ -/* @@? 16:24 Error SyntaxError: Rest parameter must be the last formal parameter. */ -/* @@? 16:35 Error TypeError: Type '(p1: *ERROR_TYPE*) => void' cannot be assigned to type '(p1: String, ...p2: *ERROR_TYPE*) => void' */ -/* @@? 16:38 Error TypeError: Cannot find type 'be'. */ -/* @@? 16:41 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 16:41 Error SyntaxError: Expected '=>', got '...'. */ -/* @@? 16:41 Error SyntaxError: Unexpected token '...'. */ -/* @@? 16:41 Error TypeError: Unexpected return value, enclosing method return type is void. */ -/* @@? 16:44 Error SyntaxError: Unexpected token 'abe'. */ -/* @@? 16:44 Error TypeError: Unresolved reference abe */ -/* @@? 16:47 Error SyntaxError: Unexpected token ']'. */ -/* @@? 16:48 Error SyntaxError: Unexpected token ')'. */ -/* @@? 16:49 Error SyntaxError: Unexpected token '=>'. */ +/* @@? 16:18 Error Syntax error ESY0193: Rest parameter should be either array or tuple type. */ +/* @@? 16:24 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ +/* @@? 16:24 Error Syntax error ESY0067: Rest parameter must be the last formal parameter. */ +/* @@? 16:35 Error Semantic error ESE0318: Type '(p1: *ERROR_TYPE*) => void' cannot be assigned to type '(p1: String, ...p2: *ERROR_TYPE*) => void' */ +/* @@? 16:38 Error Semantic error ESE0371: Cannot find type 'be'. */ +/* @@? 16:41 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 16:41 Error Syntax error ESY0230: Expected '=>', got '...'. */ +/* @@? 16:41 Error Syntax error ESY0227: Unexpected token '...'. */ +/* @@? 16:41 Error Semantic error ESE0089: Unexpected return value, enclosing method return type is void. */ +/* @@? 16:44 Error Syntax error ESY0227: Unexpected token 'abe'. */ +/* @@? 16:44 Error Semantic error ESE0143: Unresolved reference abe */ +/* @@? 16:47 Error Syntax error ESY0227: Unexpected token ']'. */ +/* @@? 16:48 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 16:49 Error Syntax error ESY0227: Unexpected token '=>'. */ diff --git a/ets2panda/test/ast/compiler/ets/type_parameter.ets b/ets2panda/test/ast/compiler/ets/type_parameter.ets index d453160a29..0aebf2efeb 100644 --- a/ets2panda/test/ast/compiler/ets/type_parameter.ets +++ b/ets2panda/test/ast/compiler/ets/type_parameter.ets @@ -17,6 +17,7 @@ type foo let a : foo = 1; -/* @@? 16:15 Error TypeError: Type Parameter T should be defined before use. */ -/* @@? 18:1 Error SyntaxError: Expected '=', got 'let'. */ -/* @@? 18:1 Error SyntaxError: Invalid Type. */ + +/* @@? 16:15 Error Semantic error ESE0183: Type Parameter T should be defined before use. */ +/* @@? 18:1 Error Syntax error ESY0230: Expected '=', got 'let'. */ +/* @@? 18:1 Error Syntax error ESY0138: Invalid Type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/typealias_as_value.ets b/ets2panda/test/ast/compiler/ets/typealias_as_value.ets index e6f3bb13a7..95417f9772 100644 --- a/ets2panda/test/ast/compiler/ets/typealias_as_value.ets +++ b/ets2panda/test/ast/compiler/ets/typealias_as_value.ets @@ -19,4 +19,4 @@ function main(){ let v1 = () => {return RF} } -/* @@? 19:28 Error TypeError: Type name 'RF' used in the wrong context */ \ No newline at end of file +/* @@? 19:28 Error Semantic error ESE0144: Type name 'RF' used in the wrong context */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/typealias_conflict_with_builtin.ets b/ets2panda/test/ast/compiler/ets/typealias_conflict_with_builtin.ets index 80fc58e641..8a3b7c51a0 100644 --- a/ets2panda/test/ast/compiler/ets/typealias_conflict_with_builtin.ets +++ b/ets2panda/test/ast/compiler/ets/typealias_conflict_with_builtin.ets @@ -15,4 +15,5 @@ type Type = int; -/* @@? 1:3 Error TypeError: Class 'Type' is already defined with different type. */ + +/* @@? 1:3 Error Semantic error ESE0350: Class 'Type' is already defined with different type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/typealias_default_type_01.ets b/ets2panda/test/ast/compiler/ets/typealias_default_type_01.ets index b7051016a8..7a8aefac22 100644 --- a/ets2panda/test/ast/compiler/ets/typealias_default_type_01.ets +++ b/ets2panda/test/ast/compiler/ets/typealias_default_type_01.ets @@ -23,4 +23,4 @@ function test2(call: ErrorCallBack2) { } // should be error because typeParam ha function test3(call: ErrorCallBack2) { } // should be ok because we have explicitly provided a type. -/* @@? 22:22 Error TypeError: Type alias declaration is generic, but too few type arguments were provided */ \ No newline at end of file +/* @@? 22:22 Error Semantic error ESE0155: Type alias declaration is generic, but too few type arguments were provided */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/typealias_default_type_02.ets b/ets2panda/test/ast/compiler/ets/typealias_default_type_02.ets index 9f91a1fe20..65aef64353 100644 --- a/ets2panda/test/ast/compiler/ets/typealias_default_type_02.ets +++ b/ets2panda/test/ast/compiler/ets/typealias_default_type_02.ets @@ -31,6 +31,6 @@ function test5(call: ErrorCallBack3) { } // should be ok because the sec function test6(call: ErrorCallBack3) { } // should be error -/* @@? 24:22 Error TypeError: Type alias declaration is generic, but too few type arguments were provided */ -/* @@? 26:36 Error TypeError: Expected at least 2 type arguments, but got 1. */ -/* @@? 32:22 Error TypeError: Type alias declaration is generic, but too few type arguments were provided */ \ No newline at end of file +/* @@? 24:22 Error Semantic error ESE0155: Type alias declaration is generic, but too few type arguments were provided */ +/* @@? 26:36 Error Semantic error ESE0274: Expected at least 2 type arguments, but got 1. */ +/* @@? 32:22 Error Semantic error ESE0155: Type alias declaration is generic, but too few type arguments were provided */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/typeof_on_primitive_and_ref_types.ets b/ets2panda/test/ast/compiler/ets/typeof_on_primitive_and_ref_types.ets index 11c112c76c..96e9d8061c 100644 --- a/ets2panda/test/ast/compiler/ets/typeof_on_primitive_and_ref_types.ets +++ b/ets2panda/test/ast/compiler/ets/typeof_on_primitive_and_ref_types.ets @@ -36,5 +36,6 @@ function main() { } -/* @@@ label1 Error TypeError: Variable 'a2' is used before being assigned. */ -/* @@@ label2 Error TypeError: Variable 'a2' is used before being assigned. */ + +/* @@@ label1 Error Semantic error ESE0375: Variable 'a2' is used before being assigned. */ +/* @@@ label2 Error Semantic error ESE0375: Variable 'a2' is used before being assigned. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/unexpected_param_01.ets b/ets2panda/test/ast/compiler/ets/unexpected_param_01.ets index 5e15bcbf7d..27f6397f1f 100644 --- a/ets2panda/test/ast/compiler/ets/unexpected_param_01.ets +++ b/ets2panda/test/ast/compiler/ets/unexpected_param_01.ets @@ -20,13 +20,13 @@ let pthen = byteP.then((value ? Object): Object => { }); await byteP; -/* @@? 16:30 Error TypeError: Unresolved reference byteFunc */ -/* @@? 17:41 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ -/* @@? 17:41 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 17:41 Error SyntaxError: Expected '=>', got 'identification literal'. */ -/* @@? 17:41 Error SyntaxError: Class cannot be used as object. */ -/* @@? 17:48 Error SyntaxError: Unexpected token ':'. */ -/* @@? 17:50 Error SyntaxError: Unexpected token 'Object'. */ -/* @@? 17:50 Error TypeError: The type of parameter 'Object' cannot be inferred */ -/* @@? 18:12 Error TypeError: Unresolved reference value */ -/* @@? 20:2 Error SyntaxError: Unexpected token ')'. */ \ No newline at end of file +/* @@? 16:30 Error Semantic error ESE0143: Unresolved reference byteFunc */ +/* @@? 17:41 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ +/* @@? 17:41 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 17:41 Error Syntax error ESY0230: Expected '=>', got 'identification literal'. */ +/* @@? 17:41 Error Syntax error ESY0318: Class cannot be used as object. */ +/* @@? 17:48 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 17:50 Error Syntax error ESY0227: Unexpected token 'Object'. */ +/* @@? 17:50 Error Semantic error ESE0132: The type of parameter 'Object' cannot be inferred */ +/* @@? 18:12 Error Semantic error ESE0143: Unresolved reference value */ +/* @@? 20:2 Error Syntax error ESY0227: Unexpected token ')'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/unexpected_param_02.ets b/ets2panda/test/ast/compiler/ets/unexpected_param_02.ets index c5bb53c7eb..4616c58af1 100644 --- a/ets2panda/test/ast/compiler/ets/unexpected_param_02.ets +++ b/ets2panda/test/ast/compiler/ets/unexpected_param_02.ets @@ -15,4 +15,4 @@ function foo(a?){} -/* @@? 16:16 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ \ No newline at end of file +/* @@? 16:16 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/unionCommonMember_neg.ets b/ets2panda/test/ast/compiler/ets/unionCommonMember_neg.ets index f03ea9734f..1f3b440ac9 100644 --- a/ets2panda/test/ast/compiler/ets/unionCommonMember_neg.ets +++ b/ets2panda/test/ast/compiler/ets/unionCommonMember_neg.ets @@ -51,10 +51,11 @@ function main() { arktest.assertEQ(/* @@ label8 */u.fld8, new Map()) } -/* @@@ label1 Error TypeError: Member type must be the same for all union objects. */ -/* @@@ label3 Error TypeError: Member type must be the same for all union objects. */ -/* @@@ label4 Error TypeError: Member type must be the same for all union objects. */ -/* @@@ label5 Error TypeError: Member type must be the same for all union objects. */ -/* @@@ label6 Error TypeError: Member type must be the same for all union objects. */ -/* @@@ label7 Error TypeError: Member type must be the same for all union objects. */ -/* @@@ label8 Error TypeError: Member type must be the same for all union objects. */ + +/* @@@ label1 Error Semantic error ESE0244: Member type must be the same for all union objects. */ +/* @@@ label3 Error Semantic error ESE0244: Member type must be the same for all union objects. */ +/* @@@ label4 Error Semantic error ESE0244: Member type must be the same for all union objects. */ +/* @@@ label5 Error Semantic error ESE0244: Member type must be the same for all union objects. */ +/* @@@ label6 Error Semantic error ESE0244: Member type must be the same for all union objects. */ +/* @@@ label7 Error Semantic error ESE0244: Member type must be the same for all union objects. */ +/* @@@ label8 Error Semantic error ESE0244: Member type must be the same for all union objects. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/unionType_clone.ets b/ets2panda/test/ast/compiler/ets/unionType_clone.ets index 1af439f0e8..3aece7ed23 100644 --- a/ets2panda/test/ast/compiler/ets/unionType_clone.ets +++ b/ets2panda/test/ast/compiler/ets/unionType_clone.ets @@ -22,16 +22,17 @@ function castValueKoBoolean(value ?: boolect) { if (value instanceof String) { value += "Hello Smar/* -/* @@? 16:38 Error TypeError: Cannot find type 'boolect'. */ -/* @@? 17:26 Error TypeError: Cannot find type 'Sean'. */ -/* @@? 21:3 Error SyntaxError: Unexpected token ':'. */ -/* @@? 21:5 Error SyntaxError: Unexpected token 'xml'. */ -/* @@? 21:5 Error TypeError: Unresolved reference xml */ -/* @@? 21:36 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 21:36 Error SyntaxError: Unexpected token ':'. */ -/* @@? 21:38 Error SyntaxError: Unexpected token 'Object'. */ -/* @@? 21:38 Error SyntaxError: Class cannot be used as object. */ -/* @@? 21:44 Error SyntaxError: Unexpected token ')'. */ -/* @@? 21:46 Error SyntaxError: Unexpected token '{'. */ -/* @@? 23:18 Error SyntaxError: Newline is not allowed in strings */ -/* @@? 37:70 Error SyntaxError: Expected '}', got 'end of stream'. */ + +/* @@? 16:38 Error Semantic error ESE0371: Cannot find type 'boolect'. */ +/* @@? 17:26 Error Semantic error ESE0371: Cannot find type 'Sean'. */ +/* @@? 21:3 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 21:5 Error Syntax error ESY0227: Unexpected token 'xml'. */ +/* @@? 21:5 Error Semantic error ESE0143: Unresolved reference xml */ +/* @@? 21:36 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 21:36 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 21:38 Error Syntax error ESY0227: Unexpected token 'Object'. */ +/* @@? 21:38 Error Syntax error ESY0318: Class cannot be used as object. */ +/* @@? 21:44 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 21:46 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 23:18 Error Syntax error ESY0265: Newline is not allowed in strings */ +/* @@? 37:78 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/union_array_declaration.ets b/ets2panda/test/ast/compiler/ets/union_array_declaration.ets index f64c5e85df..cfd42cd8f6 100644 --- a/ets2panda/test/ast/compiler/ets/union_array_declaration.ets +++ b/ets2panda/test/ast/compiler/ets/union_array_declaration.ets @@ -21,4 +21,4 @@ function main(): int { return 0; } -/* @@@ label Error TypeError: Can't resolve array type */ \ No newline at end of file +/* @@@ label Error Semantic error ESE0301: Can't resolve array type */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/union_field_access.ets b/ets2panda/test/ast/compiler/ets/union_field_access.ets index 33cb90075f..8cc0fd72cf 100644 --- a/ets2panda/test/ast/compiler/ets/union_field_access.ets +++ b/ets2panda/test/ast/compiler/ets/union_field_access.ets @@ -28,4 +28,5 @@ function IfWithString(val: U) { return /* @@ label */val['kind'] === 'B' } -/* @@@ label Error TypeError: Indexed access is not supported for such expression type. */ + +/* @@@ label Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/union_field_access_2.ets b/ets2panda/test/ast/compiler/ets/union_field_access_2.ets index 8f9fd60420..a744744547 100644 --- a/ets2panda/test/ast/compiler/ets/union_field_access_2.ets +++ b/ets2panda/test/ast/compiler/ets/union_field_access_2.ets @@ -17,13 +17,14 @@ (a ? delete arguments==({: false, Float64Array: []}) : [ArrayBuffer[false]]) -/* @@? 18:1 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@? 18:2 Error TypeError: Unresolved reference a */ -/* @@? 18:6 Error TypeError: Types cannot be modified at runtime with 'delete'. */ -/* @@? 18:13 Error SyntaxError: Unexpected token. */ -/* @@? 18:13 Error TypeError: Unresolved reference arguments */ -/* @@? 18:24 Error TypeError: need to specify target type for class composite */ -/* @@? 18:26 Error SyntaxError: Unexpected token. */ -/* @@? 18:28 Error SyntaxError: Unexpected token. */ -/* @@? 18:54 Error SyntaxError: Unexpected token, expected ')'. */ -/* @@? 18:76 Error SyntaxError: Unexpected token ')'. */ + +/* @@? 18:1 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 18:2 Error Semantic error ESE0143: Unresolved reference a */ +/* @@? 18:6 Error Semantic error ESE55815: Types cannot be modified at runtime with 'delete'. */ +/* @@? 18:13 Error Syntax error ESY0016: Unexpected token. */ +/* @@? 18:13 Error Semantic error ESE0143: Unresolved reference arguments */ +/* @@? 18:24 Error Semantic error ESE0062: need to specify target type for class composite */ +/* @@? 18:26 Error Syntax error ESY0016: Unexpected token. */ +/* @@? 18:28 Error Syntax error ESY0016: Unexpected token. */ +/* @@? 18:54 Error Syntax error ESY0228: Unexpected token, expected ')'. */ +/* @@? 18:76 Error Syntax error ESY0227: Unexpected token ')'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/union_generic_class_neg.ets b/ets2panda/test/ast/compiler/ets/union_generic_class_neg.ets index df0895904f..4a56d20d7e 100644 --- a/ets2panda/test/ast/compiler/ets/union_generic_class_neg.ets +++ b/ets2panda/test/ast/compiler/ets/union_generic_class_neg.ets @@ -42,7 +42,8 @@ function main() { arktest.assertEQ(u4.fld, 'a') } -/* @@? 38:22 Error TypeError: Member type must be the same for all union objects. */ -/* @@? 39:22 Error TypeError: Member type must be the same for all union objects. */ -/* @@? 41:22 Error TypeError: Member type must be the same for all union objects. */ -/* @@? 42:22 Error TypeError: Member type must be the same for all union objects. */ + +/* @@? 38:22 Error Semantic error ESE0244: Member type must be the same for all union objects. */ +/* @@? 39:22 Error Semantic error ESE0244: Member type must be the same for all union objects. */ +/* @@? 41:22 Error Semantic error ESE0244: Member type must be the same for all union objects. */ +/* @@? 42:22 Error Semantic error ESE0244: Member type must be the same for all union objects. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/union_method_4.ets b/ets2panda/test/ast/compiler/ets/union_method_4.ets index ec919acd34..358a93a82d 100644 --- a/ets2panda/test/ast/compiler/ets/union_method_4.ets +++ b/ets2panda/test/ast/compiler/ets/union_method_4.ets @@ -31,7 +31,8 @@ function bar(x: A|B) { /* @@ label2 */x.bar("123") } -/* @@@ label Error TypeError: Member type must be the same for all union objects. */ -/* @@@ label Error TypeError: No matching call signature */ -/* @@@ label2 Error TypeError: Signature bar(v: String): void is not visible here. */ -/* @@@ label2 Error TypeError: No matching call signature for bar("123") */ + +/* @@@ label Error Semantic error ESE0244: Member type must be the same for all union objects. */ +/* @@@ label Error Semantic error ESE0128: No matching call signature */ +/* @@@ label2 Error Semantic error ESE0139: Signature bar(v: String): void is not visible here. */ +/* @@@ label2 Error Semantic error ESE0127: No matching call signature for bar("123") */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/union_overload_crash.ets b/ets2panda/test/ast/compiler/ets/union_overload_crash.ets index 01d75715b7..ac79e2ee0d 100644 --- a/ets2panda/test/ast/compiler/ets/union_overload_crash.ets +++ b/ets2panda/test/ast/compiler/ets/union_overload_crash.ets @@ -24,4 +24,5 @@ let a = new A(); (a as AVoidNumber).foo !== undefined -/* @@? 25:1 Error TypeError: Overloaded method is used as value */ + +/* @@? 25:1 Error Semantic error ESE0307: Overloaded method is used as value */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/union_string_literals_1.ets b/ets2panda/test/ast/compiler/ets/union_string_literals_1.ets index 4ca936f70b..acf9463437 100644 --- a/ets2panda/test/ast/compiler/ets/union_string_literals_1.ets +++ b/ets2panda/test/ast/compiler/ets/union_string_literals_1.ets @@ -18,4 +18,5 @@ function foo(a: T) { return a } -/* @@@ label Error TypeError: Type '"abc"' cannot be assigned to type 'T' */ + +/* @@@ label Error Semantic error ESE0318: Type '"abc"' cannot be assigned to type 'T' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/union_string_literals_2.ets b/ets2panda/test/ast/compiler/ets/union_string_literals_2.ets index 2f55423922..ca233d0e79 100644 --- a/ets2panda/test/ast/compiler/ets/union_string_literals_2.ets +++ b/ets2panda/test/ast/compiler/ets/union_string_literals_2.ets @@ -23,5 +23,6 @@ function main(): void { /* @@ label */foo<"abc">(/* @@ label1 */"ff"); } -/* @@@ label1 Error TypeError: Type '"ff"' is not compatible with type '"abc"' at index 1 */ -/* @@@ label Error TypeError: No matching call signature for foo("ff") */ + +/* @@@ label Error Semantic error ESE0127: No matching call signature for foo("ff") */ +/* @@@ label1 Error Semantic error ESE0046: Type '"ff"' is not compatible with type '"abc"' at index 1 */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/union_string_literals_3.ets b/ets2panda/test/ast/compiler/ets/union_string_literals_3.ets index d3fdd89efb..81fdec4517 100644 --- a/ets2panda/test/ast/compiler/ets/union_string_literals_3.ets +++ b/ets2panda/test/ast/compiler/ets/union_string_literals_3.ets @@ -16,4 +16,5 @@ type UT = "abc" | "bcd" | "cde" let a: UT = /* @@ label */"abcde" -/* @@@ label Error TypeError: Type '"abcde"' cannot be assigned to type '"abc"|"bcd"|"cde"' */ + +/* @@@ label Error Semantic error ESE0318: Type '"abcde"' cannot be assigned to type '"abc"|"bcd"|"cde"' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/union_string_literals_4.ets b/ets2panda/test/ast/compiler/ets/union_string_literals_4.ets index 551bacd20c..035272a489 100644 --- a/ets2panda/test/ast/compiler/ets/union_string_literals_4.ets +++ b/ets2panda/test/ast/compiler/ets/union_string_literals_4.ets @@ -18,4 +18,5 @@ let map: Record<"aa" | "bb" | int, number> = /* @@ label */{ 42 : 33, } -/* @@@ label Error TypeError: All variants of literals listed in the union type must be listed in the object literal */ + +/* @@? 16:5 Error Semantic error ESE0265: All variants of literals listed in the union type must be listed in the object literal */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/union_string_literals_5.ets b/ets2panda/test/ast/compiler/ets/union_string_literals_5.ets index e23cc141a4..5b7e3a51eb 100644 --- a/ets2panda/test/ast/compiler/ets/union_string_literals_5.ets +++ b/ets2panda/test/ast/compiler/ets/union_string_literals_5.ets @@ -17,4 +17,5 @@ function f1(x: number|string, y: boolean|null): boolean { return /* @@ label */x == y } -/* @@@ label Error TypeError: Operator '==' cannot be applied to types 'Double|String' and 'Boolean|null'. */ + +/* @@@ label Error Semantic error ESE0105: Operator '==' cannot be applied to types 'Double|String' and 'Boolean|null'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/union_string_literals_6.ets b/ets2panda/test/ast/compiler/ets/union_string_literals_6.ets index fe111c8edc..461ad2fe18 100644 --- a/ets2panda/test/ast/compiler/ets/union_string_literals_6.ets +++ b/ets2panda/test/ast/compiler/ets/union_string_literals_6.ets @@ -24,4 +24,5 @@ function main() { } } -/* @@@ label Error TypeError: Operator '==' cannot be applied to types '"a"|"b"|"c"' and '"d"'. */ + +/* @@@ label Error Semantic error ESE0105: Operator '==' cannot be applied to types '"a"|"b"|"c"' and '"d"'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/union_string_literals_7.ets b/ets2panda/test/ast/compiler/ets/union_string_literals_7.ets index f723e13d18..4edcd2563a 100644 --- a/ets2panda/test/ast/compiler/ets/union_string_literals_7.ets +++ b/ets2panda/test/ast/compiler/ets/union_string_literals_7.ets @@ -20,5 +20,6 @@ function foo(a: "aa"|"bb") { let x = ["aa", "bb", "aa"] // type of x is FixedArray let y = foo(x) -/* @@? 21:9 Error TypeError: No matching call signature for foo(Array) */ -/* @@? 21:13 Error TypeError: Type 'Array' is not compatible with type '"aa"|"bb"' at index 1 */ + +/* @@? 21:9 Error Semantic error ESE0127: No matching call signature for foo(Array) */ +/* @@? 21:13 Error Semantic error ESE0046: Type 'Array' is not compatible with type '"aa"|"bb"' at index 1 */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/union_string_literals_8.ets b/ets2panda/test/ast/compiler/ets/union_string_literals_8.ets index 1b84b36edd..4d821cd618 100644 --- a/ets2panda/test/ast/compiler/ets/union_string_literals_8.ets +++ b/ets2panda/test/ast/compiler/ets/union_string_literals_8.ets @@ -22,5 +22,6 @@ declare let cond: boolean; let x = cond ? "aa" : "bb" // type of x is string let y = foo(x) -/* @@? 23:13 Error TypeError: Type 'String' is not compatible with type '"aa"|"bb"' at index 1 */ -/* @@? 23:9 Error TypeError: No matching call signature for foo(String) */ + +/* @@? 23:9 Error Semantic error ESE0127: No matching call signature for foo(String) */ +/* @@? 23:13 Error Semantic error ESE0046: Type 'String' is not compatible with type '"aa"|"bb"' at index 1 */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/union_type.ets b/ets2panda/test/ast/compiler/ets/union_type.ets index 9e3cb3e06d..5ce85e7efa 100644 --- a/ets2panda/test/ast/compiler/ets/union_type.ets +++ b/ets2panda/test/ast/compiler/ets/union_type.ets @@ -27,4 +27,5 @@ function foo1(x : A | B) { } } -/* @@? 25:9 Error TypeError: Member type must be the same for all union objects. */ + +/* @@? 25:9 Error Semantic error ESE0244: Member type must be the same for all union objects. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/union_type_of_partial_type.ets b/ets2panda/test/ast/compiler/ets/union_type_of_partial_type.ets index e4ea92495b..e9aae20d5f 100644 --- a/ets2panda/test/ast/compiler/ets/union_type_of_partial_type.ets +++ b/ets2panda/test/ast/compiler/ets/union_type_of_partial_type.ets @@ -17,13 +17,14 @@ abstract class A>{ } } -/* @@? 16:9 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 16:9 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ -/* @@? 16:9 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 16:12 Error SyntaxError: Unexpected token ','. */ -/* @@? 16:27 Error TypeError: T in Partial must be a class or an interface type. */ -/* @@? 16:42 Error SyntaxError: Unexpected token ')'. */ -/* @@? 16:43 Error SyntaxError: Unexpected token ':'. */ -/* @@? 16:45 Error SyntaxError: void is a predefined type, cannot be used as an identifier */ -/* @@? 16:50 Error SyntaxError: Unexpected token '{'. */ -/* @@? 18:1 Error SyntaxError: Unexpected token '}'. */ + +/* @@? 16:9 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 16:9 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ +/* @@? 16:9 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 16:12 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 16:27 Error Semantic error ESE124644: T in Partial must be a class or an interface type. */ +/* @@? 16:42 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 16:43 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 16:45 Error Syntax error ESY0295: void is a predefined type, cannot be used as an identifier */ +/* @@? 16:50 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 18:1 Error Syntax error ESY0227: Unexpected token '}'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/union_types_2.ets b/ets2panda/test/ast/compiler/ets/union_types_2.ets index 8359a4b770..51a83e6522 100644 --- a/ets2panda/test/ast/compiler/ets/union_types_2.ets +++ b/ets2panda/test/ast/compiler/ets/union_types_2.ets @@ -39,4 +39,5 @@ function main() { foo(x); } -/* @@@ label Error TypeError: Property 'num' does not exist on type 'A' */ + +/* @@@ label Error Semantic error ESE0087: Property 'num' does not exist on type 'A' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/union_types_4.ets b/ets2panda/test/ast/compiler/ets/union_types_4.ets index f22ce635f5..b86b84dba0 100644 --- a/ets2panda/test/ast/compiler/ets/union_types_4.ets +++ b/ets2panda/test/ast/compiler/ets/union_types_4.ets @@ -30,4 +30,5 @@ function main() { x = /* @@ label */new B(); // CTE } -/* @@@ label Error TypeError: Type 'B' cannot be assigned to type 'String|Short|A' */ + +/* @@@ label Error Semantic error ESE0318: Type 'B' cannot be assigned to type 'String|Short|A' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/union_types_forof_1.ets b/ets2panda/test/ast/compiler/ets/union_types_forof_1.ets index b13724b2d1..1d8d2a4b7f 100644 --- a/ets2panda/test/ast/compiler/ets/union_types_forof_1.ets +++ b/ets2panda/test/ast/compiler/ets/union_types_forof_1.ets @@ -31,4 +31,5 @@ for (const item of testValues) { processValue(item); } -/* @@? 19:26 Error TypeError: Object type doesn't have proper iterator method. */ + +/* @@? 19:26 Error Semantic error ESE0258: Object type doesn't have proper iterator method. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/unmatch_arg_for_trailing_lambda.ets b/ets2panda/test/ast/compiler/ets/unmatch_arg_for_trailing_lambda.ets index b04d68be4c..f62ec90afa 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,9 @@ 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. */ \ No newline at end of file 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 472597e3c5..e883aab369 100644 --- a/ets2panda/test/ast/compiler/ets/unresolve_class_with_type_infer.ets +++ b/ets2panda/test/ast/compiler/ets/unresolve_class_with_type_infer.ets @@ -19,7 +19,8 @@ function foo>(record: Record>){ foo({}) -/* @@? 16:39 Error TypeError: Cannot find type 'A'. */ -/* @@? 16:73 Error TypeError: T in Partial must be a class or an interface type. */ -/* @@? 20:1 Error TypeError: No matching call signature for foo(...) */ -/* @@? 20:5 Error TypeError: need to specify target type for class composite */ + +/* @@? 16:39 Error Semantic error ESE0371: Cannot find type 'A'. */ +/* @@? 16:73 Error Semantic error ESE124644: T in Partial must be a class or an interface type. */ +/* @@? 20:1 Error Semantic error ESE0127: No matching call signature for foo(...) */ +/* @@? 20:5 Error Semantic error ESE0062: need to specify target type for class composite */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/unresolved_reference.ets b/ets2panda/test/ast/compiler/ets/unresolved_reference.ets index 9478fc0e84..ef5961a335 100644 --- a/ets2panda/test/ast/compiler/ets/unresolved_reference.ets +++ b/ets2panda/test/ast/compiler/ets/unresolved_reference.ets @@ -37,5 +37,6 @@ function main() { let a = (new A).b } -/* @@? 16:13 Error TypeError: Unresolved reference b */ -/* @@? 37:21 Error TypeError: Property 'b' does not exist on type 'A' */ + +/* @@? 16:13 Error Semantic error ESE0143: Unresolved reference b */ +/* @@? 37:21 Error Semantic error ESE0087: Property 'b' does not exist on type 'A' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/unresolved_reference_identifier/file1.ets b/ets2panda/test/ast/compiler/ets/unresolved_reference_identifier/file1.ets index f2b2c5a559..357037e14a 100644 --- a/ets2panda/test/ast/compiler/ets/unresolved_reference_identifier/file1.ets +++ b/ets2panda/test/ast/compiler/ets/unresolved_reference_identifier/file1.ets @@ -23,5 +23,6 @@ export function atomicTask() { return Atomics.load(shareArray, 0); } -/* @@? 21:17 Error TypeError: Unresolved reference shareArray */ -/* @@? 23:12 Error TypeError: Call to `load` is ambiguous as `2` versions of `load` are available: `load(typedArray: BigInt64Array, index: Double): BigInt` and `load(typedArray: BigUint64Array, index: Double): BigInt` */ + +/* @@? 21:17 Error Semantic error ESE0143: Unresolved reference shareArray */ +/* @@? 23:12 Error Semantic error ESE0142: Call to `load` is ambiguous as `2` versions of `load` are available: `load(typedArray: BigInt64Array, index: Double): BigInt` and `load(typedArray: BigUint64Array, index: Double): BigInt` */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/unresolved_reference_identifier/main_test.ets b/ets2panda/test/ast/compiler/ets/unresolved_reference_identifier/main_test.ets index d5901ed027..576e41f8fc 100644 --- a/ets2panda/test/ast/compiler/ets/unresolved_reference_identifier/main_test.ets +++ b/ets2panda/test/ast/compiler/ets/unresolved_reference_identifier/main_test.ets @@ -16,5 +16,6 @@ import {atomicTask} from "./file1" const task = new taskpool.Task(atomicTask); -/* @@? file1.ets:23:12 Error TypeError: Call to `load` is ambiguous as `2` versions of `load` are available: `load(typedArray: BigInt64Array, index: Double): BigInt` and `load(typedArray: BigUint64Array, index: Double): BigInt` */ -/* @@? file1.ets:23:25 Error TypeError: Unresolved reference shareArray */ + +/* @@? file1.ets:23:12 Error Semantic error ESE0142: Call to `load` is ambiguous as `2` versions of `load` are available: `load(typedArray: BigInt64Array, index: Double): BigInt` and `load(typedArray: BigUint64Array, index: Double): BigInt` */ +/* @@? file1.ets:23:25 Error Semantic error ESE0143: Unresolved reference shareArray */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/update_const.ets b/ets2panda/test/ast/compiler/ets/update_const.ets index 15ffd43067..c97a1657fc 100644 --- a/ets2panda/test/ast/compiler/ets/update_const.ets +++ b/ets2panda/test/ast/compiler/ets/update_const.ets @@ -18,4 +18,5 @@ function main(): void { /* @@ label */++c; } -/* @@@ label Error TypeError: Cannot assign to a constant variable c */ + +/* @@@ label Error Semantic error ESE4001: Cannot assign to a constant variable c */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/use_static_flag/flag_in_first_line_2_neg.ets b/ets2panda/test/ast/compiler/ets/use_static_flag/flag_in_first_line_2_neg.ets index df09abb5e1..56f36eebdd 100644 --- a/ets2panda/test/ast/compiler/ets/use_static_flag/flag_in_first_line_2_neg.ets +++ b/ets2panda/test/ast/compiler/ets/use_static_flag/flag_in_first_line_2_neg.ets @@ -16,4 +16,5 @@ import { A as A } from "./export1.ets" -/* @@? 17:1 Error SyntaxError: Import declarations can only be used on the top level and before any other declaration, top level statement or directive. */ + +/* @@? 17:1 Error Syntax error ESY0226: Import declarations can only be used on the top level and before any other declaration, top level statement or directive. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/use_static_flag/flag_in_first_line_3_neg.ets b/ets2panda/test/ast/compiler/ets/use_static_flag/flag_in_first_line_3_neg.ets index 1b1cd257ac..f3b1833d7b 100644 --- a/ets2panda/test/ast/compiler/ets/use_static_flag/flag_in_first_line_3_neg.ets +++ b/ets2panda/test/ast/compiler/ets/use_static_flag/flag_in_first_line_3_neg.ets @@ -16,4 +16,5 @@ import { A as A } from "./export1.ets" -/* @@? 17:1 Error SyntaxError: Import declarations can only be used on the top level and before any other declaration, top level statement or directive. */ + +/* @@? 17:1 Error Syntax error ESY0226: Import declarations can only be used on the top level and before any other declaration, top level statement or directive. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/use_static_flag/flag_in_first_line_neg.ets b/ets2panda/test/ast/compiler/ets/use_static_flag/flag_in_first_line_neg.ets index e0a410adc7..e4a2196930 100644 --- a/ets2panda/test/ast/compiler/ets/use_static_flag/flag_in_first_line_neg.ets +++ b/ets2panda/test/ast/compiler/ets/use_static_flag/flag_in_first_line_neg.ets @@ -16,4 +16,5 @@ import { A as A } from "./export1.ets" -/* @@? 17:1 Error SyntaxError: Import declarations can only be used on the top level and before any other declaration, top level statement or directive. */ + +/* @@? 17:1 Error Syntax error ESY0226: Import declarations can only be used on the top level and before any other declaration, top level statement or directive. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/use_static_flag/flag_middle_importdecl_neg.ets b/ets2panda/test/ast/compiler/ets/use_static_flag/flag_middle_importdecl_neg.ets index b048662c57..375931b90a 100644 --- a/ets2panda/test/ast/compiler/ets/use_static_flag/flag_middle_importdecl_neg.ets +++ b/ets2panda/test/ast/compiler/ets/use_static_flag/flag_middle_importdecl_neg.ets @@ -17,4 +17,5 @@ import {A as A} from "./export1.ets" "use static" import {B as B} from "./export2.ets" -/* @@? 18:1 Error SyntaxError: Import declarations can only be used on the top level and before any other declaration, top level statement or directive. */ + +/* @@? 18:1 Error Syntax error ESY0226: Import declarations can only be used on the top level and before any other declaration, top level statement or directive. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/use_static_flag/package_2_neg/flag_before_package.ets b/ets2panda/test/ast/compiler/ets/use_static_flag/package_2_neg/flag_before_package.ets index ee44269d82..f22cf0ee85 100644 --- a/ets2panda/test/ast/compiler/ets/use_static_flag/package_2_neg/flag_before_package.ets +++ b/ets2panda/test/ast/compiler/ets/use_static_flag/package_2_neg/flag_before_package.ets @@ -20,5 +20,6 @@ let str2:String = "use static" import {A as A} from "../export1.ets" import {B as B} from "../export2.ets" -/* @@? 20:1 Error SyntaxError: Import declarations can only be used on the top level and before any other declaration, top level statement or directive. */ -/* @@? 21:1 Error SyntaxError: Import declarations can only be used on the top level and before any other declaration, top level statement or directive. */ + +/* @@? 20:1 Error Syntax error ESY0226: Import declarations can only be used on the top level and before any other declaration, top level statement or directive. */ +/* @@? 21:1 Error Syntax error ESY0226: Import declarations can only be used on the top level and before any other declaration, top level statement or directive. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/use_static_flag/package_3_neg/flag_before_package.ets b/ets2panda/test/ast/compiler/ets/use_static_flag/package_3_neg/flag_before_package.ets index 55490f06d0..be97f03b06 100644 --- a/ets2panda/test/ast/compiler/ets/use_static_flag/package_3_neg/flag_before_package.ets +++ b/ets2panda/test/ast/compiler/ets/use_static_flag/package_3_neg/flag_before_package.ets @@ -20,6 +20,7 @@ package usestaticpackage3; import {A as A} from "../export1.ets" import {B as B} from "../export2.ets" -/* @@? 19:1 Error SyntaxError: Invalid package toplevel statement */ -/* @@? 20:1 Error SyntaxError: Import declarations can only be used on the top level and before any other declaration, top level statement or directive. */ -/* @@? 21:1 Error SyntaxError: Import declarations can only be used on the top level and before any other declaration, top level statement or directive. */ + +/* @@? 19:1 Error Syntax error ESY0291: Invalid package toplevel statement */ +/* @@? 20:1 Error Syntax error ESY0226: Import declarations can only be used on the top level and before any other declaration, top level statement or directive. */ +/* @@? 21:1 Error Syntax error ESY0226: Import declarations can only be used on the top level and before any other declaration, top level statement or directive. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/use_static_flag/package_neg/flag_package.ets b/ets2panda/test/ast/compiler/ets/use_static_flag/package_neg/flag_package.ets index ae374bb21f..e2bcabed36 100644 --- a/ets2panda/test/ast/compiler/ets/use_static_flag/package_neg/flag_package.ets +++ b/ets2panda/test/ast/compiler/ets/use_static_flag/package_neg/flag_package.ets @@ -17,4 +17,5 @@ package usestaticpackage2; "use static" -/* @@? 18:1 Error SyntaxError: Invalid package toplevel statement */ + +/* @@? 18:1 Error Syntax error ESY0291: Invalid package toplevel statement */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/use_static_flag/package_neg/flag_package2.ets b/ets2panda/test/ast/compiler/ets/use_static_flag/package_neg/flag_package2.ets index 551145bbe7..97fda0aba0 100644 --- a/ets2panda/test/ast/compiler/ets/use_static_flag/package_neg/flag_package2.ets +++ b/ets2panda/test/ast/compiler/ets/use_static_flag/package_neg/flag_package2.ets @@ -16,4 +16,5 @@ package usestaticpackage2; -/* @@? flag_package.ets:18:1 Error SyntaxError: Invalid package toplevel statement */ + +/* @@? flag_package.ets:18:1 Error Syntax error ESY0291: Invalid package toplevel statement */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/utility_type_can_not_found_etsobjecttype.ets b/ets2panda/test/ast/compiler/ets/utility_type_can_not_found_etsobjecttype.ets index d92b4f5bde..3020163c64 100644 --- a/ets2panda/test/ast/compiler/ets/utility_type_can_not_found_etsobjecttype.ets +++ b/ets2panda/test/ast/compiler/ets/utility_type_can_not_found_etsobjecttype.ets @@ -25,6 +25,7 @@ class X { } } -/* @@? 16:34 Error TypeError: Cannot find type 'xny'. */ -/* @@? 21:29 Error TypeError: T in Partial must be a class or an interface type. */ -/* @@? 23:14 Error TypeError: Target type for class composite needs to be an object type, found 'T' */ + +/* @@? 16:34 Error Semantic error ESE0371: Cannot find type 'xny'. */ +/* @@? 21:29 Error Semantic error ESE124644: T in Partial must be a class or an interface type. */ +/* @@? 23:14 Error Semantic error ESE0063: Target type for class composite needs to be an object type, found 'T' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/validate_signatures_throw_type_error_more_param.ets b/ets2panda/test/ast/compiler/ets/validate_signatures_throw_type_error_more_param.ets index a7b4bf5973..dfc1c51d4b 100644 --- a/ets2panda/test/ast/compiler/ets/validate_signatures_throw_type_error_more_param.ets +++ b/ets2panda/test/ast/compiler/ets/validate_signatures_throw_type_error_more_param.ets @@ -17,6 +17,7 @@ function main() : void { let e: Float = /* @@ label */new Float(6,"3"); } -/* @@@ label Error TypeError: Expected 0 arguments, got 2. */ -/* @@@ label Error TypeError: Expected 1 arguments, got 2. */ -/* @@@ label Error TypeError: No matching construct signature for std.core.Float(Int, "3") */ + +/* @@@ label Error Semantic error ESE0124: Expected 0 arguments, got 2. */ +/* @@@ label Error Semantic error ESE0124: Expected 1 arguments, got 2. */ +/* @@@ label Error Semantic error ESE0127: No matching construct signature for std.core.Float(Int, "3") */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/var_declaration.ets b/ets2panda/test/ast/compiler/ets/var_declaration.ets index 2411ac75f8..514cc00435 100644 --- a/ets2panda/test/ast/compiler/ets/var_declaration.ets +++ b/ets2panda/test/ast/compiler/ets/var_declaration.ets @@ -16,4 +16,4 @@ // (arkts-no-var) var x = 42; - /* @@? 17:6 Error SyntaxError: 'var' keyword is not supported. Use 'let' instead. */ \ No newline at end of file + /* @@? 17:6 Error Syntax error ESY0297: 'var' keyword is not supported. Use 'let' instead. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/variable_declaretion_neg_1.ets b/ets2panda/test/ast/compiler/ets/variable_declaretion_neg_1.ets index b4321b87c8..067f2adfb8 100644 --- a/ets2panda/test/ast/compiler/ets/variable_declaretion_neg_1.ets +++ b/ets2panda/test/ast/compiler/ets/variable_declaretion_neg_1.ets @@ -15,6 +15,7 @@ let negative%%_ = 1 -/* @@? 16:13 Error SyntaxError: Variable must be initialized or it's type must be declared. */ -/* @@? 16:13 Error SyntaxError: Unexpected token '%'. */ -/* @@? 16:15 Error TypeError: Unresolved reference _ */ + +/* @@? 16:13 Error Syntax error ESY0105: Variable must be initialized or it's type must be declared. */ +/* @@? 16:13 Error Syntax error ESY0227: Unexpected token '%'. */ +/* @@? 16:15 Error Semantic error ESE0143: Unresolved reference _ */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/variance_typeparam.ets b/ets2panda/test/ast/compiler/ets/variance_typeparam.ets index fe3e8ad43e..0b72f2ca4c 100644 --- a/ets2panda/test/ast/compiler/ets/variance_typeparam.ets +++ b/ets2panda/test/ast/compiler/ets/variance_typeparam.ets @@ -42,11 +42,12 @@ class A{ paramsFunc7(a:T1, b:/* @@ label8 */T2, c:T3){} //CTE } -/* @@@ label1 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ -/* @@@ label2 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ -/* @@@ label3 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'out' position. */ -/* @@@ label4 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'out' position. */ -/* @@@ label5 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'in' position. */ -/* @@@ label6 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'in' position. */ -/* @@@ label7 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'in' position. */ -/* @@@ label8 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'in' position. */ + +/* @@@ label1 Error Semantic error ESE0331: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ +/* @@@ label2 Error Semantic error ESE0331: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ +/* @@@ label3 Error Semantic error ESE0332: Type Parameter 'T1' is declared as 'in' but occurs in 'out' position. */ +/* @@@ label4 Error Semantic error ESE0332: Type Parameter 'T1' is declared as 'in' but occurs in 'out' position. */ +/* @@@ label5 Error Semantic error ESE0333: Type Parameter 'T2' is declared as 'out' but occurs in 'in' position. */ +/* @@@ label6 Error Semantic error ESE0333: Type Parameter 'T2' is declared as 'out' but occurs in 'in' position. */ +/* @@@ label7 Error Semantic error ESE0333: Type Parameter 'T2' is declared as 'out' but occurs in 'in' position. */ +/* @@@ label8 Error Semantic error ESE0333: Type Parameter 'T2' is declared as 'out' but occurs in 'in' position. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/variance_typeparam_array.ets b/ets2panda/test/ast/compiler/ets/variance_typeparam_array.ets index 25d2d0d5cd..018775515c 100644 --- a/ets2panda/test/ast/compiler/ets/variance_typeparam_array.ets +++ b/ets2panda/test/ast/compiler/ets/variance_typeparam_array.ets @@ -42,17 +42,18 @@ class A{ paramsFunc7(a:T1/* @@ label13 */[], b:T2/* @@ label14 */[], c:T3[]){} //CTE } -/* @@@ label1 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ -/* @@@ label2 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ -/* @@@ label3 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ -/* @@@ label4 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ -/* @@@ label5 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ -/* @@@ label6 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ -/* @@@ label7 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ -/* @@@ label8 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ -/* @@@ label9 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ -/* @@@ label10 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ -/* @@@ label11 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ -/* @@@ label12 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ -/* @@@ label13 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ -/* @@@ label14 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ + +/* @@@ label1 Error Semantic error ESE0331: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ +/* @@@ label2 Error Semantic error ESE0331: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ +/* @@@ label3 Error Semantic error ESE0331: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ +/* @@@ label4 Error Semantic error ESE0331: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ +/* @@@ label5 Error Semantic error ESE0331: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ +/* @@@ label6 Error Semantic error ESE0331: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ +/* @@@ label7 Error Semantic error ESE0331: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ +/* @@@ label8 Error Semantic error ESE0331: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ +/* @@@ label9 Error Semantic error ESE0331: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ +/* @@@ label10 Error Semantic error ESE0331: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ +/* @@@ label11 Error Semantic error ESE0331: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ +/* @@@ label12 Error Semantic error ESE0331: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ +/* @@@ label13 Error Semantic error ESE0331: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ +/* @@@ label14 Error Semantic error ESE0331: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/variance_typeparam_class.ets b/ets2panda/test/ast/compiler/ets/variance_typeparam_class.ets index 23d0400140..264fb71c27 100644 --- a/ets2panda/test/ast/compiler/ets/variance_typeparam_class.ets +++ b/ets2panda/test/ast/compiler/ets/variance_typeparam_class.ets @@ -49,13 +49,14 @@ class A{ paramsFunc3(a:B){} } -/* @@@ label1 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ -/* @@@ label1 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ -/* @@@ label2 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ -/* @@@ label2 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ -/* @@@ label3 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'in' position. */ -/* @@@ label3 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'out' position. */ -/* @@@ label4 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'in' position. */ -/* @@@ label4 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'out' position. */ -/* @@@ label5 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'out' position. */ -/* @@@ label5 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'in' position. */ + +/* @@@ label1 Error Semantic error ESE0331: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ +/* @@@ label1 Error Semantic error ESE0331: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ +/* @@@ label2 Error Semantic error ESE0331: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ +/* @@@ label2 Error Semantic error ESE0331: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ +/* @@@ label3 Error Semantic error ESE0333: Type Parameter 'T2' is declared as 'out' but occurs in 'in' position. */ +/* @@@ label3 Error Semantic error ESE0332: Type Parameter 'T1' is declared as 'in' but occurs in 'out' position. */ +/* @@@ label4 Error Semantic error ESE0333: Type Parameter 'T2' is declared as 'out' but occurs in 'in' position. */ +/* @@@ label4 Error Semantic error ESE0332: Type Parameter 'T1' is declared as 'in' but occurs in 'out' position. */ +/* @@@ label5 Error Semantic error ESE0332: Type Parameter 'T1' is declared as 'in' but occurs in 'out' position. */ +/* @@@ label5 Error Semantic error ESE0333: Type Parameter 'T2' is declared as 'out' but occurs in 'in' position. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/variance_typeparam_lambda.ets b/ets2panda/test/ast/compiler/ets/variance_typeparam_lambda.ets index 89adc5dea1..83b5e003c7 100644 --- a/ets2panda/test/ast/compiler/ets/variance_typeparam_lambda.ets +++ b/ets2panda/test/ast/compiler/ets/variance_typeparam_lambda.ets @@ -42,15 +42,15 @@ class A{ paramsFunc7(a:(a:(a:(a:T2)=>T1)=>T2)=>T1){} } -/* @@@ label1 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ -/* @@@ label1 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ -/* @@@ label3 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ -/* @@@ label3 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ -/* @@@ label5 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'out' position. */ -/* @@@ label5 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'in' position. */ -/* @@@ label7 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'out' position. */ -/* @@@ label7 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'in' position. */ -/* @@@ label9 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'in' position. */ -/* @@@ label9 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'out' position. */ -/* @@@ label11 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'out' position. */ -/* @@@ label12 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'in' position. */ +/* @@@ label1 Error Semantic error ESE0331: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ +/* @@@ label1 Error Semantic error ESE0331: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ +/* @@@ label3 Error Semantic error ESE0331: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ +/* @@@ label3 Error Semantic error ESE0331: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ +/* @@@ label5 Error Semantic error ESE0332: Type Parameter 'T1' is declared as 'in' but occurs in 'out' position. */ +/* @@@ label5 Error Semantic error ESE0333: Type Parameter 'T2' is declared as 'out' but occurs in 'in' position. */ +/* @@@ label7 Error Semantic error ESE0332: Type Parameter 'T1' is declared as 'in' but occurs in 'out' position. */ +/* @@@ label7 Error Semantic error ESE0333: Type Parameter 'T2' is declared as 'out' but occurs in 'in' position. */ +/* @@@ label9 Error Semantic error ESE0333: Type Parameter 'T2' is declared as 'out' but occurs in 'in' position. */ +/* @@@ label9 Error Semantic error ESE0332: Type Parameter 'T1' is declared as 'in' but occurs in 'out' position. */ +/* @@@ label11 Error Semantic error ESE0332: Type Parameter 'T1' is declared as 'in' but occurs in 'out' position. */ +/* @@@ label12 Error Semantic error ESE0333: Type Parameter 'T2' is declared as 'out' but occurs in 'in' position. */ diff --git a/ets2panda/test/ast/compiler/ets/variance_typeparam_overload.ets b/ets2panda/test/ast/compiler/ets/variance_typeparam_overload.ets index 824b06a2ce..d15b03ccef 100644 --- a/ets2panda/test/ast/compiler/ets/variance_typeparam_overload.ets +++ b/ets2panda/test/ast/compiler/ets/variance_typeparam_overload.ets @@ -19,5 +19,6 @@ class A{ paramsFunc1(a:T1, b:/* @@ label2 */T2, c:T3){} //CTE } -/* @@@ label1 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'in' position. */ -/* @@@ label2 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'in' position. */ + +/* @@@ label1 Error Semantic error ESE0333: Type Parameter 'T2' is declared as 'out' but occurs in 'in' position. */ +/* @@@ label2 Error Semantic error ESE0333: Type Parameter 'T2' is declared as 'out' but occurs in 'in' position. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/variance_typeparam_super.ets b/ets2panda/test/ast/compiler/ets/variance_typeparam_super.ets index fd735fe396..08f5838696 100644 --- a/ets2panda/test/ast/compiler/ets/variance_typeparam_super.ets +++ b/ets2panda/test/ast/compiler/ets/variance_typeparam_super.ets @@ -29,7 +29,7 @@ class B8 extends A2{} class B9 extends A2{} class B10 extends /* @@ label4 */A2{} -/* @@@ label1 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ -/* @@@ label2 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'in' position. */ -/* @@@ label3 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ -/* @@@ label4 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'in' position. */ \ No newline at end of file +/* @@@ label1 Error Semantic error ESE0331: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ +/* @@@ label2 Error Semantic error ESE0333: Type Parameter 'T2' is declared as 'out' but occurs in 'in' position. */ +/* @@@ label3 Error Semantic error ESE0331: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ +/* @@@ label4 Error Semantic error ESE0333: Type Parameter 'T2' is declared as 'out' but occurs in 'in' position. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/variance_typeparam_transmit.ets b/ets2panda/test/ast/compiler/ets/variance_typeparam_transmit.ets index 9c96f4d421..d13bd8b9d6 100644 --- a/ets2panda/test/ast/compiler/ets/variance_typeparam_transmit.ets +++ b/ets2panda/test/ast/compiler/ets/variance_typeparam_transmit.ets @@ -31,8 +31,9 @@ class A123{ readonly readonlyfield12:B; } -/* @@@ label1 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'in' position. */ -/* @@@ label2 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ -/* @@@ label3 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'out' position. */ -/* @@@ label4 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ -/* @@@ label5 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ + +/* @@@ label1 Error Semantic error ESE0333: Type Parameter 'T2' is declared as 'out' but occurs in 'in' position. */ +/* @@@ label2 Error Semantic error ESE0331: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ +/* @@@ label3 Error Semantic error ESE0332: Type Parameter 'T1' is declared as 'in' but occurs in 'out' position. */ +/* @@@ label4 Error Semantic error ESE0331: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ +/* @@@ label5 Error Semantic error ESE0331: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/variance_typeparam_tuple.ets b/ets2panda/test/ast/compiler/ets/variance_typeparam_tuple.ets index 374aa69fb3..1b87287f3a 100644 --- a/ets2panda/test/ast/compiler/ets/variance_typeparam_tuple.ets +++ b/ets2panda/test/ast/compiler/ets/variance_typeparam_tuple.ets @@ -38,11 +38,12 @@ class A{ paramsFunc3(a:[number,T3,string]){} } -/* @@@ label1 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ -/* @@@ label2 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ -/* @@@ label3 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ -/* @@@ label4 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ -/* @@@ label5 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ -/* @@@ label6 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ -/* @@@ label7 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ -/* @@@ label8 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ + +/* @@@ label1 Error Semantic error ESE0331: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ +/* @@@ label2 Error Semantic error ESE0331: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ +/* @@@ label3 Error Semantic error ESE0331: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ +/* @@@ label4 Error Semantic error ESE0331: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ +/* @@@ label5 Error Semantic error ESE0331: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ +/* @@@ label6 Error Semantic error ESE0331: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ +/* @@@ label7 Error Semantic error ESE0331: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ +/* @@@ label8 Error Semantic error ESE0331: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/variance_typeparam_union.ets b/ets2panda/test/ast/compiler/ets/variance_typeparam_union.ets index 24c2b074ed..bd553eb839 100644 --- a/ets2panda/test/ast/compiler/ets/variance_typeparam_union.ets +++ b/ets2panda/test/ast/compiler/ets/variance_typeparam_union.ets @@ -67,23 +67,24 @@ class A123{ paramsFunc7(a:/* @@ label18 */T1|T2|T3){} //CTE } -/* @@@ label1 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ -/* @@@ label2 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ -/* @@@ label3 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ -/* @@@ label3 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ -/* @@@ label4 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ -/* @@@ label5 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ -/* @@@ label6 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ -/* @@@ label6 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ -/* @@@ label7 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'out' position. */ -/* @@@ label8 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'out' position. */ -/* @@@ label9 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'out' position. */ -/* @@@ label10 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'out' position. */ -/* @@@ label11 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'out' position. */ -/* @@@ label12 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'out' position. */ -/* @@@ label13 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'out' position. */ -/* @@@ label14 Error TypeError: Type Parameter 'T1' is declared as 'in' but occurs in 'out' position. */ -/* @@@ label15 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'in' position. */ -/* @@@ label16 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'in' position. */ -/* @@@ label17 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'in' position. */ -/* @@@ label18 Error TypeError: Type Parameter 'T2' is declared as 'out' but occurs in 'in' position. */ + +/* @@@ label1 Error Semantic error ESE0331: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ +/* @@@ label2 Error Semantic error ESE0331: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ +/* @@@ label3 Error Semantic error ESE0331: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ +/* @@@ label3 Error Semantic error ESE0331: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ +/* @@@ label4 Error Semantic error ESE0331: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ +/* @@@ label5 Error Semantic error ESE0331: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ +/* @@@ label6 Error Semantic error ESE0331: Type Parameter 'T1' is declared as 'in' but occurs in 'invariant' position. */ +/* @@@ label6 Error Semantic error ESE0331: Type Parameter 'T2' is declared as 'out' but occurs in 'invariant' position. */ +/* @@@ label7 Error Semantic error ESE0332: Type Parameter 'T1' is declared as 'in' but occurs in 'out' position. */ +/* @@@ label8 Error Semantic error ESE0332: Type Parameter 'T1' is declared as 'in' but occurs in 'out' position. */ +/* @@@ label9 Error Semantic error ESE0332: Type Parameter 'T1' is declared as 'in' but occurs in 'out' position. */ +/* @@@ label10 Error Semantic error ESE0332: Type Parameter 'T1' is declared as 'in' but occurs in 'out' position. */ +/* @@@ label11 Error Semantic error ESE0332: Type Parameter 'T1' is declared as 'in' but occurs in 'out' position. */ +/* @@@ label12 Error Semantic error ESE0332: Type Parameter 'T1' is declared as 'in' but occurs in 'out' position. */ +/* @@@ label13 Error Semantic error ESE0332: Type Parameter 'T1' is declared as 'in' but occurs in 'out' position. */ +/* @@@ label14 Error Semantic error ESE0332: Type Parameter 'T1' is declared as 'in' but occurs in 'out' position. */ +/* @@@ label15 Error Semantic error ESE0333: Type Parameter 'T2' is declared as 'out' but occurs in 'in' position. */ +/* @@@ label16 Error Semantic error ESE0333: Type Parameter 'T2' is declared as 'out' but occurs in 'in' position. */ +/* @@@ label17 Error Semantic error ESE0333: Type Parameter 'T2' is declared as 'out' but occurs in 'in' position. */ +/* @@@ label18 Error Semantic error ESE0333: Type Parameter 'T2' is declared as 'out' but occurs in 'in' position. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/voidTypeInBinaryOperation.ets b/ets2panda/test/ast/compiler/ets/voidTypeInBinaryOperation.ets index 92db5f8ba8..3ebc99c6a8 100644 --- a/ets2panda/test/ast/compiler/ets/voidTypeInBinaryOperation.ets +++ b/ets2panda/test/ast/compiler/ets/voidTypeInBinaryOperation.ets @@ -20,6 +20,7 @@ function main(): void { arktest.assertTrue(false || check()) } -/* @@? 20:3 Error TypeError: No matching call signature for assertTrue(Boolean|void) */ -/* @@? 20:22 Error TypeError: Type 'Boolean|void' is not compatible with type 'Boolean' at index 1 */ -/* @@? 20:31 Error TypeError: Cannot use type 'void' as value. */ + +/* @@? 20:3 Error Semantic error ESE0127: No matching call signature for assertTrue(Boolean|void) */ +/* @@? 20:22 Error Semantic error ESE0046: Type 'Boolean|void' is not compatible with type 'Boolean' at index 1 */ +/* @@? 20:31 Error Semantic error ESE0078: Cannot use type 'void' as value. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/void_as_return_type_neg_1.ets b/ets2panda/test/ast/compiler/ets/void_as_return_type_neg_1.ets index 619efc697f..e66373c8bd 100644 --- a/ets2panda/test/ast/compiler/ets/void_as_return_type_neg_1.ets +++ b/ets2panda/test/ast/compiler/ets/void_as_return_type_neg_1.ets @@ -17,4 +17,5 @@ async function foo():Promise{ return void; } -/* @@? 17:12 Error SyntaxError: Unexpected token 'void'. */ + +/* @@? 17:12 Error Syntax error ESY0227: Unexpected token 'void'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/void_as_return_type_neg_2.ets b/ets2panda/test/ast/compiler/ets/void_as_return_type_neg_2.ets index 50e646c928..7626208758 100644 --- a/ets2panda/test/ast/compiler/ets/void_as_return_type_neg_2.ets +++ b/ets2panda/test/ast/compiler/ets/void_as_return_type_neg_2.ets @@ -20,4 +20,4 @@ async function foo():Promise{ return test() } -/* @@? 20:12 Error TypeError: Type 'void' is not compatible with the enclosing method's return type 'Promise | Int' */ \ No newline at end of file +/* @@? 20:12 Error Semantic error ESE0091: Type 'void' is not compatible with the enclosing method's return type 'Promise | Int' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/void_as_typeAnnotation_neg_1.ets b/ets2panda/test/ast/compiler/ets/void_as_typeAnnotation_neg_1.ets index 3b5b16d39b..a704a891e0 100644 --- a/ets2panda/test/ast/compiler/ets/void_as_typeAnnotation_neg_1.ets +++ b/ets2panda/test/ast/compiler/ets/void_as_typeAnnotation_neg_1.ets @@ -14,5 +14,6 @@ */ function foo (): void let y = foo() -/* @@? 16:9 Error TypeError: Cannot use type 'void' as value. */ -/* @@? 15:10 Error TypeError: Only abstract or native methods can't have body. */ + +/* @@? 15:10 Error Semantic error ESE0017: Only abstract or native methods can't have body. */ +/* @@? 16:9 Error Semantic error ESE0078: Cannot use type 'void' as value. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/void_as_value_neg_1.ets b/ets2panda/test/ast/compiler/ets/void_as_value_neg_1.ets index 2e919669e2..7693c4be80 100644 --- a/ets2panda/test/ast/compiler/ets/void_as_value_neg_1.ets +++ b/ets2panda/test/ast/compiler/ets/void_as_value_neg_1.ets @@ -25,4 +25,5 @@ function bar(value:A){ const x = /* @@ label */foo(value) } -/* @@@ label Error TypeError: Cannot use type 'void' as value. */ + +/* @@@ label Error Semantic error ESE0078: Cannot use type 'void' as value. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/void_as_value_neg_2.ets b/ets2panda/test/ast/compiler/ets/void_as_value_neg_2.ets index e2ce9f8526..afa8c20292 100644 --- a/ets2panda/test/ast/compiler/ets/void_as_value_neg_2.ets +++ b/ets2panda/test/ast/compiler/ets/void_as_value_neg_2.ets @@ -13,4 +13,5 @@ * limitations under the License. */ let x: /* @@ label */void -/* @@@ label Error TypeError: 'void' used as type annotation. */ + +/* @@@ label Error Semantic error ESE0232: 'void' used as type annotation. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/void_as_value_neg_3.ets b/ets2panda/test/ast/compiler/ets/void_as_value_neg_3.ets index 3608ddbfd2..b84320391a 100644 --- a/ets2panda/test/ast/compiler/ets/void_as_value_neg_3.ets +++ b/ets2panda/test/ast/compiler/ets/void_as_value_neg_3.ets @@ -17,4 +17,5 @@ function foo(x: T) {} foo(void) -/* @@? 18:11 Error SyntaxError: Unexpected token 'void'. */ + +/* @@? 18:11 Error Syntax error ESY0227: Unexpected token 'void'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/void_as_value_neg_4.ets b/ets2panda/test/ast/compiler/ets/void_as_value_neg_4.ets index bafb8f9d54..5d92deaf76 100644 --- a/ets2panda/test/ast/compiler/ets/void_as_value_neg_4.ets +++ b/ets2panda/test/ast/compiler/ets/void_as_value_neg_4.ets @@ -24,5 +24,6 @@ function main(): void { foo(void_function()); } -/* @@? 24:9 Error TypeError: Cannot use type 'void' as value. */ + +/* @@? 24:9 Error Semantic error ESE0078: Cannot use type 'void' as value. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/with-statement.ets b/ets2panda/test/ast/compiler/ets/with-statement.ets index 8276ce39ab..907a649471 100644 --- a/ets2panda/test/ast/compiler/ets/with-statement.ets +++ b/ets2panda/test/ast/compiler/ets/with-statement.ets @@ -22,8 +22,8 @@ function main(): void { } } -/* @@@ label1 Error SyntaxError: 'with' statement is not supported, please use fully qualified names! */ -/* @@@ label1 Error TypeError: Expected 3 arguments, got 1. */ -/* @@@ label1 Error TypeError: No matching call signature for with(Math) */ -/* @@@ label1 Error TypeError: Expected 3 arguments, got 1. */ -/* @@@ label2 Error TypeError: Class or interface or enum 'Math' cannot be used as object */ \ No newline at end of file +/* @@@ label1 Error Syntax error ESY116901: 'with' statement is not supported, please use fully qualified names! */ +/* @@@ label1 Error Semantic error ESE0124: Expected 3 arguments, got 1. */ +/* @@@ label1 Error Semantic error ESE0127: No matching call signature for with(Math) */ +/* @@@ label1 Error Semantic error ESE0124: Expected 3 arguments, got 1. */ +/* @@@ label2 Error Semantic error ESE0294: Class or interface or enum 'Math' cannot be used as object */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/without_semicolon_before_struct_declaration.ets b/ets2panda/test/ast/compiler/ets/without_semicolon_before_struct_declaration.ets index 95aac85f2f..88f60f0d9a 100644 --- a/ets2panda/test/ast/compiler/ets/without_semicolon_before_struct_declaration.ets +++ b/ets2panda/test/ast/compiler/ets/without_semicolon_before_struct_declaration.ets @@ -19,4 +19,4 @@ struct C { f: number = 1; } -/* @@? 18:1 Error TypeError: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ \ No newline at end of file +/* @@? 18:1 Error Semantic error ESE0364: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/wrong_variable_binding.ets b/ets2panda/test/ast/compiler/ets/wrong_variable_binding.ets index c9f2d161ac..cb0626a787 100644 --- a/ets2panda/test/ast/compiler/ets/wrong_variable_binding.ets +++ b/ets2panda/test/ast/compiler/ets/wrong_variable_binding.ets @@ -26,5 +26,5 @@ class C { class D extends C{} -/* @@? 19:13 Error SyntaxError: Field type annotation expected. */ -/* @@? 21:12 Error TypeError: Variable 'C' has already been declared. */ \ No newline at end of file +/* @@? 19:13 Error Syntax error ESY0121: Field type annotation expected. */ +/* @@? 21:12 Error Semantic error ESE0351: Variable 'C' has already been declared. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ets/xgc_ea/xgc_ea.ets b/ets2panda/test/ast/compiler/ets/xgc_ea/xgc_ea.ets index 05b98fcb0a..910b3e8330 100755 --- a/ets2panda/test/ast/compiler/ets/xgc_ea/xgc_ea.ets +++ b/ets2panda/test/ast/compiler/ets/xgc_ea/xgc_ea.ets @@ -16,8 +16,8 @@ package xgc_ea const SHARED_OBJECTS_COUNT: testResult, "test20 $2" -/* @@? 17:7 Error SyntaxError: Missing initialization for const package property */ -/* @@? 17:29 Error TypeError: Cannot find type 'testResult'. */ -/* @@? 17:41 Error SyntaxError: Identifier expected, got 'string literal'. */ -/* @@? 17:41 Error SyntaxError: Number, string or computed value property name 'test20 $2' is not allowed, use classes to access data by property names that are identifiers */ -/* @@? 23:95 Error SyntaxError: Variable must be initialized or it's type must be declared. */ \ No newline at end of file +/* @@? 17:7 Error Syntax error ESY0294: Missing initialization for const package property */ +/* @@? 17:29 Error Semantic error ESE0371: Cannot find type 'testResult'. */ +/* @@? 17:41 Error Syntax error ESY0315: Number, string or computed value property name 'test20 $2' is not allowed, use classes to access data by property names that are identifiers */ +/* @@? 17:41 Error Syntax error ESY0224: Identifier expected, got 'string literal'. */ +/* @@? 23:105 Error Syntax error ESY0105: Variable must be initialized or it's type must be declared. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_1.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_1.ts index b4df110fe0..1d5650bfb6 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_1.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_1.ts @@ -18,4 +18,5 @@ var a: string; a = "foo"; /* @@ label */a - "foo"; -/* @@@ label Error TypeError: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ + +/* @@@ label Error Semantic error ESE0000: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_10.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_10.ts index 584984578f..8ef358d3d3 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_10.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_10.ts @@ -18,4 +18,5 @@ var a: string; a = "foo"; /* @@ label */a / "foo"; -/* @@@ label Error TypeError: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ + +/* @@@ label Error Semantic error ESE0000: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_11.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_11.ts index ad3bfff331..cdae5171db 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_11.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_11.ts @@ -18,4 +18,5 @@ var a: string; a = "foo"; /* @@ label */a / 5; -/* @@@ label Error TypeError: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ + +/* @@@ label Error Semantic error ESE0000: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_12.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_12.ts index c4e280fc09..d3af1ffb6f 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_12.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_12.ts @@ -18,4 +18,5 @@ var a: string; a = "foo"; /* @@ label */a / false; -/* @@@ label Error TypeError: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ + +/* @@@ label Error Semantic error ESE0000: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_13.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_13.ts index b471f46f74..45bb467d24 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_13.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_13.ts @@ -18,4 +18,5 @@ var a: string; a = "foo"; /* @@ label */a % "foo"; -/* @@@ label Error TypeError: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ + +/* @@@ label Error Semantic error ESE0000: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_14.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_14.ts index 1dde7eeb07..f7c05623ac 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_14.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_14.ts @@ -18,4 +18,5 @@ var a: string; a = "foo"; /* @@ label */a % 5; -/* @@@ label Error TypeError: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ + +/* @@@ label Error Semantic error ESE0000: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_15.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_15.ts index 029a290002..ce6169fa25 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_15.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_15.ts @@ -18,4 +18,5 @@ var a: string; a = "foo"; /* @@ label */a % false; -/* @@@ label Error TypeError: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ + +/* @@@ label Error Semantic error ESE0000: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_16.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_16.ts index 04045be9fd..99588a47a1 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_16.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_16.ts @@ -18,4 +18,5 @@ var a: string; a = "foo"; /* @@ label */a++; -/* @@@ label Error TypeError: An arithmetic operand must be of type 'any', 'number', 'bigint' or an enum type. */ + +/* @@@ label Error Semantic error ESE0000: An arithmetic operand must be of type 'any', 'number', 'bigint' or an enum type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_17.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_17.ts index 92a37d24df..3d25f4a089 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_17.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_17.ts @@ -18,4 +18,5 @@ var a: string; a = "foo"; /* @@ label */a--; -/* @@@ label Error TypeError: An arithmetic operand must be of type 'any', 'number', 'bigint' or an enum type. */ + +/* @@@ label Error Semantic error ESE0000: An arithmetic operand must be of type 'any', 'number', 'bigint' or an enum type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_18.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_18.ts index 81e94d8af5..b2be07e198 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_18.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_18.ts @@ -18,4 +18,5 @@ var a: number; a = 5; a - /* @@ label */"foo"; -/* @@@ label Error TypeError: The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ + +/* @@@ label Error Semantic error ESE0000: The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_19.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_19.ts index ccbd0e9154..6948f5e1fa 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_19.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_19.ts @@ -18,4 +18,5 @@ var a: number; a = 5; a - /* @@ label */false; -/* @@@ label Error TypeError: The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ + +/* @@@ label Error Semantic error ESE0000: The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_2.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_2.ts index 8c96f0b69d..a61bc23479 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_2.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_2.ts @@ -18,4 +18,5 @@ var a: string; a = "foo"; /* @@ label */a - 5; -/* @@@ label Error TypeError: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ + +/* @@@ label Error Semantic error ESE0000: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_20.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_20.ts index 978a410dde..bff31c3875 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_20.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_20.ts @@ -18,4 +18,5 @@ var a: number; a = 5; a * /* @@ label */"foo"; -/* @@@ label Error TypeError: The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ + +/* @@@ label Error Semantic error ESE0000: The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_21.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_21.ts index 1c19bfa1c7..e1310e30ef 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_21.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_21.ts @@ -18,4 +18,5 @@ var a: number; a = 5; a * /* @@ label */false; -/* @@@ label Error TypeError: The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ + +/* @@@ label Error Semantic error ESE0000: The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_22.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_22.ts index b26469e8da..373f9eec8b 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_22.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_22.ts @@ -18,4 +18,5 @@ var a: number; a = 5; a ** /* @@ label */"foo"; -/* @@@ label Error TypeError: The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ + +/* @@@ label Error Semantic error ESE0000: The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_23.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_23.ts index fa6eca101e..e2c9f38c54 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_23.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_23.ts @@ -18,4 +18,5 @@ var a: number; a = 5; a ** /* @@ label */false; -/* @@@ label Error TypeError: The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ + +/* @@@ label Error Semantic error ESE0000: The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_24.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_24.ts index e188e20bd9..697eb1e698 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_24.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_24.ts @@ -18,4 +18,5 @@ var a: number; a = 5; a / /* @@ label */"foo"; -/* @@@ label Error TypeError: The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ + +/* @@@ label Error Semantic error ESE0000: The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_25.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_25.ts index 7e4bb19c70..21422e4825 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_25.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_25.ts @@ -18,4 +18,5 @@ var a: number; a = 5; a / /* @@ label */false; -/* @@@ label Error TypeError: The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ + +/* @@@ label Error Semantic error ESE0000: The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_26.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_26.ts index d765cb8e7f..68d2d5a671 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_26.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_26.ts @@ -18,4 +18,5 @@ var a: number; a = 5; a % /* @@ label */"foo"; -/* @@@ label Error TypeError: The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ + +/* @@@ label Error Semantic error ESE0000: The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_27.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_27.ts index d79940233d..77e53737de 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_27.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_27.ts @@ -18,4 +18,5 @@ var a: number; a = 5; a % /* @@ label */false; -/* @@@ label Error TypeError: The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ + +/* @@@ label Error Semantic error ESE0000: The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_28.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_28.ts index 87774020b0..737019db96 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_28.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_28.ts @@ -18,4 +18,5 @@ var a: bigint; /* @@ label */a = 5; a + "foo"; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_29.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_29.ts index ad0517fd6b..05a1095fa1 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_29.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_29.ts @@ -18,4 +18,5 @@ var a: bigint; /* @@ label */a = 5; a + 5; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_3.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_3.ts index 90e274c552..33cba8a371 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_3.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_3.ts @@ -18,4 +18,5 @@ var a: string; a = "foo"; /* @@ label */a - false; -/* @@@ label Error TypeError: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ + +/* @@@ label Error Semantic error ESE0000: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_30.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_30.ts index e4fae10f88..16c886a7c3 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_30.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_30.ts @@ -18,4 +18,5 @@ var a: bigint; /* @@ label */a = 5; a + false; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_31.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_31.ts index 112ea2f4ed..c911265946 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_31.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_31.ts @@ -18,4 +18,5 @@ var a: bigint; /* @@ label */a = 5; a - "foo"; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_32.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_32.ts index f3368d0510..42f09bd19e 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_32.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_32.ts @@ -18,4 +18,5 @@ var a: bigint; /* @@ label */a = 5; a - 5; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_33.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_33.ts index 3e3635f9c3..6d032e3cd7 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_33.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_33.ts @@ -18,4 +18,5 @@ var a: bigint; /* @@ label */a = 5; a - false; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_34.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_34.ts index 8de905de63..082fc69738 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_34.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_34.ts @@ -18,4 +18,5 @@ var a: bigint; /* @@ label */a = 5; a * "foo"; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_35.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_35.ts index a79f49c798..bf5a90423f 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_35.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_35.ts @@ -18,4 +18,5 @@ var a: bigint; /* @@ label */a = 5; a * 5; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_36.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_36.ts index a7f187943c..32a4c8e590 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_36.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_36.ts @@ -18,4 +18,5 @@ var a: bigint; /* @@ label */a = 5; a * false; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_37.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_37.ts index 74942114e6..d62fa90a77 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_37.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_37.ts @@ -18,4 +18,5 @@ var a: bigint; /* @@ label */a = 5; a ** "foo"; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_38.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_38.ts index 970a477e73..e0160d6e83 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_38.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_38.ts @@ -18,4 +18,5 @@ var a: bigint; /* @@ label */a = 5; a ** 5; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_39.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_39.ts index 40934154db..fdfbd4d3b1 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_39.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_39.ts @@ -18,4 +18,5 @@ var a: bigint; /* @@ label */a = 5; a ** false; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_4.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_4.ts index e6f4632d57..3b69d48658 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_4.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_4.ts @@ -18,4 +18,5 @@ var a: string; a = "foo"; /* @@ label */a * "foo"; -/* @@@ label Error TypeError: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ + +/* @@@ label Error Semantic error ESE0000: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_40.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_40.ts index f185ea530d..aa66a70b0d 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_40.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_40.ts @@ -18,4 +18,5 @@ var a: bigint; /* @@ label */a = 5; a / "foo"; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_41.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_41.ts index 5a47a1481f..eb54db277f 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_41.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_41.ts @@ -18,4 +18,5 @@ var a: bigint; /* @@ label */a = 5; a / 5; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_42.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_42.ts index 4dbafc1f72..60c886e5ac 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_42.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_42.ts @@ -18,4 +18,5 @@ var a: bigint; /* @@ label */a = 5; a / false; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_43.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_43.ts index fd3c11c11c..17a712155c 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_43.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_43.ts @@ -18,4 +18,5 @@ var a: bigint; /* @@ label */a = 5; a % "foo"; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_44.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_44.ts index b503012de9..52aec35234 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_44.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_44.ts @@ -18,4 +18,5 @@ var a: bigint; /* @@ label */a = 5; a % 5; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_45.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_45.ts index b4ca9e2ddf..468c396eca 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_45.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_45.ts @@ -18,4 +18,5 @@ var a: bigint; /* @@ label */a = 5; a % false; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_46.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_46.ts index 5fa2d96052..175091d08f 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_46.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_46.ts @@ -18,4 +18,5 @@ var a: bigint; /* @@ label */a = 5; a++; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_47.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_47.ts index 3c4a1a669f..52d0204ae1 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_47.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_47.ts @@ -18,4 +18,5 @@ var a: bigint; /* @@ label */a = 5; a--; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_48.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_48.ts index 089b320e3b..031c17c937 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_48.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_48.ts @@ -18,4 +18,5 @@ var a: boolean; a = false; /* @@ label */a - "foo"; -/* @@@ label Error TypeError: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ + +/* @@@ label Error Semantic error ESE0000: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_49.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_49.ts index fb99c55fd7..b4c66a3436 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_49.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_49.ts @@ -18,4 +18,5 @@ var a: boolean; a = false; /* @@ label */a - 5; -/* @@@ label Error TypeError: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ + +/* @@@ label Error Semantic error ESE0000: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_5.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_5.ts index 7a5889f687..969e2e4dee 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_5.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_5.ts @@ -18,4 +18,5 @@ var a: string; a = "foo"; /* @@ label */a * 5; -/* @@@ label Error TypeError: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ + +/* @@@ label Error Semantic error ESE0000: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_50.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_50.ts index 8a113e24d5..6db1318bd2 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_50.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_50.ts @@ -18,4 +18,5 @@ var a: boolean; a = false; /* @@ label */a - false; -/* @@@ label Error TypeError: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ + +/* @@@ label Error Semantic error ESE0000: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_51.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_51.ts index ac298c91ab..1f88c6eb0d 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_51.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_51.ts @@ -18,4 +18,5 @@ var a: boolean; a = false; /* @@ label */a * "foo"; -/* @@@ label Error TypeError: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ + +/* @@@ label Error Semantic error ESE0000: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_52.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_52.ts index 144258cbcb..ae26dc699f 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_52.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_52.ts @@ -18,4 +18,5 @@ var a: boolean; a = false; /* @@ label */a * 5; -/* @@@ label Error TypeError: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ + +/* @@@ label Error Semantic error ESE0000: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_53.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_53.ts index c80a5e1f31..f89259cac4 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_53.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_53.ts @@ -18,4 +18,5 @@ var a: boolean; a = false; /* @@ label */a * false; -/* @@@ label Error TypeError: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ + +/* @@@ label Error Semantic error ESE0000: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_54.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_54.ts index 33aa017e3f..aa7e8f4e3a 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_54.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_54.ts @@ -18,4 +18,5 @@ var a: boolean; a = false; /* @@ label */a ** "foo"; -/* @@@ label Error TypeError: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ + +/* @@@ label Error Semantic error ESE0000: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_55.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_55.ts index b3070b9b3f..871f840f65 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_55.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_55.ts @@ -18,4 +18,5 @@ var a: boolean; a = false; /* @@ label */a ** 5; -/* @@@ label Error TypeError: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ + +/* @@@ label Error Semantic error ESE0000: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_56.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_56.ts index 9f4945b3d2..7040f333da 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_56.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_56.ts @@ -18,4 +18,5 @@ var a: boolean; a = false; /* @@ label */a ** false; -/* @@@ label Error TypeError: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ + +/* @@@ label Error Semantic error ESE0000: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_57.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_57.ts index 06e229926d..aae50e83b5 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_57.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_57.ts @@ -18,4 +18,5 @@ var a: boolean; a = false; /* @@ label */a / "foo"; -/* @@@ label Error TypeError: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ + +/* @@@ label Error Semantic error ESE0000: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_58.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_58.ts index 035cde3acb..be592776a4 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_58.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_58.ts @@ -18,4 +18,5 @@ var a: boolean; a = false; /* @@ label */a / 5; -/* @@@ label Error TypeError: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ + +/* @@@ label Error Semantic error ESE0000: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_59.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_59.ts index 53d48ba21a..9c6f129156 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_59.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_59.ts @@ -18,4 +18,5 @@ var a: boolean; a = false; /* @@ label */a / false; -/* @@@ label Error TypeError: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ + +/* @@@ label Error Semantic error ESE0000: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_6.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_6.ts index 19244de69e..8750e06c93 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_6.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_6.ts @@ -18,4 +18,5 @@ var a: string; a = "foo"; /* @@ label */a * false; -/* @@@ label Error TypeError: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ + +/* @@@ label Error Semantic error ESE0000: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_60.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_60.ts index 7681fc6662..b32d2748c8 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_60.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_60.ts @@ -18,4 +18,5 @@ var a: boolean; a = false; /* @@ label */a % "foo"; -/* @@@ label Error TypeError: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ + +/* @@@ label Error Semantic error ESE0000: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_61.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_61.ts index b847adcc02..aedc86a509 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_61.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_61.ts @@ -18,4 +18,5 @@ var a: boolean; a = false; /* @@ label */a % 5; -/* @@@ label Error TypeError: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ + +/* @@@ label Error Semantic error ESE0000: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_62.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_62.ts index 600390ac72..d467f53e79 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_62.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_62.ts @@ -18,4 +18,5 @@ var a: boolean; a = false; /* @@ label */a % false; -/* @@@ label Error TypeError: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ + +/* @@@ label Error Semantic error ESE0000: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_63.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_63.ts index ca0cd875d0..8084bd2247 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_63.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_63.ts @@ -18,4 +18,5 @@ var a: boolean; a = false; /* @@ label */a++; -/* @@@ label Error TypeError: An arithmetic operand must be of type 'any', 'number', 'bigint' or an enum type. */ + +/* @@@ label Error Semantic error ESE0000: An arithmetic operand must be of type 'any', 'number', 'bigint' or an enum type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_64.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_64.ts index d001b3deeb..eb415a83c8 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_64.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_64.ts @@ -18,4 +18,5 @@ var a: boolean; a = false; /* @@ label */a--; -/* @@@ label Error TypeError: An arithmetic operand must be of type 'any', 'number', 'bigint' or an enum type. */ + +/* @@@ label Error Semantic error ESE0000: An arithmetic operand must be of type 'any', 'number', 'bigint' or an enum type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_7.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_7.ts index f7b7e66376..982b80ea58 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_7.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_7.ts @@ -18,4 +18,5 @@ var a: string; a = "foo"; /* @@ label */a ** "foo"; -/* @@@ label Error TypeError: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ + +/* @@@ label Error Semantic error ESE0000: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_8.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_8.ts index e9fd942100..dad24e57b8 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_8.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_8.ts @@ -18,4 +18,5 @@ var a: string; a = "foo"; /* @@ label */a ** 5; -/* @@@ label Error TypeError: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ + +/* @@@ label Error Semantic error ESE0000: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arithmetic_operators_9.ts b/ets2panda/test/ast/compiler/ts/arithmetic_operators_9.ts index 3298123944..eab4fcb8b2 100644 --- a/ets2panda/test/ast/compiler/ts/arithmetic_operators_9.ts +++ b/ets2panda/test/ast/compiler/ts/arithmetic_operators_9.ts @@ -18,4 +18,5 @@ var a: string; a = "foo"; /* @@ label */a ** false; -/* @@@ label Error TypeError: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ + +/* @@@ label Error Semantic error ESE0000: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring1.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring1.ts index c498295dec..02629e0cb7 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring1.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring1.ts @@ -15,4 +15,5 @@ var /* @@ label */[a] = []; -/* @@@ label Error TypeError: Tuple type [] of length 0 has no element at index 0. */ + +/* @@@ label Error Semantic error ESE0000: Tuple type [] of length 0 has no element at index 0. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring10.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring10.ts index 9744312f35..2af5a6b2f2 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring10.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring10.ts @@ -16,4 +16,5 @@ var [a = 6, b, ...c] = [, "foo", true, {}]; /* @@ label */c = {}; -/* @@@ label Error TypeError: Type '{ }' is not assignable to type '[boolean, { }]'. */ + +/* @@@ label Error Semantic error ESE0000: Type '{ }' is not assignable to type '[boolean, { }]'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring11.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring11.ts index a0ce8489ae..567b0ee217 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring11.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring11.ts @@ -16,4 +16,5 @@ var [...a] = [1, "foo", true]; /* @@ label */a = {}; -/* @@@ label Error TypeError: Type '{ }' is not assignable to type '[number, string, boolean]'. */ + +/* @@@ label Error Semantic error ESE0000: Type '{ }' is not assignable to type '[number, string, boolean]'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring12.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring12.ts index 66a9012411..4ffa5edfc5 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring12.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring12.ts @@ -16,4 +16,5 @@ var /* @@ label */[a = 5, ...b]: [number, string, boolean] | string[] | number = ["foo", "bar"]; -/* @@@ label Error TypeError: Type [number, string, boolean] | string[] | number must have a '[Symbol.iterator]()' method that returns an iterator. */ + +/* @@@ label Error Semantic error ESE0000: Type [number, string, boolean] | string[] | number must have a '[Symbol.iterator]()' method that returns an iterator. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring13.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring13.ts index b71abf955c..65e3c5e44c 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring13.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring13.ts @@ -17,4 +17,5 @@ var a: [number, string, number]; var [b, c] = a; /* @@ label */b = {} -/* @@@ label Error TypeError: Type '{ }' is not assignable to type 'number'. */ + +/* @@@ label Error Semantic error ESE0000: Type '{ }' is not assignable to type 'number'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring14.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring14.ts index 6ff3cb5888..c813c0f44f 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring14.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring14.ts @@ -16,4 +16,5 @@ var a: number; var /* @@ label */[b = 6, c = 6] = a; -/* @@@ label Error TypeError: Type number must have a '[Symbol.iterator]()' method that returns an iterator. */ + +/* @@@ label Error Semantic error ESE0000: Type number must have a '[Symbol.iterator]()' method that returns an iterator. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring15.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring15.ts index 4354b90229..ae8eeab16d 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring15.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring15.ts @@ -16,4 +16,5 @@ var a: [number]; var /* @@ label */[b, c] = a; -/* @@@ label Error TypeError: Tuple type [number] of length 1 has no element at index 1. */ + +/* @@@ label Error Semantic error ESE0000: Tuple type [number] of length 1 has no element at index 1. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring16.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring16.ts index 4a9abe03f1..3382ac1c33 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring16.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring16.ts @@ -17,4 +17,5 @@ var a: [string]; var [b, c = "foo"] = a; /* @@ label */c = {}; -/* @@@ label Error TypeError: Type '{ }' is not assignable to type 'string'. */ + +/* @@@ label Error Semantic error ESE0000: Type '{ }' is not assignable to type 'string'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring17.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring17.ts index 621bb201cf..28d50784e2 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring17.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring17.ts @@ -19,4 +19,5 @@ function a(a: number, b: string): [number, string] { } var /* @@ label */[b, c, d] = a(1, "bar"); -/* @@@ label Error TypeError: Tuple type [number, string] of length 2 has no element at index 2. */ + +/* @@@ label Error Semantic error ESE0000: Tuple type [number, string] of length 2 has no element at index 2. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring18.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring18.ts index c0730a2d6c..4e630f8b1b 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring18.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring18.ts @@ -16,4 +16,5 @@ var [...a]: [number, string] | boolean[] | [bigint, void, {}] = [true, false]; /* @@ label */a = {}; -/* @@@ label Error TypeError: Type '{ }' is not assignable to type '(number | string | boolean | bigint | void | { })[]'. */ + +/* @@@ label Error Semantic error ESE0000: Type '{ }' is not assignable to type '(number | string | boolean | bigint | void | { })[]'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring19.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring19.ts index 96a3983ebf..e9ec25c187 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring19.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring19.ts @@ -17,4 +17,5 @@ var [a, ...b]: [number, string] | boolean[] | [bigint, void, {}] = [true, false]; /* @@ label */b = {}; -/* @@@ label Error TypeError: Type '{ }' is not assignable to type '(string | boolean | void | { })[]'. */ + +/* @@@ label Error Semantic error ESE0000: Type '{ }' is not assignable to type '(string | boolean | void | { })[]'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring2.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring2.ts index 4e74feb108..288e300d99 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring2.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring2.ts @@ -16,4 +16,5 @@ var [a = 1] = []; /* @@ label */a = "foo" -/* @@@ label Error TypeError: Type 'string' is not assignable to type 'number'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'string' is not assignable to type 'number'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring20.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring20.ts index df0a552a2b..3211b31852 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring20.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring20.ts @@ -15,4 +15,5 @@ var [a, /* @@ label */[b, c]] = [1, 2]; -/* @@@ label Error TypeError: Type number must have a '[Symbol.iterator]()' method that returns an iterator. */ + +/* @@@ label Error Semantic error ESE0000: Type number must have a '[Symbol.iterator]()' method that returns an iterator. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring21.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring21.ts index 3a5679fab2..09e4282bb5 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring21.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring21.ts @@ -15,4 +15,5 @@ var [/* @@ label */[a, b]] = [[1]]; -/* @@@ label Error TypeError: Tuple type [number] of length 1 has no element at index 1. */ + +/* @@@ label Error Semantic error ESE0000: Tuple type [number] of length 1 has no element at index 1. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring22.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring22.ts index 97a17a7981..572140dd32 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring22.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring22.ts @@ -15,4 +15,5 @@ var [a, [/* @@ label */a, b] = [1, 2]] = [1, ["foo"]]; -/* @@@ label Error TypeError: Subsequent variable declaration must have the same type. Variable 'a' must be of type 'number', but here has type 'string | number'. */ + +/* @@@ label Error Semantic error ESE0316: Subsequent variable declaration must have the same type. Variable 'a' must be of type 'number', but here has type 'string | number'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring23.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring23.ts index c805d73088..31e450c6a7 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring23.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring23.ts @@ -15,4 +15,5 @@ var [a, /* @@ label */[b, c] = [1]] = [1, ["foo"]]; -/* @@@ label Error TypeError: Property 1 does not exist on type [string] | [number]. */ + +/* @@@ label Error Semantic error ESE0000: Property 1 does not exist on type [string] | [number]. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring24.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring24.ts index 3cd31db7c1..616d6926e0 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring24.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring24.ts @@ -16,4 +16,5 @@ var [a, [b, c] = [true, "foo"]] = [1, ["foo", { a: "foo" }]]; c = { /* @@ label */a: 5 } -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring25.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring25.ts index 970ee6f488..16a3e6d72c 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring25.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring25.ts @@ -15,4 +15,5 @@ var [a, .../* @@ label */[b, c]] = [1, 2]; -/* @@@ label Error TypeError: Tuple type [number] of length 1 has no element at index 1. */ + +/* @@@ label Error Semantic error ESE0000: Tuple type [number] of length 1 has no element at index 1. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring26.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring26.ts index c0a4f5543f..eeaf730666 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring26.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring26.ts @@ -15,4 +15,5 @@ var [a = 5, /* @@ label */{ b, c }] = [, { b: 5 }] -/* @@@ label Error TypeError: Property c does not exist on type { b: number; }. */ + +/* @@@ label Error Semantic error ESE0000: Property c does not exist on type { b: number; }. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring27.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring27.ts index 76b31b203d..c50d0eebec 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring27.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring27.ts @@ -15,4 +15,5 @@ var [.../* @@ label */[b = 6, c = "foo", d]]: [number, number | string] = [1, 2]; -/* @@@ label Error TypeError: Tuple type [number, number | string] of length 2 has no element at index 2. */ + +/* @@@ label Error Semantic error ESE0000: Tuple type [number, number | string] of length 2 has no element at index 2. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring28.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring28.ts index 41061dd22e..9b2637eca7 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring28.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring28.ts @@ -16,4 +16,5 @@ var [a, [{ b = 6, c: foo }, [d = 6, e]]] = [1, [{ c: 2 }, [1, "foo"]]]; /* @@ label */e = {}; -/* @@@ label Error TypeError: Type '{ }' is not assignable to type 'string'. */ + +/* @@@ label Error Semantic error ESE0000: Type '{ }' is not assignable to type 'string'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring29.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring29.ts index 18948b1654..bdf747ce66 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring29.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring29.ts @@ -16,4 +16,5 @@ var a:number; /* @@ label */[a] = []; -/* @@@ label Error TypeError: Tuple type [] of length 0 has no element at index 0. */ + +/* @@@ label Error Semantic error ESE0000: Tuple type [] of length 0 has no element at index 0. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring3.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring3.ts index 22c2e7fe0d..40a2b98dd5 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring3.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring3.ts @@ -16,4 +16,5 @@ var [a = 1] = ["foo"]; /* @@ label */a = {}; -/* @@@ label Error TypeError: Type '{ }' is not assignable to type 'string | number'. */ + +/* @@@ label Error Semantic error ESE0000: Type '{ }' is not assignable to type 'string | number'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring30.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring30.ts index a453dfa250..54e585692f 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring30.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring30.ts @@ -17,4 +17,5 @@ var a:number; var b: number; /* @@ label */[a = 5, b] = []; -/* @@@ label Error TypeError: Tuple type [] of length 0 has no element at index 1. */ + +/* @@@ label Error Semantic error ESE0000: Tuple type [] of length 0 has no element at index 1. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring31.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring31.ts index 06993d96a6..4455bd9edb 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring31.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring31.ts @@ -16,4 +16,5 @@ var a:number; [/* @@ label */a = "foo"] = []; -/* @@@ label Error TypeError: Type 'string' is not assignable to type 'number'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'string' is not assignable to type 'number'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring32.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring32.ts index 79c920800c..85967e3e3e 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring32.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring32.ts @@ -15,4 +15,5 @@ /* @@ label */[a] = []; -/* @@@ label Error TypeError: Tuple type [] of length 0 has no element at index 0. */ + +/* @@@ label Error Semantic error ESE0000: Tuple type [] of length 0 has no element at index 0. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring33.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring33.ts index 3d520eba7b..56f93d35fe 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring33.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring33.ts @@ -16,4 +16,5 @@ var a: number; [/* @@ label */a] = ["foo"]; -/* @@@ label Error TypeError: Type 'string' is not assignable to type 'number'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'string' is not assignable to type 'number'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring34.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring34.ts index 994216bb61..23ad53a06d 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring34.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring34.ts @@ -17,4 +17,5 @@ var a: number; var b = 5; /* @@ label */[a] = b; -/* @@@ label Error TypeError: Type number must have a '[Symbol.iterator]()' method that returns an iterator. */ + +/* @@@ label Error Semantic error ESE0000: Type number must have a '[Symbol.iterator]()' method that returns an iterator. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring35.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring35.ts index c8677ee35a..4822bbcac0 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring35.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring35.ts @@ -17,4 +17,5 @@ var a: string | number; [/* @@ label */a = 2] = [false]; -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'string | number'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'string | number'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring36.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring36.ts index f7b6795c88..4680187540 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring36.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring36.ts @@ -20,4 +20,5 @@ var c:string; var d = []; var e = ["foo", 5] as const; [a, [/* @@ label */b, , c = "bar"] = e, ...d] = [{}, [42, , "foo" + 2]]; -/* @@@ label Error TypeError: Type 'number | "foo"' is not assignable to type 'number'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number | "foo"' is not assignable to type 'number'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring37.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring37.ts index 51364e40c8..807835168d 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring37.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring37.ts @@ -19,4 +19,5 @@ var b: number; var c:string; var d = []; [a, [/* @@ label */b, , c = "bar"] = ["foo", 5], ...d] = [{}, [42, , "foo" + 2]]; -/* @@@ label Error TypeError: Type 'number | string' is not assignable to type 'number'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number | string' is not assignable to type 'number'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring38.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring38.ts index 80161bd03d..fe4f6cb745 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring38.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring38.ts @@ -16,4 +16,5 @@ var a:number; [/* @@ label */[a]] = [[]]; -/* @@@ label Error TypeError: Tuple type [] of length 0 has no element at index 0. */ + +/* @@@ label Error Semantic error ESE0000: Tuple type [] of length 0 has no element at index 0. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring39.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring39.ts index 2b5f14d5a9..63a56a4f8e 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring39.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring39.ts @@ -17,4 +17,5 @@ var a:number; var b: number; [/* @@ label */[a = 5, b]] = [[]]; -/* @@@ label Error TypeError: Tuple type [] of length 0 has no element at index 1. */ + +/* @@@ label Error Semantic error ESE0000: Tuple type [] of length 0 has no element at index 1. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring4.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring4.ts index c43edc8e63..70ba5cc52e 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring4.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring4.ts @@ -15,4 +15,5 @@ var /* @@ label */[a]: [number, string] = [1]; -/* @@@ label Error TypeError: Type '[1]' is not assignable to type '[number, string]'. */ + +/* @@@ label Error Semantic error ESE0000: Type '[1]' is not assignable to type '[number, string]'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring40.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring40.ts index 00c6168a37..37edd94b0f 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring40.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring40.ts @@ -16,4 +16,5 @@ var a: number; [[/* @@ label */a]] = [["foo"]]; -/* @@@ label Error TypeError: Type 'string' is not assignable to type 'number'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'string' is not assignable to type 'number'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring41.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring41.ts index d98a4fff2a..5c52c20d44 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring41.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring41.ts @@ -17,4 +17,5 @@ var a: number; var b = 5; [/* @@ label */[a]] = [b]; -/* @@@ label Error TypeError: Type number must have a '[Symbol.iterator]()' method that returns an iterator. */ + +/* @@@ label Error Semantic error ESE0000: Type number must have a '[Symbol.iterator]()' method that returns an iterator. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring42.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring42.ts index 4fed3c2d9d..768cb94c75 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring42.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring42.ts @@ -17,4 +17,5 @@ var a: string[]; [/* @@ label */a] = [["foo", 1]] -/* @@@ label Error TypeError: Type '(string | number)[]' is not assignable to type 'string[]'. */ + +/* @@@ label Error Semantic error ESE0000: Type '(string | number)[]' is not assignable to type 'string[]'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring43.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring43.ts index e06fe27072..9b7a4e8e3f 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring43.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring43.ts @@ -17,4 +17,5 @@ var a: string[]; [.../* @@ label */a] = [2] -/* @@@ label Error TypeError: Type '[number]' is not assignable to type 'string[]'. */ + +/* @@@ label Error Semantic error ESE0000: Type '[number]' is not assignable to type 'string[]'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring44.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring44.ts index 28fcb4e4ca..e795b48190 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring44.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring44.ts @@ -18,4 +18,5 @@ var a: string[]; var b: string[]; [[.../* @@ label */b], ...a] = [["foo", false], "foo"] -/* @@@ label Error TypeError: Type '[string, boolean]' is not assignable to type 'string[]'. */ + +/* @@@ label Error Semantic error ESE0000: Type '[string, boolean]' is not assignable to type 'string[]'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring5.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring5.ts index b4e7d277d7..4486845aa4 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring5.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring5.ts @@ -15,4 +15,5 @@ var [a = 1, /* @@ label */b = "foo"]: [number, number] = [1, 1]; -/* @@@ label Error TypeError: Type 'string' is not assignable to type 'number'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'string' is not assignable to type 'number'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring6.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring6.ts index e606ec7ee1..7df35a7032 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring6.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring6.ts @@ -16,4 +16,5 @@ var [a, b]: number[] | [string, number] = [1, 2]; /* @@ label */a = {}; -/* @@@ label Error TypeError: Type '{ }' is not assignable to type 'number | string'. */ + +/* @@@ label Error Semantic error ESE0000: Type '{ }' is not assignable to type 'number | string'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring7.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring7.ts index 38886463cf..f228a8056e 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring7.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring7.ts @@ -15,4 +15,5 @@ var /* @@ label */[a = [1, "foo"], b] = [[true, false],]; -/* @@@ label Error TypeError: Tuple type [boolean[]] of length 1 has no element at index 1. */ + +/* @@@ label Error Semantic error ESE0000: Tuple type [boolean[]] of length 1 has no element at index 1. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring8.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring8.ts index a4e7dd1c27..f688353468 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring8.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring8.ts @@ -16,4 +16,5 @@ var [a = [1, "foo"], b] = [[true, false], ["foo", "bar"]]; /* @@ label */a = {}; -/* @@@ label Error TypeError: Type '{ }' is not assignable to type 'boolean[] | (number | string)[]'. */ + +/* @@@ label Error Semantic error ESE0000: Type '{ }' is not assignable to type 'boolean[] | (number | string)[]'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/arrayDestructuring9.ts b/ets2panda/test/ast/compiler/ts/arrayDestructuring9.ts index 1010f3edf0..286f4bd3d6 100644 --- a/ets2panda/test/ast/compiler/ts/arrayDestructuring9.ts +++ b/ets2panda/test/ast/compiler/ts/arrayDestructuring9.ts @@ -16,4 +16,5 @@ var [a, ...b] = [1]; /* @@ label */b = [1]; -/* @@@ label Error TypeError: Type '[1]' is not assignable to type '[]'. */ + +/* @@@ label Error Semantic error ESE0000: Type '[1]' is not assignable to type '[]'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/array_1.ts b/ets2panda/test/ast/compiler/ts/array_1.ts index 4da4ca40a7..f06546a6d4 100644 --- a/ets2panda/test/ast/compiler/ts/array_1.ts +++ b/ets2panda/test/ast/compiler/ts/array_1.ts @@ -17,4 +17,5 @@ var a: string[]; a = ["foo",/* @@ label */5]; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/array_10.ts b/ets2panda/test/ast/compiler/ts/array_10.ts index 0080174960..72b41f7fd3 100644 --- a/ets2panda/test/ast/compiler/ts/array_10.ts +++ b/ets2panda/test/ast/compiler/ts/array_10.ts @@ -17,4 +17,5 @@ var a: number[]; a = [/* @@ label */false,5]; -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'number'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'number'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/array_11.ts b/ets2panda/test/ast/compiler/ts/array_11.ts index f7c0ebd077..068eaf0b89 100644 --- a/ets2panda/test/ast/compiler/ts/array_11.ts +++ b/ets2panda/test/ast/compiler/ts/array_11.ts @@ -17,4 +17,5 @@ var a: number[]; a = [5,/* @@ label */5n]; -/* @@@ label Error TypeError: Type 'bigint' is not assignable to type 'number'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'bigint' is not assignable to type 'number'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/array_12.ts b/ets2panda/test/ast/compiler/ts/array_12.ts index 5b59a2c2b6..f56fb4fbe0 100644 --- a/ets2panda/test/ast/compiler/ts/array_12.ts +++ b/ets2panda/test/ast/compiler/ts/array_12.ts @@ -17,4 +17,5 @@ var a: number[]; a = [/* @@ label */5n,5]; -/* @@@ label Error TypeError: Type 'bigint' is not assignable to type 'number'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'bigint' is not assignable to type 'number'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/array_13.ts b/ets2panda/test/ast/compiler/ts/array_13.ts index 1c45f58c9e..487b850b54 100644 --- a/ets2panda/test/ast/compiler/ts/array_13.ts +++ b/ets2panda/test/ast/compiler/ts/array_13.ts @@ -17,4 +17,5 @@ var a: bigint[]; a = [5n,/* @@ label */"foo"]; -/* @@@ label Error TypeError: Type 'string' is not assignable to type 'bigint'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'string' is not assignable to type 'bigint'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/array_14.ts b/ets2panda/test/ast/compiler/ts/array_14.ts index 8c522efc78..bd203db363 100644 --- a/ets2panda/test/ast/compiler/ts/array_14.ts +++ b/ets2panda/test/ast/compiler/ts/array_14.ts @@ -17,4 +17,5 @@ var a: bigint[]; a = [/* @@ label */"foo",5n]; -/* @@@ label Error TypeError: Type 'string' is not assignable to type 'bigint'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'string' is not assignable to type 'bigint'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/array_15.ts b/ets2panda/test/ast/compiler/ts/array_15.ts index 204a8deeb6..adcfb4457a 100644 --- a/ets2panda/test/ast/compiler/ts/array_15.ts +++ b/ets2panda/test/ast/compiler/ts/array_15.ts @@ -17,4 +17,5 @@ var a: bigint[]; a = [5n,/* @@ label */5]; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/array_16.ts b/ets2panda/test/ast/compiler/ts/array_16.ts index fe73df66ce..3343596e04 100644 --- a/ets2panda/test/ast/compiler/ts/array_16.ts +++ b/ets2panda/test/ast/compiler/ts/array_16.ts @@ -17,4 +17,5 @@ var a: bigint[]; a = [/* @@ label */5,5n]; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/array_17.ts b/ets2panda/test/ast/compiler/ts/array_17.ts index 4c65b581da..165e155dea 100644 --- a/ets2panda/test/ast/compiler/ts/array_17.ts +++ b/ets2panda/test/ast/compiler/ts/array_17.ts @@ -17,4 +17,5 @@ var a: bigint[]; a = [5n,/* @@ label */false]; -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'bigint'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'bigint'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/array_18.ts b/ets2panda/test/ast/compiler/ts/array_18.ts index 78ccba6066..093d659327 100644 --- a/ets2panda/test/ast/compiler/ts/array_18.ts +++ b/ets2panda/test/ast/compiler/ts/array_18.ts @@ -17,4 +17,5 @@ var a: bigint[]; a = [/* @@ label */false,5n]; -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'bigint'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'bigint'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/array_19.ts b/ets2panda/test/ast/compiler/ts/array_19.ts index 16d04de9f7..bdd8e8f320 100644 --- a/ets2panda/test/ast/compiler/ts/array_19.ts +++ b/ets2panda/test/ast/compiler/ts/array_19.ts @@ -17,4 +17,5 @@ var a: boolean[]; a = [false,/* @@ label */"foo"]; -/* @@@ label Error TypeError: Type 'string' is not assignable to type 'boolean'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'string' is not assignable to type 'boolean'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/array_2.ts b/ets2panda/test/ast/compiler/ts/array_2.ts index 3f4610f833..c3ca0d7ed8 100644 --- a/ets2panda/test/ast/compiler/ts/array_2.ts +++ b/ets2panda/test/ast/compiler/ts/array_2.ts @@ -17,4 +17,5 @@ var a: string[]; a = [/* @@ label */5,"foo"]; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/array_20.ts b/ets2panda/test/ast/compiler/ts/array_20.ts index 54e950a1b0..a2e68f7bc8 100644 --- a/ets2panda/test/ast/compiler/ts/array_20.ts +++ b/ets2panda/test/ast/compiler/ts/array_20.ts @@ -17,4 +17,5 @@ var a: boolean[]; a = [/* @@ label */"foo",false]; -/* @@@ label Error TypeError: Type 'string' is not assignable to type 'boolean'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'string' is not assignable to type 'boolean'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/array_21.ts b/ets2panda/test/ast/compiler/ts/array_21.ts index f5edbeae5f..c812894927 100644 --- a/ets2panda/test/ast/compiler/ts/array_21.ts +++ b/ets2panda/test/ast/compiler/ts/array_21.ts @@ -17,4 +17,5 @@ var a: boolean[]; a = [false,/* @@ label */5]; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'boolean'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'boolean'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/array_22.ts b/ets2panda/test/ast/compiler/ts/array_22.ts index fd8140c030..73d0ef6ed0 100644 --- a/ets2panda/test/ast/compiler/ts/array_22.ts +++ b/ets2panda/test/ast/compiler/ts/array_22.ts @@ -17,4 +17,5 @@ var a: boolean[]; a = [/* @@ label */5,false]; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'boolean'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'boolean'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/array_23.ts b/ets2panda/test/ast/compiler/ts/array_23.ts index 6a857ce7ab..69336d3180 100644 --- a/ets2panda/test/ast/compiler/ts/array_23.ts +++ b/ets2panda/test/ast/compiler/ts/array_23.ts @@ -17,4 +17,5 @@ var a: boolean[]; a = [false,/* @@ label */5n]; -/* @@@ label Error TypeError: Type 'bigint' is not assignable to type 'boolean'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'bigint' is not assignable to type 'boolean'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/array_24.ts b/ets2panda/test/ast/compiler/ts/array_24.ts index 9962bbabaa..e4b569968e 100644 --- a/ets2panda/test/ast/compiler/ts/array_24.ts +++ b/ets2panda/test/ast/compiler/ts/array_24.ts @@ -17,4 +17,5 @@ var a: boolean[]; a = [/* @@ label */5n,false]; -/* @@@ label Error TypeError: Type 'bigint' is not assignable to type 'boolean'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'bigint' is not assignable to type 'boolean'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/array_3.ts b/ets2panda/test/ast/compiler/ts/array_3.ts index 07e01e1643..1798c05180 100644 --- a/ets2panda/test/ast/compiler/ts/array_3.ts +++ b/ets2panda/test/ast/compiler/ts/array_3.ts @@ -17,4 +17,5 @@ var a: string[]; a = ["foo",/* @@ label */false]; -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'string'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'string'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/array_4.ts b/ets2panda/test/ast/compiler/ts/array_4.ts index 63f84b6fc7..391c64e44b 100644 --- a/ets2panda/test/ast/compiler/ts/array_4.ts +++ b/ets2panda/test/ast/compiler/ts/array_4.ts @@ -17,4 +17,5 @@ var a: string[]; a = [/* @@ label */false,"foo"]; -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'string'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'string'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/array_5.ts b/ets2panda/test/ast/compiler/ts/array_5.ts index b503fe78f1..1c94c5cd8d 100644 --- a/ets2panda/test/ast/compiler/ts/array_5.ts +++ b/ets2panda/test/ast/compiler/ts/array_5.ts @@ -17,4 +17,5 @@ var a: string[]; a = ["foo",/* @@ label */5n]; -/* @@@ label Error TypeError: Type 'bigint' is not assignable to type 'string'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'bigint' is not assignable to type 'string'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/array_6.ts b/ets2panda/test/ast/compiler/ts/array_6.ts index 9088cac682..9b3be2d92f 100644 --- a/ets2panda/test/ast/compiler/ts/array_6.ts +++ b/ets2panda/test/ast/compiler/ts/array_6.ts @@ -17,4 +17,5 @@ var a: string[]; a = [/* @@ label */5n,"foo"]; -/* @@@ label Error TypeError: Type 'bigint' is not assignable to type 'string'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'bigint' is not assignable to type 'string'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/array_7.ts b/ets2panda/test/ast/compiler/ts/array_7.ts index 3f85b981ad..7b78300ec1 100644 --- a/ets2panda/test/ast/compiler/ts/array_7.ts +++ b/ets2panda/test/ast/compiler/ts/array_7.ts @@ -17,4 +17,5 @@ var a: number[]; a = [5,/* @@ label */"foo"]; -/* @@@ label Error TypeError: Type 'string' is not assignable to type 'number'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'string' is not assignable to type 'number'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/array_8.ts b/ets2panda/test/ast/compiler/ts/array_8.ts index e8a9d9ce19..976ac9244f 100644 --- a/ets2panda/test/ast/compiler/ts/array_8.ts +++ b/ets2panda/test/ast/compiler/ts/array_8.ts @@ -17,4 +17,5 @@ var a: number[]; a = [/* @@ label */"foo",5]; -/* @@@ label Error TypeError: Type 'string' is not assignable to type 'number'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'string' is not assignable to type 'number'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/array_9.ts b/ets2panda/test/ast/compiler/ts/array_9.ts index 980a84631f..6aa20f908f 100644 --- a/ets2panda/test/ast/compiler/ts/array_9.ts +++ b/ets2panda/test/ast/compiler/ts/array_9.ts @@ -17,4 +17,5 @@ var a: number[]; a = [5,/* @@ label */false]; -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'number'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'number'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/array_expression_1.ts b/ets2panda/test/ast/compiler/ts/array_expression_1.ts index c32dd810c2..9ca755ef76 100644 --- a/ets2panda/test/ast/compiler/ts/array_expression_1.ts +++ b/ets2panda/test/ast/compiler/ts/array_expression_1.ts @@ -15,4 +15,5 @@ let a = [1, [1, 2]: /* @@ label */number[]]; -/* @@@ label Error SyntaxError: Unexpected token. */ + +/* @@@ label Error Syntax error ESY0000: Unexpected token. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/as_expression_1.ts b/ets2panda/test/ast/compiler/ts/as_expression_1.ts index 242c1a3e54..db17690938 100644 --- a/ets2panda/test/ast/compiler/ts/as_expression_1.ts +++ b/ets2panda/test/ast/compiler/ts/as_expression_1.ts @@ -16,4 +16,5 @@ var a = /* @@ label */"foo" as number; -/* @@@ label Error TypeError: Conversion of type 'string' to type 'number' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first. */ + +/* @@@ label Error Semantic error ESE0322: Conversion of type 'string' to type 'number' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/as_expression_10.ts b/ets2panda/test/ast/compiler/ts/as_expression_10.ts index a69ac80516..73a7dfad08 100644 --- a/ets2panda/test/ast/compiler/ts/as_expression_10.ts +++ b/ets2panda/test/ast/compiler/ts/as_expression_10.ts @@ -17,4 +17,5 @@ var a = [5,5,5,5] as const; /* @@ label */a = 5; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'readonly [5, 5, 5, 5]'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'readonly [5, 5, 5, 5]'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/as_expression_11.ts b/ets2panda/test/ast/compiler/ts/as_expression_11.ts index 83b01bcd06..3326853270 100644 --- a/ets2panda/test/ast/compiler/ts/as_expression_11.ts +++ b/ets2panda/test/ast/compiler/ts/as_expression_11.ts @@ -17,4 +17,5 @@ var a = [5,5,5,5] as const; /* @@ label */a[0] = 5; -/* @@@ label Error TypeError: Cannot assign to this property because it is readonly. */ + +/* @@@ label Error Semantic error ESE0000: Cannot assign to this property because it is readonly. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/as_expression_12.ts b/ets2panda/test/ast/compiler/ts/as_expression_12.ts index 204228ed3a..58317f8404 100644 --- a/ets2panda/test/ast/compiler/ts/as_expression_12.ts +++ b/ets2panda/test/ast/compiler/ts/as_expression_12.ts @@ -17,4 +17,5 @@ var a = [5,5,5,5] as const; /* @@ label */a[1] = 5; -/* @@@ label Error TypeError: Cannot assign to this property because it is readonly. */ + +/* @@@ label Error Semantic error ESE0000: Cannot assign to this property because it is readonly. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/as_expression_13.ts b/ets2panda/test/ast/compiler/ts/as_expression_13.ts index eb28f472b7..4522c1ad14 100644 --- a/ets2panda/test/ast/compiler/ts/as_expression_13.ts +++ b/ets2panda/test/ast/compiler/ts/as_expression_13.ts @@ -17,4 +17,5 @@ var a = [5,5,5,5] as const; /* @@ label */a[2] = 5; -/* @@@ label Error TypeError: Cannot assign to this property because it is readonly. */ + +/* @@@ label Error Semantic error ESE0000: Cannot assign to this property because it is readonly. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/as_expression_14.ts b/ets2panda/test/ast/compiler/ts/as_expression_14.ts index bfa5334853..dd31bef17a 100644 --- a/ets2panda/test/ast/compiler/ts/as_expression_14.ts +++ b/ets2panda/test/ast/compiler/ts/as_expression_14.ts @@ -17,4 +17,5 @@ var a = [5,5,5,5] as const; /* @@ label */a[3] = 5; -/* @@@ label Error TypeError: Cannot assign to this property because it is readonly. */ + +/* @@@ label Error Semantic error ESE0000: Cannot assign to this property because it is readonly. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/as_expression_15.ts b/ets2panda/test/ast/compiler/ts/as_expression_15.ts index 3f347808fa..6820e2b1d2 100644 --- a/ets2panda/test/ast/compiler/ts/as_expression_15.ts +++ b/ets2panda/test/ast/compiler/ts/as_expression_15.ts @@ -17,4 +17,5 @@ var a = [5, 5, 5, 5] as const; a[/* @@ label */4] = 5; -/* @@@ label Error TypeError: Property 4 does not exist on this type. */ + +/* @@@ label Error Semantic error ESE0000: Property 4 does not exist on this type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/as_expression_2.ts b/ets2panda/test/ast/compiler/ts/as_expression_2.ts index 9dd4da307a..3eb572f0e2 100644 --- a/ets2panda/test/ast/compiler/ts/as_expression_2.ts +++ b/ets2panda/test/ast/compiler/ts/as_expression_2.ts @@ -17,4 +17,5 @@ var a: any; /* @@ label */a as const; -/* @@@ label Error TypeError: A 'const' assertions can only be applied to references to enum members, or string, number, boolean, array, or object literals. */ + +/* @@@ label Error Semantic error ESE0000: A 'const' assertions can only be applied to references to enum members, or string, number, boolean, array, or object literals. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/as_expression_3.ts b/ets2panda/test/ast/compiler/ts/as_expression_3.ts index c78b013f65..1b41307960 100644 --- a/ets2panda/test/ast/compiler/ts/as_expression_3.ts +++ b/ets2panda/test/ast/compiler/ts/as_expression_3.ts @@ -17,4 +17,5 @@ var a = [5, 5, 5, 5] as const; a = [5, 5, 5, /* @@ label */"bar"]; -/* @@@ label Error TypeError: Type '"bar"' is not assignable to type '5'. */ + +/* @@@ label Error Semantic error ESE0000: Type '"bar"' is not assignable to type '5'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/as_expression_4.ts b/ets2panda/test/ast/compiler/ts/as_expression_4.ts index 60c9fe4da8..3e3d464fa7 100644 --- a/ets2panda/test/ast/compiler/ts/as_expression_4.ts +++ b/ets2panda/test/ast/compiler/ts/as_expression_4.ts @@ -17,4 +17,5 @@ var a = [5,5,5,5] as const; a = [5,/* @@ label */4,5,5]; -/* @@@ label Error TypeError: Type '4' is not assignable to type '5'. */ + +/* @@@ label Error Semantic error ESE0000: Type '4' is not assignable to type '5'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/as_expression_5.ts b/ets2panda/test/ast/compiler/ts/as_expression_5.ts index 8f82e3c230..3860c8e133 100644 --- a/ets2panda/test/ast/compiler/ts/as_expression_5.ts +++ b/ets2panda/test/ast/compiler/ts/as_expression_5.ts @@ -17,4 +17,5 @@ var a = [5,5,5,5] as const; a = [5,5,/* @@ label */4,5]; -/* @@@ label Error TypeError: Type '4' is not assignable to type '5'. */ + +/* @@@ label Error Semantic error ESE0000: Type '4' is not assignable to type '5'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/as_expression_6.ts b/ets2panda/test/ast/compiler/ts/as_expression_6.ts index a1796f4510..165b3f89c4 100644 --- a/ets2panda/test/ast/compiler/ts/as_expression_6.ts +++ b/ets2panda/test/ast/compiler/ts/as_expression_6.ts @@ -17,4 +17,5 @@ var a = [5, 5, 5, 5] as const; a = [5, 5, 5, /* @@ label */4]; -/* @@@ label Error TypeError: Type '4' is not assignable to type '5'. */ + +/* @@@ label Error Semantic error ESE0000: Type '4' is not assignable to type '5'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/as_expression_7.ts b/ets2panda/test/ast/compiler/ts/as_expression_7.ts index 6d588ccd6d..f99aecd672 100644 --- a/ets2panda/test/ast/compiler/ts/as_expression_7.ts +++ b/ets2panda/test/ast/compiler/ts/as_expression_7.ts @@ -17,4 +17,5 @@ var a = [5,5,5,5] as const; /* @@ label */a = [5,5,5,5,5]; -/* @@@ label Error TypeError: Type '[5, 5, 5, 5, 5]' is not assignable to type 'readonly [5, 5, 5, 5]'. */ + +/* @@@ label Error Semantic error ESE0000: Type '[5, 5, 5, 5, 5]' is not assignable to type 'readonly [5, 5, 5, 5]'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/as_expression_8.ts b/ets2panda/test/ast/compiler/ts/as_expression_8.ts index 7ddec25794..8c7a5a8e83 100644 --- a/ets2panda/test/ast/compiler/ts/as_expression_8.ts +++ b/ets2panda/test/ast/compiler/ts/as_expression_8.ts @@ -17,4 +17,5 @@ var a = [5,5,5,5] as const; /* @@ label */a = [5,5,5]; -/* @@@ label Error TypeError: Type '[5, 5, 5]' is not assignable to type 'readonly [5, 5, 5, 5]'. */ + +/* @@@ label Error Semantic error ESE0000: Type '[5, 5, 5]' is not assignable to type 'readonly [5, 5, 5, 5]'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/as_expression_9.ts b/ets2panda/test/ast/compiler/ts/as_expression_9.ts index 703cf597ad..d194270478 100644 --- a/ets2panda/test/ast/compiler/ts/as_expression_9.ts +++ b/ets2panda/test/ast/compiler/ts/as_expression_9.ts @@ -17,4 +17,5 @@ var a = [5, 5, 5, 5] as const; a = [/* @@ label */"foo", 5]; -/* @@@ label Error TypeError: Type '"foo"' is not assignable to type '5'. */ + +/* @@@ label Error Semantic error ESE0000: Type '"foo"' is not assignable to type '5'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/assignment_never.ts b/ets2panda/test/ast/compiler/ts/assignment_never.ts index 091bbc8bab..43f7627fab 100644 --- a/ets2panda/test/ast/compiler/ts/assignment_never.ts +++ b/ets2panda/test/ast/compiler/ts/assignment_never.ts @@ -16,4 +16,5 @@ let /* @@ label */a: never = null; -/* @@@ label Error TypeError: Type 'null' is not assignable to type 'never'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'null' is not assignable to type 'never'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/call_expression_1.ts b/ets2panda/test/ast/compiler/ts/call_expression_1.ts index 4ed34489fb..0b81c0eae2 100644 --- a/ets2panda/test/ast/compiler/ts/call_expression_1.ts +++ b/ets2panda/test/ast/compiler/ts/call_expression_1.ts @@ -15,4 +15,5 @@ let a = /* @@ label */new 5; -/* @@@ label Error TypeError: This expression is not callable. */ + +/* @@@ label Error Semantic error ESE0000: This expression is not callable. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/cannotAssignToConst.ts b/ets2panda/test/ast/compiler/ts/cannotAssignToConst.ts index 9ff07215e4..0115d30b2d 100644 --- a/ets2panda/test/ast/compiler/ts/cannotAssignToConst.ts +++ b/ets2panda/test/ast/compiler/ts/cannotAssignToConst.ts @@ -17,4 +17,5 @@ const a = 5; /* @@ label */a = 5; -/* @@@ label Error TypeError: Cannot assign to a because it is a constant. */ + +/* @@@ label Error Semantic error ESE0000: Cannot assign to a because it is a constant. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/constUsedBeforeDeclaration.ts b/ets2panda/test/ast/compiler/ts/constUsedBeforeDeclaration.ts index 4d1d22043b..46a44a92d1 100644 --- a/ets2panda/test/ast/compiler/ts/constUsedBeforeDeclaration.ts +++ b/ets2panda/test/ast/compiler/ts/constUsedBeforeDeclaration.ts @@ -16,4 +16,5 @@ a + 2; const a = 6; -/* @@? 18:7 Error TypeError: Block-scoped variable 'a' used before its declaration */ + +/* @@? 18:7 Error Semantic error ESE0000: Block-scoped variable 'a' used before its declaration */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/functionCall_1.ts b/ets2panda/test/ast/compiler/ts/functionCall_1.ts index fa5c2fa539..cae34ce618 100644 --- a/ets2panda/test/ast/compiler/ts/functionCall_1.ts +++ b/ets2panda/test/ast/compiler/ts/functionCall_1.ts @@ -18,4 +18,5 @@ function func(a : number) : void { } func(/* @@ label */"foo"); -/* @@@ label Error TypeError: Type 'string' is not assignable to type 'number'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'string' is not assignable to type 'number'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/functionCall_10.ts b/ets2panda/test/ast/compiler/ts/functionCall_10.ts index c36629caf7..bd3c0d59e2 100644 --- a/ets2panda/test/ast/compiler/ts/functionCall_10.ts +++ b/ets2panda/test/ast/compiler/ts/functionCall_10.ts @@ -16,4 +16,5 @@ var func: { (a: number, b: string): number, (a: string, b?: number): string }; /* @@ label */func(); -/* @@@ label Error TypeError: Expected 1-2 arguments, but got 0 */ + +/* @@@ label Error Semantic error ESE0000: Expected 1-2 arguments, but got 0 */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/functionCall_11.ts b/ets2panda/test/ast/compiler/ts/functionCall_11.ts index 7e63899cb9..50468111b8 100644 --- a/ets2panda/test/ast/compiler/ts/functionCall_11.ts +++ b/ets2panda/test/ast/compiler/ts/functionCall_11.ts @@ -16,4 +16,5 @@ var func: { (a: number, b: string): number, (a: string, b?: number): string }; func(/* @@ label */1); -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/functionCall_12.ts b/ets2panda/test/ast/compiler/ts/functionCall_12.ts index 761fbc0c62..174229ac6f 100644 --- a/ets2panda/test/ast/compiler/ts/functionCall_12.ts +++ b/ets2panda/test/ast/compiler/ts/functionCall_12.ts @@ -16,4 +16,5 @@ var func: { (a: number, b: string): number, (a: string, b?: number): string }; var /* @@ label */a: string = func(1, "foo"); -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/functionCall_13.ts b/ets2panda/test/ast/compiler/ts/functionCall_13.ts index 4bab17ad9f..23181604ff 100644 --- a/ets2panda/test/ast/compiler/ts/functionCall_13.ts +++ b/ets2panda/test/ast/compiler/ts/functionCall_13.ts @@ -17,4 +17,5 @@ var func: { (a?: number, ...c): boolean, (a: any, b: string[], ...c: number[]): string, (a: number, b: boolean): number }; var /* @@ label */a: string = func(); -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'string'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'string'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/functionCall_14.ts b/ets2panda/test/ast/compiler/ts/functionCall_14.ts index c6d18f89c4..58bf3c5ab7 100644 --- a/ets2panda/test/ast/compiler/ts/functionCall_14.ts +++ b/ets2panda/test/ast/compiler/ts/functionCall_14.ts @@ -17,4 +17,5 @@ var func: { (a?: number, ...c): boolean, (a: any, b: string[], ...c: number[]): string, (a: number, b: boolean): number }; var /* @@ label */a: string = func(1); -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'string'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'string'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/functionCall_15.ts b/ets2panda/test/ast/compiler/ts/functionCall_15.ts index 3699080e8a..fc7da77d03 100644 --- a/ets2panda/test/ast/compiler/ts/functionCall_15.ts +++ b/ets2panda/test/ast/compiler/ts/functionCall_15.ts @@ -17,4 +17,5 @@ var func: { (a: number, ...c): boolean, (a: any, b: string[], ...c: number[]): string, (a: number, b: boolean): number }; /* @@ label */func(); -/* @@@ label Error TypeError: Expected at least 1 arguments, but got 0. */ + +/* @@@ label Error Semantic error ESE0000: Expected at least 1 arguments, but got 0. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/functionCall_2.ts b/ets2panda/test/ast/compiler/ts/functionCall_2.ts index b54016745f..78ddc86df7 100644 --- a/ets2panda/test/ast/compiler/ts/functionCall_2.ts +++ b/ets2panda/test/ast/compiler/ts/functionCall_2.ts @@ -22,4 +22,5 @@ function func2(a : number) : string{ return "foo"; } func1(/* @@ label */func2(5)); -/* @@@ label Error TypeError: Type 'string' is not assignable to type 'number'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'string' is not assignable to type 'number'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/functionCall_3.ts b/ets2panda/test/ast/compiler/ts/functionCall_3.ts index 95965c5e2b..e369044e62 100644 --- a/ets2panda/test/ast/compiler/ts/functionCall_3.ts +++ b/ets2panda/test/ast/compiler/ts/functionCall_3.ts @@ -16,4 +16,5 @@ function func(a : number) : void { } func(5, /* @@ label */5); -/* @@@ label Error TypeError: Expected 1 arguments, but got 2. */ + +/* @@@ label Error Semantic error ESE0000: Expected 1 arguments, but got 2. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/functionCall_4.ts b/ets2panda/test/ast/compiler/ts/functionCall_4.ts index ad430c9de1..031f21c923 100644 --- a/ets2panda/test/ast/compiler/ts/functionCall_4.ts +++ b/ets2panda/test/ast/compiler/ts/functionCall_4.ts @@ -19,4 +19,5 @@ function func(a: number) : number { return a < 0 ? func(a) : a; } func(/* @@ label */"foo"); -/* @@@ label Error TypeError: Type 'string' is not assignable to type 'number'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'string' is not assignable to type 'number'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/functionCall_5.ts b/ets2panda/test/ast/compiler/ts/functionCall_5.ts index 9e9a36b2b2..e3cb76ab29 100644 --- a/ets2panda/test/ast/compiler/ts/functionCall_5.ts +++ b/ets2panda/test/ast/compiler/ts/functionCall_5.ts @@ -19,4 +19,5 @@ function func(a: number, b: string, ...c) { } /* @@ label */func() -/* @@@ label Error TypeError: Expected at least 2 arguments, but got 0. */ + +/* @@@ label Error Semantic error ESE0000: Expected at least 2 arguments, but got 0. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/functionCall_6.ts b/ets2panda/test/ast/compiler/ts/functionCall_6.ts index a10ea87281..81c169bcbc 100644 --- a/ets2panda/test/ast/compiler/ts/functionCall_6.ts +++ b/ets2panda/test/ast/compiler/ts/functionCall_6.ts @@ -17,4 +17,5 @@ function func(/* @@ label */...a: string) { return 6; } -/* @@@ label Error TypeError: A rest parameter must be of an array type */ + +/* @@@ label Error Semantic error ESE0000: A rest parameter must be of an array type */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/functionCall_7.ts b/ets2panda/test/ast/compiler/ts/functionCall_7.ts index 0f68125482..a77ede7d51 100644 --- a/ets2panda/test/ast/compiler/ts/functionCall_7.ts +++ b/ets2panda/test/ast/compiler/ts/functionCall_7.ts @@ -19,4 +19,5 @@ function func(...a: string[]) { } func(/* @@ label */2); -/* @@@ label Error TypeError: Argument of type 'number' is not assignable to parameter of type 'string'. */ + +/* @@@ label Error Semantic error ESE0000: Argument of type 'number' is not assignable to parameter of type 'string'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/functionCall_8.ts b/ets2panda/test/ast/compiler/ts/functionCall_8.ts index 585a0034a4..0fb68c49ad 100644 --- a/ets2panda/test/ast/compiler/ts/functionCall_8.ts +++ b/ets2panda/test/ast/compiler/ts/functionCall_8.ts @@ -18,4 +18,5 @@ function func(a?: number, ...c: string[]) { } func(/* @@ label */"bar") -/* @@@ label Error TypeError: Type 'string' is not assignable to type 'number'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'string' is not assignable to type 'number'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/functionCall_9.ts b/ets2panda/test/ast/compiler/ts/functionCall_9.ts index ab372c59a9..3aa1c11c0d 100644 --- a/ets2panda/test/ast/compiler/ts/functionCall_9.ts +++ b/ets2panda/test/ast/compiler/ts/functionCall_9.ts @@ -19,4 +19,5 @@ function func(a: number, b: string, c?: number[]) { } /* @@ label */func(1); -/* @@@ label Error TypeError: Expected 2-3 arguments, but got 1 */ + +/* @@@ label Error Semantic error ESE0000: Expected 2-3 arguments, but got 1 */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/functionOverload3.ts b/ets2panda/test/ast/compiler/ts/functionOverload3.ts index 5629257472..d149084285 100644 --- a/ets2panda/test/ast/compiler/ts/functionOverload3.ts +++ b/ets2panda/test/ast/compiler/ts/functionOverload3.ts @@ -19,4 +19,5 @@ function foo(a: string | number, b: string, c: number): number; function foo(a: string | number, b?: string, c?: number) { return "foo"; } -/* @@@ label Error TypeError: This overload signature is not compatible with its implementation signature */ + +/* @@@ label Error Semantic error ESE0000: This overload signature is not compatible with its implementation signature */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/functionWithPattern1.ts b/ets2panda/test/ast/compiler/ts/functionWithPattern1.ts index 9e9c761aa8..2f3a583e42 100644 --- a/ets2panda/test/ast/compiler/ts/functionWithPattern1.ts +++ b/ets2panda/test/ast/compiler/ts/functionWithPattern1.ts @@ -19,4 +19,4 @@ function foo([{ x = 6 }, y = "foo", z] = [{ x: "foo" }, 2, 3]) { } /* @@ label */foo + 5; -/* @@@ label Error TypeError: operator + cannot be applied to types (p1?: [{ x: string; }, number, number]) => void and number */ +/* @@@ label Error Semantic error ESE0000: operator + cannot be applied to types (p1?: [{ x: string; }, number, number]) => void and number */ diff --git a/ets2panda/test/ast/compiler/ts/functionWithPattern10.ts b/ets2panda/test/ast/compiler/ts/functionWithPattern10.ts index a7c6eca2cb..874a035370 100644 --- a/ets2panda/test/ast/compiler/ts/functionWithPattern10.ts +++ b/ets2panda/test/ast/compiler/ts/functionWithPattern10.ts @@ -20,4 +20,5 @@ function foo([a = 2, { b: [c = 6, d] = [true, [5n, "foo"]], t = { a: 3, b: { a: foo([3, { b: [true, []], /* @@ label */t: 5 }, 5n], {}); -/* @@@ label Error TypeError: Type 'number' is not assignable to type '{ a: number; b: { a: number; b: bigint; }; }'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type '{ a: number; b: { a: number; b: bigint; }; }'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/functionWithPattern11.ts b/ets2panda/test/ast/compiler/ts/functionWithPattern11.ts index 9d0772086a..f59feff186 100644 --- a/ets2panda/test/ast/compiler/ts/functionWithPattern11.ts +++ b/ets2panda/test/ast/compiler/ts/functionWithPattern11.ts @@ -20,4 +20,5 @@ function foo([a = 2, { b: [c = 6, d] = [true, [5n, "foo"]], t = { a: 3, b: { a: foo([2, { b: [true, []], t: { a: 1, /* @@ label */z: "foo" } }, 5n], {}); -/* @@@ label Error TypeError: Object literal may only specify known properties, and "z" does not exist in type '{ a: number; b: { a: number; b: bigint; }; }'. */ + +/* @@@ label Error Semantic error ESE0000: Object literal may only specify known properties, and "z" does not exist in type '{ a: number; b: { a: number; b: bigint; }; }'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/functionWithPattern12.ts b/ets2panda/test/ast/compiler/ts/functionWithPattern12.ts index eea59d2b35..7b17f660e0 100644 --- a/ets2panda/test/ast/compiler/ts/functionWithPattern12.ts +++ b/ets2panda/test/ast/compiler/ts/functionWithPattern12.ts @@ -20,4 +20,5 @@ function foo([a = 2, { b: [c = 6, d] = [true, [5n, "foo"]], t = { a: 3, b: { a: foo(["foo", {}, 5n], { r: [[/* @@ label */"foo"]] }); -/* @@@ label Error TypeError: Type 'string' is not assignable to type 'number'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'string' is not assignable to type 'number'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/functionWithPattern2.ts b/ets2panda/test/ast/compiler/ts/functionWithPattern2.ts index 997d11fb5d..88c41a2cee 100644 --- a/ets2panda/test/ast/compiler/ts/functionWithPattern2.ts +++ b/ets2panda/test/ast/compiler/ts/functionWithPattern2.ts @@ -19,4 +19,4 @@ function foo({ x = 6, y = "foo" } = { x: "foo" }) { } /* @@ label */foo + 5; -/* @@@ label Error TypeError: operator + cannot be applied to types (p1?: { x?: string; y?: string; }) => void and number */ +/* @@@ label Error Semantic error ESE0000: operator + cannot be applied to types (p1?: { x?: string; y?: string; }) => void and number */ diff --git a/ets2panda/test/ast/compiler/ts/functionWithPattern3.ts b/ets2panda/test/ast/compiler/ts/functionWithPattern3.ts index ebade52ee8..e3f13ce39e 100644 --- a/ets2panda/test/ast/compiler/ts/functionWithPattern3.ts +++ b/ets2panda/test/ast/compiler/ts/functionWithPattern3.ts @@ -19,4 +19,4 @@ function foo({ x: { asd }, y: { t = 6, r = "foo" } = { t: "foo" } }) { } /* @@ label */foo + 5; -/* @@@ label Error TypeError: operator + cannot be applied to types (p1: { x?: { asd: any; }; y?: { t: string; }; }) => void and number */ +/* @@@ label Error Semantic error ESE0000: operator + cannot be applied to types (p1: { x?: { asd: any; }; y?: { t: string; }; }) => void and number */ diff --git a/ets2panda/test/ast/compiler/ts/functionWithPattern4.ts b/ets2panda/test/ast/compiler/ts/functionWithPattern4.ts index 369b21c020..bd978f1148 100644 --- a/ets2panda/test/ast/compiler/ts/functionWithPattern4.ts +++ b/ets2panda/test/ast/compiler/ts/functionWithPattern4.ts @@ -19,4 +19,4 @@ function foo({ a, b: { t = "foo" } = { t: 3 }, d: [e = {}, f = 6] = [3, ["foo", } /* @@ label */foo + 5; -/* @@@ label Error TypeError: operator + cannot be applied to types (p1?: { a: boolean; b?: { t: number; }; d?: [number, [string, string]]; }) => void and number */ +/* @@@ label Error Semantic error ESE0000: operator + cannot be applied to types (p1?: { a: boolean; b?: { t: number; }; d?: [number, [string, string]]; }) => void and number */ diff --git a/ets2panda/test/ast/compiler/ts/functionWithPattern5.ts b/ets2panda/test/ast/compiler/ts/functionWithPattern5.ts index b2d2f1e01c..2e2781423b 100644 --- a/ets2panda/test/ast/compiler/ts/functionWithPattern5.ts +++ b/ets2panda/test/ast/compiler/ts/functionWithPattern5.ts @@ -19,4 +19,5 @@ function foo({ a, b: { t = "foo" } = { t: 3 }, d: [e = {}, f = 6] = [3, ["foo", } foo({ /* @@ label */a: 5 }); -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'boolean'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'boolean'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/functionWithPattern6.ts b/ets2panda/test/ast/compiler/ts/functionWithPattern6.ts index f88b71f93c..50684644b0 100644 --- a/ets2panda/test/ast/compiler/ts/functionWithPattern6.ts +++ b/ets2panda/test/ast/compiler/ts/functionWithPattern6.ts @@ -19,4 +19,5 @@ function foo({ a, b: { t = "foo" } = { t: 3 }, d: [e = {}, f = 6] = [3, ["foo", } foo({ a: false, b: { /* @@ label */r: "foo " } }); -/* @@@ label Error TypeError: Object literal may only specify known properties, and "r" does not exist in type '{ t: number; }'. */ + +/* @@@ label Error Semantic error ESE0000: Object literal may only specify known properties, and "r" does not exist in type '{ t: number; }'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/functionWithPattern7.ts b/ets2panda/test/ast/compiler/ts/functionWithPattern7.ts index 618cb363d4..e9b966d174 100644 --- a/ets2panda/test/ast/compiler/ts/functionWithPattern7.ts +++ b/ets2panda/test/ast/compiler/ts/functionWithPattern7.ts @@ -20,4 +20,5 @@ function foo({ a, b: { t = "foo" } = { t: 3 }, d: [e = {}, f = 6] = [3, ["foo", foo({ a: false, b: { t: 7 }, d: [2, /* @@ label */5n] }); -/* @@@ label Error TypeError: Type 'bigint' is not assignable to type 'string[]'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'bigint' is not assignable to type 'string[]'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/functionWithPattern8.ts b/ets2panda/test/ast/compiler/ts/functionWithPattern8.ts index f278b44b03..a9cd3b9440 100644 --- a/ets2panda/test/ast/compiler/ts/functionWithPattern8.ts +++ b/ets2panda/test/ast/compiler/ts/functionWithPattern8.ts @@ -20,4 +20,4 @@ function foo([a = 2, { b: [c = 6, d] = [true, [5n, "foo"]], t = { a: 3, b: { a: /* @@ label */foo + 5; -/* @@@ label Error TypeError: operator + cannot be applied to types (p1: [number, { b?: [boolean, (bigint | string)[]]; t?: { a: number; b: { a: number; b: bigint; }; }; }], p2: { r?: [[number, string]]; }) => void and number */ +/* @@@ label Error Semantic error ESE0000: operator + cannot be applied to types (p1: [number, { b?: [boolean, (bigint | string)[]]; t?: { a: number; b: { a: number; b: bigint; }; }; }], p2: { r?: [[number, string]]; }) => void and number */ diff --git a/ets2panda/test/ast/compiler/ts/functionWithPattern9.ts b/ets2panda/test/ast/compiler/ts/functionWithPattern9.ts index f3a8ce75d5..909c0a38e7 100644 --- a/ets2panda/test/ast/compiler/ts/functionWithPattern9.ts +++ b/ets2panda/test/ast/compiler/ts/functionWithPattern9.ts @@ -20,4 +20,5 @@ function foo([a = 2, { b: [c = 6, d] = [true, [5n, "foo"]], t = { a: 3, b: { a: foo([1, { /* @@ label */b: [] }, 5n], {}); -/* @@@ label Error TypeError: Type '[]' is not assignable to type '[boolean, (bigint | string)[]]'. */ + +/* @@@ label Error Semantic error ESE0000: Type '[]' is not assignable to type '[boolean, (bigint | string)[]]'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/function_declaration_1.ts b/ets2panda/test/ast/compiler/ts/function_declaration_1.ts index 1ebfe5e5b5..57f5ffea9b 100644 --- a/ets2panda/test/ast/compiler/ts/function_declaration_1.ts +++ b/ets2panda/test/ast/compiler/ts/function_declaration_1.ts @@ -17,4 +17,5 @@ function foo(): /* @@ label */string { } -/* @@@ label Error TypeError: A function whose declared type is neither 'void' nor 'any' must return a value. */ + +/* @@@ label Error Semantic error ESE0000: A function whose declared type is neither 'void' nor 'any' must return a value. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/function_declaration_10.ts b/ets2panda/test/ast/compiler/ts/function_declaration_10.ts index e8548497ab..aca844fa23 100644 --- a/ets2panda/test/ast/compiler/ts/function_declaration_10.ts +++ b/ets2panda/test/ast/compiler/ts/function_declaration_10.ts @@ -18,4 +18,5 @@ function foo(): boolean { /* @@ label */return 5; } -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'boolean'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'boolean'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/function_declaration_11.ts b/ets2panda/test/ast/compiler/ts/function_declaration_11.ts index 21221e0f67..a4f2a9f1bb 100644 --- a/ets2panda/test/ast/compiler/ts/function_declaration_11.ts +++ b/ets2panda/test/ast/compiler/ts/function_declaration_11.ts @@ -17,4 +17,5 @@ function foo(): /* @@ label */never { } -/* @@@ label Error TypeError: A function returning 'never' cannot have a reachable end point. */ + +/* @@@ label Error Semantic error ESE0000: A function returning 'never' cannot have a reachable end point. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/function_declaration_2.ts b/ets2panda/test/ast/compiler/ts/function_declaration_2.ts index d5698855e1..b75831f78c 100644 --- a/ets2panda/test/ast/compiler/ts/function_declaration_2.ts +++ b/ets2panda/test/ast/compiler/ts/function_declaration_2.ts @@ -18,4 +18,5 @@ function foo(): string { /* @@ label */return 5; } -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/function_declaration_3.ts b/ets2panda/test/ast/compiler/ts/function_declaration_3.ts index 436a6e6126..f906338f11 100644 --- a/ets2panda/test/ast/compiler/ts/function_declaration_3.ts +++ b/ets2panda/test/ast/compiler/ts/function_declaration_3.ts @@ -18,4 +18,5 @@ function foo(): string { /* @@ label */return false; } -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'string'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'string'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/function_declaration_4.ts b/ets2panda/test/ast/compiler/ts/function_declaration_4.ts index aabb94e87d..1f9b91022d 100644 --- a/ets2panda/test/ast/compiler/ts/function_declaration_4.ts +++ b/ets2panda/test/ast/compiler/ts/function_declaration_4.ts @@ -17,4 +17,5 @@ function foo(): number { } -/* @@? 17:17 Error TypeError: A function whose declared type is neither 'void' nor 'any' must return a value. */ + +/* @@? 17:17 Error Semantic error ESE0000: A function whose declared type is neither 'void' nor 'any' must return a value. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/function_declaration_5.ts b/ets2panda/test/ast/compiler/ts/function_declaration_5.ts index f55b4ba295..a8629a401e 100644 --- a/ets2panda/test/ast/compiler/ts/function_declaration_5.ts +++ b/ets2panda/test/ast/compiler/ts/function_declaration_5.ts @@ -18,4 +18,5 @@ function foo(): number { /* @@ label */return false; } -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'number'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'number'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/function_declaration_6.ts b/ets2panda/test/ast/compiler/ts/function_declaration_6.ts index 98c394ba3a..02f60aecd9 100644 --- a/ets2panda/test/ast/compiler/ts/function_declaration_6.ts +++ b/ets2panda/test/ast/compiler/ts/function_declaration_6.ts @@ -17,4 +17,5 @@ function foo(): /* @@ label */bigint { } -/* @@@ label Error TypeError: A function whose declared type is neither 'void' nor 'any' must return a value. */ + +/* @@@ label Error Semantic error ESE0000: A function whose declared type is neither 'void' nor 'any' must return a value. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/function_declaration_7.ts b/ets2panda/test/ast/compiler/ts/function_declaration_7.ts index cd2aa5cb1a..9f581d3162 100644 --- a/ets2panda/test/ast/compiler/ts/function_declaration_7.ts +++ b/ets2panda/test/ast/compiler/ts/function_declaration_7.ts @@ -18,4 +18,5 @@ function foo(): bigint { /* @@ label */return 5; } -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/function_declaration_8.ts b/ets2panda/test/ast/compiler/ts/function_declaration_8.ts index 1a8491554f..6b2b1e0ddf 100644 --- a/ets2panda/test/ast/compiler/ts/function_declaration_8.ts +++ b/ets2panda/test/ast/compiler/ts/function_declaration_8.ts @@ -18,4 +18,5 @@ function foo(): bigint { /* @@ label */return false; } -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'bigint'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'bigint'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/function_declaration_9.ts b/ets2panda/test/ast/compiler/ts/function_declaration_9.ts index 7b97900d1c..b0c63b1a58 100644 --- a/ets2panda/test/ast/compiler/ts/function_declaration_9.ts +++ b/ets2panda/test/ast/compiler/ts/function_declaration_9.ts @@ -17,4 +17,5 @@ function foo(): /* @@ label */boolean { } -/* @@@ label Error TypeError: A function whose declared type is neither 'void' nor 'any' must return a value. */ + +/* @@@ label Error Semantic error ESE0000: A function whose declared type is neither 'void' nor 'any' must return a value. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/identifierWithoutDeclaration.ts b/ets2panda/test/ast/compiler/ts/identifierWithoutDeclaration.ts index cf4fe2fd59..dd85ec8300 100644 --- a/ets2panda/test/ast/compiler/ts/identifierWithoutDeclaration.ts +++ b/ets2panda/test/ast/compiler/ts/identifierWithoutDeclaration.ts @@ -19,4 +19,5 @@ var a: number; var b: typeof a; b = 12; /* @@ label */foo = 4; -/* @@@ label Error TypeError: Cannot find name foo */ + +/* @@@ label Error Semantic error ESE0000: Cannot find name foo */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/identifier_optional_negative.ts b/ets2panda/test/ast/compiler/ts/identifier_optional_negative.ts index 28e5943c2a..ff3e86a2bb 100644 --- a/ets2panda/test/ast/compiler/ts/identifier_optional_negative.ts +++ b/ets2panda/test/ast/compiler/ts/identifier_optional_negative.ts @@ -18,4 +18,5 @@ let b = /* @@ label */(a?: number) -/* @@@ label Error SyntaxError: Unexpected token '?'. */ + +/* @@@ label Error Syntax error ESY0000: Unexpected token '?'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/in_1.ts b/ets2panda/test/ast/compiler/ts/in_1.ts index 617029b45d..b6efdacf5e 100644 --- a/ets2panda/test/ast/compiler/ts/in_1.ts +++ b/ets2panda/test/ast/compiler/ts/in_1.ts @@ -18,4 +18,5 @@ var a: null; var b: any; /* @@ label */a in b; -/* @@@ label Error TypeError: Object is possibly 'null'. */ + +/* @@@ label Error Semantic error ESE0000: Object is possibly 'null'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/in_10.ts b/ets2panda/test/ast/compiler/ts/in_10.ts index 85053a7f8c..dc24bf3b9c 100644 --- a/ets2panda/test/ast/compiler/ts/in_10.ts +++ b/ets2panda/test/ast/compiler/ts/in_10.ts @@ -18,4 +18,5 @@ var a: (string|number); var b: number; a in /* @@ label */b; -/* @@@ label Error TypeError: The right-hand side of an 'in' expression must not be a primitive. */ + +/* @@@ label Error Semantic error ESE0000: The right-hand side of an 'in' expression must not be a primitive. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/in_11.ts b/ets2panda/test/ast/compiler/ts/in_11.ts index 3614d6b8c8..6799a2fdb9 100644 --- a/ets2panda/test/ast/compiler/ts/in_11.ts +++ b/ets2panda/test/ast/compiler/ts/in_11.ts @@ -18,4 +18,5 @@ var a: any; var b: string; a in /* @@ label */b; -/* @@@ label Error TypeError: The right-hand side of an 'in' expression must not be a primitive. */ + +/* @@@ label Error Semantic error ESE0000: The right-hand side of an 'in' expression must not be a primitive. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/in_12.ts b/ets2panda/test/ast/compiler/ts/in_12.ts index 96d24d9ef2..bea9a7e2a2 100644 --- a/ets2panda/test/ast/compiler/ts/in_12.ts +++ b/ets2panda/test/ast/compiler/ts/in_12.ts @@ -18,4 +18,5 @@ var a: any; var b: number; a in /* @@ label */b; -/* @@@ label Error TypeError: The right-hand side of an 'in' expression must not be a primitive. */ + +/* @@@ label Error Semantic error ESE0000: The right-hand side of an 'in' expression must not be a primitive. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/in_13.ts b/ets2panda/test/ast/compiler/ts/in_13.ts index 78c2a69b4e..1522406a42 100644 --- a/ets2panda/test/ast/compiler/ts/in_13.ts +++ b/ets2panda/test/ast/compiler/ts/in_13.ts @@ -18,4 +18,5 @@ var a: any; var b: bigint; a in /* @@ label */b; -/* @@@ label Error TypeError: The right-hand side of an 'in' expression must not be a primitive. */ + +/* @@@ label Error Semantic error ESE0000: The right-hand side of an 'in' expression must not be a primitive. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/in_14.ts b/ets2panda/test/ast/compiler/ts/in_14.ts index 7a053849b9..6063c25e9b 100644 --- a/ets2panda/test/ast/compiler/ts/in_14.ts +++ b/ets2panda/test/ast/compiler/ts/in_14.ts @@ -18,4 +18,5 @@ var a: any; var b: boolean; a in /* @@ label */b; -/* @@@ label Error TypeError: The right-hand side of an 'in' expression must not be a primitive. */ + +/* @@@ label Error Semantic error ESE0000: The right-hand side of an 'in' expression must not be a primitive. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/in_15.ts b/ets2panda/test/ast/compiler/ts/in_15.ts index a41c1faa58..f153a74a00 100644 --- a/ets2panda/test/ast/compiler/ts/in_15.ts +++ b/ets2panda/test/ast/compiler/ts/in_15.ts @@ -18,4 +18,5 @@ var a: any; var b: (string|number|bigint|boolean); a in /* @@ label */b; -/* @@@ label Error TypeError: The right-hand side of an 'in' expression must not be a primitive. */ + +/* @@@ label Error Semantic error ESE0000: The right-hand side of an 'in' expression must not be a primitive. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/in_2.ts b/ets2panda/test/ast/compiler/ts/in_2.ts index 4389b8a403..975c41f958 100644 --- a/ets2panda/test/ast/compiler/ts/in_2.ts +++ b/ets2panda/test/ast/compiler/ts/in_2.ts @@ -18,4 +18,5 @@ var a: any; var b: null; a in /* @@ label */b; -/* @@@ label Error TypeError: Object is possibly 'null'. */ + +/* @@@ label Error Semantic error ESE0000: Object is possibly 'null'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/in_3.ts b/ets2panda/test/ast/compiler/ts/in_3.ts index fda6da2f13..09251b069a 100644 --- a/ets2panda/test/ast/compiler/ts/in_3.ts +++ b/ets2panda/test/ast/compiler/ts/in_3.ts @@ -18,4 +18,5 @@ var a: undefined; var b: any; /* @@ label */a in b; -/* @@@ label Error TypeError: Object is possibly 'undefined'. */ + +/* @@@ label Error Semantic error ESE0000: Object is possibly 'undefined'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/in_4.ts b/ets2panda/test/ast/compiler/ts/in_4.ts index a72542ad4d..528ecd1c6b 100644 --- a/ets2panda/test/ast/compiler/ts/in_4.ts +++ b/ets2panda/test/ast/compiler/ts/in_4.ts @@ -18,4 +18,5 @@ var a: any; var b: undefined; a in /* @@ label */b; -/* @@@ label Error TypeError: Object is possibly 'undefined'. */ + +/* @@@ label Error Semantic error ESE0000: Object is possibly 'undefined'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/in_5.ts b/ets2panda/test/ast/compiler/ts/in_5.ts index 9d72f02200..8ad755d92a 100644 --- a/ets2panda/test/ast/compiler/ts/in_5.ts +++ b/ets2panda/test/ast/compiler/ts/in_5.ts @@ -18,4 +18,5 @@ var a: bigint; var b: any; /* @@ label */a in b; -/* @@@ label Error TypeError: The left-hand side of an 'in' expression must be of type 'any', 'string', 'number', or 'symbol'. */ + +/* @@@ label Error Semantic error ESE0000: The left-hand side of an 'in' expression must be of type 'any', 'string', 'number', or 'symbol'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/in_6.ts b/ets2panda/test/ast/compiler/ts/in_6.ts index 68ee2dcd20..19ed6c3dee 100644 --- a/ets2panda/test/ast/compiler/ts/in_6.ts +++ b/ets2panda/test/ast/compiler/ts/in_6.ts @@ -18,4 +18,5 @@ var a: boolean; var b: any; /* @@ label */a in b; -/* @@@ label Error TypeError: The left-hand side of an 'in' expression must be of type 'any', 'string', 'number', or 'symbol'. */ + +/* @@@ label Error Semantic error ESE0000: The left-hand side of an 'in' expression must be of type 'any', 'string', 'number', or 'symbol'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/in_7.ts b/ets2panda/test/ast/compiler/ts/in_7.ts index e7a22a78a9..384e30a26d 100644 --- a/ets2panda/test/ast/compiler/ts/in_7.ts +++ b/ets2panda/test/ast/compiler/ts/in_7.ts @@ -18,4 +18,5 @@ var a: (string|number|bigint|boolean); var b: any; /* @@ label */a in b; -/* @@@ label Error TypeError: The left-hand side of an 'in' expression must be of type 'any', 'string', 'number', or 'symbol'. */ + +/* @@@ label Error Semantic error ESE0000: The left-hand side of an 'in' expression must be of type 'any', 'string', 'number', or 'symbol'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/in_8.ts b/ets2panda/test/ast/compiler/ts/in_8.ts index 94de51b0de..37b8a93125 100644 --- a/ets2panda/test/ast/compiler/ts/in_8.ts +++ b/ets2panda/test/ast/compiler/ts/in_8.ts @@ -18,4 +18,5 @@ var a: number; var b: number; a in /* @@ label */b; -/* @@@ label Error TypeError: The right-hand side of an 'in' expression must not be a primitive. */ + +/* @@@ label Error Semantic error ESE0000: The right-hand side of an 'in' expression must not be a primitive. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/in_9.ts b/ets2panda/test/ast/compiler/ts/in_9.ts index d9dd4f90de..b602b52048 100644 --- a/ets2panda/test/ast/compiler/ts/in_9.ts +++ b/ets2panda/test/ast/compiler/ts/in_9.ts @@ -18,4 +18,5 @@ var a: string; var b: number; a in /* @@ label */b; -/* @@@ label Error TypeError: The right-hand side of an 'in' expression must not be a primitive. */ + +/* @@@ label Error Semantic error ESE0000: The right-hand side of an 'in' expression must not be a primitive. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/instanceof_1.ts b/ets2panda/test/ast/compiler/ts/instanceof_1.ts index c46e0d84cd..5177a2a294 100644 --- a/ets2panda/test/ast/compiler/ts/instanceof_1.ts +++ b/ets2panda/test/ast/compiler/ts/instanceof_1.ts @@ -18,4 +18,5 @@ var a: string; var b: any; /* @@ label */a instanceof b; -/* @@@ label Error TypeError: The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter. */ + +/* @@@ label Error Semantic error ESE0000: The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/instanceof_10.ts b/ets2panda/test/ast/compiler/ts/instanceof_10.ts index 6ca860b73e..be7ad8d4d9 100644 --- a/ets2panda/test/ast/compiler/ts/instanceof_10.ts +++ b/ets2panda/test/ast/compiler/ts/instanceof_10.ts @@ -18,4 +18,5 @@ var a: any; var b: string; a instanceof /* @@ label */b; -/* @@@ label Error TypeError: The right-hand side of an 'instanceof' expression must be of type 'any' or of a type assignable to the 'Function' interface type. */ + +/* @@@ label Error Semantic error ESE0000: The right-hand side of an 'instanceof' expression must be of type 'any' or of a type assignable to the 'Function' interface type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/instanceof_11.ts b/ets2panda/test/ast/compiler/ts/instanceof_11.ts index c43d215afb..a656d4854b 100644 --- a/ets2panda/test/ast/compiler/ts/instanceof_11.ts +++ b/ets2panda/test/ast/compiler/ts/instanceof_11.ts @@ -18,4 +18,5 @@ var a: any; var b: number; a instanceof /* @@ label */b; -/* @@@ label Error TypeError: The right-hand side of an 'instanceof' expression must be of type 'any' or of a type assignable to the 'Function' interface type. */ + +/* @@@ label Error Semantic error ESE0000: The right-hand side of an 'instanceof' expression must be of type 'any' or of a type assignable to the 'Function' interface type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/instanceof_12.ts b/ets2panda/test/ast/compiler/ts/instanceof_12.ts index e3bd9a3b14..d3a45a766d 100644 --- a/ets2panda/test/ast/compiler/ts/instanceof_12.ts +++ b/ets2panda/test/ast/compiler/ts/instanceof_12.ts @@ -18,4 +18,5 @@ var a: any; var b: bigint; a instanceof /* @@ label */b; -/* @@@ label Error TypeError: The right-hand side of an 'instanceof' expression must be of type 'any' or of a type assignable to the 'Function' interface type. */ + +/* @@@ label Error Semantic error ESE0000: The right-hand side of an 'instanceof' expression must be of type 'any' or of a type assignable to the 'Function' interface type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/instanceof_13.ts b/ets2panda/test/ast/compiler/ts/instanceof_13.ts index 3e53a6fe80..9760d4a713 100644 --- a/ets2panda/test/ast/compiler/ts/instanceof_13.ts +++ b/ets2panda/test/ast/compiler/ts/instanceof_13.ts @@ -18,4 +18,5 @@ var a: any; var b: boolean; a instanceof /* @@ label */b; -/* @@@ label Error TypeError: The right-hand side of an 'instanceof' expression must be of type 'any' or of a type assignable to the 'Function' interface type. */ + +/* @@@ label Error Semantic error ESE0000: The right-hand side of an 'instanceof' expression must be of type 'any' or of a type assignable to the 'Function' interface type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/instanceof_14.ts b/ets2panda/test/ast/compiler/ts/instanceof_14.ts index fc376f5cbc..0ade292596 100644 --- a/ets2panda/test/ast/compiler/ts/instanceof_14.ts +++ b/ets2panda/test/ast/compiler/ts/instanceof_14.ts @@ -18,4 +18,5 @@ var a: any; var b: (string|number|bigint|boolean); a instanceof /* @@ label */b; -/* @@@ label Error TypeError: The right-hand side of an 'instanceof' expression must be of type 'any' or of a type assignable to the 'Function' interface type. */ + +/* @@@ label Error Semantic error ESE0000: The right-hand side of an 'instanceof' expression must be of type 'any' or of a type assignable to the 'Function' interface type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/instanceof_2.ts b/ets2panda/test/ast/compiler/ts/instanceof_2.ts index 7ded04e5f3..b2d40f37ab 100644 --- a/ets2panda/test/ast/compiler/ts/instanceof_2.ts +++ b/ets2panda/test/ast/compiler/ts/instanceof_2.ts @@ -19,4 +19,5 @@ a = "foo"; var b: any; /* @@ label */a instanceof b; -/* @@@ label Error TypeError: The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter. */ + +/* @@@ label Error Semantic error ESE0000: The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/instanceof_3.ts b/ets2panda/test/ast/compiler/ts/instanceof_3.ts index 7fc54d01fa..e6c3e8bc90 100644 --- a/ets2panda/test/ast/compiler/ts/instanceof_3.ts +++ b/ets2panda/test/ast/compiler/ts/instanceof_3.ts @@ -18,4 +18,5 @@ var a: number; var b: any; /* @@ label */a instanceof b; -/* @@@ label Error TypeError: The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter. */ + +/* @@@ label Error Semantic error ESE0000: The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/instanceof_4.ts b/ets2panda/test/ast/compiler/ts/instanceof_4.ts index 1bce045f7e..58f318937d 100644 --- a/ets2panda/test/ast/compiler/ts/instanceof_4.ts +++ b/ets2panda/test/ast/compiler/ts/instanceof_4.ts @@ -19,4 +19,5 @@ a = 5; var b: any; /* @@ label */a instanceof b; -/* @@@ label Error TypeError: The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter. */ + +/* @@@ label Error Semantic error ESE0000: The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/instanceof_5.ts b/ets2panda/test/ast/compiler/ts/instanceof_5.ts index d4bfafc583..6874037f23 100644 --- a/ets2panda/test/ast/compiler/ts/instanceof_5.ts +++ b/ets2panda/test/ast/compiler/ts/instanceof_5.ts @@ -18,4 +18,5 @@ var a: bigint; var b: any; /* @@ label */a instanceof b; -/* @@@ label Error TypeError: The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter. */ + +/* @@@ label Error Semantic error ESE0000: The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/instanceof_6.ts b/ets2panda/test/ast/compiler/ts/instanceof_6.ts index 9d06062aa1..d69e6c8262 100644 --- a/ets2panda/test/ast/compiler/ts/instanceof_6.ts +++ b/ets2panda/test/ast/compiler/ts/instanceof_6.ts @@ -19,4 +19,5 @@ a = 5n; var b: any; /* @@ label */a instanceof b; -/* @@@ label Error TypeError: The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter. */ + +/* @@@ label Error Semantic error ESE0000: The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/instanceof_7.ts b/ets2panda/test/ast/compiler/ts/instanceof_7.ts index e812fc52a3..e1d9aabdbe 100644 --- a/ets2panda/test/ast/compiler/ts/instanceof_7.ts +++ b/ets2panda/test/ast/compiler/ts/instanceof_7.ts @@ -18,4 +18,5 @@ var a: boolean; var b: any; /* @@ label */a instanceof b; -/* @@@ label Error TypeError: The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter. */ + +/* @@@ label Error Semantic error ESE0000: The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/instanceof_8.ts b/ets2panda/test/ast/compiler/ts/instanceof_8.ts index da918b1aa1..21db952bcf 100644 --- a/ets2panda/test/ast/compiler/ts/instanceof_8.ts +++ b/ets2panda/test/ast/compiler/ts/instanceof_8.ts @@ -19,4 +19,5 @@ a = false; var b: any; /* @@ label */a instanceof b; -/* @@@ label Error TypeError: The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter. */ + +/* @@@ label Error Semantic error ESE0000: The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/instanceof_9.ts b/ets2panda/test/ast/compiler/ts/instanceof_9.ts index dabe86c77a..733abb43cb 100644 --- a/ets2panda/test/ast/compiler/ts/instanceof_9.ts +++ b/ets2panda/test/ast/compiler/ts/instanceof_9.ts @@ -18,4 +18,5 @@ var a: (string|number|bigint|boolean); var b: any; /* @@ label */a instanceof b; -/* @@@ label Error TypeError: The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter. */ + +/* @@@ label Error Semantic error ESE0000: The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/interfaceAssignment1.ts b/ets2panda/test/ast/compiler/ts/interfaceAssignment1.ts index 61def49250..96870f476a 100644 --- a/ets2panda/test/ast/compiler/ts/interfaceAssignment1.ts +++ b/ets2panda/test/ast/compiler/ts/interfaceAssignment1.ts @@ -24,4 +24,5 @@ interface A { b: string; } -/* @@@ label Error TypeError: Type '{ a: 5; }' is not assignable to type 'A'. */ + +/* @@@ label Error Semantic error ESE0000: Type '{ a: 5; }' is not assignable to type 'A'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/interfaceAssignment2.ts b/ets2panda/test/ast/compiler/ts/interfaceAssignment2.ts index 5c3c7f0aa9..f12ee251b9 100644 --- a/ets2panda/test/ast/compiler/ts/interfaceAssignment2.ts +++ b/ets2panda/test/ast/compiler/ts/interfaceAssignment2.ts @@ -28,4 +28,5 @@ var a: A; var b: B; /* @@ label */a = b; -/* @@@ label Error TypeError: Type 'B' is not assignable to type 'A'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'B' is not assignable to type 'A'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/interfaceAssignment3.ts b/ets2panda/test/ast/compiler/ts/interfaceAssignment3.ts index 5233066ecc..8186ab2ac8 100644 --- a/ets2panda/test/ast/compiler/ts/interfaceAssignment3.ts +++ b/ets2panda/test/ast/compiler/ts/interfaceAssignment3.ts @@ -36,4 +36,5 @@ var a: A; a = d; /* @@ label */d = a; -/* @@@ label Error TypeError: Type 'A' is not assignable to type 'D'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'A' is not assignable to type 'D'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/interfaceAssignment4.ts b/ets2panda/test/ast/compiler/ts/interfaceAssignment4.ts index 2f1c49d495..f22d6a0c61 100644 --- a/ets2panda/test/ast/compiler/ts/interfaceAssignment4.ts +++ b/ets2panda/test/ast/compiler/ts/interfaceAssignment4.ts @@ -20,4 +20,5 @@ interface A { } var a: A = { a: 1, b: [true, "foo", /* @@ label */2] }; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'boolean | string'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'boolean | string'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/interfaceAssignment5.ts b/ets2panda/test/ast/compiler/ts/interfaceAssignment5.ts index a574145848..dc398a6a44 100644 --- a/ets2panda/test/ast/compiler/ts/interfaceAssignment5.ts +++ b/ets2panda/test/ast/compiler/ts/interfaceAssignment5.ts @@ -27,4 +27,5 @@ interface C extends B, A, B { } var /* @@ label */c: C = { a: 2, c: "foo" }; -/* @@@ label Error TypeError: Type '{ a: 2; c: "foo"; }' is not assignable to type 'C'. */ + +/* @@@ label Error Semantic error ESE0000: Type '{ a: 2; c: "foo"; }' is not assignable to type 'C'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/interfaceAssignment6.ts b/ets2panda/test/ast/compiler/ts/interfaceAssignment6.ts index a5a6ab3c6b..72b14dce39 100644 --- a/ets2panda/test/ast/compiler/ts/interfaceAssignment6.ts +++ b/ets2panda/test/ast/compiler/ts/interfaceAssignment6.ts @@ -21,4 +21,5 @@ interface A { var a: A = { /* @@ label */5: "foo" }; -/* @@@ label Error TypeError: Type 'string' is not assignable to type 'number'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'string' is not assignable to type 'number'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/interfaceAssignment7.ts b/ets2panda/test/ast/compiler/ts/interfaceAssignment7.ts index 4074efbc89..e741951d60 100644 --- a/ets2panda/test/ast/compiler/ts/interfaceAssignment7.ts +++ b/ets2panda/test/ast/compiler/ts/interfaceAssignment7.ts @@ -21,4 +21,5 @@ interface A { } var /* @@ label */a: A = { a: 5, b: "foo" }; -/* @@@ label Error TypeError: Type '{ a: 5; b: "foo"; }' is not assignable to type 'A'. */ + +/* @@@ label Error Semantic error ESE0000: Type '{ a: 5; b: "foo"; }' is not assignable to type 'A'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/interfaceAssignment8.ts b/ets2panda/test/ast/compiler/ts/interfaceAssignment8.ts index d7f49cc71b..19b3eabadd 100644 --- a/ets2panda/test/ast/compiler/ts/interfaceAssignment8.ts +++ b/ets2panda/test/ast/compiler/ts/interfaceAssignment8.ts @@ -26,4 +26,5 @@ var a: A; var b: B; /* @@ label */a = b; -/* @@@ label Error TypeError: Type 'B' is not assignable to type 'A'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'B' is not assignable to type 'A'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/interfaceInheritance1.ts b/ets2panda/test/ast/compiler/ts/interfaceInheritance1.ts index 53075fd0bf..13d67781f5 100644 --- a/ets2panda/test/ast/compiler/ts/interfaceInheritance1.ts +++ b/ets2panda/test/ast/compiler/ts/interfaceInheritance1.ts @@ -25,4 +25,5 @@ interface B extends A { interface C extends B { } -/* @@@ label Error TypeError: Type A recursively references itself as a base type. */ + +/* @@@ label Error Semantic error ESE0312: Type A recursively references itself as a base type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/interfaceInheritance2.ts b/ets2panda/test/ast/compiler/ts/interfaceInheritance2.ts index fbf5cf39c7..7228f2e65e 100644 --- a/ets2panda/test/ast/compiler/ts/interfaceInheritance2.ts +++ b/ets2panda/test/ast/compiler/ts/interfaceInheritance2.ts @@ -21,4 +21,5 @@ interface A { interface /* @@ label */B extends A { a: string; } -/* @@@ label Error TypeError: Interface 'B' incorrectly extends interface 'A' */ + +/* @@@ label Error Semantic error ESE0320: Interface 'B' incorrectly extends interface 'A' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/interfaceInheritance3.ts b/ets2panda/test/ast/compiler/ts/interfaceInheritance3.ts index 8be14c0002..2157e144d6 100644 --- a/ets2panda/test/ast/compiler/ts/interfaceInheritance3.ts +++ b/ets2panda/test/ast/compiler/ts/interfaceInheritance3.ts @@ -21,4 +21,5 @@ interface A { interface B extends A { /* @@ label */5: boolean; } -/* @@@ label Error TypeError: Property '5' of type 'boolean' is not assignable to numeric index type 'number'. */ + +/* @@@ label Error Semantic error ESE0324: Property '5' of type 'boolean' is not assignable to numeric index type 'number'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/interfaceInheritance4.ts b/ets2panda/test/ast/compiler/ts/interfaceInheritance4.ts index 2b47dd814e..a370f5eca2 100644 --- a/ets2panda/test/ast/compiler/ts/interfaceInheritance4.ts +++ b/ets2panda/test/ast/compiler/ts/interfaceInheritance4.ts @@ -25,4 +25,5 @@ interface B { } interface /* @@ label */C extends A, B { } -/* @@@ label Error TypeError: Interface 'C' incorrectly extends interface 'B' */ + +/* @@@ label Error Semantic error ESE0320: Interface 'C' incorrectly extends interface 'B' */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/interfacePropertyReferenceContainingInterface1.ts b/ets2panda/test/ast/compiler/ts/interfacePropertyReferenceContainingInterface1.ts index cf2c2eee10..3cbe62fe6b 100644 --- a/ets2panda/test/ast/compiler/ts/interfacePropertyReferenceContainingInterface1.ts +++ b/ets2panda/test/ast/compiler/ts/interfacePropertyReferenceContainingInterface1.ts @@ -27,4 +27,5 @@ var foo: B; foo.a.b.b.a.c./* @@ label */r -/* @@@ label Error TypeError: Property r does not exist on this type. */ + +/* @@@ label Error Semantic error ESE0000: Property r does not exist on this type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/interfacePropertyWithIncompatibleIndexInfo.ts b/ets2panda/test/ast/compiler/ts/interfacePropertyWithIncompatibleIndexInfo.ts index e66a8cfbcf..142a1da24b 100644 --- a/ets2panda/test/ast/compiler/ts/interfacePropertyWithIncompatibleIndexInfo.ts +++ b/ets2panda/test/ast/compiler/ts/interfacePropertyWithIncompatibleIndexInfo.ts @@ -18,4 +18,5 @@ interface A { [x: string]: boolean, /* @@ label */a: string; } -/* @@@ label Error TypeError: Property 'a' of type 'string' is not assignable to string index type 'boolean'. */ + +/* @@@ label Error Semantic error ESE0327: Property 'a' of type 'string' is not assignable to string index type 'boolean'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/interfaceUsedAsValue.ts b/ets2panda/test/ast/compiler/ts/interfaceUsedAsValue.ts index 9a2ea92c82..dc42c67bba 100644 --- a/ets2panda/test/ast/compiler/ts/interfaceUsedAsValue.ts +++ b/ets2panda/test/ast/compiler/ts/interfaceUsedAsValue.ts @@ -23,4 +23,5 @@ interface a { var b = /* @@ label */a; -/* @@@ label Error TypeError: a only refers to a type, but is being used as a value here. */ + +/* @@@ label Error Semantic error ESE0000: a only refers to a type, but is being used as a value here. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/interfaceWithNonCompatibleIndexInfos.ts b/ets2panda/test/ast/compiler/ts/interfaceWithNonCompatibleIndexInfos.ts index e8fa920161..3bdd1bb310 100644 --- a/ets2panda/test/ast/compiler/ts/interfaceWithNonCompatibleIndexInfos.ts +++ b/ets2panda/test/ast/compiler/ts/interfaceWithNonCompatibleIndexInfos.ts @@ -19,4 +19,5 @@ interface A { [x: string]: number, } -/* @@@ label Error TypeError: Number index info type string is not assignable to string index info type number. */ + +/* @@@ label Error Semantic error ESE0000: Number index info type string is not assignable to string index info type number. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/letUsedBeforeDeclaration.ts b/ets2panda/test/ast/compiler/ts/letUsedBeforeDeclaration.ts index e1f8a1835f..0ca4d37828 100644 --- a/ets2panda/test/ast/compiler/ts/letUsedBeforeDeclaration.ts +++ b/ets2panda/test/ast/compiler/ts/letUsedBeforeDeclaration.ts @@ -17,4 +17,5 @@ a = 2; let /* @@ label */a: number; -/* @@@ label Error TypeError: Block-scoped variable 'a' used before its declaration */ + +/* @@@ label Error Semantic error ESE0000: Block-scoped variable 'a' used before its declaration */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/memberExpTest_1.ts b/ets2panda/test/ast/compiler/ts/memberExpTest_1.ts index f2236407f2..65d4c32c8f 100644 --- a/ets2panda/test/ast/compiler/ts/memberExpTest_1.ts +++ b/ets2panda/test/ast/compiler/ts/memberExpTest_1.ts @@ -21,4 +21,5 @@ var b: a; b.foo = 2; b.bar = "bar"; b./* @@ label */foobar = 2; -/* @@@ label Error TypeError: Property foobar does not exist on this type. */ + +/* @@@ label Error Semantic error ESE0000: Property foobar does not exist on this type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/memberExpTest_2.ts b/ets2panda/test/ast/compiler/ts/memberExpTest_2.ts index eb8546f51e..ce91990b3a 100644 --- a/ets2panda/test/ast/compiler/ts/memberExpTest_2.ts +++ b/ets2panda/test/ast/compiler/ts/memberExpTest_2.ts @@ -26,4 +26,5 @@ var c: b; var d: a; c.foobar = d; c.foobar./* @@ label */foobar = b; -/* @@@ label Error TypeError: Property foobar does not exist on this type. */ + +/* @@@ label Error Semantic error ESE0000: Property foobar does not exist on this type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/memberExpTest_3.ts b/ets2panda/test/ast/compiler/ts/memberExpTest_3.ts index 64e8caf0b6..7c40ec9c17 100644 --- a/ets2panda/test/ast/compiler/ts/memberExpTest_3.ts +++ b/ets2panda/test/ast/compiler/ts/memberExpTest_3.ts @@ -25,4 +25,5 @@ interface c { } var a5: c; /* @@ label */a5.bar.foo[0].a.bar = false; -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'string | number'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'string | number'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/memberExpTest_4.ts b/ets2panda/test/ast/compiler/ts/memberExpTest_4.ts index 8ddbc99240..9d02c56260 100644 --- a/ets2panda/test/ast/compiler/ts/memberExpTest_4.ts +++ b/ets2panda/test/ast/compiler/ts/memberExpTest_4.ts @@ -25,4 +25,5 @@ interface b extends a { var c: b; /* @@ label */c.a = "foo"; -/* @@@ label Error TypeError: Type 'string' is not assignable to type 'number'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'string' is not assignable to type 'number'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/memberExpTest_5.ts b/ets2panda/test/ast/compiler/ts/memberExpTest_5.ts index d0ff77a08c..ee5f161c80 100644 --- a/ets2panda/test/ast/compiler/ts/memberExpTest_5.ts +++ b/ets2panda/test/ast/compiler/ts/memberExpTest_5.ts @@ -25,4 +25,5 @@ interface b extends a { var c: b; /* @@ label */c.d = "foo"; -/* @@@ label Error TypeError: Type 'string' is not assignable to type 'number'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'string' is not assignable to type 'number'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/memberExpTest_6.ts b/ets2panda/test/ast/compiler/ts/memberExpTest_6.ts index b664a3e76f..5d4bba338b 100644 --- a/ets2panda/test/ast/compiler/ts/memberExpTest_6.ts +++ b/ets2panda/test/ast/compiler/ts/memberExpTest_6.ts @@ -27,4 +27,5 @@ var a: A | B; a.a; a.b; a./* @@ label */d; -/* @@@ label Error TypeError: Property d does not exist on this type. */ + +/* @@@ label Error Semantic error ESE0000: Property d does not exist on this type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_1.ts b/ets2panda/test/ast/compiler/ts/member_expression_1.ts index 31df7d9154..dc9c3ca0cf 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_1.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_1.ts @@ -18,4 +18,5 @@ var a = {foo : {bar : {baz : 5}}}; var b: string; /* @@ label */b = a.foo.bar.baz; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_10.ts b/ets2panda/test/ast/compiler/ts/member_expression_10.ts index 3c607912f9..aceb3fa180 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_10.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_10.ts @@ -18,4 +18,5 @@ var a = {foo : {bar : {baz : 5}}}; var b: string; /* @@ label */b = a?.foo.bar.baz; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_11.ts b/ets2panda/test/ast/compiler/ts/member_expression_11.ts index ed5e4e49bc..6ffbd72567 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_11.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_11.ts @@ -18,4 +18,5 @@ var a = {foo : {bar : {baz : 5}}}; var b: string; /* @@ label */b = a?.foo.bar['baz']; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_12.ts b/ets2panda/test/ast/compiler/ts/member_expression_12.ts index 01571e817a..4e8ad51686 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_12.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_12.ts @@ -18,4 +18,5 @@ var a = {foo : {bar : {baz : 5}}}; var b: string; /* @@ label */b = a?.foo?.bar?.baz; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_13.ts b/ets2panda/test/ast/compiler/ts/member_expression_13.ts index 4afe3c085b..f3d6d80c09 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_13.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_13.ts @@ -18,4 +18,5 @@ var a = {foo : {bar : {baz : 5}}}; var b: string; /* @@ label */b = a?.foo?.bar?.['baz']; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_14.ts b/ets2panda/test/ast/compiler/ts/member_expression_14.ts index 26b7835a51..b524f6a389 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_14.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_14.ts @@ -18,4 +18,5 @@ var a = {foo : {bar : {baz : 5}}}; var b: bigint; /* @@ label */b = a?.foo.bar.baz; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_15.ts b/ets2panda/test/ast/compiler/ts/member_expression_15.ts index 7771566050..71e91a9784 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_15.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_15.ts @@ -18,4 +18,5 @@ var a = {foo : {bar : {baz : 5}}}; var b: bigint; /* @@ label */b = a?.foo.bar['baz']; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_16.ts b/ets2panda/test/ast/compiler/ts/member_expression_16.ts index 18950f9947..8bdd85bc82 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_16.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_16.ts @@ -18,4 +18,5 @@ var a = {foo : {bar : {baz : 5}}}; var b: bigint; /* @@ label */b = a?.foo?.bar?.baz; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_17.ts b/ets2panda/test/ast/compiler/ts/member_expression_17.ts index 6c839eeeca..6b4b73e45f 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_17.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_17.ts @@ -18,4 +18,5 @@ var a = {foo : {bar : {baz : 5}}}; var b: bigint; /* @@ label */b = a?.foo?.bar?.['baz']; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_18.ts b/ets2panda/test/ast/compiler/ts/member_expression_18.ts index 72b38476ba..83498b22ce 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_18.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_18.ts @@ -18,4 +18,5 @@ var a = {foo : {bar : {baz : 5}}}; var b: boolean; /* @@ label */b = a?.foo.bar.baz; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'boolean'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'boolean'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_19.ts b/ets2panda/test/ast/compiler/ts/member_expression_19.ts index 13a98566eb..b51733e232 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_19.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_19.ts @@ -18,4 +18,5 @@ var a = {foo : {bar : {baz : 5}}}; var b: boolean; /* @@ label */b = a?.foo.bar['baz']; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'boolean'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'boolean'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_2.ts b/ets2panda/test/ast/compiler/ts/member_expression_2.ts index 767ef0daf1..487863795f 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_2.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_2.ts @@ -18,4 +18,5 @@ var a = {foo : {bar : {baz : 5}}}; var b: string; /* @@ label */b = a.foo.bar['baz']; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_20.ts b/ets2panda/test/ast/compiler/ts/member_expression_20.ts index da6e0b15cf..eb859c3ea8 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_20.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_20.ts @@ -18,4 +18,5 @@ var a = {foo : {bar : {baz : 5}}}; var b: boolean; /* @@ label */b = a?.foo?.bar?.baz; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'boolean'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'boolean'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_21.ts b/ets2panda/test/ast/compiler/ts/member_expression_21.ts index f605fe3ff0..b426a98e13 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_21.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_21.ts @@ -18,4 +18,5 @@ var a = {foo : {bar : {baz : 5}}}; var b: boolean; /* @@ label */b = a?.foo?.bar?.['baz']; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'boolean'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'boolean'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_22.ts b/ets2panda/test/ast/compiler/ts/member_expression_22.ts index 4453ba225d..d30f812cd6 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_22.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_22.ts @@ -18,4 +18,5 @@ var a = {foo : {bar : {baz : 5}}}; var b: string; /* @@ label */b = a.foo?.bar.baz; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_23.ts b/ets2panda/test/ast/compiler/ts/member_expression_23.ts index 1e7714faf7..08fef4f6b3 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_23.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_23.ts @@ -18,4 +18,5 @@ var a = {foo : {bar : {baz : 5}}}; var b: string; /* @@ label */b = a.foo?.bar['baz']; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_24.ts b/ets2panda/test/ast/compiler/ts/member_expression_24.ts index 8a00ebfcf1..7310349e84 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_24.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_24.ts @@ -18,4 +18,5 @@ var a = {foo : {bar : {baz : 5}}}; var b: string; /* @@ label */b = a.foo?.bar?.baz; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_25.ts b/ets2panda/test/ast/compiler/ts/member_expression_25.ts index 1d4714c580..fea96fbb61 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_25.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_25.ts @@ -18,4 +18,5 @@ var a = {foo : {bar : {baz : 5}}}; var b: string; /* @@ label */b = a.foo?.bar?.['baz']; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_26.ts b/ets2panda/test/ast/compiler/ts/member_expression_26.ts index 4a0470b979..cbaff4d5e1 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_26.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_26.ts @@ -18,4 +18,5 @@ var a = {foo : {bar : {baz : 5}}}; var b: bigint; /* @@ label */b = a.foo?.bar.baz; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_27.ts b/ets2panda/test/ast/compiler/ts/member_expression_27.ts index e24b7ea266..91220b244d 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_27.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_27.ts @@ -18,4 +18,5 @@ var a = {foo : {bar : {baz : 5}}}; var b: bigint; /* @@ label */b = a.foo?.bar['baz']; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_28.ts b/ets2panda/test/ast/compiler/ts/member_expression_28.ts index 7a695a09c8..99f5226895 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_28.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_28.ts @@ -18,4 +18,5 @@ var a = {foo : {bar : {baz : 5}}}; var b: bigint; /* @@ label */b = a.foo?.bar?.baz; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_29.ts b/ets2panda/test/ast/compiler/ts/member_expression_29.ts index 10844536af..42a361b85e 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_29.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_29.ts @@ -18,4 +18,5 @@ var a = {foo : {bar : {baz : 5}}}; var b: bigint; /* @@ label */b = a.foo?.bar?.['baz']; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_3.ts b/ets2panda/test/ast/compiler/ts/member_expression_3.ts index 189539ddb8..d2430ad25e 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_3.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_3.ts @@ -18,4 +18,5 @@ var a = {foo : {bar : {baz : 5}}}; var b: bigint; /* @@ label */b = a.foo.bar.baz; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_30.ts b/ets2panda/test/ast/compiler/ts/member_expression_30.ts index 2d7a034c73..6ad3cee76c 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_30.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_30.ts @@ -18,4 +18,5 @@ var a = {foo : {bar : {baz : 5}}}; var b: boolean; /* @@ label */b = a.foo?.bar.baz; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'boolean'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'boolean'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_31.ts b/ets2panda/test/ast/compiler/ts/member_expression_31.ts index 1752550102..76c951cb7f 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_31.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_31.ts @@ -18,4 +18,5 @@ var a = {foo : {bar : {baz : 5}}}; var b: boolean; /* @@ label */b = a.foo?.bar['baz']; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'boolean'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'boolean'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_32.ts b/ets2panda/test/ast/compiler/ts/member_expression_32.ts index 977e4eee96..ae25fe35bc 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_32.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_32.ts @@ -18,4 +18,5 @@ var a = {foo : {bar : {baz : 5}}}; var b: boolean; /* @@ label */b = a.foo?.bar?.baz; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'boolean'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'boolean'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_33.ts b/ets2panda/test/ast/compiler/ts/member_expression_33.ts index a210392c25..9fb9631523 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_33.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_33.ts @@ -18,4 +18,5 @@ var a = {foo : {bar : {baz : 5}}}; var b: boolean; /* @@ label */b = a.foo?.bar?.['baz']; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'boolean'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'boolean'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_34.ts b/ets2panda/test/ast/compiler/ts/member_expression_34.ts index e0637a8a9f..47a66543b6 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_34.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_34.ts @@ -18,4 +18,5 @@ var a = {foo : {bar : {baz : 5}}}; var b: string; /* @@ label */b = a.foo.bar?.baz; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_35.ts b/ets2panda/test/ast/compiler/ts/member_expression_35.ts index bb8f3f26ed..d802172b62 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_35.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_35.ts @@ -18,4 +18,5 @@ var a = {foo : {bar : {baz : 5}}}; var b: string; /* @@ label */b = a.foo.bar?.['baz']; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_36.ts b/ets2panda/test/ast/compiler/ts/member_expression_36.ts index f49961d71e..730677a947 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_36.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_36.ts @@ -18,4 +18,5 @@ var a = {foo : {bar : {baz : 5}}}; var b: string; /* @@ label */b = a?.foo?.bar.baz; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_37.ts b/ets2panda/test/ast/compiler/ts/member_expression_37.ts index c602fe6520..36a3c11df1 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_37.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_37.ts @@ -18,4 +18,5 @@ var a = {foo : {bar : {baz : 5}}}; var b: string; /* @@ label */b = a?.foo?.bar['baz']; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_38.ts b/ets2panda/test/ast/compiler/ts/member_expression_38.ts index 3d286bebaa..7b47a58016 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_38.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_38.ts @@ -18,4 +18,5 @@ var a = {foo : {bar : {baz : 5}}}; var b: bigint; /* @@ label */b = a.foo.bar?.baz; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_39.ts b/ets2panda/test/ast/compiler/ts/member_expression_39.ts index 1e441b69b4..af8d51388d 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_39.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_39.ts @@ -18,4 +18,5 @@ var a = {foo : {bar : {baz : 5}}}; var b: bigint; /* @@ label */b = a.foo.bar?.['baz']; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_4.ts b/ets2panda/test/ast/compiler/ts/member_expression_4.ts index cba45ea627..f070381790 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_4.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_4.ts @@ -18,4 +18,5 @@ var a = {foo : {bar : {baz : 5}}}; var b: bigint; /* @@ label */b = a.foo.bar['baz']; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_40.ts b/ets2panda/test/ast/compiler/ts/member_expression_40.ts index dd225472e0..594f72ce2d 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_40.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_40.ts @@ -18,4 +18,5 @@ var a = {foo : {bar : {baz : 5}}}; var b: bigint; /* @@ label */b = a?.foo?.bar.baz; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_41.ts b/ets2panda/test/ast/compiler/ts/member_expression_41.ts index cf0cef8ce7..b221bcd658 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_41.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_41.ts @@ -18,4 +18,5 @@ var a = {foo : {bar : {baz : 5}}}; var b: bigint; /* @@ label */b = a?.foo?.bar['baz']; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_42.ts b/ets2panda/test/ast/compiler/ts/member_expression_42.ts index a0f22260c6..9b77096f56 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_42.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_42.ts @@ -18,4 +18,5 @@ var a = {foo : {bar : {baz : 5}}}; var b: boolean; /* @@ label */b = a.foo.bar?.baz; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'boolean'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'boolean'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_43.ts b/ets2panda/test/ast/compiler/ts/member_expression_43.ts index e9a3b0477b..bccf684278 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_43.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_43.ts @@ -18,4 +18,5 @@ var a = {foo : {bar : {baz : 5}}}; var b: boolean; /* @@ label */b = a.foo.bar?.['baz']; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'boolean'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'boolean'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_44.ts b/ets2panda/test/ast/compiler/ts/member_expression_44.ts index 366ae5551e..5f2b473317 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_44.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_44.ts @@ -18,4 +18,5 @@ var a = {foo : {bar : {baz : 5}}}; var b: boolean; /* @@ label */b = a?.foo?.bar.baz; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'boolean'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'boolean'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_45.ts b/ets2panda/test/ast/compiler/ts/member_expression_45.ts index f475269e2d..364242171d 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_45.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_45.ts @@ -18,4 +18,5 @@ var a = {foo : {bar : {baz : 5}}}; var b: boolean; /* @@ label */b = a?.foo?.bar['baz']; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'boolean'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'boolean'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_46.ts b/ets2panda/test/ast/compiler/ts/member_expression_46.ts index ef9a49b20c..0862788f23 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_46.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_46.ts @@ -18,4 +18,5 @@ var a = [0, 1, 2, 3, 4]; var b: string; /* @@ label */b = a[0]; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_47.ts b/ets2panda/test/ast/compiler/ts/member_expression_47.ts index 738f891a07..ae88fa8bba 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_47.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_47.ts @@ -18,4 +18,5 @@ var a = [0, 1, 2, 3, 4]; var b: string; /* @@ label */b = a?.[0]; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_48.ts b/ets2panda/test/ast/compiler/ts/member_expression_48.ts index 374745bfb9..e7c7f16ad3 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_48.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_48.ts @@ -18,4 +18,5 @@ var a = [0, 1, 2, 3, 4]; var b: string; /* @@ label */b = a[5]; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_49.ts b/ets2panda/test/ast/compiler/ts/member_expression_49.ts index 38ffda3e7c..a74d16e9f3 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_49.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_49.ts @@ -18,4 +18,5 @@ var a = [0, 1, 2, 3, 4]; var b: string; /* @@ label */b = a?.[5]; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_5.ts b/ets2panda/test/ast/compiler/ts/member_expression_5.ts index 1b1abe48d8..9257668986 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_5.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_5.ts @@ -18,4 +18,5 @@ var a = {foo : {bar : {baz : 5}}}; var b: boolean; /* @@ label */b = a.foo.bar.baz; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'boolean'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'boolean'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_50.ts b/ets2panda/test/ast/compiler/ts/member_expression_50.ts index e7c3135321..75383e2132 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_50.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_50.ts @@ -19,4 +19,5 @@ var b: string; var c: number; /* @@ label */b = a[c = 5]; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_51.ts b/ets2panda/test/ast/compiler/ts/member_expression_51.ts index cea2f24855..f9c29389c1 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_51.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_51.ts @@ -19,4 +19,5 @@ var b: string; var c: number; /* @@ label */b = a?.[c = 5]; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_52.ts b/ets2panda/test/ast/compiler/ts/member_expression_52.ts index 7439c0be46..c10b0dea3a 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_52.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_52.ts @@ -19,4 +19,5 @@ var b: number; var c: string; b = a[/* @@ label */c = 5]; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_53.ts b/ets2panda/test/ast/compiler/ts/member_expression_53.ts index 8474d1ab3b..2dc5d64bd3 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_53.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_53.ts @@ -19,4 +19,5 @@ var b: number; var c: string; b = a?.[/* @@ label */c = 5]; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_54.ts b/ets2panda/test/ast/compiler/ts/member_expression_54.ts index 4264f075ba..f2f04a25a2 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_54.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_54.ts @@ -18,4 +18,5 @@ var a = [0, 1, 2, 3, 4]; var b: bigint; /* @@ label */b = a[0]; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_55.ts b/ets2panda/test/ast/compiler/ts/member_expression_55.ts index d134a679f0..1510a9a234 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_55.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_55.ts @@ -18,4 +18,5 @@ var a = [0, 1, 2, 3, 4]; var b: bigint; /* @@ label */b = a?.[0]; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_56.ts b/ets2panda/test/ast/compiler/ts/member_expression_56.ts index c2656dad96..ce35c227c0 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_56.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_56.ts @@ -18,4 +18,5 @@ var a = [0, 1, 2, 3, 4]; var b: bigint; /* @@ label */b = a[5]; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_57.ts b/ets2panda/test/ast/compiler/ts/member_expression_57.ts index fc49279647..23dee53390 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_57.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_57.ts @@ -18,4 +18,5 @@ var a = [0, 1, 2, 3, 4]; var b: bigint; /* @@ label */b = a?.[5]; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_58.ts b/ets2panda/test/ast/compiler/ts/member_expression_58.ts index 168b4d4c21..fc1a39e5ff 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_58.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_58.ts @@ -19,4 +19,5 @@ var b: bigint; var c: number; /* @@ label */b = a[c = 5]; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_59.ts b/ets2panda/test/ast/compiler/ts/member_expression_59.ts index 5a70c628cf..5d4259d772 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_59.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_59.ts @@ -19,4 +19,5 @@ var b: bigint; var c: number; /* @@ label */b = a?.[c = 5]; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_6.ts b/ets2panda/test/ast/compiler/ts/member_expression_6.ts index 20d9bf6b0e..7937874068 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_6.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_6.ts @@ -18,4 +18,5 @@ var a = {foo : {bar : {baz : 5}}}; var b: boolean; /* @@ label */b = a.foo.bar['baz']; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'boolean'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'boolean'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_60.ts b/ets2panda/test/ast/compiler/ts/member_expression_60.ts index eb96793a82..34aba061f4 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_60.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_60.ts @@ -19,4 +19,5 @@ var b: number; var c: bigint; b = a[/* @@ label */c = 5]; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_61.ts b/ets2panda/test/ast/compiler/ts/member_expression_61.ts index ef08769f8b..f34dc54316 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_61.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_61.ts @@ -19,4 +19,5 @@ var b: number; var c: bigint; b = a?.[/* @@ label */c = 5]; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_62.ts b/ets2panda/test/ast/compiler/ts/member_expression_62.ts index ba76d90c90..69d80b576e 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_62.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_62.ts @@ -18,4 +18,5 @@ var a = [0, 1, 2, 3, 4]; var b: boolean; /* @@ label */b = a[0]; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'boolean'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'boolean'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_63.ts b/ets2panda/test/ast/compiler/ts/member_expression_63.ts index 855212e0cb..ea072962b4 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_63.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_63.ts @@ -18,4 +18,5 @@ var a = [0, 1, 2, 3, 4]; var b: boolean; /* @@ label */b = a?.[0]; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'boolean'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'boolean'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_64.ts b/ets2panda/test/ast/compiler/ts/member_expression_64.ts index 5c78997ae3..7e70e55281 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_64.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_64.ts @@ -18,4 +18,5 @@ var a = [0, 1, 2, 3, 4]; var b: boolean; /* @@ label */b = a[5]; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'boolean'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'boolean'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_65.ts b/ets2panda/test/ast/compiler/ts/member_expression_65.ts index f73ecefc61..700f3d9707 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_65.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_65.ts @@ -18,4 +18,5 @@ var a = [0, 1, 2, 3, 4]; var b: boolean; /* @@ label */b = a?.[5]; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'boolean'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'boolean'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_66.ts b/ets2panda/test/ast/compiler/ts/member_expression_66.ts index d90b765dc4..a9b081e92f 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_66.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_66.ts @@ -19,4 +19,5 @@ var b: boolean; var c: number; /* @@ label */b = a[c = 5]; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'boolean'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'boolean'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_67.ts b/ets2panda/test/ast/compiler/ts/member_expression_67.ts index 12a42f0d48..795bd2b1d1 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_67.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_67.ts @@ -19,4 +19,5 @@ var b: boolean; var c: number; /* @@ label */b = a?.[c = 5]; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'boolean'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'boolean'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_68.ts b/ets2panda/test/ast/compiler/ts/member_expression_68.ts index 6eda93b2cb..4be56fefa8 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_68.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_68.ts @@ -19,4 +19,5 @@ var b: number; var c: boolean; b = a[/* @@ label */c = 5]; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'boolean'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'boolean'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_69.ts b/ets2panda/test/ast/compiler/ts/member_expression_69.ts index 77158f4137..0e87847f7a 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_69.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_69.ts @@ -19,4 +19,5 @@ var b: number; var c: boolean; b = a?.[/* @@ label */c = 5]; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'boolean'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'boolean'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_7.ts b/ets2panda/test/ast/compiler/ts/member_expression_7.ts index 1c58011a55..d2ee09797b 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_7.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_7.ts @@ -18,4 +18,5 @@ var a = {foo : {bar : {baz : 5}}}; var b: number; b = a.foo.bar./* @@ label */bad; -/* @@@ label Error TypeError: Property bad does not exist on this type. */ + +/* @@@ label Error Semantic error ESE0000: Property bad does not exist on this type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_70.ts b/ets2panda/test/ast/compiler/ts/member_expression_70.ts index 677d3a5f9a..0ebf55d28d 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_70.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_70.ts @@ -17,4 +17,5 @@ var a: {readonly [a:number]:number, [b:string]:number}; /* @@ label */a[5] = 5; -/* @@@ label Error TypeError: Cannot assign to this property because it is readonly. */ + +/* @@@ label Error Semantic error ESE0000: Cannot assign to this property because it is readonly. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_71.ts b/ets2panda/test/ast/compiler/ts/member_expression_71.ts index 749774d7ed..f2cea82974 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_71.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_71.ts @@ -17,4 +17,5 @@ var a: {[a:number]:number, readonly [b:string]:number}; /* @@ label */a["foo"] = 5; -/* @@@ label Error TypeError: Cannot assign to this property because it is readonly. */ + +/* @@@ label Error Semantic error ESE0000: Cannot assign to this property because it is readonly. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_72.ts b/ets2panda/test/ast/compiler/ts/member_expression_72.ts index a9680cc861..1d246789ea 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_72.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_72.ts @@ -20,4 +20,5 @@ interface foo {readonly [a:number]:number, var a: foo; /* @@ label */a[5] = 5; -/* @@@ label Error TypeError: Cannot assign to this property because it is readonly. */ + +/* @@@ label Error Semantic error ESE0000: Cannot assign to this property because it is readonly. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_73.ts b/ets2panda/test/ast/compiler/ts/member_expression_73.ts index 8c7b4e7aea..05cb7feaa4 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_73.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_73.ts @@ -20,4 +20,5 @@ interface foo {[a:number]:number, var a: foo; /* @@ label */a["foo"] = 5; -/* @@@ label Error TypeError: Cannot assign to this property because it is readonly. */ + +/* @@@ label Error Semantic error ESE0000: Cannot assign to this property because it is readonly. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_74.ts b/ets2panda/test/ast/compiler/ts/member_expression_74.ts index 6db696aaac..4210500311 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_74.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_74.ts @@ -17,4 +17,5 @@ var a: {readonly b: {readonly c: number}}; /* @@ label */a.b.c = 5; -/* @@@ label Error TypeError: Cannot assign to this property because it is readonly. */ + +/* @@@ label Error Semantic error ESE0000: Cannot assign to this property because it is readonly. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_75.ts b/ets2panda/test/ast/compiler/ts/member_expression_75.ts index 93d3e784dd..8d33747496 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_75.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_75.ts @@ -21,4 +21,5 @@ interface foo { var a: {readonly b: foo}; /* @@ label */a.b.c = 5; -/* @@@ label Error TypeError: Cannot assign to this property because it is readonly. */ + +/* @@@ label Error Semantic error ESE0000: Cannot assign to this property because it is readonly. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_76.ts b/ets2panda/test/ast/compiler/ts/member_expression_76.ts index 60712db747..6857b6c69f 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_76.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_76.ts @@ -21,4 +21,5 @@ interface foo { var a: {b: foo}; /* @@ label */a.b.c = 5; -/* @@@ label Error TypeError: Cannot assign to this property because it is readonly. */ + +/* @@@ label Error Semantic error ESE0000: Cannot assign to this property because it is readonly. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_77.ts b/ets2panda/test/ast/compiler/ts/member_expression_77.ts index 9c52951c62..58489d5c9d 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_77.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_77.ts @@ -17,4 +17,5 @@ var a: {b: {readonly c: number}}; /* @@ label */a.b.c = 5; -/* @@@ label Error TypeError: Cannot assign to this property because it is readonly. */ + +/* @@@ label Error Semantic error ESE0000: Cannot assign to this property because it is readonly. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_8.ts b/ets2panda/test/ast/compiler/ts/member_expression_8.ts index c20269a97d..c72997cc30 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_8.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_8.ts @@ -18,4 +18,5 @@ var a = {foo : {bar : {baz : 5}}}; var b: number; b = a?.foo?.bar?./* @@ label */bad; -/* @@@ label Error TypeError: Property bad does not exist on this type. */ + +/* @@@ label Error Semantic error ESE0000: Property bad does not exist on this type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_80.ts b/ets2panda/test/ast/compiler/ts/member_expression_80.ts index 855f43112c..7b9a0d5a84 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_80.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_80.ts @@ -17,4 +17,5 @@ var a = {[5 + 4]:3} as const; /* @@ label */a[5] = 3; -/* @@@ label Error TypeError: Cannot assign to this property because it is readonly. */ + +/* @@@ label Error Semantic error ESE0000: Cannot assign to this property because it is readonly. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_81.ts b/ets2panda/test/ast/compiler/ts/member_expression_81.ts index 62fca284be..1958e589a0 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_81.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_81.ts @@ -17,4 +17,5 @@ var a = {["foo"+"bar"]:3} as const; /* @@ label */a.baz = 3; -/* @@@ label Error TypeError: Cannot assign to this property because it is readonly. */ + +/* @@@ label Error Semantic error ESE0000: Cannot assign to this property because it is readonly. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/member_expression_82.ts b/ets2panda/test/ast/compiler/ts/member_expression_82.ts index 3f02e03f04..383dff1a5f 100644 --- a/ets2panda/test/ast/compiler/ts/member_expression_82.ts +++ b/ets2panda/test/ast/compiler/ts/member_expression_82.ts @@ -17,4 +17,5 @@ var a = {["foo"+"bar"]:3} as const; /* @@ label */a["baz"] = 3; -/* @@@ label Error TypeError: Cannot assign to this property because it is readonly. */ + +/* @@@ label Error Semantic error ESE0000: Cannot assign to this property because it is readonly. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_1.ts b/ets2panda/test/ast/compiler/ts/new_expression_1.ts index 8fdba6b7d2..d66be962de 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_1.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_1.ts @@ -17,4 +17,5 @@ var foo: { new(a: string, b: string): any ;}; var a = new foo("foo",/* @@ label */5); -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_10.ts b/ets2panda/test/ast/compiler/ts/new_expression_10.ts index e6a99f150e..2d4f763f74 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_10.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_10.ts @@ -17,4 +17,5 @@ var foo: { new(a: string, b: number): any ;}; var a = new foo(/* @@ label */5,"foo"); -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_100.ts b/ets2panda/test/ast/compiler/ts/new_expression_100.ts index 59c66397c9..a2e18eb96f 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_100.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_100.ts @@ -17,4 +17,5 @@ var foo: new (a: string, b: number) => any; var a = new foo("foo",/* @@ label */"foo"); -/* @@@ label Error TypeError: Type 'string' is not assignable to type 'number'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'string' is not assignable to type 'number'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_101.ts b/ets2panda/test/ast/compiler/ts/new_expression_101.ts index a6bd7c200b..bc621ebaa3 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_101.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_101.ts @@ -17,4 +17,5 @@ var foo: new (a: string, b: number) => any; var a = new foo("foo",/* @@ label */false); -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'number'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'number'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_102.ts b/ets2panda/test/ast/compiler/ts/new_expression_102.ts index a4751a2bf7..0e4457544a 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_102.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_102.ts @@ -17,4 +17,5 @@ var foo: new (a: string, b: number) => any; var a = /* @@ label */new foo("foo"); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ + +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_103.ts b/ets2panda/test/ast/compiler/ts/new_expression_103.ts index ac5190a165..9d01942ca4 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_103.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_103.ts @@ -17,4 +17,5 @@ var foo: new (a: string, b: number) => any; var a = new foo(/* @@ label */5,"foo"); -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_104.ts b/ets2panda/test/ast/compiler/ts/new_expression_104.ts index e6c86f7460..ef422b653d 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_104.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_104.ts @@ -17,4 +17,5 @@ var foo: new (a: string, b: number) => any; var a = /* @@ label */new foo(5); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ + +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_105.ts b/ets2panda/test/ast/compiler/ts/new_expression_105.ts index 28212180a5..c48833e330 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_105.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_105.ts @@ -17,4 +17,5 @@ var foo: new (a: string, b: number) => any; var a = new foo(/* @@ label */false,"foo"); -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'string'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'string'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_106.ts b/ets2panda/test/ast/compiler/ts/new_expression_106.ts index 811aa0d226..fe14d8e0ad 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_106.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_106.ts @@ -17,4 +17,5 @@ var foo: new (a: string, b: number) => any; var a = /* @@ label */new foo(false); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ + +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_107.ts b/ets2panda/test/ast/compiler/ts/new_expression_107.ts index 287073cbf7..cc46652db4 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_107.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_107.ts @@ -17,4 +17,5 @@ var foo: new (a: string, b: boolean) => any; var a = new foo("foo",/* @@ label */"foo"); -/* @@@ label Error TypeError: Type 'string' is not assignable to type 'boolean'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'string' is not assignable to type 'boolean'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_108.ts b/ets2panda/test/ast/compiler/ts/new_expression_108.ts index 1489158256..195e0fa152 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_108.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_108.ts @@ -17,4 +17,5 @@ var foo: new (a: string, b: boolean) => any; var a = new foo("foo",/* @@ label */5); -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'boolean'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'boolean'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_109.ts b/ets2panda/test/ast/compiler/ts/new_expression_109.ts index 016b9cae39..8ac3971487 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_109.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_109.ts @@ -17,4 +17,5 @@ var foo: new (a: string, b: boolean) => any; var a = /* @@ label */new foo("foo"); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ + +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_11.ts b/ets2panda/test/ast/compiler/ts/new_expression_11.ts index 75ba002425..25dfcd1f5a 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_11.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_11.ts @@ -17,4 +17,5 @@ var foo: { new(a: string, b: number): any ;}; var a = /* @@ label */new foo(5); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ + +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_110.ts b/ets2panda/test/ast/compiler/ts/new_expression_110.ts index 0775d070b4..72dcdae85d 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_110.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_110.ts @@ -17,4 +17,5 @@ var foo: new (a: string, b: boolean) => any; var a = new foo(/* @@ label */5,"foo"); -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_111.ts b/ets2panda/test/ast/compiler/ts/new_expression_111.ts index fb44ef22c2..29524a6dd8 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_111.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_111.ts @@ -17,4 +17,5 @@ var foo: new (a: string, b: boolean) => any; var a = /* @@ label */new foo(5); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ + +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_112.ts b/ets2panda/test/ast/compiler/ts/new_expression_112.ts index d9df4bfad2..344ccebdc3 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_112.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_112.ts @@ -17,4 +17,5 @@ var foo: new (a: string, b: boolean) => any; var a = new foo(/* @@ label */false,"foo"); -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'string'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'string'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_113.ts b/ets2panda/test/ast/compiler/ts/new_expression_113.ts index 67b4fecadd..fbba2da1bf 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_113.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_113.ts @@ -17,4 +17,5 @@ var foo: new (a: string, b: boolean) => any; var a = /* @@ label */new foo(false); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ + +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_114.ts b/ets2panda/test/ast/compiler/ts/new_expression_114.ts index 2be16cb1d7..ef46ce446e 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_114.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_114.ts @@ -17,4 +17,5 @@ var foo: new (a: number, b: string) => any; var a = new foo(/* @@ label */"foo","foo"); -/* @@@ label Error TypeError: Type 'string' is not assignable to type 'number'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'string' is not assignable to type 'number'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_115.ts b/ets2panda/test/ast/compiler/ts/new_expression_115.ts index b44c30a26e..69f5870a2e 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_115.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_115.ts @@ -17,4 +17,5 @@ var foo: new (a: number, b: string) => any; var a = /* @@ label */new foo("foo"); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ + +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_116.ts b/ets2panda/test/ast/compiler/ts/new_expression_116.ts index 68e5f91f15..4bf96a12b1 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_116.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_116.ts @@ -17,4 +17,5 @@ var foo: new (a: number, b: string) => any; var a = new foo(5,/* @@ label */5); -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_117.ts b/ets2panda/test/ast/compiler/ts/new_expression_117.ts index 33f5526a13..2fd994620b 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_117.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_117.ts @@ -17,4 +17,5 @@ var foo: new (a: number, b: string) => any; var a = new foo(5,/* @@ label */false); -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'string'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'string'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_118.ts b/ets2panda/test/ast/compiler/ts/new_expression_118.ts index fb8618d048..c4ab940cc2 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_118.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_118.ts @@ -17,4 +17,5 @@ var foo: new (a: number, b: string) => any; var a = /* @@ label */new foo(5); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ + +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_119.ts b/ets2panda/test/ast/compiler/ts/new_expression_119.ts index a218f84cac..bef11483e8 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_119.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_119.ts @@ -17,4 +17,5 @@ var foo: new (a: number, b: string) => any; var a = new foo(/* @@ label */false,"foo"); -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'number'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'number'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_12.ts b/ets2panda/test/ast/compiler/ts/new_expression_12.ts index 23d72a436c..0e461b8b91 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_12.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_12.ts @@ -17,4 +17,5 @@ var foo: { new(a: string, b: number): any ;}; var a = new foo(/* @@ label */false,"foo"); -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'string'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'string'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_120.ts b/ets2panda/test/ast/compiler/ts/new_expression_120.ts index e8878e1f38..4c471cc8bf 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_120.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_120.ts @@ -17,4 +17,5 @@ var foo: new (a: number, b: string) => any; var a = /* @@ label */new foo(false); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ + +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_121.ts b/ets2panda/test/ast/compiler/ts/new_expression_121.ts index efe1c57a3e..149caba2fd 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_121.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_121.ts @@ -17,4 +17,5 @@ var foo: new (a: number, b: number) => any; var a = new foo(/* @@ label */"foo","foo"); -/* @@@ label Error TypeError: Type 'string' is not assignable to type 'number'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'string' is not assignable to type 'number'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_122.ts b/ets2panda/test/ast/compiler/ts/new_expression_122.ts index 75106e66c7..fedb84c54d 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_122.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_122.ts @@ -17,4 +17,5 @@ var foo: new (a: number, b: number) => any; var a = /* @@ label */new foo("foo"); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ + +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_123.ts b/ets2panda/test/ast/compiler/ts/new_expression_123.ts index 3715f2fb9e..b499441fea 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_123.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_123.ts @@ -17,4 +17,5 @@ var foo: new (a: number, b: number) => any; var a = new foo(5,/* @@ label */"foo"); -/* @@@ label Error TypeError: Type 'string' is not assignable to type 'number'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'string' is not assignable to type 'number'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_124.ts b/ets2panda/test/ast/compiler/ts/new_expression_124.ts index bb95db1f21..837dbd28c3 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_124.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_124.ts @@ -17,4 +17,5 @@ var foo: new (a: number, b: number) => any; var a = new foo(5,/* @@ label */false); -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'number'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'number'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_125.ts b/ets2panda/test/ast/compiler/ts/new_expression_125.ts index 5bdbcba543..f2421caf2c 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_125.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_125.ts @@ -17,4 +17,5 @@ var foo: new (a: number, b: number) => any; var a = /* @@ label */new foo(5); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ + +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_126.ts b/ets2panda/test/ast/compiler/ts/new_expression_126.ts index 189d05b0e8..6c4b781f00 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_126.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_126.ts @@ -17,4 +17,5 @@ var foo: new (a: number, b: number) => any; var a = new foo(/* @@ label */false,"foo"); -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'number'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'number'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_127.ts b/ets2panda/test/ast/compiler/ts/new_expression_127.ts index 0b7d5a8880..ee37f4ad91 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_127.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_127.ts @@ -17,4 +17,5 @@ var foo: new (a: number, b: number) => any; var a = /* @@ label */new foo(false); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ + +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_128.ts b/ets2panda/test/ast/compiler/ts/new_expression_128.ts index a94735b912..33dacba786 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_128.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_128.ts @@ -17,4 +17,5 @@ var foo: new (a: number, b: boolean) => any; var a = new foo(/* @@ label */"foo","foo"); -/* @@@ label Error TypeError: Type 'string' is not assignable to type 'number'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'string' is not assignable to type 'number'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_129.ts b/ets2panda/test/ast/compiler/ts/new_expression_129.ts index 8149ef007a..b1b717379c 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_129.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_129.ts @@ -17,4 +17,5 @@ var foo: new (a: number, b: boolean) => any; var a = /* @@ label */new foo("foo"); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ + +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_13.ts b/ets2panda/test/ast/compiler/ts/new_expression_13.ts index a66f1036cb..3673a5c7e2 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_13.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_13.ts @@ -17,4 +17,5 @@ var foo: { new(a: string, b: number): any ;}; var a = /* @@ label */new foo(false); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ + +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_130.ts b/ets2panda/test/ast/compiler/ts/new_expression_130.ts index e710a2c49d..617e5e79b6 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_130.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_130.ts @@ -17,4 +17,5 @@ var foo: new (a: number, b: boolean) => any; var a = new foo(5,/* @@ label */"foo"); -/* @@@ label Error TypeError: Type 'string' is not assignable to type 'boolean'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'string' is not assignable to type 'boolean'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_131.ts b/ets2panda/test/ast/compiler/ts/new_expression_131.ts index 82046c6724..8054342a1a 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_131.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_131.ts @@ -17,4 +17,5 @@ var foo: new (a: number, b: boolean) => any; var a = new foo(5,/* @@ label */5); -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'boolean'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'boolean'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_132.ts b/ets2panda/test/ast/compiler/ts/new_expression_132.ts index 29e791a1a7..265bd4ed9c 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_132.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_132.ts @@ -17,4 +17,5 @@ var foo: new (a: number, b: boolean) => any; var a = /* @@ label */new foo(5); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ + +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_133.ts b/ets2panda/test/ast/compiler/ts/new_expression_133.ts index ad769fcc84..1912335fd0 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_133.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_133.ts @@ -17,4 +17,5 @@ var foo: new (a: number, b: boolean) => any; var a = new foo(/* @@ label */false,"foo"); -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'number'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'number'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_134.ts b/ets2panda/test/ast/compiler/ts/new_expression_134.ts index 0d9b3855b6..2b611d6f36 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_134.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_134.ts @@ -17,4 +17,5 @@ var foo: new (a: number, b: boolean) => any; var a = /* @@ label */new foo(false); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ + +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_135.ts b/ets2panda/test/ast/compiler/ts/new_expression_135.ts index 21eb39d71d..15f101cf9a 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_135.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_135.ts @@ -17,4 +17,5 @@ var foo: new (a: boolean, b: string) => any; var a = new foo(/* @@ label */"foo","foo"); -/* @@@ label Error TypeError: Type 'string' is not assignable to type 'boolean'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'string' is not assignable to type 'boolean'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_136.ts b/ets2panda/test/ast/compiler/ts/new_expression_136.ts index b298ca8532..f9e3b6b152 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_136.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_136.ts @@ -17,4 +17,5 @@ var foo: new (a: boolean, b: string) => any; var a = /* @@ label */new foo("foo"); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ + +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_137.ts b/ets2panda/test/ast/compiler/ts/new_expression_137.ts index 945be287f0..a73407f967 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_137.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_137.ts @@ -17,4 +17,5 @@ var foo: new (a: boolean, b: string) => any; var a = new foo(/* @@ label */5,"foo"); -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'boolean'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'boolean'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_138.ts b/ets2panda/test/ast/compiler/ts/new_expression_138.ts index 914d23610b..2a74fc065f 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_138.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_138.ts @@ -17,4 +17,5 @@ var foo: new (a: boolean, b: string) => any; var a = /* @@ label */new foo(5); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ + +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_139.ts b/ets2panda/test/ast/compiler/ts/new_expression_139.ts index 89cde4a0ab..15b991a353 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_139.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_139.ts @@ -17,4 +17,5 @@ var foo: new (a: boolean, b: string) => any; var a = new foo(false,/* @@ label */5); -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_14.ts b/ets2panda/test/ast/compiler/ts/new_expression_14.ts index 6a0eed6ba2..d21026e0f0 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_14.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_14.ts @@ -17,4 +17,5 @@ var foo: { new(a: string, b: bigint): any ;}; var a = new foo("foo",/* @@ label */5); -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_140.ts b/ets2panda/test/ast/compiler/ts/new_expression_140.ts index 7c90df6d5b..bfaeb25fb6 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_140.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_140.ts @@ -17,4 +17,5 @@ var foo: new (a: boolean, b: string) => any; var a = new foo(false,/* @@ label */false); -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'string'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'string'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_141.ts b/ets2panda/test/ast/compiler/ts/new_expression_141.ts index 55014588a3..71ae57a823 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_141.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_141.ts @@ -17,4 +17,5 @@ var foo: new (a: boolean, b: string) => any; var a = /* @@ label */new foo(false); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ + +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_142.ts b/ets2panda/test/ast/compiler/ts/new_expression_142.ts index f63d974ef4..974c850578 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_142.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_142.ts @@ -17,4 +17,5 @@ var foo: new (a: boolean, b: number) => any; var a = new foo(/* @@ label */"foo","foo"); -/* @@@ label Error TypeError: Type 'string' is not assignable to type 'boolean'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'string' is not assignable to type 'boolean'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_143.ts b/ets2panda/test/ast/compiler/ts/new_expression_143.ts index 36e5936a03..569d285fb1 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_143.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_143.ts @@ -17,4 +17,5 @@ var foo: new (a: boolean, b: number) => any; var a = /* @@ label */new foo("foo"); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ + +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_144.ts b/ets2panda/test/ast/compiler/ts/new_expression_144.ts index 4a6f9198ac..b532fb515f 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_144.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_144.ts @@ -17,4 +17,5 @@ var foo: new (a: boolean, b: number) => any; var a = new foo(/* @@ label */5,"foo"); -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'boolean'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'boolean'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_145.ts b/ets2panda/test/ast/compiler/ts/new_expression_145.ts index 8447435fdd..9a7fefe435 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_145.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_145.ts @@ -17,4 +17,5 @@ var foo: new (a: boolean, b: number) => any; var a = /* @@ label */new foo(5); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ + +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_146.ts b/ets2panda/test/ast/compiler/ts/new_expression_146.ts index 0218570b47..ba4e8340fd 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_146.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_146.ts @@ -17,4 +17,5 @@ var foo: new (a: boolean, b: number) => any; var a = new foo(false,/* @@ label */"foo"); -/* @@@ label Error TypeError: Type 'string' is not assignable to type 'number'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'string' is not assignable to type 'number'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_147.ts b/ets2panda/test/ast/compiler/ts/new_expression_147.ts index fea88b7b8a..645e74f563 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_147.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_147.ts @@ -17,4 +17,5 @@ var foo: new (a: boolean, b: number) => any; var a = new foo(false,/* @@ label */false); -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'number'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'number'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_148.ts b/ets2panda/test/ast/compiler/ts/new_expression_148.ts index 0f3358eca8..3ec042a8d9 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_148.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_148.ts @@ -17,4 +17,5 @@ var foo: new (a: boolean, b: number) => any; var a = /* @@ label */new foo(false); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ + +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_149.ts b/ets2panda/test/ast/compiler/ts/new_expression_149.ts index aade0325dc..00735e06fc 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_149.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_149.ts @@ -17,4 +17,5 @@ var foo: new (a: boolean, b: boolean) => any; var a = new foo(/* @@ label */"foo","foo"); -/* @@@ label Error TypeError: Type 'string' is not assignable to type 'boolean'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'string' is not assignable to type 'boolean'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_15.ts b/ets2panda/test/ast/compiler/ts/new_expression_15.ts index 406c4df6c4..5be478b9f4 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_15.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_15.ts @@ -17,4 +17,5 @@ var foo: { new(a: string, b: bigint): any ;}; var a = new foo("foo",/* @@ label */false); -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'bigint'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'bigint'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_150.ts b/ets2panda/test/ast/compiler/ts/new_expression_150.ts index a6caff5a9c..0fd0513e9e 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_150.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_150.ts @@ -17,4 +17,5 @@ var foo: new (a: boolean, b: boolean) => any; var a = /* @@ label */new foo("foo"); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ + +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_151.ts b/ets2panda/test/ast/compiler/ts/new_expression_151.ts index 3a771e6656..ab4a1893d9 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_151.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_151.ts @@ -17,4 +17,5 @@ var foo: new (a: boolean, b: boolean) => any; var a = new foo(/* @@ label */5,"foo"); -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'boolean'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'boolean'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_152.ts b/ets2panda/test/ast/compiler/ts/new_expression_152.ts index a4102fc45b..678546b0c0 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_152.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_152.ts @@ -17,4 +17,5 @@ var foo: new (a: boolean, b: boolean) => any; var a = /* @@ label */new foo(5); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ + +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_153.ts b/ets2panda/test/ast/compiler/ts/new_expression_153.ts index 95899dd474..8a8fd51e90 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_153.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_153.ts @@ -17,4 +17,5 @@ var foo: new (a: boolean, b: boolean) => any; var a = new foo(false,/* @@ label */"foo"); -/* @@@ label Error TypeError: Type 'string' is not assignable to type 'boolean'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'string' is not assignable to type 'boolean'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_154.ts b/ets2panda/test/ast/compiler/ts/new_expression_154.ts index 799985aa1d..b80540699a 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_154.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_154.ts @@ -17,4 +17,5 @@ var foo: new (a: boolean, b: boolean) => any; var a = new foo(false,/* @@ label */5); -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'boolean'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'boolean'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_155.ts b/ets2panda/test/ast/compiler/ts/new_expression_155.ts index 50d627400f..650afe7b02 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_155.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_155.ts @@ -17,4 +17,5 @@ var foo: new (a: boolean, b: boolean) => any; var a = /* @@ label */new foo(false); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ + +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_156.ts b/ets2panda/test/ast/compiler/ts/new_expression_156.ts index 7a97bb5650..b9ccd5fb78 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_156.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_156.ts @@ -17,4 +17,5 @@ var foo: new (a: any, b: any) => any; var a = /* @@ label */new foo(); -/* @@@ label Error TypeError: Expected 2 arguments, but got 0. */ + +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 0. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_157.ts b/ets2panda/test/ast/compiler/ts/new_expression_157.ts index dee327f082..c3cce0aea8 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_157.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_157.ts @@ -17,4 +17,5 @@ var foo: new (a: any, b: any) => any; var a = new foo("foo",5,/* @@ label */false); -/* @@@ label Error TypeError: Expected 2 arguments, but got 3. */ + +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 3. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_158.ts b/ets2panda/test/ast/compiler/ts/new_expression_158.ts index 5e50d7f1f0..1616e371c1 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_158.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_158.ts @@ -18,4 +18,5 @@ var foo: new () => string; var a = new foo(); /* @@ label */a = 5; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_159.ts b/ets2panda/test/ast/compiler/ts/new_expression_159.ts index 970aa40628..8332aa3425 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_159.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_159.ts @@ -18,4 +18,5 @@ var foo: new () => string; var a = new foo(); /* @@ label */a = false; -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'string'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'string'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_16.ts b/ets2panda/test/ast/compiler/ts/new_expression_16.ts index a551fa7515..d766e11617 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_16.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_16.ts @@ -17,4 +17,5 @@ var foo: { new(a: string, b: bigint): any ;}; var a = /* @@ label */new foo("foo"); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ + +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_160.ts b/ets2panda/test/ast/compiler/ts/new_expression_160.ts index acebfc59e7..7f6658410b 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_160.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_160.ts @@ -18,4 +18,5 @@ var foo: new () => number; var a = new foo(); /* @@ label */a = "foo"; -/* @@@ label Error TypeError: Type 'string' is not assignable to type 'number'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'string' is not assignable to type 'number'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_161.ts b/ets2panda/test/ast/compiler/ts/new_expression_161.ts index af4c4a1932..e8a860bee0 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_161.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_161.ts @@ -18,4 +18,5 @@ var foo: new () => number; var a = new foo(); /* @@ label */a = false; -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'number'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'number'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_162.ts b/ets2panda/test/ast/compiler/ts/new_expression_162.ts index 027ee65388..0c21eb9955 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_162.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_162.ts @@ -18,4 +18,5 @@ var foo: new () => boolean; var a = new foo(); /* @@ label */a = "foo"; -/* @@@ label Error TypeError: Type 'string' is not assignable to type 'boolean'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'string' is not assignable to type 'boolean'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_163.ts b/ets2panda/test/ast/compiler/ts/new_expression_163.ts index 44a6a4148c..520c889354 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_163.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_163.ts @@ -18,4 +18,5 @@ var foo: new () => boolean; var a = new foo(); /* @@ label */a = 5; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'boolean'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'boolean'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_164.ts b/ets2panda/test/ast/compiler/ts/new_expression_164.ts index 2cc6bdcd66..7e6396d7f0 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_164.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_164.ts @@ -15,4 +15,5 @@ var a = /* @@ label */5(); -/* @@@ label Error TypeError: This expression is not callable. */ + +/* @@@ label Error Semantic error ESE0000: This expression is not callable. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_17.ts b/ets2panda/test/ast/compiler/ts/new_expression_17.ts index 6a069211ed..d2b67a7f15 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_17.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_17.ts @@ -17,4 +17,5 @@ var foo: { new(a: string, b: bigint): any ;}; var a = new foo(/* @@ label */5,"foo"); -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_18.ts b/ets2panda/test/ast/compiler/ts/new_expression_18.ts index ccb1eda259..722df0db59 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_18.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_18.ts @@ -17,4 +17,5 @@ var foo: { new(a: string, b: bigint): any ;}; var a = /* @@ label */new foo(5); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ + +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_19.ts b/ets2panda/test/ast/compiler/ts/new_expression_19.ts index 1340a1ca71..86c07cd6a4 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_19.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_19.ts @@ -17,4 +17,5 @@ var foo: { new(a: string, b: bigint): any ;}; var a = new foo(/* @@ label */false,"foo"); -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'string'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'string'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_2.ts b/ets2panda/test/ast/compiler/ts/new_expression_2.ts index c2febcd76c..493dd8507a 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_2.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_2.ts @@ -17,4 +17,5 @@ var foo: { new(a: string, b: string): any ;}; var a = new foo("foo",/* @@ label */false); -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'string'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'string'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_20.ts b/ets2panda/test/ast/compiler/ts/new_expression_20.ts index f2edca0e88..6e06d5b3a0 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_20.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_20.ts @@ -17,4 +17,5 @@ var foo: { new(a: string, b: bigint): any ;}; var a = /* @@ label */new foo(false); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ + +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_21.ts b/ets2panda/test/ast/compiler/ts/new_expression_21.ts index 1dfdc0d132..f822a793de 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_21.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_21.ts @@ -17,4 +17,5 @@ var foo: { new(a: string, b: boolean): any ;}; var a = new foo("foo",/* @@ label */5); -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'boolean'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'boolean'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_22.ts b/ets2panda/test/ast/compiler/ts/new_expression_22.ts index 44c52bad4c..eb45f6ea09 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_22.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_22.ts @@ -17,4 +17,5 @@ var foo: { new(a: string, b: boolean): any ;}; var a = /* @@ label */new foo("foo"); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ + +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_23.ts b/ets2panda/test/ast/compiler/ts/new_expression_23.ts index a5f60e2881..ab9bbb6ad7 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_23.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_23.ts @@ -17,4 +17,5 @@ var foo: { new(a: string, b: boolean): any ;}; var a = new foo(/* @@ label */5,"foo"); -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_24.ts b/ets2panda/test/ast/compiler/ts/new_expression_24.ts index b45074f34d..f3ec412f3d 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_24.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_24.ts @@ -17,4 +17,5 @@ var foo: { new(a: string, b: boolean): any ;}; var a = /* @@ label */new foo(5); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ + +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_25.ts b/ets2panda/test/ast/compiler/ts/new_expression_25.ts index b3e13357e2..593ced64c8 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_25.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_25.ts @@ -17,4 +17,5 @@ var foo: { new(a: string, b: boolean): any ;}; var a = new foo(/* @@ label */false,"foo"); -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'string'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'string'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_26.ts b/ets2panda/test/ast/compiler/ts/new_expression_26.ts index 4d0b0e9345..41fdaa58d1 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_26.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_26.ts @@ -17,4 +17,5 @@ var foo: { new(a: string, b: boolean): any ;}; var a = /* @@ label */new foo(false); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ + +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_27.ts b/ets2panda/test/ast/compiler/ts/new_expression_27.ts index da2ab5e1bb..df06d52698 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_27.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_27.ts @@ -17,4 +17,5 @@ var foo: { new(a: number, b: string): any ;}; var a = /* @@ label */new foo("foo"); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ + +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_28.ts b/ets2panda/test/ast/compiler/ts/new_expression_28.ts index d4c0c5fc7d..eb83687b24 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_28.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_28.ts @@ -17,4 +17,5 @@ var foo: { new(a: number, b: string): any ;}; var a = new foo(5,/* @@ label */5); -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_29.ts b/ets2panda/test/ast/compiler/ts/new_expression_29.ts index 4cb1b605e1..288f8b82e8 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_29.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_29.ts @@ -17,4 +17,5 @@ var foo: { new(a: number, b: string): any ;}; var a = new foo(5,/* @@ label */false); -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'string'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'string'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_3.ts b/ets2panda/test/ast/compiler/ts/new_expression_3.ts index 10facd0ba6..72a768e54d 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_3.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_3.ts @@ -17,4 +17,5 @@ var foo: { new(a: string, b: string): any ;}; var a = /* @@ label */new foo("foo"); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ + +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_30.ts b/ets2panda/test/ast/compiler/ts/new_expression_30.ts index 68a41f1378..1145b9cec8 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_30.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_30.ts @@ -17,4 +17,5 @@ var foo: { new(a: number, b: string): any ;}; var a = /* @@ label */new foo(5); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ + +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_31.ts b/ets2panda/test/ast/compiler/ts/new_expression_31.ts index b6fbeded1f..85a24a6ab4 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_31.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_31.ts @@ -17,4 +17,5 @@ var foo: { new(a: number, b: string): any ;}; var a = new foo(/* @@ label */false,"foo"); -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'number'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'number'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_32.ts b/ets2panda/test/ast/compiler/ts/new_expression_32.ts index 9b27868bbb..a2b121a689 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_32.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_32.ts @@ -17,4 +17,5 @@ var foo: { new(a: number, b: string): any ;}; var a = /* @@ label */new foo(false); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ + +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_33.ts b/ets2panda/test/ast/compiler/ts/new_expression_33.ts index 8e251f8b21..8b7c3a77e0 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_33.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_33.ts @@ -17,4 +17,5 @@ var foo: { new(a: number, b: number): any ;}; var a = /* @@ label */new foo("foo"); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ + +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_34.ts b/ets2panda/test/ast/compiler/ts/new_expression_34.ts index e035473daa..c3e520fede 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_34.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_34.ts @@ -17,4 +17,5 @@ var foo: { new(a: number, b: number): any ;}; var a = new foo(5,/* @@ label */false); -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'number'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'number'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_35.ts b/ets2panda/test/ast/compiler/ts/new_expression_35.ts index e604d799a2..7205dd0800 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_35.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_35.ts @@ -17,4 +17,5 @@ var foo: { new(a: number, b: number): any ;}; var a = /* @@ label */new foo(5); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ + +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_36.ts b/ets2panda/test/ast/compiler/ts/new_expression_36.ts index 888d10fecf..401191a1c9 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_36.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_36.ts @@ -17,4 +17,5 @@ var foo: { new(a: number, b: number): any ;}; var a = new foo(/* @@ label */false,"foo"); -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'number'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'number'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_37.ts b/ets2panda/test/ast/compiler/ts/new_expression_37.ts index 23257adf84..c38ab024e1 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_37.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_37.ts @@ -17,4 +17,5 @@ var foo: { new(a: number, b: number): any ;}; var a = /* @@ label */new foo(false); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ + +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_38.ts b/ets2panda/test/ast/compiler/ts/new_expression_38.ts index d37984de22..ace62d9e59 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_38.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_38.ts @@ -17,4 +17,5 @@ var foo: { new(a: number, b: bigint): any ;}; var a = /* @@ label */new foo("foo"); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ + +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_39.ts b/ets2panda/test/ast/compiler/ts/new_expression_39.ts index f7dc5ba251..b18a807045 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_39.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_39.ts @@ -17,4 +17,5 @@ var foo: { new(a: number, b: bigint): any ;}; var a = new foo(5,/* @@ label */5); -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_4.ts b/ets2panda/test/ast/compiler/ts/new_expression_4.ts index 57df6c92f3..4e169f88a6 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_4.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_4.ts @@ -17,4 +17,5 @@ var foo: { new(a: string, b: string): any ;}; var a = new foo(/* @@ label */5,"foo"); -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_40.ts b/ets2panda/test/ast/compiler/ts/new_expression_40.ts index 557ea9be80..847d4e795d 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_40.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_40.ts @@ -17,4 +17,5 @@ var foo: { new(a: number, b: bigint): any ;}; var a = new foo(5,/* @@ label */false); -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'bigint'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'bigint'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_41.ts b/ets2panda/test/ast/compiler/ts/new_expression_41.ts index 54c5983af5..339d44bf62 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_41.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_41.ts @@ -17,4 +17,5 @@ var foo: { new(a: number, b: bigint): any ;}; var a = /* @@ label */new foo(5); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ + +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_42.ts b/ets2panda/test/ast/compiler/ts/new_expression_42.ts index ff72f61a28..1f9a13eac6 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_42.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_42.ts @@ -17,4 +17,5 @@ var foo: { new(a: number, b: bigint): any ;}; var a = new foo(/* @@ label */false,"foo"); -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'number'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'number'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_43.ts b/ets2panda/test/ast/compiler/ts/new_expression_43.ts index 0ffc084761..f1b9843fd7 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_43.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_43.ts @@ -17,4 +17,5 @@ var foo: { new(a: number, b: bigint): any ;}; var a = /* @@ label */new foo(false); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ + +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_44.ts b/ets2panda/test/ast/compiler/ts/new_expression_44.ts index bdbee06b49..595a9dba5c 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_44.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_44.ts @@ -17,4 +17,5 @@ var foo: { new(a: number, b: boolean): any ;}; var a = /* @@ label */new foo("foo"); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ + +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_45.ts b/ets2panda/test/ast/compiler/ts/new_expression_45.ts index 4005888e83..0db757ca73 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_45.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_45.ts @@ -17,4 +17,5 @@ var foo: { new(a: number, b: boolean): any ;}; var a = new foo(5,/* @@ label */5); -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'boolean'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'boolean'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_46.ts b/ets2panda/test/ast/compiler/ts/new_expression_46.ts index 89a030f01a..281f38b615 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_46.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_46.ts @@ -17,4 +17,5 @@ var foo: { new(a: number, b: boolean): any ;}; var a = /* @@ label */new foo(5); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ + +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_47.ts b/ets2panda/test/ast/compiler/ts/new_expression_47.ts index c0dcb28ed4..155002a55f 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_47.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_47.ts @@ -17,4 +17,5 @@ var foo: { new(a: number, b: boolean): any ;}; var a = new foo(/* @@ label */false,"foo"); -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'number'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'number'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_48.ts b/ets2panda/test/ast/compiler/ts/new_expression_48.ts index b4ff92e066..e969583742 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_48.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_48.ts @@ -17,4 +17,5 @@ var foo: { new(a: number, b: boolean): any ;}; var a = /* @@ label */new foo(false); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ + +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_49.ts b/ets2panda/test/ast/compiler/ts/new_expression_49.ts index d18e64cb07..a99b2aca49 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_49.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_49.ts @@ -17,4 +17,5 @@ var foo: { new(a: bigint, b: string): any ;}; var a = /* @@ label */new foo("foo"); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ + +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_5.ts b/ets2panda/test/ast/compiler/ts/new_expression_5.ts index b5b5ac8e3d..85fefd1620 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_5.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_5.ts @@ -17,4 +17,5 @@ var foo: { new(a: string, b: string): any ;}; var a = /* @@ label */new foo(5); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ + +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_50.ts b/ets2panda/test/ast/compiler/ts/new_expression_50.ts index 9b29649315..a206e5b816 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_50.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_50.ts @@ -17,4 +17,5 @@ var foo: { new(a: bigint, b: string): any ;}; var a = new foo(/* @@ label */5,"foo"); -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_51.ts b/ets2panda/test/ast/compiler/ts/new_expression_51.ts index 50e5473e6a..9932c8eead 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_51.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_51.ts @@ -17,4 +17,5 @@ var foo: { new(a: bigint, b: string): any ;}; var a = /* @@ label */new foo(5); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ + +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_52.ts b/ets2panda/test/ast/compiler/ts/new_expression_52.ts index 078d511e13..741ef86f8f 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_52.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_52.ts @@ -17,4 +17,5 @@ var foo: { new(a: bigint, b: string): any ;}; var a = new foo(/* @@ label */false,"foo"); -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'bigint'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'bigint'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_53.ts b/ets2panda/test/ast/compiler/ts/new_expression_53.ts index fbb1b13c71..5cabfdfa82 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_53.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_53.ts @@ -17,4 +17,5 @@ var foo: { new(a: bigint, b: string): any ;}; var a = /* @@ label */new foo(false); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ + +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_54.ts b/ets2panda/test/ast/compiler/ts/new_expression_54.ts index d817d00fdd..0d2396d864 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_54.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_54.ts @@ -17,4 +17,5 @@ var foo: { new(a: bigint, b: number): any ;}; var a = /* @@ label */new foo("foo"); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ + +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_55.ts b/ets2panda/test/ast/compiler/ts/new_expression_55.ts index af7844d79a..48453d22c8 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_55.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_55.ts @@ -17,4 +17,5 @@ var foo: { new(a: bigint, b: number): any ;}; var a = new foo(/* @@ label */5,"foo"); -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_56.ts b/ets2panda/test/ast/compiler/ts/new_expression_56.ts index 1c399adf2c..23a3f7813e 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_56.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_56.ts @@ -17,4 +17,5 @@ var foo: { new(a: bigint, b: number): any ;}; var a = /* @@ label */new foo(5); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ + +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_57.ts b/ets2panda/test/ast/compiler/ts/new_expression_57.ts index 921d770d50..73285bbd96 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_57.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_57.ts @@ -17,4 +17,5 @@ var foo: { new(a: bigint, b: number): any ;}; var a = new foo(/* @@ label */false,"foo"); -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'bigint'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'bigint'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_58.ts b/ets2panda/test/ast/compiler/ts/new_expression_58.ts index 9ab673eac6..4fef18578c 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_58.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_58.ts @@ -17,4 +17,5 @@ var foo: { new(a: bigint, b: number): any ;}; var a = /* @@ label */new foo(false); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ + +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_59.ts b/ets2panda/test/ast/compiler/ts/new_expression_59.ts index 0851c18c1c..c3a4ba055e 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_59.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_59.ts @@ -17,4 +17,5 @@ var foo: { new(a: bigint, b: bigint): any ;}; var a = /* @@ label */new foo("foo"); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ + +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_6.ts b/ets2panda/test/ast/compiler/ts/new_expression_6.ts index d8cc546696..2a36a20657 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_6.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_6.ts @@ -17,4 +17,5 @@ var foo: { new(a: string, b: string): any ;}; var a = new foo(/* @@ label */false,"foo"); -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'string'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'string'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_60.ts b/ets2panda/test/ast/compiler/ts/new_expression_60.ts index 26b9daf084..3d8880213d 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_60.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_60.ts @@ -17,4 +17,5 @@ var foo: { new(a: bigint, b: bigint): any ;}; var a = new foo(/* @@ label */5,"foo"); -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_61.ts b/ets2panda/test/ast/compiler/ts/new_expression_61.ts index 80ff521d13..162bfd4126 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_61.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_61.ts @@ -17,4 +17,5 @@ var foo: { new(a: bigint, b: bigint): any ;}; var a = /* @@ label */new foo(5); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ + +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_62.ts b/ets2panda/test/ast/compiler/ts/new_expression_62.ts index 47733f1f6c..1d075442ac 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_62.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_62.ts @@ -17,4 +17,5 @@ var foo: { new(a: bigint, b: bigint): any ;}; var a = new foo(/* @@ label */false,"foo"); -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'bigint'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'bigint'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_63.ts b/ets2panda/test/ast/compiler/ts/new_expression_63.ts index f772b92e3a..cef3364f6f 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_63.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_63.ts @@ -17,4 +17,5 @@ var foo: { new(a: bigint, b: bigint): any ;}; var a = /* @@ label */new foo(false); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ + +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_64.ts b/ets2panda/test/ast/compiler/ts/new_expression_64.ts index 860be1f0f0..db5c63a2dd 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_64.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_64.ts @@ -17,4 +17,5 @@ var foo: { new(a: bigint, b: boolean): any ;}; var a = /* @@ label */new foo("foo"); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ + +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_65.ts b/ets2panda/test/ast/compiler/ts/new_expression_65.ts index 456b55f4b8..b95e8c5d00 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_65.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_65.ts @@ -17,4 +17,5 @@ var foo: { new(a: bigint, b: boolean): any ;}; var a = new foo(/* @@ label */5,"foo"); -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_66.ts b/ets2panda/test/ast/compiler/ts/new_expression_66.ts index c3be6c3f23..a2f9483c68 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_66.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_66.ts @@ -17,4 +17,5 @@ var foo: { new(a: bigint, b: boolean): any ;}; var a = /* @@ label */new foo(5); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ + +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_67.ts b/ets2panda/test/ast/compiler/ts/new_expression_67.ts index 5a1d447819..9396b7b981 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_67.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_67.ts @@ -17,4 +17,5 @@ var foo: { new(a: bigint, b: boolean): any ;}; var a = new foo(/* @@ label */false,"foo"); -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'bigint'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'bigint'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_68.ts b/ets2panda/test/ast/compiler/ts/new_expression_68.ts index aa9680d034..ee1bdd3968 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_68.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_68.ts @@ -17,4 +17,5 @@ var foo: { new(a: bigint, b: boolean): any ;}; var a = /* @@ label */new foo(false); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ + +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_69.ts b/ets2panda/test/ast/compiler/ts/new_expression_69.ts index beb24fe57a..18e37af865 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_69.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_69.ts @@ -17,4 +17,5 @@ var foo: { new(a: boolean, b: string): any ;}; var a = /* @@ label */new foo("foo"); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ + +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_7.ts b/ets2panda/test/ast/compiler/ts/new_expression_7.ts index 69f2848f98..4e95134b77 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_7.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_7.ts @@ -17,4 +17,5 @@ var foo: { new(a: string, b: string): any ;}; var a = /* @@ label */new foo(false); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ + +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_70.ts b/ets2panda/test/ast/compiler/ts/new_expression_70.ts index 3ce895a4e3..da8f752968 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_70.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_70.ts @@ -17,4 +17,5 @@ var foo: { new(a: boolean, b: string): any ;}; var a = new foo(/* @@ label */5,"foo"); -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'boolean'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'boolean'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_71.ts b/ets2panda/test/ast/compiler/ts/new_expression_71.ts index 6d86679264..87e7bc691a 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_71.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_71.ts @@ -17,4 +17,5 @@ var foo: { new(a: boolean, b: string): any ;}; var a = /* @@ label */new foo(5); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ + +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_72.ts b/ets2panda/test/ast/compiler/ts/new_expression_72.ts index b0d50c3980..2dca879c67 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_72.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_72.ts @@ -17,4 +17,5 @@ var foo: { new(a: boolean, b: string): any ;}; var a = new foo(false,/* @@ label */5); -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_73.ts b/ets2panda/test/ast/compiler/ts/new_expression_73.ts index bcadd1d4b9..47e9cca02b 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_73.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_73.ts @@ -17,4 +17,5 @@ var foo: { new(a: boolean, b: string): any ;}; var a = new foo(false,/* @@ label */false); -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'string'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'string'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_74.ts b/ets2panda/test/ast/compiler/ts/new_expression_74.ts index e7fd217c57..a07207c8b1 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_74.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_74.ts @@ -17,4 +17,5 @@ var foo: { new(a: boolean, b: string): any ;}; var a = /* @@ label */new foo(false); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ + +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_75.ts b/ets2panda/test/ast/compiler/ts/new_expression_75.ts index 26a412110e..d8b35021c6 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_75.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_75.ts @@ -17,4 +17,5 @@ var foo: { new(a: boolean, b: number): any ;}; var a = /* @@ label */new foo("foo"); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ + +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_76.ts b/ets2panda/test/ast/compiler/ts/new_expression_76.ts index ecced42caf..e2889f6bd5 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_76.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_76.ts @@ -17,4 +17,5 @@ var foo: { new(a: boolean, b: number): any ;}; var a = new foo(/* @@ label */5,"foo"); -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'boolean'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'boolean'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_77.ts b/ets2panda/test/ast/compiler/ts/new_expression_77.ts index a769aeac8d..08d25b7b5d 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_77.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_77.ts @@ -17,4 +17,5 @@ var foo: { new(a: boolean, b: number): any ;}; var a = /* @@ label */new foo(5); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ + +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_78.ts b/ets2panda/test/ast/compiler/ts/new_expression_78.ts index ad6ccc12cf..076d4f4c47 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_78.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_78.ts @@ -17,4 +17,5 @@ var foo: { new(a: boolean, b: number): any ;}; var a = new foo(false,/* @@ label */false); -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'number'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'number'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_79.ts b/ets2panda/test/ast/compiler/ts/new_expression_79.ts index 945e0eb6b1..e61f59a70b 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_79.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_79.ts @@ -17,4 +17,5 @@ var foo: { new(a: boolean, b: number): any ;}; var a = /* @@ label */new foo(false); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ + +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_8.ts b/ets2panda/test/ast/compiler/ts/new_expression_8.ts index 31364c2733..3f32b75c32 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_8.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_8.ts @@ -17,4 +17,5 @@ var foo: { new(a: string, b: number): any ;}; var a = new foo("foo",/* @@ label */false); -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'number'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'number'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_80.ts b/ets2panda/test/ast/compiler/ts/new_expression_80.ts index b37fd46c35..dd3e9489df 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_80.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_80.ts @@ -17,4 +17,5 @@ var foo: { new(a: boolean, b: bigint): any ;}; var a = /* @@ label */new foo("foo"); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ + +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_81.ts b/ets2panda/test/ast/compiler/ts/new_expression_81.ts index 57d0ca9522..757c63eec8 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_81.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_81.ts @@ -17,4 +17,5 @@ var foo: { new(a: boolean, b: bigint): any ;}; var a = new foo(/* @@ label */5,"foo"); -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'boolean'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'boolean'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_82.ts b/ets2panda/test/ast/compiler/ts/new_expression_82.ts index fe0ac12519..412564dd7c 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_82.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_82.ts @@ -17,4 +17,5 @@ var foo: { new(a: boolean, b: bigint): any ;}; var a = /* @@ label */new foo(5); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ + +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_83.ts b/ets2panda/test/ast/compiler/ts/new_expression_83.ts index 270028dd2e..9eae6ad66a 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_83.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_83.ts @@ -17,4 +17,5 @@ var foo: { new(a: boolean, b: bigint): any ;}; var a = new foo(false,/* @@ label */5); -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'bigint'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'bigint'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_84.ts b/ets2panda/test/ast/compiler/ts/new_expression_84.ts index ee28242dd4..db47d93f6d 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_84.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_84.ts @@ -17,4 +17,5 @@ var foo: { new(a: boolean, b: bigint): any ;}; var a = new foo(false,/* @@ label */false); -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'bigint'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'bigint'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_85.ts b/ets2panda/test/ast/compiler/ts/new_expression_85.ts index c61f70531d..fe2aa24f57 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_85.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_85.ts @@ -17,4 +17,5 @@ var foo: { new(a: boolean, b: bigint): any ;}; var a = /* @@ label */new foo(false); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ + +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_86.ts b/ets2panda/test/ast/compiler/ts/new_expression_86.ts index 9df6494c4a..07ca774c01 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_86.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_86.ts @@ -17,4 +17,5 @@ var foo: { new(a: boolean, b: boolean): any ;}; var a = /* @@ label */new foo("foo"); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ + +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_87.ts b/ets2panda/test/ast/compiler/ts/new_expression_87.ts index 6eee6c4c96..0731296298 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_87.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_87.ts @@ -17,4 +17,5 @@ var foo: { new(a: boolean, b: boolean): any ;}; var a = new foo(/* @@ label */5,"foo"); -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'boolean'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'boolean'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_88.ts b/ets2panda/test/ast/compiler/ts/new_expression_88.ts index 3f837eb289..0959912020 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_88.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_88.ts @@ -17,4 +17,5 @@ var foo: { new(a: boolean, b: boolean): any ;}; var a = /* @@ label */new foo(5); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ + +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_89.ts b/ets2panda/test/ast/compiler/ts/new_expression_89.ts index 5680e00ba8..1fdaf387b0 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_89.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_89.ts @@ -17,4 +17,5 @@ var foo: { new(a: boolean, b: boolean): any ;}; var a = new foo(false,/* @@ label */5); -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'boolean'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'boolean'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_9.ts b/ets2panda/test/ast/compiler/ts/new_expression_9.ts index cefe11d7f7..13f65a45e1 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_9.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_9.ts @@ -17,4 +17,5 @@ var foo: { new(a: string, b: number): any ;}; var a = /* @@ label */new foo("foo"); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ + +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_90.ts b/ets2panda/test/ast/compiler/ts/new_expression_90.ts index ca3caf7ddc..7940f68f48 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_90.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_90.ts @@ -17,4 +17,5 @@ var foo: { new(a: boolean, b: boolean): any ;}; var a = /* @@ label */new foo(false); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ + +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_91.ts b/ets2panda/test/ast/compiler/ts/new_expression_91.ts index cb716a5b23..7e863f81e4 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_91.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_91.ts @@ -17,4 +17,5 @@ var foo: { new(a: any, b: any): any ;}; var a = /* @@ label */new foo(); -/* @@@ label Error TypeError: Expected 2 arguments, but got 0. */ + +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 0. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_92.ts b/ets2panda/test/ast/compiler/ts/new_expression_92.ts index 003571173b..bacb99dfcf 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_92.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_92.ts @@ -17,4 +17,5 @@ var foo: { new(a: any, b: any): any ;}; var a = new foo("foo",5,/* @@ label */5n,false); -/* @@@ label Error TypeError: Expected 2 arguments, but got 4. */ + +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 4. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_93.ts b/ets2panda/test/ast/compiler/ts/new_expression_93.ts index deb778fe52..4f975ed262 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_93.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_93.ts @@ -17,4 +17,5 @@ var foo: new (a: string, b: string) => any; var a = new foo("foo",/* @@ label */5); -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_94.ts b/ets2panda/test/ast/compiler/ts/new_expression_94.ts index 0e6487d244..c84226e62b 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_94.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_94.ts @@ -17,4 +17,5 @@ var foo: new (a: string, b: string) => any; var a = new foo("foo",/* @@ label */false); -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'string'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'string'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_95.ts b/ets2panda/test/ast/compiler/ts/new_expression_95.ts index a94624d8e5..100ad200a9 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_95.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_95.ts @@ -17,4 +17,5 @@ var foo: new (a: string, b: string) => any; var a = /* @@ label */new foo("foo"); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ + +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_96.ts b/ets2panda/test/ast/compiler/ts/new_expression_96.ts index 2957028a76..713291521c 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_96.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_96.ts @@ -17,4 +17,5 @@ var foo: new (a: string, b: string) => any; var a = new foo(/* @@ label */5,"foo"); -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_97.ts b/ets2panda/test/ast/compiler/ts/new_expression_97.ts index 5062e026f3..f53fb1474c 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_97.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_97.ts @@ -17,4 +17,5 @@ var foo: new (a: string, b: string) => any; var a = /* @@ label */new foo(5); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ + +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_98.ts b/ets2panda/test/ast/compiler/ts/new_expression_98.ts index ab3606a22d..689f3ed211 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_98.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_98.ts @@ -17,4 +17,5 @@ var foo: new (a: string, b: string) => any; var a = new foo(/* @@ label */false,"foo"); -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'string'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'string'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/new_expression_99.ts b/ets2panda/test/ast/compiler/ts/new_expression_99.ts index 72fd545e88..db6630b663 100644 --- a/ets2panda/test/ast/compiler/ts/new_expression_99.ts +++ b/ets2panda/test/ast/compiler/ts/new_expression_99.ts @@ -17,4 +17,5 @@ var foo: new (a: string, b: string) => any; var a = /* @@ label */new foo(false); -/* @@@ label Error TypeError: Expected 2 arguments, but got 1. */ + +/* @@@ label Error Semantic error ESE0000: Expected 2 arguments, but got 1. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring1.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring1.ts index 2c4d484c45..905732cc53 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring1.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring1.ts @@ -15,4 +15,5 @@ var { a } = {}; -/* @@? 17:5 Error TypeError: Property a does not exist on type { }. */ + +/* @@? 17:5 Error Semantic error ESE0000: Property a does not exist on type { }. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring10.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring10.ts index 7b1a3a3104..f8faafaa89 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring10.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring10.ts @@ -15,4 +15,5 @@ var { a: /* @@ label */{ a, b } = { a: 1, b: true } } = { a: 5 } -/* @@@ label Error TypeError: Property a does not exist on type number | { a: number; b: boolean; }. */ + +/* @@@ label Error Semantic error ESE0000: Property a does not exist on type number | { a: number; b: boolean; }. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring11.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring11.ts index a59ae0a8c9..c6053e6b34 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring11.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring11.ts @@ -15,4 +15,5 @@ var { a: /* @@ label */{ a, b } = { b: "foo" } } = { a: { b: true } }; -/* @@@ label Error TypeError: Property a does not exist on type { b: boolean; } | { b: string; }. */ + +/* @@@ label Error Semantic error ESE0000: Property a does not exist on type { b: boolean; } | { b: string; }. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring12.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring12.ts index 179795e574..468eff95d7 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring12.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring12.ts @@ -16,4 +16,5 @@ var { a: { a = 5n, b } = { b: "foo" } } = { a: { a: 5, b: true } }; /* @@ label */a = {}; -/* @@@ label Error TypeError: Type '{ }' is not assignable to type 'number | bigint'. */ + +/* @@@ label Error Semantic error ESE0000: Type '{ }' is not assignable to type 'number | bigint'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring13.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring13.ts index a6348e0a5d..9d0d8217b0 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring13.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring13.ts @@ -16,4 +16,5 @@ var { a, ...b } = { a: 5, b: 5n, c: { a: {}, b: true } }; /* @@ label */b = {}; -/* @@@ label Error TypeError: Type '{ }' is not assignable to type '{ b: bigint; c: { a: { }; b: boolean; }; }'. */ + +/* @@@ label Error Semantic error ESE0000: Type '{ }' is not assignable to type '{ b: bigint; c: { a: { }; b: boolean; }; }'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring14.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring14.ts index dd8683ed13..718816d36d 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring14.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring14.ts @@ -17,4 +17,5 @@ var b: void; var { ...a } = {}; /* @@ label */a = b; -/* @@@ label Error TypeError: Type 'void' is not assignable to type '{ }'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'void' is not assignable to type '{ }'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring15.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring15.ts index c7a21ab884..e9ab893d37 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring15.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring15.ts @@ -15,4 +15,5 @@ var { /* @@ label */a = "foo", b }: { a: number } = { a: 12 }; -/* @@@ label Error TypeError: Type 'string' is not assignable to type 'number'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'string' is not assignable to type 'number'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring16.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring16.ts index ef0ad22f2d..308f601d2d 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring16.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring16.ts @@ -15,4 +15,5 @@ var /* @@ label */{ a = "foo", b }: { a: number | string, b: number } = { a: 12 }; -/* @@@ label Error TypeError: Type '{ a: 12; }' is not assignable to type '{ a: number | string; b: number; }'. */ + +/* @@@ label Error Semantic error ESE0000: Type '{ a: 12; }' is not assignable to type '{ a: number | string; b: number; }'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring17.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring17.ts index 5d547a7a2d..88a927f5e6 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring17.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring17.ts @@ -15,4 +15,5 @@ var { a = "foo", b }: { a: number | string, b: number } = { a: 12, /* @@ label */b: true }; -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'number'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'number'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring18.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring18.ts index b85598c8e8..9113952d5e 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring18.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring18.ts @@ -15,4 +15,5 @@ var /* @@ label */{ a, b }: { a: number, b: string } | { a: string } = { a: "foo" }; -/* @@@ label Error TypeError: Property b does not exist on type { a: number; b: string; } | { a: string; }. */ + +/* @@@ label Error Semantic error ESE0000: Property b does not exist on type { a: number; b: string; } | { a: string; }. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring19.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring19.ts index c6bc68e5e2..c5b9332143 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring19.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring19.ts @@ -15,4 +15,5 @@ var /* @@ label */{ a }: { a: number } | { a: number, b: string, c: { a: number, b: boolean } } | number = { a: 12 }; -/* @@@ label Error TypeError: Property a does not exist on type { a: number; } | { a: number; b: string; c: { a: number; b: boolean; }; } | number. */ + +/* @@@ label Error Semantic error ESE0000: Property a does not exist on type { a: number; } | { a: number; b: string; c: { a: number; b: boolean; }; } | number. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring2.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring2.ts index 930912f1c2..417ae046f8 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring2.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring2.ts @@ -15,4 +15,5 @@ var /* @@ label */{ a } = { a: "foo", b: 5 }; -/* @@@ label Error TypeError: Object literal may only specify known properties, and property 'b' does not exist in the pattern. */ + +/* @@@ label Error Semantic error ESE0000: Object literal may only specify known properties, and property 'b' does not exist in the pattern. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring20.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring20.ts index 7bcfb4cda2..e3fe03a1d3 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring20.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring20.ts @@ -17,4 +17,5 @@ var c: void; var { a, ...b }: { a: number } | { a: number, b: string, c: { a: number, b: boolean } } | { a: number, r: boolean } = { a: 12 }; /* @@ label */b = c; -/* @@@ label Error TypeError: Type 'void' is not assignable to type '{ } | { b: string; c: { a: number; b: boolean; }; } | { r: boolean; }'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'void' is not assignable to type '{ } | { b: string; c: { a: number; b: boolean; }; } | { r: boolean; }'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring21.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring21.ts index 7dcaef653a..60e9cd5585 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring21.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring21.ts @@ -17,4 +17,5 @@ var a: { b: number, c: string }; var { c } = a; /* @@ label */c = {}; -/* @@@ label Error TypeError: Type '{ }' is not assignable to type 'string'. */ + +/* @@@ label Error Semantic error ESE0000: Type '{ }' is not assignable to type 'string'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring22.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring22.ts index 314933f5a0..18943beb3e 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring22.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring22.ts @@ -16,4 +16,5 @@ var a: { a: { b: string, c: number } } | number; var /* @@ label */{ a: { b, c } } = a; -/* @@@ label Error TypeError: Property a does not exist on type { a: { b: string; c: number; }; } | number. */ + +/* @@@ label Error Semantic error ESE0000: Property a does not exist on type { a: { b: string; c: number; }; } | number. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring23.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring23.ts index 7ef9f4a56c..cf41b53a7c 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring23.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring23.ts @@ -16,4 +16,5 @@ var a: { b: { c: [number, number] } }; var { b: { c: [/* @@ label */a, b] } } = a; -/* @@@ label Error TypeError: Subsequent variable declaration must have the same type. Variable 'a' must be of type '{ b: { c: [number, number]; }; }', but here has type 'number'. */ + +/* @@@ label Error Semantic error ESE0316: Subsequent variable declaration must have the same type. Variable 'a' must be of type '{ b: { c: [number, number]; }; }', but here has type 'number'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring24.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring24.ts index 015c0ea1d4..df81920de2 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring24.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring24.ts @@ -17,4 +17,5 @@ var a: { b: number, c: { t: [string | number, boolean[]] } }; var { b, c: { t: [d, e] } } = a; /* @@ label */d = {}; -/* @@@ label Error TypeError: Type '{ }' is not assignable to type 'string | number'. */ + +/* @@@ label Error Semantic error ESE0000: Type '{ }' is not assignable to type 'string | number'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring25.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring25.ts index 61864dbd65..882be38a40 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring25.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring25.ts @@ -20,4 +20,5 @@ function a(a: number[]): { b: number, c: [number, string] } { var { b = "foo", c: [c, d] } = a([1, 2, 3]); /* @@ label */d = {}; -/* @@@ label Error TypeError: Type '{ }' is not assignable to type 'string'. */ + +/* @@@ label Error Semantic error ESE0000: Type '{ }' is not assignable to type 'string'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring26.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring26.ts index fd3a3ca790..e6db0b7b37 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring26.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring26.ts @@ -16,4 +16,5 @@ var /* @@ label */{ a: { b: [{ r, k } = { er: 5 }] = ["foo", true] } = { z: 5, b: [2, "foo"] } } = { a: { k: 2, b: [true, 2n] }, k: 5 }; -/* @@@ label Error TypeError: Object literal may only specify known properties, and property 'k' does not exist in the pattern. */ + +/* @@@ label Error Semantic error ESE0000: Object literal may only specify known properties, and property 'k' does not exist in the pattern. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring27.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring27.ts index 9bd382af4c..1ecc796a4a 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring27.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring27.ts @@ -19,4 +19,5 @@ var /* @@ label */{ a: { b: [c = 2, d] = ["foo", true] } = { b: [2, "foo"] } } = -/* @@@ label Error TypeError: Object literal may only specify known properties, and property 't' does not exist in the pattern. */ + +/* @@@ label Error Semantic error ESE0000: Object literal may only specify known properties, and property 't' does not exist in the pattern. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring28.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring28.ts index ca27a55943..94aeac4a4d 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring28.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring28.ts @@ -19,4 +19,5 @@ var { a: { b: [c = u, d] = [1, true] } = { b: [2n] } } = { a: { k: 2, b: ["foo", /* @@ label */c = e; -/* @@@ label Error TypeError: Type 'void' is not assignable to type 'string | bigint | number | { a: number; b: string; }'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'void' is not assignable to type 'string | bigint | number | { a: number; b: string; }'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring29.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring29.ts index f68bff2a4d..e567a9b32b 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring29.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring29.ts @@ -17,4 +17,5 @@ var a: number; (/* @@ label */{a} = "foo") -/* @@@ label Error TypeError: Property a does not exist on type "foo". */ + +/* @@@ label Error Semantic error ESE0000: Property a does not exist on type "foo". */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring3.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring3.ts index f69b544293..df670e543b 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring3.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring3.ts @@ -15,4 +15,5 @@ var /* @@ label */{ a = 5, b: foo } = { foo: 5 }; -/* @@@ label Error TypeError: Object literal may only specify known properties, and property 'foo' does not exist in the pattern. */ + +/* @@@ label Error Semantic error ESE0000: Object literal may only specify known properties, and property 'foo' does not exist in the pattern. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring30.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring30.ts index 76adad5396..ea57d1fc78 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring30.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring30.ts @@ -17,4 +17,5 @@ var a: number; ({/* @@ label */a} = {a : "foo"}) -/* @@@ label Error TypeError: Type 'string' is not assignable to type 'number'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'string' is not assignable to type 'number'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring31.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring31.ts index 66cb64efe7..9ae586a717 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring31.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring31.ts @@ -17,4 +17,5 @@ var a: number; ({/* @@ label */a = "foo"} = {a : 3}) -/* @@@ label Error TypeError: Type 'string' is not assignable to type 'number'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'string' is not assignable to type 'number'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring32.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring32.ts index c323c3b1c1..1e1354a71d 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring32.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring32.ts @@ -16,4 +16,5 @@ ({/* @@ label */a} = {a : 3}) -/* @@@ label Error TypeError: Cannot find name 'a'. */ + +/* @@@ label Error Semantic error ESE0000: Cannot find name 'a'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring33.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring33.ts index 93b6c42d66..71412a1aba 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring33.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring33.ts @@ -17,4 +17,5 @@ var a: number; (/* @@ label */{ a } = { a: 3, b: 4 }) -/* @@@ label Error TypeError: Object literal may only specify known properties, and property 'b' does not exist in the pattern. */ + +/* @@@ label Error Semantic error ESE0000: Object literal may only specify known properties, and property 'b' does not exist in the pattern. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring34.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring34.ts index 396d54e6ee..615b79704e 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring34.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring34.ts @@ -18,4 +18,5 @@ var b: string; (/* @@ label */{a} = b) -/* @@@ label Error TypeError: Property a does not exist on type string. */ + +/* @@@ label Error Semantic error ESE0000: Property a does not exist on type string. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring35.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring35.ts index 929158a70e..990f9c6c40 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring35.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring35.ts @@ -18,4 +18,5 @@ var b: string; ({/* @@ label */a} = {a : b}) -/* @@@ label Error TypeError: Type 'string' is not assignable to type 'number'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'string' is not assignable to type 'number'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring36.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring36.ts index 1a05ef62b5..47527ff1e4 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring36.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring36.ts @@ -19,4 +19,5 @@ var c: string; ({a : /* @@ label */{c}} = {a : "foo"}) -/* @@@ label Error TypeError: Property c does not exist on type string. */ + +/* @@@ label Error Semantic error ESE0000: Property c does not exist on type string. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring37.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring37.ts index 46fe6602d3..207120346b 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring37.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring37.ts @@ -18,4 +18,5 @@ var c: string; ({ a: { c } } = { a: { /* @@ label */b } }) -/* @@@ label Error TypeError: Cannot find name b */ + +/* @@@ label Error Semantic error ESE0000: Cannot find name b */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring38.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring38.ts index 566f6c5b5e..c796980753 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring38.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring38.ts @@ -19,4 +19,5 @@ var c: string; ({a : {/* @@ label */c}} = {a : {c : b}}) -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring39.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring39.ts index 60dbfb2f7e..cbf0264093 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring39.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring39.ts @@ -18,4 +18,5 @@ var b: string; (/* @@ label */{a} = {a : 5, b : "foo"}) -/* @@@ label Error TypeError: Object literal may only specify known properties, and property 'b' does not exist in the pattern. */ + +/* @@@ label Error Semantic error ESE0000: Object literal may only specify known properties, and property 'b' does not exist in the pattern. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring4.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring4.ts index 2ea4e50067..cd2cf20866 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring4.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring4.ts @@ -15,4 +15,5 @@ var { a: /* @@ label */[b = 5, c] } = { a: 5 }; -/* @@@ label Error TypeError: Type number must have a '[Symbol.iterator]()' method that returns an iterator. */ + +/* @@@ label Error Semantic error ESE0000: Type number must have a '[Symbol.iterator]()' method that returns an iterator. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring40.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring40.ts index 2ef0749a78..05669daec1 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring40.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring40.ts @@ -18,4 +18,5 @@ var b: string; (/* @@ label */{a, b} = {a : 5}) -/* @@@ label Error TypeError: Property b does not exist on type { a: number; }. */ + +/* @@@ label Error Semantic error ESE0000: Property b does not exist on type { a: number; }. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring41.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring41.ts index 9fa54d7bcc..711b40e976 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring41.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring41.ts @@ -19,4 +19,5 @@ var b: string; var c = {}; ({c: /* @@ label */{b, a} = {a: "baz"}} = {c : {a: 10, b: "bar"}}); -/* @@@ label Error TypeError: Property b does not exist on type { a: number; b: string; } | { a: string; }. */ + +/* @@@ label Error Semantic error ESE0000: Property b does not exist on type { a: number; b: string; } | { a: string; }. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring5.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring5.ts index 17fbc07038..81f61aac22 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring5.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring5.ts @@ -15,4 +15,5 @@ var /* @@ label */{ a: [b = "bar", c] } = { b: "foo" }; -/* @@@ label Error TypeError: Object literal may only specify known properties, and property 'b' does not exist in the pattern. */ + +/* @@@ label Error Semantic error ESE0000: Object literal may only specify known properties, and property 'b' does not exist in the pattern. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring6.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring6.ts index ecf37d1a57..49e798f6f0 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring6.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring6.ts @@ -16,4 +16,5 @@ var { a: foo } = { a: { a: 1, b: true } }; foo = { /* @@ label */a: "foo", b: false }; -/* @@@ label Error TypeError: Type 'string' is not assignable to type 'number'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'string' is not assignable to type 'number'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring7.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring7.ts index 9ab3173852..c062dd6840 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring7.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring7.ts @@ -16,4 +16,5 @@ var { a = { a: 5, b: true } } = { a: 3n }; a = { a: 1, b: false, /* @@ label */c: 6 }; -/* @@@ label Error TypeError: Object literal may only specify known properties, and "c" does not exist in type 'bigint | { a: number; b: boolean; }'. */ + +/* @@@ label Error Semantic error ESE0000: Object literal may only specify known properties, and "c" does not exist in type 'bigint | { a: number; b: boolean; }'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring8.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring8.ts index 6268c200e8..c894bb6635 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring8.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring8.ts @@ -16,4 +16,5 @@ var { a: /* @@ label */{ a = "bar", b } = { a: 1, b: true, c: {} } } = { a: { a: 5n, b: "foo" } } -/* @@@ label Error TypeError: Object literal may only specify known properties, and property 'c' does not exist in the pattern. */ + +/* @@@ label Error Semantic error ESE0000: Object literal may only specify known properties, and property 'c' does not exist in the pattern. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/objectDestructuring9.ts b/ets2panda/test/ast/compiler/ts/objectDestructuring9.ts index 9ed18474f4..067f1cf475 100644 --- a/ets2panda/test/ast/compiler/ts/objectDestructuring9.ts +++ b/ets2panda/test/ast/compiler/ts/objectDestructuring9.ts @@ -16,4 +16,5 @@ var { a: { a, b } = { a: 1, b: true } } = {} /* @@ label */a = {}; -/* @@@ label Error TypeError: Type '{ }' is not assignable to type 'number'. */ + +/* @@@ label Error Semantic error ESE0000: Type '{ }' is not assignable to type 'number'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability1.ts b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability1.ts index ac7c82ae1c..c657d55437 100644 --- a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability1.ts +++ b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability1.ts @@ -15,4 +15,5 @@ var a: { a: number, b: string } = { /* @@ label */a: "foo", b: "bar" }; -/* @@@ label Error TypeError: Type 'string' is not assignable to type 'number'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'string' is not assignable to type 'number'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability10.ts b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability10.ts index ed9ad24e52..67600e9f16 100644 --- a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability10.ts +++ b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability10.ts @@ -15,4 +15,5 @@ var a: { a: { a: number, b: string } } = { a: { a: 5, /* @@ label */b: 6 } }; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability11.ts b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability11.ts index 082d672d6d..6449f7dc3c 100644 --- a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability11.ts +++ b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability11.ts @@ -15,4 +15,5 @@ var a: { a: { a: number, b: string[] } } | { a: { a: number[], b: number } } = { /* @@ label */a: 5 } -/* @@@ label Error TypeError: Type 'number' is not assignable to type '{ a: number; b: string[]; } | { a: number[]; b: number; }'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type '{ a: number; b: string[]; } | { a: number[]; b: number; }'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability12.ts b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability12.ts index ff4edb8c53..fe22741a58 100644 --- a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability12.ts +++ b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability12.ts @@ -15,4 +15,5 @@ var a: { a: { a: number, b: string[] } } | { a: { a: number[], b: number } } = { a: { a: [1, 2, 3, /* @@ label */"foo"] } } -/* @@@ label Error TypeError: Type 'string' is not assignable to type 'number'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'string' is not assignable to type 'number'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability13.ts b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability13.ts index 1bc216fb14..99c4a0d93f 100644 --- a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability13.ts +++ b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability13.ts @@ -15,4 +15,5 @@ var a: { a: { a: number, b: string[] } } | { a: { a: number[], b: number } } = { a: { a: [1, 2, 3, 4], /* @@ label */b: true } } -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'number'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'number'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability14.ts b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability14.ts index de5c2e8be8..f3d3d5e289 100644 --- a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability14.ts +++ b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability14.ts @@ -15,4 +15,5 @@ var a: { a: { a: number, b: string[] } } | { a: { a: number[], b: number } } = { a: { a: [1, 2, 3, 4], b: 5, /* @@ label */c: "foo" } } -/* @@@ label Error TypeError: Object literal may only specify known properties, and "c" does not exist in type '{ a: number; b: string[]; } | { a: number[]; b: number; }'. */ + +/* @@@ label Error Semantic error ESE0000: Object literal may only specify known properties, and "c" does not exist in type '{ a: number; b: string[]; } | { a: number[]; b: number; }'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability15.ts b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability15.ts index 947515df84..adff1fe9d0 100644 --- a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability15.ts +++ b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability15.ts @@ -25,4 +25,5 @@ interface b extends a { } var a: b = { /* @@ label */a: 5 }; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability16.ts b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability16.ts index 0a97ff9bc7..5a5b09b182 100644 --- a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability16.ts +++ b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability16.ts @@ -34,4 +34,5 @@ interface d extends a, b, c { } var /* @@ label */a: d = { a: 5, b: "foo", c: true }; -/* @@@ label Error TypeError: Type '{ a: 5; b: "foo"; c: true; }' is not assignable to type 'd'. */ + +/* @@@ label Error Semantic error ESE0000: Type '{ a: 5; b: "foo"; c: true; }' is not assignable to type 'd'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability17.ts b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability17.ts index d1e85baf4b..8d60ff0259 100644 --- a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability17.ts +++ b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability17.ts @@ -17,4 +17,5 @@ var a: { a: number, b: string }; var b: { a: typeof a, b: string }; /* @@ label */a = b; -/* @@@ label Error TypeError: Type '{ a: { a: number; b: string; }; b: string; }' is not assignable to type '{ a: number; b: string; }'. */ + +/* @@@ label Error Semantic error ESE0000: Type '{ a: { a: number; b: string; }; b: string; }' is not assignable to type '{ a: number; b: string; }'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability18.ts b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability18.ts index e62397927a..c745951a44 100644 --- a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability18.ts +++ b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability18.ts @@ -19,4 +19,5 @@ function func(a: { a: number, b: string }, b: number): { a: number[], b: boolean } var /* @@ label */a: { a: string[], b: boolean } = func({ a: 5, b: "foo" }, 6); -/* @@@ label Error TypeError: Type '{ a: number[]; b: boolean; }' is not assignable to type '{ a: string[]; b: boolean; }'. */ + +/* @@@ label Error Semantic error ESE0000: Type '{ a: number[]; b: boolean; }' is not assignable to type '{ a: string[]; b: boolean; }'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability19.ts b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability19.ts index 66544161d5..a08bd9cc42 100644 --- a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability19.ts +++ b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability19.ts @@ -17,4 +17,5 @@ var a: { a: number, b: { a: number, b: string }, c: { b: boolean, a: null, } }; var b: { a: number | string, b: { a: number, b: number }, c: { a: { a: number, b: string }, d: boolean } }; /* @@ label */a = b; -/* @@@ label Error TypeError: Type '{ a: number | string; b: { a: number; b: number; }; c: { a: { a: number; b: string; }; d: boolean; }; }' is not assignable to type '{ a: number; b: { a: number; b: string; }; c: { b: boolean; a: null; }; }'. */ + +/* @@@ label Error Semantic error ESE0000: Type '{ a: number | string; b: { a: number; b: number; }; c: { a: { a: number; b: string; }; d: boolean; }; }' is not assignable to type '{ a: number; b: { a: number; b: string; }; c: { b: boolean; a: null; }; }'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability2.ts b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability2.ts index cf65b9ae80..387281f20d 100644 --- a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability2.ts +++ b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability2.ts @@ -15,4 +15,5 @@ var a: { a: number } = { a: 5, b: "foo" }; -/* @@? 17:32 Error TypeError: Object literal may only specify known properties, and "b" does not exist in type '{ a: number; }'. */ + +/* @@? 17:32 Error Semantic error ESE0000: Object literal may only specify known properties, and "b" does not exist in type '{ a: number; }'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability20.ts b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability20.ts index e43f77519c..168af7cf81 100644 --- a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability20.ts +++ b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability20.ts @@ -18,4 +18,4 @@ var a: { new(a: number, b: string): number, (a: number, b: string): string }; var b: { new(a: number, b: string): number, (a: string, b: string): string } /* @@ label */a = b; -/* @@@ label Error TypeError: Type '{ (p1: string, p2: string): string; new (p1: number, p2: string): number; }' is not assignable to type '{ (p1: number, p2: string): string; new (p1: number, p2: string): number; }'. */ +/* @@@ label Error Semantic error ESE0000: Type '{ (p1: string, p2: string): string; new (p1: number, p2: string): number; }' is not assignable to type '{ (p1: number, p2: string): string; new (p1: number, p2: string): number; }'. */ diff --git a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability3.ts b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability3.ts index 1972f5e761..09cd17a9ec 100644 --- a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability3.ts +++ b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability3.ts @@ -15,4 +15,5 @@ var a: { a: number } | { b: string } = { /* @@ label */c: true }; -/* @@@ label Error TypeError: Object literal may only specify known properties, and "c" does not exist in type '{ a: number; } | { b: string; }'. */ + +/* @@@ label Error Semantic error ESE0000: Object literal may only specify known properties, and "c" does not exist in type '{ a: number; } | { b: string; }'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability4.ts b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability4.ts index d522d80de2..1a9d9e510c 100644 --- a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability4.ts +++ b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability4.ts @@ -16,4 +16,5 @@ var a: { b: number } = { /* @@ label */b: function (): string { return "foo" } } -/* @@@ label Error TypeError: Type '() => string' is not assignable to type 'number'. */ + +/* @@@ label Error Semantic error ESE0000: Type '() => string' is not assignable to type 'number'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability5.ts b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability5.ts index c2e4a46fa1..a88a899356 100644 --- a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability5.ts +++ b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability5.ts @@ -16,4 +16,5 @@ var a = { a: 5, b: "foo" }; var b: { a: number, b: string, c: number, d: boolean | string } = { ...a, c: 5, /* @@ label */d: 6 }; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'boolean | string'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'boolean | string'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability6.ts b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability6.ts index f2656e18a9..c03baf2351 100644 --- a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability6.ts +++ b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability6.ts @@ -15,4 +15,5 @@ var a: { a: number, b: string } | { a: string, b: number } = { /* @@ label */a: true }; -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'number | string'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'number | string'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability7.ts b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability7.ts index 1efe13e739..7b587807be 100644 --- a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability7.ts +++ b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability7.ts @@ -15,4 +15,5 @@ var a: { a: number } | { a: string } | { a: boolean } = { /* @@ label */b: "foo" }; -/* @@@ label Error TypeError: Object literal may only specify known properties, and "b" does not exist in type '{ a: number; } | { a: string; } | { a: boolean; }'. */ + +/* @@@ label Error Semantic error ESE0000: Object literal may only specify known properties, and "b" does not exist in type '{ a: number; } | { a: string; } | { a: boolean; }'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability8.ts b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability8.ts index 92c3073b81..be8385fea1 100644 --- a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability8.ts +++ b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability8.ts @@ -15,4 +15,5 @@ var a: { b: number, a: number } | { b: string, a: string } | { b: boolean, a: boolean } = { b: "foo", /* @@ label */a: 5n }; -/* @@@ label Error TypeError: Type 'bigint' is not assignable to type 'string'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'bigint' is not assignable to type 'string'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability9.ts b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability9.ts index c4c89c830c..a3aacd2406 100644 --- a/ets2panda/test/ast/compiler/ts/objectLiteralAssignability9.ts +++ b/ets2panda/test/ast/compiler/ts/objectLiteralAssignability9.ts @@ -15,4 +15,5 @@ var a: { a: { a: number, b: string } } = { /* @@ label */a: 5 }; -/* @@@ label Error TypeError: Type 'number' is not assignable to type '{ a: number; b: string; }'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type '{ a: number; b: string; }'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/object_expression_1.ts b/ets2panda/test/ast/compiler/ts/object_expression_1.ts index 73183c0a5a..460d758444 100644 --- a/ets2panda/test/ast/compiler/ts/object_expression_1.ts +++ b/ets2panda/test/ast/compiler/ts/object_expression_1.ts @@ -19,4 +19,5 @@ class Person { } let a = [1, { a: 1, b: 2 } : /* @@ label */Person]; -/* @@@ label Error SyntaxError: Unexpected token. */ + +/* @@@ label Error Syntax error ESY0000: Unexpected token. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/recursiveFunction.ts b/ets2panda/test/ast/compiler/ts/recursiveFunction.ts index 6e1c091548..28dfccadd3 100644 --- a/ets2panda/test/ast/compiler/ts/recursiveFunction.ts +++ b/ets2panda/test/ast/compiler/ts/recursiveFunction.ts @@ -23,4 +23,5 @@ function /* @@ label */foo(a: number, b: string) { var b: any; var b = foo(2, "bar"); -/* @@@ label Error TypeError: foo implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions. */ + +/* @@@ label Error Semantic error ESE0000: foo implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/recursiveTypeofWithProperty.ts b/ets2panda/test/ast/compiler/ts/recursiveTypeofWithProperty.ts index c4d21c7af7..428a00c470 100644 --- a/ets2panda/test/ast/compiler/ts/recursiveTypeofWithProperty.ts +++ b/ets2panda/test/ast/compiler/ts/recursiveTypeofWithProperty.ts @@ -28,4 +28,5 @@ var o: { } }; -/* @@@ label Error TypeError: 'c' is referenced directly or indirectly in its own initializer ot type annotation. */ + +/* @@@ label Error Semantic error ESE0314: 'c' is referenced directly or indirectly in its own initializer ot type annotation. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/switch_statement_bad.ts b/ets2panda/test/ast/compiler/ts/switch_statement_bad.ts index 5a3ece4962..00ee80733c 100644 --- a/ets2panda/test/ast/compiler/ts/switch_statement_bad.ts +++ b/ets2panda/test/ast/compiler/ts/switch_statement_bad.ts @@ -23,4 +23,5 @@ case /* @@ label */'1': break; } -/* @@@ label Error TypeError: Type string is not comparable to type number */ + +/* @@@ label Error Semantic error ESE0000: Type string is not comparable to type number */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/test-interface4.ts b/ets2panda/test/ast/compiler/ts/test-interface4.ts index b738da85d1..e276e060e2 100644 --- a/ets2panda/test/ast/compiler/ts/test-interface4.ts +++ b/ets2panda/test/ast/compiler/ts/test-interface4.ts @@ -15,4 +15,5 @@ interface A { [a: number] /* @@ label */?: number } -/* @@@ label Error SyntaxError: An index signature must have a type annotation. */ + +/* @@@ label Error Syntax error ESY0000: An index signature must have a type annotation. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/test-interface5.ts b/ets2panda/test/ast/compiler/ts/test-interface5.ts index b5b547dc48..4ce8f33a2a 100644 --- a/ets2panda/test/ast/compiler/ts/test-interface5.ts +++ b/ets2panda/test/ast/compiler/ts/test-interface5.ts @@ -15,4 +15,5 @@ interface A { readonly /* @@ label */new(a: number): string }; -/* @@@ label Error SyntaxError: Unexpected token in property key */ + +/* @@@ label Error Syntax error ESY0000: Unexpected token in property key */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/test-interface6.ts b/ets2panda/test/ast/compiler/ts/test-interface6.ts index 0bf321e80c..5ac596fc38 100644 --- a/ets2panda/test/ast/compiler/ts/test-interface6.ts +++ b/ets2panda/test/ast/compiler/ts/test-interface6.ts @@ -15,4 +15,5 @@ interface A { /* @@ label */readonly a(a: number): string }; -/* @@@ label Error SyntaxError: 'readonly' modifier can only appear on a property declaration or index signature. */ + +/* @@@ label Error Syntax error ESY0000: 'readonly' modifier can only appear on a property declaration or index signature. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/test-interface7.ts b/ets2panda/test/ast/compiler/ts/test-interface7.ts index 7a5e63a365..171779a800 100644 --- a/ets2panda/test/ast/compiler/ts/test-interface7.ts +++ b/ets2panda/test/ast/compiler/ts/test-interface7.ts @@ -15,4 +15,5 @@ interface A { [a: number] /* @@ label */}; -/* @@@ label Error SyntaxError: An index signature must have a type annotation. */ + +/* @@@ label Error Syntax error ESY0000: An index signature must have a type annotation. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/test-type-literal4.ts b/ets2panda/test/ast/compiler/ts/test-type-literal4.ts index 00ec738437..951502639f 100644 --- a/ets2panda/test/ast/compiler/ts/test-type-literal4.ts +++ b/ets2panda/test/ast/compiler/ts/test-type-literal4.ts @@ -15,4 +15,5 @@ var a: { [a:number] /* @@ label */?: number } -/* @@@ label Error SyntaxError: An index signature must have a type annotation. */ + +/* @@@ label Error Syntax error ESY0000: An index signature must have a type annotation. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/test-type-literal5.ts b/ets2panda/test/ast/compiler/ts/test-type-literal5.ts index 4eeeccc157..540dd207a5 100644 --- a/ets2panda/test/ast/compiler/ts/test-type-literal5.ts +++ b/ets2panda/test/ast/compiler/ts/test-type-literal5.ts @@ -15,4 +15,5 @@ var a: { readonly /* @@ label */new (a:number):string }; -/* @@@ label Error SyntaxError: Unexpected token in property key */ + +/* @@@ label Error Syntax error ESY0000: Unexpected token in property key */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/test-type-literal6.ts b/ets2panda/test/ast/compiler/ts/test-type-literal6.ts index 1ce4e9ec12..868a7ebf27 100644 --- a/ets2panda/test/ast/compiler/ts/test-type-literal6.ts +++ b/ets2panda/test/ast/compiler/ts/test-type-literal6.ts @@ -15,4 +15,5 @@ var a: { /* @@ label */readonly a(a:number):string }; -/* @@@ label Error SyntaxError: 'readonly' modifier can only appear on a property declaration or index signature. */ + +/* @@@ label Error Syntax error ESY0000: 'readonly' modifier can only appear on a property declaration or index signature. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/test-type-literal7.ts b/ets2panda/test/ast/compiler/ts/test-type-literal7.ts index bf1f2e1920..8f636c1ba6 100644 --- a/ets2panda/test/ast/compiler/ts/test-type-literal7.ts +++ b/ets2panda/test/ast/compiler/ts/test-type-literal7.ts @@ -15,4 +15,5 @@ var a: { [a:number] /* @@ label */}; -/* @@@ label Error SyntaxError: An index signature must have a type annotation. */ + +/* @@@ label Error Syntax error ESY0000: An index signature must have a type annotation. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/test_variable_declaration_null.ts b/ets2panda/test/ast/compiler/ts/test_variable_declaration_null.ts index e814ed3003..16cb30ddae 100644 --- a/ets2panda/test/ast/compiler/ts/test_variable_declaration_null.ts +++ b/ets2panda/test/ast/compiler/ts/test_variable_declaration_null.ts @@ -15,4 +15,5 @@ const z = null -/* @@? 16:7 Error TypeError: Cannot infer type for variable 'z'. */ + +/* @@? 16:7 Error Semantic error ESE0000: Cannot infer type for variable 'z'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/tupleAssignability1.ts b/ets2panda/test/ast/compiler/ts/tupleAssignability1.ts index ce8e49751e..936f0843f5 100644 --- a/ets2panda/test/ast/compiler/ts/tupleAssignability1.ts +++ b/ets2panda/test/ast/compiler/ts/tupleAssignability1.ts @@ -15,4 +15,5 @@ var /* @@ label */a: [] = [1]; -/* @@@ label Error TypeError: Type '[1]' is not assignable to type '[]'. */ + +/* @@@ label Error Semantic error ESE0000: Type '[1]' is not assignable to type '[]'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/tupleAssignability10.ts b/ets2panda/test/ast/compiler/ts/tupleAssignability10.ts index 782f2da32d..c076e6dbc6 100644 --- a/ets2panda/test/ast/compiler/ts/tupleAssignability10.ts +++ b/ets2panda/test/ast/compiler/ts/tupleAssignability10.ts @@ -18,4 +18,5 @@ function a(): [string, number] { return ["foo", /* @@ label */"bar"]; } -/* @@@ label Error TypeError: Type 'string' is not assignable to type 'number'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'string' is not assignable to type 'number'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/tupleAssignability11.ts b/ets2panda/test/ast/compiler/ts/tupleAssignability11.ts index a7a9083a88..ee2b49e910 100644 --- a/ets2panda/test/ast/compiler/ts/tupleAssignability11.ts +++ b/ets2panda/test/ast/compiler/ts/tupleAssignability11.ts @@ -17,4 +17,5 @@ var a: []; var b: [[]]; /* @@ label */a = b; -/* @@@ label Error TypeError: Type '[[]]' is not assignable to type '[]'. */ + +/* @@@ label Error Semantic error ESE0000: Type '[[]]' is not assignable to type '[]'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/tupleAssignability12.ts b/ets2panda/test/ast/compiler/ts/tupleAssignability12.ts index 12c40921ba..f0918d2b67 100644 --- a/ets2panda/test/ast/compiler/ts/tupleAssignability12.ts +++ b/ets2panda/test/ast/compiler/ts/tupleAssignability12.ts @@ -17,4 +17,5 @@ var a: [a: number, b: string, c?: number]; var b: [a: number, b: string, c: number, d: number]; /* @@ label */a = b; -/* @@@ label Error TypeError: Type '[a: number, b: string, c: number, d: number]' is not assignable to type '[a: number, b: string, c?: number]'. */ + +/* @@@ label Error Semantic error ESE0000: Type '[a: number, b: string, c: number, d: number]' is not assignable to type '[a: number, b: string, c?: number]'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/tupleAssignability13.ts b/ets2panda/test/ast/compiler/ts/tupleAssignability13.ts index 885290a249..cdc43b0929 100644 --- a/ets2panda/test/ast/compiler/ts/tupleAssignability13.ts +++ b/ets2panda/test/ast/compiler/ts/tupleAssignability13.ts @@ -21,4 +21,5 @@ function b(c: typeof a) { } b([1, 2, /* @@ label */3]); -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/tupleAssignability14.ts b/ets2panda/test/ast/compiler/ts/tupleAssignability14.ts index c0ff485783..9451efc6c0 100644 --- a/ets2panda/test/ast/compiler/ts/tupleAssignability14.ts +++ b/ets2panda/test/ast/compiler/ts/tupleAssignability14.ts @@ -15,4 +15,5 @@ var /* @@ label */a: [] = 6; -/* @@@ label Error TypeError: Type 'number' is not assignable to type '[]'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type '[]'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/tupleAssignability15.ts b/ets2panda/test/ast/compiler/ts/tupleAssignability15.ts index 6917dc9867..f03aeb3d17 100644 --- a/ets2panda/test/ast/compiler/ts/tupleAssignability15.ts +++ b/ets2panda/test/ast/compiler/ts/tupleAssignability15.ts @@ -17,4 +17,5 @@ var a: [number, number, number]; var b: number[]; /* @@ label */a = b; -/* @@@ label Error TypeError: Type 'number[]' is not assignable to type '[number, number, number]'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number[]' is not assignable to type '[number, number, number]'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/tupleAssignability16.ts b/ets2panda/test/ast/compiler/ts/tupleAssignability16.ts index 8b258ea66f..dd7781fa88 100644 --- a/ets2panda/test/ast/compiler/ts/tupleAssignability16.ts +++ b/ets2panda/test/ast/compiler/ts/tupleAssignability16.ts @@ -15,4 +15,5 @@ var a: [number[], string[]] = [[/* @@ label */"foo"], ["bar"]]; -/* @@@ label Error TypeError: Type 'string' is not assignable to type 'number'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'string' is not assignable to type 'number'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/tupleAssignability17.ts b/ets2panda/test/ast/compiler/ts/tupleAssignability17.ts index 0837b076e7..4310901d0d 100644 --- a/ets2panda/test/ast/compiler/ts/tupleAssignability17.ts +++ b/ets2panda/test/ast/compiler/ts/tupleAssignability17.ts @@ -17,4 +17,5 @@ var a: [number, string]; var b = a; /* @@ label */b = [1, 2, 3] as [number, number, number]; -/* @@@ label Error TypeError: Type '[number, number, number]' is not assignable to type '[number, string]'. */ + +/* @@@ label Error Semantic error ESE0000: Type '[number, number, number]' is not assignable to type '[number, string]'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/tupleAssignability18.ts b/ets2panda/test/ast/compiler/ts/tupleAssignability18.ts index 7e4b8fb723..4851540c65 100644 --- a/ets2panda/test/ast/compiler/ts/tupleAssignability18.ts +++ b/ets2panda/test/ast/compiler/ts/tupleAssignability18.ts @@ -19,4 +19,5 @@ var b: [[[number]]]; function func(c: number, d: string): [number] { return [1]; } -/* @@@ label Error TypeError: Type 'number' is not assignable to type '[number]'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type '[number]'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/tupleAssignability19.ts b/ets2panda/test/ast/compiler/ts/tupleAssignability19.ts index 27950f7e14..12d1c833d9 100644 --- a/ets2panda/test/ast/compiler/ts/tupleAssignability19.ts +++ b/ets2panda/test/ast/compiler/ts/tupleAssignability19.ts @@ -15,4 +15,5 @@ var a: [number] | [string] = [/* @@ label */true]; -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'number | string'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'number | string'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/tupleAssignability2.ts b/ets2panda/test/ast/compiler/ts/tupleAssignability2.ts index c951334787..14c38559e1 100644 --- a/ets2panda/test/ast/compiler/ts/tupleAssignability2.ts +++ b/ets2panda/test/ast/compiler/ts/tupleAssignability2.ts @@ -15,4 +15,5 @@ var /* @@ label */a: [number, string] = [5, "foo", 6]; -/* @@@ label Error TypeError: Type '[5, "foo", 6]' is not assignable to type '[number, string]'. */ + +/* @@@ label Error Semantic error ESE0000: Type '[5, "foo", 6]' is not assignable to type '[number, string]'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/tupleAssignability20.ts b/ets2panda/test/ast/compiler/ts/tupleAssignability20.ts index 9ec77ec04a..065abd3706 100644 --- a/ets2panda/test/ast/compiler/ts/tupleAssignability20.ts +++ b/ets2panda/test/ast/compiler/ts/tupleAssignability20.ts @@ -15,4 +15,5 @@ var a: number[] | [string, number] = [/* @@ label */true, 5]; -/* @@@ label Error TypeError: Type 'boolean' is not assignable to type 'number | string'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'boolean' is not assignable to type 'number | string'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/tupleAssignability21.ts b/ets2panda/test/ast/compiler/ts/tupleAssignability21.ts index 7605186b36..62c2e0de10 100644 --- a/ets2panda/test/ast/compiler/ts/tupleAssignability21.ts +++ b/ets2panda/test/ast/compiler/ts/tupleAssignability21.ts @@ -15,4 +15,5 @@ var /* @@ label */a: [number, number] | [number, number, number] = [1]; -/* @@@ label Error TypeError: Type '[1]' is not assignable to type '[number, number] | [number, number, number]'. */ + +/* @@@ label Error Semantic error ESE0000: Type '[1]' is not assignable to type '[number, number] | [number, number, number]'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/tupleAssignability22.ts b/ets2panda/test/ast/compiler/ts/tupleAssignability22.ts index b71a05d00a..ccb6e0c623 100644 --- a/ets2panda/test/ast/compiler/ts/tupleAssignability22.ts +++ b/ets2panda/test/ast/compiler/ts/tupleAssignability22.ts @@ -15,4 +15,5 @@ var /* @@ label */a: [number, number] | string = 5; -/* @@@ label Error TypeError: Type 'number' is not assignable to type '[number, number] | string'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type '[number, number] | string'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/tupleAssignability23.ts b/ets2panda/test/ast/compiler/ts/tupleAssignability23.ts index 1b006df38f..46e22bf81f 100644 --- a/ets2panda/test/ast/compiler/ts/tupleAssignability23.ts +++ b/ets2panda/test/ast/compiler/ts/tupleAssignability23.ts @@ -15,4 +15,5 @@ var a: [[number, string], [number, string]] = [[1, "foo"], [2, /* @@ label */3]]; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/tupleAssignability24.ts b/ets2panda/test/ast/compiler/ts/tupleAssignability24.ts index 6372c84d16..79685e9df4 100644 --- a/ets2panda/test/ast/compiler/ts/tupleAssignability24.ts +++ b/ets2panda/test/ast/compiler/ts/tupleAssignability24.ts @@ -17,4 +17,5 @@ var a: [number, number, number] | number[]; var b: [number, number, number, number] | string[]; /* @@ label */a = b; -/* @@@ label Error TypeError: Type '[number, number, number, number] | string[]' is not assignable to type '[number, number, number] | number[]'. */ + +/* @@@ label Error Semantic error ESE0000: Type '[number, number, number, number] | string[]' is not assignable to type '[number, number, number] | number[]'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/tupleAssignability3.ts b/ets2panda/test/ast/compiler/ts/tupleAssignability3.ts index 25c9a35cc3..0f5525ed7e 100644 --- a/ets2panda/test/ast/compiler/ts/tupleAssignability3.ts +++ b/ets2panda/test/ast/compiler/ts/tupleAssignability3.ts @@ -15,4 +15,5 @@ var /* @@ label */a: [number, number, number] = [1, 2]; -/* @@@ label Error TypeError: Type '[1, 2]' is not assignable to type '[number, number, number]'. */ + +/* @@@ label Error Semantic error ESE0000: Type '[1, 2]' is not assignable to type '[number, number, number]'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/tupleAssignability4.ts b/ets2panda/test/ast/compiler/ts/tupleAssignability4.ts index 6cb593a4bb..1bf979e026 100644 --- a/ets2panda/test/ast/compiler/ts/tupleAssignability4.ts +++ b/ets2panda/test/ast/compiler/ts/tupleAssignability4.ts @@ -17,4 +17,5 @@ var a: [number, string]; var b: [string, number]; /* @@ label */a = b; -/* @@@ label Error TypeError: Type '[string, number]' is not assignable to type '[number, string]'. */ + +/* @@@ label Error Semantic error ESE0000: Type '[string, number]' is not assignable to type '[number, string]'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/tupleAssignability5.ts b/ets2panda/test/ast/compiler/ts/tupleAssignability5.ts index c14de10767..0bfbc04b9d 100644 --- a/ets2panda/test/ast/compiler/ts/tupleAssignability5.ts +++ b/ets2panda/test/ast/compiler/ts/tupleAssignability5.ts @@ -15,4 +15,5 @@ var a: [number, string] = [5, /* @@ label */6]; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'string'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/tupleAssignability6.ts b/ets2panda/test/ast/compiler/ts/tupleAssignability6.ts index d21a1504a1..c3497f47f5 100644 --- a/ets2panda/test/ast/compiler/ts/tupleAssignability6.ts +++ b/ets2panda/test/ast/compiler/ts/tupleAssignability6.ts @@ -15,4 +15,5 @@ var a: [[a: number, b?: string], [boolean | string, number[]]] = [[1], ["foo", [1, 2, /* @@ label */"foo"]]]; -/* @@@ label Error TypeError: Type 'string' is not assignable to type 'number'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'string' is not assignable to type 'number'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/tupleAssignability7.ts b/ets2panda/test/ast/compiler/ts/tupleAssignability7.ts index 3151802c59..6b8adfa9e3 100644 --- a/ets2panda/test/ast/compiler/ts/tupleAssignability7.ts +++ b/ets2panda/test/ast/compiler/ts/tupleAssignability7.ts @@ -15,4 +15,5 @@ var a: [[a: number, b?: string], [boolean | string, number[]]] = [[1], [/* @@ label */2, [3, 4]]]; -/* @@@ label Error TypeError: Type 'number' is not assignable to type 'boolean | string'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'number' is not assignable to type 'boolean | string'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/tupleAssignability8.ts b/ets2panda/test/ast/compiler/ts/tupleAssignability8.ts index 7b37bb33b1..d9f9a83f27 100644 --- a/ets2panda/test/ast/compiler/ts/tupleAssignability8.ts +++ b/ets2panda/test/ast/compiler/ts/tupleAssignability8.ts @@ -16,4 +16,5 @@ var a: [number, string, boolean, number, string] = [1, "foo", true, 5, 6] -/* @@? 17:72 Error TypeError: Type 'number' is not assignable to type 'string'. */ + +/* @@? 17:72 Error Semantic error ESE0000: Type 'number' is not assignable to type 'string'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/tupleAssignability9.ts b/ets2panda/test/ast/compiler/ts/tupleAssignability9.ts index ecca78f5e8..75d071251b 100644 --- a/ets2panda/test/ast/compiler/ts/tupleAssignability9.ts +++ b/ets2panda/test/ast/compiler/ts/tupleAssignability9.ts @@ -21,4 +21,5 @@ function b(): [string, number] { } /* @@ label */a = b(); -/* @@@ label Error TypeError: Type '[string, number]' is not assignable to type '[number, string]'. */ + +/* @@@ label Error Semantic error ESE0000: Type '[string, number]' is not assignable to type '[number, string]'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/typeAliasUsedAsValue.ts b/ets2panda/test/ast/compiler/ts/typeAliasUsedAsValue.ts index 167eb1294c..784a335747 100644 --- a/ets2panda/test/ast/compiler/ts/typeAliasUsedAsValue.ts +++ b/ets2panda/test/ast/compiler/ts/typeAliasUsedAsValue.ts @@ -18,4 +18,5 @@ type a = { a: number, b?: string } | number | [string, string, string]; var b: a; /* @@ label */a += 2; -/* @@@ label Error TypeError: a only refers to a type, but is being used as a value here. */ + +/* @@@ label Error Semantic error ESE0000: a only refers to a type, but is being used as a value here. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/undefined_variable_name.ts b/ets2panda/test/ast/compiler/ts/undefined_variable_name.ts index ced03056b4..0b4271955c 100644 --- a/ets2panda/test/ast/compiler/ts/undefined_variable_name.ts +++ b/ets2panda/test/ast/compiler/ts/undefined_variable_name.ts @@ -20,4 +20,5 @@ function foo (undefined: string = "bar"): number { foo(); -/* @@@ label Error TypeError: Type 'string' is not assignable to type 'number'. */ + +/* @@@ label Error Semantic error ESE0000: Type 'string' is not assignable to type 'number'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/varRedeclaration1.ts b/ets2panda/test/ast/compiler/ts/varRedeclaration1.ts index 517bc68d5c..c2744df629 100644 --- a/ets2panda/test/ast/compiler/ts/varRedeclaration1.ts +++ b/ets2panda/test/ast/compiler/ts/varRedeclaration1.ts @@ -17,4 +17,5 @@ var a: any; var /* @@ label */a: number; -/* @@@ label Error TypeError: Subsequent variable declaration must have the same type. Variable 'a' must be of type 'any', but here has type 'number'. */ + +/* @@@ label Error Semantic error ESE0316: Subsequent variable declaration must have the same type. Variable 'a' must be of type 'any', but here has type 'number'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/varRedeclaration10.ts b/ets2panda/test/ast/compiler/ts/varRedeclaration10.ts index 954811af41..09d01216fe 100644 --- a/ets2panda/test/ast/compiler/ts/varRedeclaration10.ts +++ b/ets2panda/test/ast/compiler/ts/varRedeclaration10.ts @@ -20,4 +20,5 @@ var a: {} var a: { a?: number } */ /* @@ label */a; -/* @@@ label Error TypeError: Cannot find name a */ + +/* @@@ label Error Semantic error ESE0000: Cannot find name a */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/varRedeclaration11.ts b/ets2panda/test/ast/compiler/ts/varRedeclaration11.ts index 6b06e8234e..d59a61bab7 100644 --- a/ets2panda/test/ast/compiler/ts/varRedeclaration11.ts +++ b/ets2panda/test/ast/compiler/ts/varRedeclaration11.ts @@ -16,4 +16,5 @@ var a: {} | { a: number, b: string } | number; var /* @@ label */a: { a: number, b: string } | string | {}; -/* @@@ label Error TypeError: Subsequent variable declaration must have the same type. Variable 'a' must be of type '{ } | { a: number; b: string; } | number', but here has type '{ a: number; b: string; } | string | { }'. */ + +/* @@@ label Error Semantic error ESE0316: Subsequent variable declaration must have the same type. Variable 'a' must be of type '{ } | { a: number; b: string; } | number', but here has type '{ a: number; b: string; } | string | { }'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/varRedeclaration12.ts b/ets2panda/test/ast/compiler/ts/varRedeclaration12.ts index ff9fd5b0f7..af8498ecc3 100644 --- a/ets2panda/test/ast/compiler/ts/varRedeclaration12.ts +++ b/ets2panda/test/ast/compiler/ts/varRedeclaration12.ts @@ -25,4 +25,5 @@ interface b { var c: a; var /* @@ label */c: b; -/* @@@ label Error TypeError: Subsequent variable declaration must have the same type. Variable 'c' must be of type 'a', but here has type 'b'. */ + +/* @@@ label Error Semantic error ESE0316: Subsequent variable declaration must have the same type. Variable 'c' must be of type 'a', but here has type 'b'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/varRedeclaration13.ts b/ets2panda/test/ast/compiler/ts/varRedeclaration13.ts index 43b2a83ede..0af7118177 100644 --- a/ets2panda/test/ast/compiler/ts/varRedeclaration13.ts +++ b/ets2panda/test/ast/compiler/ts/varRedeclaration13.ts @@ -34,4 +34,5 @@ interface d { var a: d; var /* @@ label */a: c; -/* @@@ label Error TypeError: Subsequent variable declaration must have the same type. Variable 'a' must be of type 'd', but here has type 'c'. */ + +/* @@@ label Error Semantic error ESE0316: Subsequent variable declaration must have the same type. Variable 'a' must be of type 'd', but here has type 'c'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/varRedeclaration14.ts b/ets2panda/test/ast/compiler/ts/varRedeclaration14.ts index 63a30aa5d9..95c3346137 100644 --- a/ets2panda/test/ast/compiler/ts/varRedeclaration14.ts +++ b/ets2panda/test/ast/compiler/ts/varRedeclaration14.ts @@ -29,4 +29,5 @@ interface c { var a: c; var /* @@ label */a: b; -/* @@@ label Error TypeError: Subsequent variable declaration must have the same type. Variable 'a' must be of type 'c', but here has type 'b'. */ + +/* @@@ label Error Semantic error ESE0316: Subsequent variable declaration must have the same type. Variable 'a' must be of type 'c', but here has type 'b'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/varRedeclaration15.ts b/ets2panda/test/ast/compiler/ts/varRedeclaration15.ts index b15007fb25..9ecc62fd3a 100644 --- a/ets2panda/test/ast/compiler/ts/varRedeclaration15.ts +++ b/ets2panda/test/ast/compiler/ts/varRedeclaration15.ts @@ -16,4 +16,5 @@ var a: { a: number, b: string }; var /* @@ label */a: typeof a | 5; -/* @@@ label Error TypeError: Subsequent variable declaration must have the same type. Variable 'a' must be of type '{ a: number; b: string; }', but here has type '{ a: number; b: string; } | 5'. */ + +/* @@@ label Error Semantic error ESE0316: Subsequent variable declaration must have the same type. Variable 'a' must be of type '{ a: number; b: string; }', but here has type '{ a: number; b: string; } | 5'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/varRedeclaration2.ts b/ets2panda/test/ast/compiler/ts/varRedeclaration2.ts index b946050d9d..a1845d1faa 100644 --- a/ets2panda/test/ast/compiler/ts/varRedeclaration2.ts +++ b/ets2panda/test/ast/compiler/ts/varRedeclaration2.ts @@ -16,4 +16,5 @@ var a: number; var /* @@ label */a: 5; -/* @@@ label Error TypeError: Subsequent variable declaration must have the same type. Variable 'a' must be of type 'number', but here has type '5'. */ + +/* @@@ label Error Semantic error ESE0316: Subsequent variable declaration must have the same type. Variable 'a' must be of type 'number', but here has type '5'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/varRedeclaration3.ts b/ets2panda/test/ast/compiler/ts/varRedeclaration3.ts index f457a83a86..ba3104fe29 100644 --- a/ets2panda/test/ast/compiler/ts/varRedeclaration3.ts +++ b/ets2panda/test/ast/compiler/ts/varRedeclaration3.ts @@ -16,4 +16,5 @@ var a: number; var /* @@ label */a: number | string; -/* @@@ label Error TypeError: Subsequent variable declaration must have the same type. Variable 'a' must be of type 'number', but here has type 'number | string'. */ + +/* @@@ label Error Semantic error ESE0316: Subsequent variable declaration must have the same type. Variable 'a' must be of type 'number', but here has type 'number | string'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/varRedeclaration4.ts b/ets2panda/test/ast/compiler/ts/varRedeclaration4.ts index 29c75591e2..620e899fb0 100644 --- a/ets2panda/test/ast/compiler/ts/varRedeclaration4.ts +++ b/ets2panda/test/ast/compiler/ts/varRedeclaration4.ts @@ -16,4 +16,5 @@ var a: number[] var /* @@ label */a: string[] -/* @@@ label Error TypeError: Subsequent variable declaration must have the same type. Variable 'a' must be of type 'number[]', but here has type 'string[]'. */ + +/* @@@ label Error Semantic error ESE0316: Subsequent variable declaration must have the same type. Variable 'a' must be of type 'number[]', but here has type 'string[]'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/varRedeclaration5.ts b/ets2panda/test/ast/compiler/ts/varRedeclaration5.ts index 1fae255cbb..24e855533a 100644 --- a/ets2panda/test/ast/compiler/ts/varRedeclaration5.ts +++ b/ets2panda/test/ast/compiler/ts/varRedeclaration5.ts @@ -20,4 +20,5 @@ var a: { a: number, b: string }; var a: { a: string, b: number }; */ /* @@ label */a; -/* @@@ label Error TypeError: Cannot find name a */ + +/* @@@ label Error Semantic error ESE0000: Cannot find name a */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/varRedeclaration6.ts b/ets2panda/test/ast/compiler/ts/varRedeclaration6.ts index 2a9efa2fbc..7e947dc3dc 100644 --- a/ets2panda/test/ast/compiler/ts/varRedeclaration6.ts +++ b/ets2panda/test/ast/compiler/ts/varRedeclaration6.ts @@ -16,4 +16,5 @@ var a: [number, string, number]; var /* @@ label */a: [a: number, b: string, c?: number]; -/* @@@ label Error TypeError: Subsequent variable declaration must have the same type. Variable 'a' must be of type '[number, string, number]', but here has type '[a: number, b: string, c?: number]'. */ + +/* @@@ label Error Semantic error ESE0316: Subsequent variable declaration must have the same type. Variable 'a' must be of type '[number, string, number]', but here has type '[a: number, b: string, c?: number]'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/varRedeclaration7.ts b/ets2panda/test/ast/compiler/ts/varRedeclaration7.ts index 0da8751932..4cf84d4230 100644 --- a/ets2panda/test/ast/compiler/ts/varRedeclaration7.ts +++ b/ets2panda/test/ast/compiler/ts/varRedeclaration7.ts @@ -20,4 +20,5 @@ var a: { a: number, b?: string }; var a: { a: number, b: string }; */ /* @@ label */a; -/* @@@ label Error TypeError: Cannot find name a */ + +/* @@@ label Error Semantic error ESE0000: Cannot find name a */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/varRedeclaration8.ts b/ets2panda/test/ast/compiler/ts/varRedeclaration8.ts index 545c7aca0f..9749cf5602 100644 --- a/ets2panda/test/ast/compiler/ts/varRedeclaration8.ts +++ b/ets2panda/test/ast/compiler/ts/varRedeclaration8.ts @@ -22,4 +22,5 @@ var a = { a: "foo", ...obj }; var a: { a: number, 5: string }; */ /* @@ label */a; -/* @@@ label Error TypeError: Cannot find name a */ + +/* @@@ label Error Semantic error ESE0000: Cannot find name a */ \ No newline at end of file diff --git a/ets2panda/test/ast/compiler/ts/varRedeclaration9.ts b/ets2panda/test/ast/compiler/ts/varRedeclaration9.ts index 2601b4eae3..39125e7fba 100644 --- a/ets2panda/test/ast/compiler/ts/varRedeclaration9.ts +++ b/ets2panda/test/ast/compiler/ts/varRedeclaration9.ts @@ -16,4 +16,4 @@ var a: (a: number, b?: number) => number; var /* @@ label */a: (a: number, b: number) => number; -/* @@@ label Error TypeError: Subsequent variable declaration must have the same type. Variable 'a' must be of type '(p1: number, p2?: number) => number', but here has type '(p1: number, p2: number) => number'. */ +/* @@@ label Error Semantic error ESE0316: Subsequent variable declaration must have the same type. Variable 'a' must be of type '(p1: number, p2?: number) => number', but here has type '(p1: number, p2: number) => number'. */ diff --git a/ets2panda/test/ast/parser/as/test_class_property1.ts b/ets2panda/test/ast/parser/as/test_class_property1.ts index f7f244de6d..b174f071e5 100644 --- a/ets2panda/test/ast/parser/as/test_class_property1.ts +++ b/ets2panda/test/ast/parser/as/test_class_property1.ts @@ -18,4 +18,5 @@ class A { a /* @@ label */= 1; } -/* @@@ label Error SyntaxError: Type expected */ + +/* @@@ label Error Syntax error ESY0000: Type expected */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/as/test_declare_method.ts b/ets2panda/test/ast/parser/as/test_declare_method.ts index 44924f19b3..27374e2bee 100644 --- a/ets2panda/test/ast/parser/as/test_declare_method.ts +++ b/ets2panda/test/ast/parser/as/test_declare_method.ts @@ -18,4 +18,5 @@ class A { declare foo/* @@ label */(a: i32): i32 { } } -/* @@@ label Error SyntaxError: 'declare' modifier cannot appear on class elements of this kind */ + +/* @@@ label Error Syntax error ESY0000: 'declare' modifier cannot appear on class elements of this kind */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/as/test_decorator.ts b/ets2panda/test/ast/parser/as/test_decorator.ts index 7e1ef04850..7d65b361fd 100644 --- a/ets2panda/test/ast/parser/as/test_decorator.ts +++ b/ets2panda/test/ast/parser/as/test_decorator.ts @@ -18,5 +18,6 @@ function a(): void { /* @@ label2 */@a /* @@ label */} -/* @@@ label Error SyntaxError: Unexpected token '}'. */ -/* @@@ label2 Error SyntaxError: Decorators are not valid here */ + +/* @@@ label2 Error Syntax error ESY0000: Decorators are not valid here */ +/* @@@ label Error Syntax error ESY0227: Unexpected token '}'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/as/test_decorators2.ts b/ets2panda/test/ast/parser/as/test_decorators2.ts index 7f584d3f29..702b2827a4 100644 --- a/ets2panda/test/ast/parser/as/test_decorators2.ts +++ b/ets2panda/test/ast/parser/as/test_decorators2.ts @@ -16,4 +16,5 @@ function foo(/* @@ label */@a a: i32): void { } -/* @@@ label Error SyntaxError: Identifier expected */ + +/* @@@ label Error Syntax error ESY0000: Identifier expected */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/as/test_decorators3.ts b/ets2panda/test/ast/parser/as/test_decorators3.ts index 678dc47ba5..99db6da3e6 100644 --- a/ets2panda/test/ast/parser/as/test_decorators3.ts +++ b/ets2panda/test/ast/parser/as/test_decorators3.ts @@ -18,4 +18,5 @@ class A { constructor(/* @@ label */@a a: i32) { } } -/* @@@ label Error SyntaxError: Identifier expected */ + +/* @@@ label Error Syntax error ESY0000: Identifier expected */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/as/test_interface1.ts b/ets2panda/test/ast/parser/as/test_interface1.ts index 71b0ec7f29..e6657f866d 100644 --- a/ets2panda/test/ast/parser/as/test_interface1.ts +++ b/ets2panda/test/ast/parser/as/test_interface1.ts @@ -18,4 +18,5 @@ interface foo { a(b?: i32) /* @@ label */} -/* @@@ label Error SyntaxError: Type expected. */ + +/* @@@ label Error Syntax error ESY0000: Type expected. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/as/test_interface2.ts b/ets2panda/test/ast/parser/as/test_interface2.ts index a3b4c82d13..7e7dc2f5e6 100644 --- a/ets2panda/test/ast/parser/as/test_interface2.ts +++ b/ets2panda/test/ast/parser/as/test_interface2.ts @@ -18,4 +18,5 @@ interface foo { [/* @@ label */a: i8]: v128 } -/* @@@ label Error SyntaxError: 'key' expected. */ + +/* @@@ label Error Syntax error ESY0000: 'key' expected. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/as/test_interface3.ts b/ets2panda/test/ast/parser/as/test_interface3.ts index 71b0ec7f29..e6657f866d 100644 --- a/ets2panda/test/ast/parser/as/test_interface3.ts +++ b/ets2panda/test/ast/parser/as/test_interface3.ts @@ -18,4 +18,5 @@ interface foo { a(b?: i32) /* @@ label */} -/* @@@ label Error SyntaxError: Type expected. */ + +/* @@@ label Error Syntax error ESY0000: Type expected. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/as/test_interface4.ts b/ets2panda/test/ast/parser/as/test_interface4.ts index 384bfe9f23..e43544b82b 100644 --- a/ets2panda/test/ast/parser/as/test_interface4.ts +++ b/ets2panda/test/ast/parser/as/test_interface4.ts @@ -18,4 +18,5 @@ interface foo { [key/* @@ label */]: externref } -/* @@@ label Error SyntaxError: ':' expected. */ + +/* @@@ label Error Syntax error ESY0000: ':' expected. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/as/test_interface5.ts b/ets2panda/test/ast/parser/as/test_interface5.ts index 641b7795f3..d61b34ddb7 100644 --- a/ets2panda/test/ast/parser/as/test_interface5.ts +++ b/ets2panda/test/ast/parser/as/test_interface5.ts @@ -18,4 +18,5 @@ interface foo { [/* @@ label */5]: void } -/* @@@ label Error SyntaxError: Identifier expected. */ + +/* @@@ label Error Syntax error ESY0000: Identifier expected. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/as/test_object_literal1.ts b/ets2panda/test/ast/parser/as/test_object_literal1.ts index b54bf51c8d..41b47d3e5a 100644 --- a/ets2panda/test/ast/parser/as/test_object_literal1.ts +++ b/ets2panda/test/ast/parser/as/test_object_literal1.ts @@ -16,4 +16,5 @@ let a = { /* @@ label */[5 + 6] } -/* @@@ label Error SyntaxError: Identifier expected */ + +/* @@@ label Error Syntax error ESY0000: Identifier expected */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/as/test_object_literal2.ts b/ets2panda/test/ast/parser/as/test_object_literal2.ts index ee3c93ead4..852f5ffb10 100644 --- a/ets2panda/test/ast/parser/as/test_object_literal2.ts +++ b/ets2panda/test/ast/parser/as/test_object_literal2.ts @@ -16,4 +16,5 @@ let a = { "foo" /* @@ label */} -/* @@@ label Error SyntaxError: ':' expected */ + +/* @@@ label Error Syntax error ESY0000: ':' expected */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/as/test_object_literal3.ts b/ets2panda/test/ast/parser/as/test_object_literal3.ts index f500d92a71..c22ac351d5 100644 --- a/ets2panda/test/ast/parser/as/test_object_literal3.ts +++ b/ets2panda/test/ast/parser/as/test_object_literal3.ts @@ -16,4 +16,5 @@ let a = { b , a /* @@ label */n ) -/* @@@ label Error SyntaxError: Unexpected token. */ + +/* @@@ label Error Syntax error ESY0016: Unexpected token. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/as/test_object_literal4.ts b/ets2panda/test/ast/parser/as/test_object_literal4.ts index 9a60c0609f..2d783a2a8d 100644 --- a/ets2panda/test/ast/parser/as/test_object_literal4.ts +++ b/ets2panda/test/ast/parser/as/test_object_literal4.ts @@ -16,4 +16,5 @@ let a = { /* @@ label */...k } -/* @@@ label Error SyntaxError: Identifier expected */ + +/* @@@ label Error Syntax error ESY0000: Identifier expected */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/as/test_type_annotation1.ts b/ets2panda/test/ast/parser/as/test_type_annotation1.ts index 28921726e0..9b6d75ad0e 100644 --- a/ets2panda/test/ast/parser/as/test_type_annotation1.ts +++ b/ets2panda/test/ast/parser/as/test_type_annotation1.ts @@ -16,5 +16,5 @@ let a: i32 | -/* @@@ label Error SyntaxError: 'null' expected */ -/* @@ label */ \ No newline at end of file + +/* @@ label *//* @@? 20:74 Error Syntax error ESY0000: 'null' expected */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/as/test_type_annotation2.ts b/ets2panda/test/ast/parser/as/test_type_annotation2.ts index 7bf7f993c7..a29c17a1f1 100644 --- a/ets2panda/test/ast/parser/as/test_type_annotation2.ts +++ b/ets2panda/test/ast/parser/as/test_type_annotation2.ts @@ -16,5 +16,5 @@ let a: i32[ -/* @@@ label Error SyntaxError: ']' expected */ -/* @@ label */ \ No newline at end of file + +/* @@ label *//* @@? 20:71 Error Syntax error ESY0000: ']' expected */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/as/test_type_annotation3.ts b/ets2panda/test/ast/parser/as/test_type_annotation3.ts index ac54ea313b..a0c40fd3ba 100644 --- a/ets2panda/test/ast/parser/as/test_type_annotation3.ts +++ b/ets2panda/test/ast/parser/as/test_type_annotation3.ts @@ -16,4 +16,5 @@ let a: (a: i32, b/* @@ label */) => void -/* @@@ label Error SyntaxError: ':' expected */ + +/* @@@ label Error Syntax error ESY0000: ':' expected */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/as/test_type_annotation4.ts b/ets2panda/test/ast/parser/as/test_type_annotation4.ts index e07712001d..4d06322bb3 100644 --- a/ets2panda/test/ast/parser/as/test_type_annotation4.ts +++ b/ets2panda/test/ast/parser/as/test_type_annotation4.ts @@ -16,5 +16,5 @@ let a: (a: i32, b: u8) => -/* @@@ label Error SyntaxError: Type expected */ -/* @@ label */ \ No newline at end of file + +/* @@ label *//* @@? 20:72 Error Syntax error ESY0000: Type expected */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/as/test_type_annotation5.ts b/ets2panda/test/ast/parser/as/test_type_annotation5.ts index a31c6614be..84a0090e4e 100644 --- a/ets2panda/test/ast/parser/as/test_type_annotation5.ts +++ b/ets2panda/test/ast/parser/as/test_type_annotation5.ts @@ -16,4 +16,5 @@ let a: (a: i32, b: u8) /* @@ label */u8 -/* @@@ label Error SyntaxError: '=>' expected */ + +/* @@@ label Error Syntax error ESY0000: '=>' expected */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/as/test_type_annotation6.ts b/ets2panda/test/ast/parser/as/test_type_annotation6.ts index 246090651f..dcb97a8cf6 100644 --- a/ets2panda/test/ast/parser/as/test_type_annotation6.ts +++ b/ets2panda/test/ast/parser/as/test_type_annotation6.ts @@ -16,5 +16,5 @@ let b: ((a: i32, b?: void, c: u8) => i32) | -/* @@@ label Error SyntaxError: 'null' expected */ -/* @@ label */ \ No newline at end of file + +/* @@ label *//* @@? 20:74 Error Syntax error ESY0000: 'null' expected */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/AllowSequence.ets b/ets2panda/test/ast/parser/ets/AllowSequence.ets index 54699864e1..066fd4ffdf 100644 --- a/ets2panda/test/ast/parser/ets/AllowSequence.ets +++ b/ets2panda/test/ast/parser/ets/AllowSequence.ets @@ -21,4 +21,5 @@ function main(): void { } } -/* @@? 19:17 Error SyntaxError: Comma operator is supported only in 'for' loops. */ + +/* @@? 19:17 Error Syntax error ESY133681: Comma operator is supported only in 'for' loops. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/DeclareAsyncFunction.ets b/ets2panda/test/ast/parser/ets/DeclareAsyncFunction.ets index f7ba6eb82c..a253ecca01 100644 --- a/ets2panda/test/ast/parser/ets/DeclareAsyncFunction.ets +++ b/ets2panda/test/ast/parser/ets/DeclareAsyncFunction.ets @@ -15,5 +15,5 @@ declare async function foo(): Promise -/* @@@ label Error SyntaxError: The modifier async cannot be used in an ambient context. */ -/* @@ label */ \ No newline at end of file + +/* @@ label *//* @@? 19:116 Error Syntax error ESY0106: The modifier async cannot be used in an ambient context. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/Dollar_doller_invalid1.ets b/ets2panda/test/ast/parser/ets/Dollar_doller_invalid1.ets index d2e65d59b7..9b8889cad7 100644 --- a/ets2panda/test/ast/parser/ets/Dollar_doller_invalid1.ets +++ b/ets2panda/test/ast/parser/ets/Dollar_doller_invalid1.ets @@ -20,4 +20,5 @@ function main(){ let b = $$a; } -/* @@? 20:10 Error TypeError: Unresolved reference $$a */ + +/* @@? 20:10 Error Semantic error ESE0143: Unresolved reference $$a */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/Dollar_doller_invalid2.ets b/ets2panda/test/ast/parser/ets/Dollar_doller_invalid2.ets index 478ef10f02..09cfca66ad 100644 --- a/ets2panda/test/ast/parser/ets/Dollar_doller_invalid2.ets +++ b/ets2panda/test/ast/parser/ets/Dollar_doller_invalid2.ets @@ -19,6 +19,6 @@ function main(){ let c = $$1; } -/* @@? 17:11 Error TypeError: Unresolved reference $$true */ -/* @@? 18:11 Error TypeError: Unresolved reference $$false */ -/* @@? 19:11 Error TypeError: Unresolved reference $$1 */ \ No newline at end of file +/* @@? 17:11 Error Semantic error ESE0143: Unresolved reference $$true */ +/* @@? 18:11 Error Semantic error ESE0143: Unresolved reference $$false */ +/* @@? 19:11 Error Semantic error ESE0143: Unresolved reference $$1 */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/Dollar_doller_invalid3.ets b/ets2panda/test/ast/parser/ets/Dollar_doller_invalid3.ets index dece3f1eb2..f57c582baf 100644 --- a/ets2panda/test/ast/parser/ets/Dollar_doller_invalid3.ets +++ b/ets2panda/test/ast/parser/ets/Dollar_doller_invalid3.ets @@ -23,4 +23,5 @@ class A { } } -/* @@? 22:28 Error TypeError: Unresolved reference $$this */ + +/* @@? 22:28 Error Semantic error ESE0143: Unresolved reference $$this */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/FixedArray/FunctionalTypeAsArrayElement.ets b/ets2panda/test/ast/parser/ets/FixedArray/FunctionalTypeAsArrayElement.ets index 8a366c6af3..2a0f4541ae 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/FunctionalTypeAsArrayElement.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/FunctionalTypeAsArrayElement.ets @@ -19,4 +19,5 @@ 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' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/FixedArray/InvalidStatements3.ets b/ets2panda/test/ast/parser/ets/FixedArray/InvalidStatements3.ets index ea7ab949d1..99d53840e5 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/InvalidStatements3.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/InvalidStatements3.ets @@ -41,22 +41,23 @@ function foo() { for (let i = 1 in [0, 1, 2]) {} -/* @@? 19:1 Error SyntaxError: Expected '{', got '}'. */ -/* @@? 22:5 Error SyntaxError: Expected '{', got 'let'. */ -/* @@? 23:11 Error SyntaxError: Expected '{', got '('. */ -/* @@? 23:11 Error TypeError: Unresolved reference x */ -/* @@? 27:7 Error SyntaxError: Expected '(', got '{'. */ -/* @@? 27:7 Error TypeError: need to specify target type for class composite */ -/* @@? 29:1 Error SyntaxError: Expected ')', got 'while'. */ -/* @@? 29:7 Error SyntaxError: Expected '(', got 'identification literal'. */ -/* @@? 29:13 Error SyntaxError: Expected ')', got '{'. */ -/* @@? 31:9 Error SyntaxError: Unexpected token 'let'. */ -/* @@? 31:13 Error SyntaxError: Unexpected token 'x'. */ -/* @@? 34:5 Error SyntaxError: Illegal 'use strict' directive in function with non-simple parameter list. */ -/* @@? 38:5 Error SyntaxError: Annotation declaration can not have access modifier. */ -/* @@? 38:5 Error SyntaxError: Unexpected token 'private'. */ -/* @@? 38:13 Error SyntaxError: Unexpected token '@'. */ -/* @@? 38:14 Error TypeError: Cannot find type 'annotate'. */ -/* @@? 42:16 Error SyntaxError: 'in' operator is not supported. Use 'instanceof' operator to check whether an object is the instance of a class that contains the necessary class member. */ -/* @@? 42:28 Error SyntaxError: Expected ';', got ')'. */ -/* @@? 42:28 Error SyntaxError: Invalid left-hand side in 'For[In/Of]Statement'. */ + +/* @@? 19:1 Error Syntax error ESY0230: Expected '{', got '}'. */ +/* @@? 22:5 Error Syntax error ESY0230: Expected '{', got 'let'. */ +/* @@? 23:11 Error Syntax error ESY0230: Expected '{', got '('. */ +/* @@? 23:11 Error Semantic error ESE0143: Unresolved reference x */ +/* @@? 27:7 Error Syntax error ESY0230: Expected '(', got '{'. */ +/* @@? 27:7 Error Semantic error ESE0062: need to specify target type for class composite */ +/* @@? 29:1 Error Syntax error ESY0230: Expected ')', got 'while'. */ +/* @@? 29:7 Error Syntax error ESY0230: Expected '(', got 'identification literal'. */ +/* @@? 29:13 Error Syntax error ESY0230: Expected ')', got '{'. */ +/* @@? 31:9 Error Syntax error ESY0227: Unexpected token 'let'. */ +/* @@? 31:13 Error Syntax error ESY0227: Unexpected token 'x'. */ +/* @@? 34:5 Error Syntax error ESY0199: Illegal 'use strict' directive in function with non-simple parameter list. */ +/* @@? 38:5 Error Syntax error ESY0210: Annotation declaration can not have access modifier. */ +/* @@? 38:5 Error Syntax error ESY0227: Unexpected token 'private'. */ +/* @@? 38:13 Error Syntax error ESY0227: Unexpected token '@'. */ +/* @@? 38:14 Error Semantic error ESE0371: Cannot find type 'annotate'. */ +/* @@? 42:16 Error Syntax error ESY105822: 'in' operator is not supported. Use 'instanceof' operator to check whether an object is the instance of a class that contains the necessary class member. */ +/* @@? 42:28 Error Syntax error ESY0230: Expected ';', got ')'. */ +/* @@? 42:28 Error Syntax error ESY0167: Invalid left-hand side in 'For[In/Of]Statement'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/FixedArray/MultipleParserErrors.ets b/ets2panda/test/ast/parser/ets/FixedArray/MultipleParserErrors.ets index 4b647af6a8..68f88e5551 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/MultipleParserErrors.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/MultipleParserErrors.ets @@ -166,130 +166,131 @@ function main(): void { f(); } -/* @@? 18:14 Error SyntaxError: Optional variable is not allowed in for of statements. */ -/* @@? 28:29 Error TypeError: Native, Abstract and Declare methods cannot have body. */ -/* @@? 34:14 Error SyntaxError: The modifier for a constructor should be limited to access modifiers (private, internal, protected, public), and 'native' modifiers. */ -/* @@? 37:33 Error SyntaxError: Unexpected token 'rethrows'. */ -/* @@? 37:33 Error TypeError: Unresolved reference rethrows */ -/* @@? 39:14 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ -/* @@? 39:14 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 39:14 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 39:24 Error SyntaxError: Unexpected token 'int'. */ -/* @@? 39:27 Error SyntaxError: Unexpected token ')'. */ -/* @@? 39:29 Error SyntaxError: Unexpected token '{'. */ -/* @@? 39:31 Error SyntaxError: return keyword should be used in function body. */ -/* @@? 39:38 Error TypeError: All return statements in the function should be empty or have a value. */ -/* @@? 41:1 Error TypeError: Unresolved reference type */ -/* @@? 41:6 Error SyntaxError: Unexpected token '123'. */ -/* @@? 41:6 Error TypeError: Invalid left-hand side of assignment expression */ -/* @@? 41:10 Error SyntaxError: Invalid left-hand side in assignment expression. */ -/* @@? 41:12 Error SyntaxError: Unexpected token 'int'. */ -/* @@? 43:6 Error SyntaxError: Unexpected token 'null'. */ -/* @@? 43:6 Error TypeError: Invalid left-hand side of assignment expression */ -/* @@? 43:11 Error SyntaxError: Invalid left-hand side in assignment expression. */ -/* @@? 43:13 Error SyntaxError: Unexpected token 'byte'. */ -/* @@? 45:6 Error SyntaxError: Unexpected token 'this'. */ -/* @@? 45:6 Error TypeError: 'this' cannot be referenced from a static context */ -/* @@? 45:6 Error TypeError: Invalid left-hand side of assignment expression */ -/* @@? 45:11 Error SyntaxError: Invalid left-hand side in assignment expression. */ -/* @@? 47:8 Error SyntaxError: Variable must be initialized or it's type must be declared. */ -/* @@? 47:8 Error TypeError: Missing initializer in const declaration */ -/* @@? 49:13 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ -/* @@? 51:35 Error SyntaxError: Rest parameter must be the last formal parameter. */ -/* @@? 51:37 Error SyntaxError: Unexpected token '...'. */ -/* @@? 51:40 Error SyntaxError: Unexpected token 'p'. */ -/* @@? 51:43 Error SyntaxError: Label must be followed by a loop statement. */ -/* @@? 51:43 Error TypeError: Unresolved reference FixedArray */ -/* @@? 51:58 Error SyntaxError: Unexpected token, expected '('. */ -/* @@? 51:59 Error SyntaxError: Unexpected token ':'. */ -/* @@? 51:61 Error SyntaxError: Unexpected token 'int'. */ -/* @@? 51:61 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 51:61 Error SyntaxError: Unexpected token 'int'. */ -/* @@? 51:65 Error SyntaxError: Unexpected token '{'. */ -/* @@? 52:5 Error SyntaxError: return keyword should be used in function body. */ -/* @@? 52:12 Error TypeError: All return statements in the function should be empty or have a value. */ -/* @@? 52:12 Error TypeError: Unresolved reference q */ -/* @@? 52:23 Error TypeError: Unresolved reference p */ -/* @@? 55:14 Error SyntaxError: Rest parameter should be either array or tuple type. */ -/* @@? 59:14 Error SyntaxError: Rest parameter should be either array or tuple type. */ -/* @@? 63:22 Error SyntaxError: Rest parameter should be either array or tuple type. */ -/* @@? 63:26 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ -/* @@? 67:7 Error TypeError: Merging declarations is not supported, please keep all definitions of classes, interfaces and enums compact in the codebase! */ -/* @@? 67:7 Error TypeError: Variable 'A' has already been declared. */ -/* @@? 68:3 Error SyntaxError: Unexpected token. A constructor, method, accessor, or property was expected. */ -/* @@? 73:7 Error TypeError: Merging declarations is not supported, please keep all definitions of classes, interfaces and enums compact in the codebase! */ -/* @@? 73:7 Error TypeError: Variable 'A' has already been declared. */ -/* @@? 74:11 Error SyntaxError: Unexpected token. A constructor, method, accessor, or property was expected. */ -/* @@? 77:20 Error TypeError: Interface expected here. */ -/* @@? 77:22 Error TypeError: 'I' type does not exist. */ -/* @@? 78:22 Error TypeError: Method fee(): Int in B not overriding any method */ -/* @@? 83:7 Error TypeError: Merging declarations is not supported, please keep all definitions of classes, interfaces and enums compact in the codebase! */ -/* @@? 83:7 Error TypeError: Variable 'A' has already been declared. */ -/* @@? 84:3 Error SyntaxError: Unexpected token. A constructor, method, accessor, or property was expected. */ -/* @@? 92:7 Error TypeError: Merging declarations is not supported, please keep all definitions of classes, interfaces and enums compact in the codebase! */ -/* @@? 92:7 Error TypeError: Variable 'A' has already been declared. */ -/* @@? 93:3 Error SyntaxError: Unexpected token. A constructor, method, accessor, or property was expected. */ -/* @@? 103:14 Error SyntaxError: Rest parameter should be either array or tuple type. */ -/* @@? 104:21 Error SyntaxError: Rest parameter should be either array or tuple type. */ -/* @@? 115:26 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ -/* @@? 115:26 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 115:26 Error SyntaxError: Unexpected token 'case'. */ -/* @@? 115:26 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 115:30 Error SyntaxError: Unexpected token ':'. */ -/* @@? 115:32 Error SyntaxError: Unexpected token 'U'. */ -/* @@? 115:32 Error TypeError: Unresolved reference U */ -/* @@? 115:33 Error SyntaxError: Unexpected token ')'. */ -/* @@? 115:34 Error SyntaxError: Unexpected token ':'. */ -/* @@? 115:36 Error SyntaxError: Unexpected token 'T'. */ -/* @@? 115:36 Error TypeError: Unresolved reference T */ -/* @@? 115:38 Error SyntaxError: Unexpected token '{'. */ -/* @@? 116:5 Error SyntaxError: return keyword should be used in function body. */ -/* @@? 116:12 Error TypeError: All return statements in the function should be empty or have a value. */ -/* @@? 119:1 Error TypeError: Function foo with this assembly signature already declared. */ -/* @@? 119:26 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 119:26 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ -/* @@? 119:26 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 119:26 Error SyntaxError: Unexpected token 'case'. */ -/* @@? 119:30 Error SyntaxError: Unexpected token ':'. */ -/* @@? 119:32 Error SyntaxError: Unexpected token 'U'. */ -/* @@? 119:33 Error SyntaxError: Unexpected token ')'. */ -/* @@? 119:34 Error SyntaxError: Unexpected token ':'. */ -/* @@? 119:36 Error SyntaxError: Unexpected token 'T'. */ -/* @@? 119:38 Error SyntaxError: Unexpected token '{'. */ -/* @@? 120:5 Error SyntaxError: return keyword should be used in function body. */ -/* @@? 120:12 Error TypeError: All return statements in the function should be empty or have a value. */ -/* @@? 123:5 Error SyntaxError: Identifier expected, got ','. */ -/* @@? 123:6 Error SyntaxError: Variable must be initialized or it's type must be declared. */ -/* @@? 123:6 Error SyntaxError: Unexpected token 'abc'. */ -/* @@? 123:6 Error SyntaxError: Variable must be initialized or it's type must be declared. */ -/* @@? 123:6 Error TypeError: Unresolved reference abc */ -/* @@? 125:1 Error TypeError: Method declaration `foo` must all ambient or non-ambient */ -/* @@? 127:1 Error SyntaxError: The modifier async cannot be used in an ambient context. */ -/* @@? 132:14 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 137:16 Error SyntaxError: Catch clause variable cannot have an initializer. */ -/* @@? 137:16 Error SyntaxError: Expected ')', got '='. */ -/* @@? 137:16 Error SyntaxError: Expected '{', got '='. */ -/* @@? 137:16 Error SyntaxError: Unexpected token '='. */ -/* @@? 137:18 Error SyntaxError: Unexpected token '0'. */ -/* @@? 137:19 Error SyntaxError: Unexpected token ')'. */ -/* @@? 137:21 Error SyntaxError: Unexpected token '{'. */ -/* @@? 141:24 Error TypeError: This expression is not callable. */ -/* @@? 145:18 Error TypeError: A is abstract therefore cannot be instantiated. */ -/* @@? 146:28 Error TypeError: Property 'getInner' does not exist on type 'A' */ -/* @@? 148:25 Error TypeError: A is abstract therefore cannot be instantiated. */ -/* @@? 149:24 Error TypeError: A is abstract therefore cannot be instantiated. */ -/* @@? 151:20 Error TypeError: Cannot find type 'D0'. */ -/* @@? 151:29 Error TypeError: Cannot find type 'D0'. */ -/* @@? 157:16 Error TypeError: A is abstract therefore cannot be instantiated. */ -/* @@? 158:26 Error TypeError: Property 'getInner' does not exist on type 'A' */ -/* @@? 161:9 Error SyntaxError: Hard keyword 'let' cannot be used as identifier */ -/* @@? 161:9 Error SyntaxError: Identifier expected, got 'let'. */ -/* @@? 162:9 Error SyntaxError: Identifier expected, got 'const'. */ -/* @@? 162:9 Error SyntaxError: Hard keyword 'const' cannot be used as identifier */ -/* @@? 163:9 Error SyntaxError: Identifier expected, got 'new'. */ -/* @@? 163:9 Error SyntaxError: Hard keyword 'new' cannot be used as identifier */ -/* @@? 164:5 Error TypeError: This expression is not callable. */ -/* @@? 165:5 Error TypeError: This expression is not callable. */ -/* @@? 166:5 Error TypeError: No matching call signature */ -/* @@? 166:5 Error TypeError: Expected 1 arguments, got 0. */ -/* @@? 296:1 Error SyntaxError: Expected '}', got 'end of stream'. */ + +/* @@? 18:14 Error Syntax error ESY0096: Optional variable is not allowed in for of statements. */ +/* @@? 28:29 Error Semantic error ESE0083: Native, Abstract and Declare methods cannot have body. */ +/* @@? 34:14 Error Syntax error ESY0201: The modifier for a constructor should be limited to access modifiers (private, internal, protected, public), and 'native' modifiers. */ +/* @@? 37:33 Error Syntax error ESY0227: Unexpected token 'rethrows'. */ +/* @@? 37:33 Error Semantic error ESE0143: Unresolved reference rethrows */ +/* @@? 39:14 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ +/* @@? 39:14 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 39:14 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 39:24 Error Syntax error ESY0227: Unexpected token 'int'. */ +/* @@? 39:27 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 39:29 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 39:31 Error Syntax error ESY0163: return keyword should be used in function body. */ +/* @@? 39:38 Error Semantic error ESE0092: All return statements in the function should be empty or have a value. */ +/* @@? 41:1 Error Semantic error ESE0143: Unresolved reference type */ +/* @@? 41:6 Error Syntax error ESY0227: Unexpected token '123'. */ +/* @@? 41:6 Error Semantic error ESE0025: Invalid left-hand side of assignment expression */ +/* @@? 41:10 Error Syntax error ESY0072: Invalid left-hand side in assignment expression. */ +/* @@? 41:12 Error Syntax error ESY0227: Unexpected token 'int'. */ +/* @@? 43:6 Error Syntax error ESY0227: Unexpected token 'null'. */ +/* @@? 43:6 Error Semantic error ESE0025: Invalid left-hand side of assignment expression */ +/* @@? 43:11 Error Syntax error ESY0072: Invalid left-hand side in assignment expression. */ +/* @@? 43:13 Error Syntax error ESY0227: Unexpected token 'byte'. */ +/* @@? 45:6 Error Syntax error ESY0227: Unexpected token 'this'. */ +/* @@? 45:6 Error Semantic error ESE0202: 'this' cannot be referenced from a static context */ +/* @@? 45:6 Error Semantic error ESE0025: Invalid left-hand side of assignment expression */ +/* @@? 45:11 Error Syntax error ESY0072: Invalid left-hand side in assignment expression. */ +/* @@? 47:8 Error Syntax error ESY0105: Variable must be initialized or it's type must be declared. */ +/* @@? 47:8 Error Semantic error ESE0363: Missing initializer in const declaration */ +/* @@? 49:13 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ +/* @@? 51:35 Error Syntax error ESY0067: Rest parameter must be the last formal parameter. */ +/* @@? 51:37 Error Syntax error ESY0227: Unexpected token '...'. */ +/* @@? 51:40 Error Syntax error ESY0227: Unexpected token 'p'. */ +/* @@? 51:43 Error Syntax error ESY0038: Label must be followed by a loop statement. */ +/* @@? 51:43 Error Semantic error ESE0143: Unresolved reference FixedArray */ +/* @@? 51:58 Error Syntax error ESY0228: Unexpected token, expected '('. */ +/* @@? 51:59 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 51:61 Error Syntax error ESY0227: Unexpected token 'int'. */ +/* @@? 51:61 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 51:61 Error Syntax error ESY0227: Unexpected token 'int'. */ +/* @@? 51:65 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 52:5 Error Syntax error ESY0163: return keyword should be used in function body. */ +/* @@? 52:12 Error Semantic error ESE0092: All return statements in the function should be empty or have a value. */ +/* @@? 52:12 Error Semantic error ESE0143: Unresolved reference q */ +/* @@? 52:23 Error Semantic error ESE0143: Unresolved reference p */ +/* @@? 55:14 Error Syntax error ESY0193: Rest parameter should be either array or tuple type. */ +/* @@? 59:14 Error Syntax error ESY0193: Rest parameter should be either array or tuple type. */ +/* @@? 63:22 Error Syntax error ESY0193: Rest parameter should be either array or tuple type. */ +/* @@? 63:26 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ +/* @@? 67:7 Error Semantic error ESE0370: Merging declarations is not supported, please keep all definitions of classes, interfaces and enums compact in the codebase! */ +/* @@? 67:7 Error Semantic error ESE0351: Variable 'A' has already been declared. */ +/* @@? 68:3 Error Syntax error ESY0233: Unexpected token. A constructor, method, accessor, or property was expected. */ +/* @@? 73:7 Error Semantic error ESE0370: Merging declarations is not supported, please keep all definitions of classes, interfaces and enums compact in the codebase! */ +/* @@? 73:7 Error Semantic error ESE0351: Variable 'A' has already been declared. */ +/* @@? 74:11 Error Syntax error ESY0233: Unexpected token. A constructor, method, accessor, or property was expected. */ +/* @@? 77:20 Error Semantic error ESE0179: Interface expected here. */ +/* @@? 77:22 Error Semantic error ESE0070: 'I' type does not exist. */ +/* @@? 78:22 Error Semantic error ESE0136: Method fee(): Int in B not overriding any method */ +/* @@? 83:7 Error Semantic error ESE0370: Merging declarations is not supported, please keep all definitions of classes, interfaces and enums compact in the codebase! */ +/* @@? 83:7 Error Semantic error ESE0351: Variable 'A' has already been declared. */ +/* @@? 84:3 Error Syntax error ESY0233: Unexpected token. A constructor, method, accessor, or property was expected. */ +/* @@? 92:7 Error Semantic error ESE0370: Merging declarations is not supported, please keep all definitions of classes, interfaces and enums compact in the codebase! */ +/* @@? 92:7 Error Semantic error ESE0351: Variable 'A' has already been declared. */ +/* @@? 93:3 Error Syntax error ESY0233: Unexpected token. A constructor, method, accessor, or property was expected. */ +/* @@? 103:14 Error Syntax error ESY0193: Rest parameter should be either array or tuple type. */ +/* @@? 104:21 Error Syntax error ESY0193: Rest parameter should be either array or tuple type. */ +/* @@? 115:26 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ +/* @@? 115:26 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 115:26 Error Syntax error ESY0227: Unexpected token 'case'. */ +/* @@? 115:26 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 115:30 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 115:32 Error Syntax error ESY0227: Unexpected token 'U'. */ +/* @@? 115:32 Error Semantic error ESE0143: Unresolved reference U */ +/* @@? 115:33 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 115:34 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 115:36 Error Syntax error ESY0227: Unexpected token 'T'. */ +/* @@? 115:36 Error Semantic error ESE0143: Unresolved reference T */ +/* @@? 115:38 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 116:5 Error Syntax error ESY0163: return keyword should be used in function body. */ +/* @@? 116:12 Error Semantic error ESE0092: All return statements in the function should be empty or have a value. */ +/* @@? 119:1 Error Semantic error ESE0131: Function foo with this assembly signature already declared. */ +/* @@? 119:26 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 119:26 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ +/* @@? 119:26 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 119:26 Error Syntax error ESY0227: Unexpected token 'case'. */ +/* @@? 119:30 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 119:32 Error Syntax error ESY0227: Unexpected token 'U'. */ +/* @@? 119:33 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 119:34 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 119:36 Error Syntax error ESY0227: Unexpected token 'T'. */ +/* @@? 119:38 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 120:5 Error Syntax error ESY0163: return keyword should be used in function body. */ +/* @@? 120:12 Error Semantic error ESE0092: All return statements in the function should be empty or have a value. */ +/* @@? 123:5 Error Syntax error ESY0224: Identifier expected, got ','. */ +/* @@? 123:6 Error Syntax error ESY0105: Variable must be initialized or it's type must be declared. */ +/* @@? 123:6 Error Syntax error ESY0227: Unexpected token 'abc'. */ +/* @@? 123:6 Error Syntax error ESY0105: Variable must be initialized or it's type must be declared. */ +/* @@? 123:6 Error Semantic error ESE0143: Unresolved reference abc */ +/* @@? 125:1 Error Semantic error ESE0399: Method declaration `foo` must all ambient or non-ambient */ +/* @@? 127:1 Error Syntax error ESY0106: The modifier async cannot be used in an ambient context. */ +/* @@? 132:14 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 137:16 Error Syntax error ESY0101: Catch clause variable cannot have an initializer. */ +/* @@? 137:16 Error Syntax error ESY0230: Expected ')', got '='. */ +/* @@? 137:16 Error Syntax error ESY0230: Expected '{', got '='. */ +/* @@? 137:16 Error Syntax error ESY0227: Unexpected token '='. */ +/* @@? 137:18 Error Syntax error ESY0227: Unexpected token '0'. */ +/* @@? 137:19 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 137:21 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 141:24 Error Semantic error ESE0289: This expression is not callable. */ +/* @@? 145:18 Error Semantic error ESE0052: A is abstract therefore cannot be instantiated. */ +/* @@? 146:28 Error Semantic error ESE0087: Property 'getInner' does not exist on type 'A' */ +/* @@? 148:25 Error Semantic error ESE0052: A is abstract therefore cannot be instantiated. */ +/* @@? 149:24 Error Semantic error ESE0052: A is abstract therefore cannot be instantiated. */ +/* @@? 151:20 Error Semantic error ESE0371: Cannot find type 'D0'. */ +/* @@? 151:29 Error Semantic error ESE0371: Cannot find type 'D0'. */ +/* @@? 157:16 Error Semantic error ESE0052: A is abstract therefore cannot be instantiated. */ +/* @@? 158:26 Error Semantic error ESE0087: Property 'getInner' does not exist on type 'A' */ +/* @@? 161:9 Error Syntax error ESY0316: Hard keyword 'let' cannot be used as identifier */ +/* @@? 161:9 Error Syntax error ESY0224: Identifier expected, got 'let'. */ +/* @@? 162:9 Error Syntax error ESY0224: Identifier expected, got 'const'. */ +/* @@? 162:9 Error Syntax error ESY0316: Hard keyword 'const' cannot be used as identifier */ +/* @@? 163:9 Error Syntax error ESY0224: Identifier expected, got 'new'. */ +/* @@? 163:9 Error Syntax error ESY0316: Hard keyword 'new' cannot be used as identifier */ +/* @@? 164:5 Error Semantic error ESE0289: This expression is not callable. */ +/* @@? 165:5 Error Semantic error ESE0289: This expression is not callable. */ +/* @@? 166:5 Error Semantic error ESE0128: No matching call signature */ +/* @@? 166:5 Error Semantic error ESE0124: Expected 1 arguments, got 0. */ +/* @@? 296:80 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/FixedArray/StringFasta.ets b/ets2panda/test/ast/parser/ets/FixedArray/StringFasta.ets index 54308f81cd..c8b2d9b897 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/StringFasta.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/StringFasta.ets @@ -122,57 +122,58 @@ function main(): void { a.run(); } -/* @@? 18:18 Error TypeError: Cannot find type 'HashMap'. */ -/* @@? 18:46 Error TypeError: Cannot find type 'HashMap'. */ -/* @@? 19:22 Error TypeError: Cannot find type 'HashMap'. */ -/* @@? 19:50 Error TypeError: Cannot find type 'HashMap'. */ -/* @@? 21:9 Error TypeError: Unresolved reference IUB */ -/* @@? 22:9 Error TypeError: Unresolved reference IUB */ -/* @@? 23:9 Error TypeError: Unresolved reference IUB */ -/* @@? 24:9 Error TypeError: Unresolved reference IUB */ -/* @@? 25:9 Error TypeError: Unresolved reference IUB */ -/* @@? 26:9 Error TypeError: Unresolved reference IUB */ -/* @@? 27:9 Error TypeError: Unresolved reference IUB */ -/* @@? 28:9 Error TypeError: Unresolved reference IUB */ -/* @@? 29:9 Error TypeError: Unresolved reference IUB */ -/* @@? 30:9 Error TypeError: Unresolved reference IUB */ -/* @@? 31:9 Error TypeError: Unresolved reference IUB */ -/* @@? 32:9 Error TypeError: Unresolved reference IUB */ -/* @@? 33:9 Error TypeError: Unresolved reference IUB */ -/* @@? 34:9 Error TypeError: Unresolved reference IUB */ -/* @@? 35:9 Error TypeError: Unresolved reference IUB */ -/* @@? 36:9 Error TypeError: Unresolved reference HomoSap */ -/* @@? 37:9 Error TypeError: Unresolved reference HomoSap */ -/* @@? 38:9 Error TypeError: Unresolved reference HomoSap */ -/* @@? 39:9 Error TypeError: Unresolved reference HomoSap */ -/* @@@ label Error SyntaxError: Unexpected token. A constructor, method, accessor, or property was expected. */ -/* @@? 47:13 Error TypeError: Static property 'last' must be accessed through it's class 'Random' */ -/* @@? 47:21 Error TypeError: Static property 'last' must be accessed through it's class 'Random' */ -/* @@? 47:28 Error TypeError: Static property 'A' must be accessed through it's class 'Random' */ -/* @@? 47:32 Error TypeError: Static property 'C' must be accessed through it's class 'Random' */ -/* @@? 47:37 Error TypeError: Static property 'M' must be accessed through it's class 'Random' */ -/* @@? 48:26 Error TypeError: Static property 'last' must be accessed through it's class 'Random' */ -/* @@? 48:33 Error TypeError: Static property 'M' must be accessed through it's class 'Random' */ -/* @@? 52:35 Error TypeError: Cannot find type 'HashMap'. */ -/* @@? 53:27 Error TypeError: Type 'null' cannot be assigned to type 'Char' */ -/* @@? 54:26 Error TypeError: Cannot find type 'HashMap'. */ -/* @@? 54:57 Error TypeError: 'For-of' statement source expression is not of iterable type. */ -/* @@? 71:33 Error TypeError: Type 'Int' has no call signatures. */ -/* @@? 72:24 Error TypeError: Type 'Int' has no call signatures. */ -/* @@? 77:33 Error TypeError: Type 'Int' has no call signatures. */ -/* @@? 78:24 Error TypeError: Type 'Int' has no call signatures. */ -/* @@? 84:41 Error TypeError: Cannot find type 'HashMap'. */ -/* @@? 86:9 Error TypeError: Static property 'makeCumulative' must be accessed through it's class 'StringFasta' */ -/* @@? 94:34 Error TypeError: Static property 'Random' must be accessed through it's class 'StringFasta' */ -/* @@? 95:34 Error TypeError: Cannot find type 'HashMap'. */ -/* @@? 95:65 Error TypeError: 'For-of' statement source expression is not of iterable type. */ -/* @@? 103:20 Error TypeError: Type 'Int' has no call signatures. */ -/* @@? 112:16 Error TypeError: Static property 'fastaRepeat' must be accessed through it's class 'StringFasta' */ -/* @@? 112:32 Error TypeError: Property 'count' must be accessed through 'this' */ -/* @@? 113:16 Error TypeError: Static property 'fastaRandom' must be accessed through it's class 'StringFasta' */ -/* @@? 113:32 Error TypeError: Property 'count' must be accessed through 'this' */ -/* @@? 113:46 Error TypeError: Unresolved reference IUB */ -/* @@? 114:16 Error TypeError: Static property 'fastaRandom' must be accessed through it's class 'StringFasta' */ -/* @@? 114:32 Error TypeError: Property 'count' must be accessed through 'this' */ -/* @@? 114:46 Error TypeError: Unresolved reference HomoSap */ -/* @@? 116:36 Error TypeError: 'expected' is a static property of 'StringFasta' */ + +/* @@? 18:18 Error Semantic error ESE0371: Cannot find type 'HashMap'. */ +/* @@? 18:46 Error Semantic error ESE0371: Cannot find type 'HashMap'. */ +/* @@? 19:22 Error Semantic error ESE0371: Cannot find type 'HashMap'. */ +/* @@? 19:50 Error Semantic error ESE0371: Cannot find type 'HashMap'. */ +/* @@? 21:9 Error Semantic error ESE0143: Unresolved reference IUB */ +/* @@? 22:9 Error Semantic error ESE0143: Unresolved reference IUB */ +/* @@? 23:9 Error Semantic error ESE0143: Unresolved reference IUB */ +/* @@? 24:9 Error Semantic error ESE0143: Unresolved reference IUB */ +/* @@? 25:9 Error Semantic error ESE0143: Unresolved reference IUB */ +/* @@? 26:9 Error Semantic error ESE0143: Unresolved reference IUB */ +/* @@? 27:9 Error Semantic error ESE0143: Unresolved reference IUB */ +/* @@? 28:9 Error Semantic error ESE0143: Unresolved reference IUB */ +/* @@? 29:9 Error Semantic error ESE0143: Unresolved reference IUB */ +/* @@? 30:9 Error Semantic error ESE0143: Unresolved reference IUB */ +/* @@? 31:9 Error Semantic error ESE0143: Unresolved reference IUB */ +/* @@? 32:9 Error Semantic error ESE0143: Unresolved reference IUB */ +/* @@? 33:9 Error Semantic error ESE0143: Unresolved reference IUB */ +/* @@? 34:9 Error Semantic error ESE0143: Unresolved reference IUB */ +/* @@? 35:9 Error Semantic error ESE0143: Unresolved reference IUB */ +/* @@? 36:9 Error Semantic error ESE0143: Unresolved reference HomoSap */ +/* @@? 37:9 Error Semantic error ESE0143: Unresolved reference HomoSap */ +/* @@? 38:9 Error Semantic error ESE0143: Unresolved reference HomoSap */ +/* @@? 39:9 Error Semantic error ESE0143: Unresolved reference HomoSap */ +/* @@@ label Error Syntax error ESY0233: Unexpected token. A constructor, method, accessor, or property was expected. */ +/* @@? 47:13 Error Semantic error ESE0173: Static property 'last' must be accessed through it's class 'Random' */ +/* @@? 47:21 Error Semantic error ESE0173: Static property 'last' must be accessed through it's class 'Random' */ +/* @@? 47:28 Error Semantic error ESE0173: Static property 'A' must be accessed through it's class 'Random' */ +/* @@? 47:32 Error Semantic error ESE0173: Static property 'C' must be accessed through it's class 'Random' */ +/* @@? 47:37 Error Semantic error ESE0173: Static property 'M' must be accessed through it's class 'Random' */ +/* @@? 48:26 Error Semantic error ESE0173: Static property 'last' must be accessed through it's class 'Random' */ +/* @@? 48:33 Error Semantic error ESE0173: Static property 'M' must be accessed through it's class 'Random' */ +/* @@? 52:35 Error Semantic error ESE0371: Cannot find type 'HashMap'. */ +/* @@? 53:27 Error Semantic error ESE0318: Type 'null' cannot be assigned to type 'Char' */ +/* @@? 54:26 Error Semantic error ESE0371: Cannot find type 'HashMap'. */ +/* @@? 54:57 Error Semantic error ESE0076: 'For-of' statement source expression is not of iterable type. */ +/* @@? 71:33 Error Semantic error ESE0002: Type 'Int' has no call signatures. */ +/* @@? 72:24 Error Semantic error ESE0002: Type 'Int' has no call signatures. */ +/* @@? 77:33 Error Semantic error ESE0002: Type 'Int' has no call signatures. */ +/* @@? 78:24 Error Semantic error ESE0002: Type 'Int' has no call signatures. */ +/* @@? 84:41 Error Semantic error ESE0371: Cannot find type 'HashMap'. */ +/* @@? 86:9 Error Semantic error ESE0173: Static property 'makeCumulative' must be accessed through it's class 'StringFasta' */ +/* @@? 94:34 Error Semantic error ESE0173: Static property 'Random' must be accessed through it's class 'StringFasta' */ +/* @@? 95:34 Error Semantic error ESE0371: Cannot find type 'HashMap'. */ +/* @@? 95:65 Error Semantic error ESE0076: 'For-of' statement source expression is not of iterable type. */ +/* @@? 103:20 Error Semantic error ESE0002: Type 'Int' has no call signatures. */ +/* @@? 112:16 Error Semantic error ESE0173: Static property 'fastaRepeat' must be accessed through it's class 'StringFasta' */ +/* @@? 112:32 Error Semantic error ESE0145: Property 'count' must be accessed through 'this' */ +/* @@? 113:16 Error Semantic error ESE0173: Static property 'fastaRandom' must be accessed through it's class 'StringFasta' */ +/* @@? 113:32 Error Semantic error ESE0145: Property 'count' must be accessed through 'this' */ +/* @@? 113:46 Error Semantic error ESE0143: Unresolved reference IUB */ +/* @@? 114:16 Error Semantic error ESE0173: Static property 'fastaRandom' must be accessed through it's class 'StringFasta' */ +/* @@? 114:32 Error Semantic error ESE0145: Property 'count' must be accessed through 'this' */ +/* @@? 114:46 Error Semantic error ESE0143: Unresolved reference HomoSap */ +/* @@? 116:36 Error Semantic error ESE0207: 'expected' is a static property of 'StringFasta' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/FixedArray/array_2.ets b/ets2panda/test/ast/parser/ets/FixedArray/array_2.ets index 4001142bd1..2509d6803a 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/array_2.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/array_2.ets @@ -15,7 +15,8 @@ let c: FixedArray = [0.33 /* @@ label */0.66 0.99] -/* @@@ label Error SyntaxError: Unexpected token, expected ',' or ']'. */ -/* @@@ label Error SyntaxError: Unexpected token '0.66'. */ -/* @@? 16:54 Error SyntaxError: Unexpected token '0.99'. */ -/* @@? 16:58 Error SyntaxError: Unexpected token ']'. */ + +/* @@@ label Error Syntax error ESY0229: Unexpected token, expected ',' or ']'. */ +/* @@@ label Error Syntax error ESY0227: Unexpected token '0.66'. */ +/* @@? 16:54 Error Syntax error ESY0227: Unexpected token '0.99'. */ +/* @@? 16:58 Error Syntax error ESY0227: Unexpected token ']'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/FixedArray/array_missing_element.ets b/ets2panda/test/ast/parser/ets/FixedArray/array_missing_element.ets index e61d897a80..7c04b9e7f1 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/array_missing_element.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/array_missing_element.ets @@ -17,8 +17,9 @@ function foo(): void { let b: FixedArray = [ 1, 2, 3, , 4, ] } -/* @@? 17:53 Error SyntaxError: Unexpected token ','. */ -/* @@? 17:55 Error SyntaxError: Unexpected token, expected ',' or ']'. */ -/* @@? 17:55 Error SyntaxError: Unexpected token '4'. */ -/* @@? 17:56 Error SyntaxError: Unexpected token ','. */ -/* @@? 17:58 Error SyntaxError: Unexpected token ']'. */ + +/* @@? 17:53 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 17:55 Error Syntax error ESY0229: Unexpected token, expected ',' or ']'. */ +/* @@? 17:55 Error Syntax error ESY0227: Unexpected token '4'. */ +/* @@? 17:56 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 17:58 Error Syntax error ESY0227: Unexpected token ']'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/FixedArray/array_type.ets b/ets2panda/test/ast/parser/ets/FixedArray/array_type.ets index e2021d154b..89c9e60b63 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/array_type.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/array_type.ets @@ -24,7 +24,8 @@ class array_type { } } -/* @@@ label Error TypeError: Property 'a' might not have been initialized. */ -/* @@@ label1 Error TypeError: Property 'f' might not have been initialized. */ -/* @@@ label2 Error TypeError: Function with a non void return type must return a value. */ -/* @@@ label3 Error TypeError: Function with a non void return type must return a value. */ + +/* @@@ label Error Semantic error ESE0280: Property 'a' might not have been initialized. */ +/* @@@ label1 Error Semantic error ESE0280: Property 'f' might not have been initialized. */ +/* @@@ label2 Error Semantic error ESE0103: Function with a non void return type must return a value. */ +/* @@@ label3 Error Semantic error ESE0103: Function with a non void return type must return a value. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/FixedArray/enum11.ets b/ets2panda/test/ast/parser/ets/FixedArray/enum11.ets index 44f291da40..b5811baa81 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/enum11.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/enum11.ets @@ -23,6 +23,7 @@ function main(): void { let ordinalFail: int = /* @@ label */Color as int; } -/* @@@ label Error TypeError: Enum name 'Color' used in the wrong context */ -/* @@? 21:22 Warning Warning: Enum cast is deprecated. Cast support from 'Color' to 'Int' will be removed. */ -/* @@? 22:13 Warning Warning: Enum cast is deprecated. Cast support from 'Int' to 'Color' will be removed. */ + +/* @@? 21:22 Warning Warning W0030: Enum cast is deprecated. Cast support from 'Color' to 'Int' will be removed. */ +/* @@? 22:13 Warning Warning W0030: Enum cast is deprecated. Cast support from 'Int' to 'Color' will be removed. */ +/* @@@ label Error Semantic error ESE0144: Enum name 'Color' used in the wrong context */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/FixedArray/ets_never_type_without_affect_other.ets b/ets2panda/test/ast/parser/ets/FixedArray/ets_never_type_without_affect_other.ets index c5987fed62..f99ac9aba5 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/ets_never_type_without_affect_other.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/ets_never_type_without_affect_other.ets @@ -26,5 +26,6 @@ function foo(): number { return n! } -/* @@? 23:17 Error TypeError: Bad operand type, the types of the operands must be numeric type. */ -/* @@? 26:12 Error Warning: Bad operand type, the operand of the non-nullish expression is 'null' or 'undefined'. */ + +/* @@? 23:17 Error Semantic error ESE0107: Bad operand type, the types of the operands must be numeric type. */ +/* @@? 26:12 Warning Warning W0014: Bad operand type, the operand of the non-nullish expression is 'null' or 'undefined'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/FixedArray/forOfCustomIterator1.ets b/ets2panda/test/ast/parser/ets/FixedArray/forOfCustomIterator1.ets index 1261d3366d..fbfb145f5a 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/forOfCustomIterator1.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/forOfCustomIterator1.ets @@ -49,6 +49,7 @@ function main(): void { arktest.assertEQ(res, "abc"); } -/* @@? 48:19 Error TypeError: Iterator method must return an object which implements Iterator */ -/* @@? 48:19 Error TypeError: 'For-of' statement source expression is not of iterable type. */ -/* @@? 18:15 Error TypeError: The return type of '$_iterator' must be a type that implements Iterator interface. */ + +/* @@? 18:15 Error Semantic error ESE0096: The return type of '$_iterator' must be a type that implements Iterator interface. */ +/* @@? 48:19 Error Semantic error ESE0261: Iterator method must return an object which implements Iterator */ +/* @@? 48:19 Error Semantic error ESE0076: 'For-of' statement source expression is not of iterable type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/FixedArray/forOfCustomIterator2.ets b/ets2panda/test/ast/parser/ets/FixedArray/forOfCustomIterator2.ets index 2c650b8cc1..a21ab5e358 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/forOfCustomIterator2.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/forOfCustomIterator2.ets @@ -47,6 +47,7 @@ function main(): void { arktest.assertEQ(res, "abc"); } -/* @@? 46:19 Error TypeError: Iterator method must return an object which implements Iterator */ -/* @@? 46:19 Error TypeError: 'For-of' statement source expression is not of iterable type. */ -/* @@? 18:15 Error TypeError: The return type of '$_iterator' must be a type that implements Iterator interface. */ + +/* @@? 18:15 Error Semantic error ESE0096: The return type of '$_iterator' must be a type that implements Iterator interface. */ +/* @@? 46:19 Error Semantic error ESE0261: Iterator method must return an object which implements Iterator */ +/* @@? 46:19 Error Semantic error ESE0076: 'For-of' statement source expression is not of iterable type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/FixedArray/for_of_02.ets b/ets2panda/test/ast/parser/ets/FixedArray/for_of_02.ets index 8e6155210f..b9b7690215 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/for_of_02.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/for_of_02.ets @@ -32,4 +32,5 @@ function main(): void { } } -/* @@@ label Error TypeError: Source element type 'Double' is not assignable to the loop iterator type 'Float'. */ + +/* @@@ label Error Semantic error ESE0069: Source element type 'Double' is not assignable to the loop iterator type 'Float'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/FixedArray/for_of_03.ets b/ets2panda/test/ast/parser/ets/FixedArray/for_of_03.ets index 14bfbd47f0..da90f1f0c2 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/for_of_03.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/for_of_03.ets @@ -23,5 +23,6 @@ function main(): void { } } -/* @@@ label Error SyntaxError: Invalid left-hand side in 'for' statement: must have a single binding. */ -/* @@@ label1 Error SyntaxError: Expected ')', got '{'. */ + +/* @@@ label Error Syntax error ESY0211: Invalid left-hand side in 'for' statement: must have a single binding. */ +/* @@@ label1 Error Syntax error ESY0230: Expected ')', got '{'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/FixedArray/functionTypeParam_neg2.ets b/ets2panda/test/ast/parser/ets/FixedArray/functionTypeParam_neg2.ets index 3c8a14a817..476e446bf7 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/functionTypeParam_neg2.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/functionTypeParam_neg2.ets @@ -23,19 +23,20 @@ declare class Environment { static foo7(props1: {key:string, value:int}[], props2: FixedArray): void; } -/* @@? 17:23 Error SyntaxError: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ -/* @@? 18:25 Error SyntaxError: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ -/* @@? 19:25 Error SyntaxError: Invalid Type. */ -/* @@? 21:16 Error TypeError: Native and Declare methods should have explicit return type. */ -/* @@? 21:20 Error SyntaxError: Invalid Type. */ -/* @@? 21:28 Error SyntaxError: Invalid Type. */ -/* @@? 21:37 Error SyntaxError: Unexpected token, expected '=>'. */ -/* @@? 21:39 Error SyntaxError: Unexpected token '--'. */ -/* @@? 21:41 Error SyntaxError: Unexpected token '-'. */ -/* @@? 21:42 Error SyntaxError: Unexpected token ','. */ -/* @@? 21:43 Error SyntaxError: Unexpected token ')'. */ -/* @@? 21:44 Error SyntaxError: Unexpected token ':'. */ -/* @@? 21:45 Error SyntaxError: void is a predefined type, cannot be used as an identifier */ -/* @@? 22:20 Error SyntaxError: Invalid Type. */ -/* @@? 23:25 Error SyntaxError: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ -/* @@? 23:36 Error SyntaxError: Unexpected token ','. */ + +/* @@? 17:23 Error Syntax error ESY177354: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ +/* @@? 18:25 Error Syntax error ESY177354: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ +/* @@? 19:25 Error Syntax error ESY0138: Invalid Type. */ +/* @@? 21:16 Error Semantic error ESE0018: Native and Declare methods should have explicit return type. */ +/* @@? 21:20 Error Syntax error ESY0138: Invalid Type. */ +/* @@? 21:28 Error Syntax error ESY0138: Invalid Type. */ +/* @@? 21:37 Error Syntax error ESY0228: Unexpected token, expected '=>'. */ +/* @@? 21:39 Error Syntax error ESY0227: Unexpected token '--'. */ +/* @@? 21:41 Error Syntax error ESY0227: Unexpected token '-'. */ +/* @@? 21:42 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 21:43 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 21:44 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 21:45 Error Syntax error ESY0295: void is a predefined type, cannot be used as an identifier */ +/* @@? 22:20 Error Syntax error ESY0138: Invalid Type. */ +/* @@? 23:25 Error Syntax error ESY177354: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ +/* @@? 23:36 Error Syntax error ESY0227: Unexpected token ','. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/FixedArray/function_decl.ets b/ets2panda/test/ast/parser/ets/FixedArray/function_decl.ets index 7c1ccaa0ee..8d82a3bffb 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/function_decl.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/function_decl.ets @@ -14,4 +14,5 @@ */ function /* @@ label */foo(a: int, b: float, ...c: FixedArray): boolean {} -/* @@@ label Error TypeError: Function with a non void return type must return a value. */ + +/* @@@ label Error Semantic error ESE0103: Function with a non void return type must return a value. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/FixedArray/illegal_union_member_exp.ets b/ets2panda/test/ast/parser/ets/FixedArray/illegal_union_member_exp.ets index a49879c670..cb381a4c82 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/illegal_union_member_exp.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/illegal_union_member_exp.ets @@ -22,4 +22,4 @@ function main(): void { b.toString(); } -/* @@? 22:19 Error TypeError: Type String|Int[] is illegal in union member expression. */ + diff --git a/ets2panda/test/ast/parser/ets/FixedArray/invalidTypes.ets b/ets2panda/test/ast/parser/ets/FixedArray/invalidTypes.ets index 5e4dcd90af..1d60f03663 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/invalidTypes.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/invalidTypes.ets @@ -37,49 +37,52 @@ class Class2 { let var6: [a0: , a1: ]; -/* @@? 18:23 Error SyntaxError: Type annotation isn't allowed for constructor. */ -/* @@? 24:12 Error TypeError: FixedArray must have only one type parameter. */ -/* @@? 24:23 Error SyntaxError: Invalid Type. */ -/* @@? 24:23 Error SyntaxError: Unexpected token, expected '>'. */ -/* @@? 24:23 Error SyntaxError: Unexpected token, expected ',' or ']'. */ -/* @@? 24:23 Error SyntaxError: Unexpected token '>'. */ -/* @@? 24:26 Error SyntaxError: Unexpected token 'number'. */ -/* @@? 24:26 Error TypeError: Type name 'number' used in the wrong context */ -/* @@? 24:33 Error SyntaxError: Unexpected token ','. */ -/* @@? 24:35 Error SyntaxError: Unexpected token 'FixedArray'. */ -/* @@? 24:35 Error TypeError: Unresolved reference FixedArray */ -/* @@? 24:46 Error SyntaxError: Unexpected token '...'. */ -/* @@? 24:49 Error SyntaxError: Unexpected token 'string'. */ -/* @@? 24:49 Error TypeError: Type name 'string' used in the wrong context */ -/* @@? 24:56 Error SyntaxError: Unexpected token ']'. */ -/* @@? 26:12 Error TypeError: FixedArray must have only one type parameter. */ -/* @@? 26:23 Error SyntaxError: Invalid Type. */ -/* @@? 26:23 Error SyntaxError: Unexpected token, expected '>'. */ -/* @@? 26:23 Error SyntaxError: Unexpected token, expected ',' or ']'. */ -/* @@? 26:23 Error SyntaxError: Unexpected token '>'. */ -/* @@? 26:26 Error SyntaxError: Unexpected token 'number'. */ -/* @@? 26:26 Error TypeError: Type name 'number' used in the wrong context */ -/* @@? 26:33 Error SyntaxError: Unexpected token ','. */ -/* @@? 26:35 Error SyntaxError: Unexpected token 'string'. */ -/* @@? 26:35 Error TypeError: Type name 'string' used in the wrong context */ -/* @@? 26:41 Error SyntaxError: Unexpected token ']'. */ -/* @@? 28:18 Error SyntaxError: Unexpected token, expected ',' or ']'. */ -/* @@? 28:18 Error SyntaxError: Unexpected token '?'. */ -/* @@? 28:19 Error SyntaxError: Unexpected token ']'. */ -/* @@? 30:18 Error SyntaxError: Unexpected token, expected ',' or ']'. */ -/* @@? 30:18 Error SyntaxError: Unexpected token ':'. */ -/* @@? 30:20 Error SyntaxError: Unexpected token '...'. */ -/* @@? 30:23 Error SyntaxError: Unexpected token 'int'. */ -/* @@? 30:26 Error SyntaxError: Unexpected token ']'. */ -/* @@? 32:19 Error SyntaxError: Unexpected token 'number'. */ -/* @@? 32:19 Error SyntaxError: Unexpected token, expected ',' or ']'. */ -/* @@? 32:19 Error TypeError: Type name 'number' used in the wrong context */ -/* @@? 32:25 Error SyntaxError: Unexpected token ']'. */ -/* @@? 35:21 Error SyntaxError: A 'this' type is available only as return type in a non-static method of a class or struct and extension functions. */ -/* @@? 38:12 Error TypeError: Cannot find type 'a0'. */ -/* @@? 38:14 Error SyntaxError: Unexpected token ':'. */ -/* @@? 38:14 Error SyntaxError: Unexpected token, expected ',' or ']'. */ -/* @@? 38:16 Error SyntaxError: Unexpected token ','. */ -/* @@? 38:18 Error SyntaxError: Unexpected token 'a1'. */ -/* @@? 38:22 Error SyntaxError: Label must be followed by a loop statement. */ -/* @@? 38:22 Error SyntaxError: Unexpected token ']'. */ + +/* @@? 18:23 Error Syntax error ESY0140: Type annotation isn't allowed for constructor. */ +/* @@? 24:12 Error Semantic error ESE0277: FixedArray must have only one type parameter. */ +/* @@? 24:23 Error Syntax error ESY0138: Invalid Type. */ +/* @@? 24:23 Error Syntax error ESY0227: Unexpected token '>'. */ +/* @@? 24:23 Error Syntax error ESY0229: Unexpected token, expected ',' or ']'. */ +/* @@? 24:23 Error Syntax error ESY0228: Unexpected token, expected '>'. */ +/* @@? 24:23 Error Syntax error ESY0227: Unexpected token '>'. */ +/* @@? 24:26 Error Syntax error ESY0227: Unexpected token 'number'. */ +/* @@? 24:26 Error Semantic error ESE0144: Type name 'number' used in the wrong context */ +/* @@? 24:33 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 24:35 Error Syntax error ESY0227: Unexpected token 'FixedArray'. */ +/* @@? 24:35 Error Semantic error ESE0143: Unresolved reference FixedArray */ +/* @@? 24:46 Error Syntax error ESY0227: Unexpected token '...'. */ +/* @@? 24:49 Error Syntax error ESY0227: Unexpected token 'string'. */ +/* @@? 24:49 Error Semantic error ESE0144: Type name 'string' used in the wrong context */ +/* @@? 24:56 Error Syntax error ESY0227: Unexpected token ']'. */ +/* @@? 26:12 Error Semantic error ESE0277: FixedArray must have only one type parameter. */ +/* @@? 26:23 Error Syntax error ESY0227: Unexpected token '>'. */ +/* @@? 26:23 Error Syntax error ESY0229: Unexpected token, expected ',' or ']'. */ +/* @@? 26:23 Error Syntax error ESY0228: Unexpected token, expected '>'. */ +/* @@? 26:23 Error Syntax error ESY0138: Invalid Type. */ +/* @@? 26:26 Error Syntax error ESY0227: Unexpected token 'number'. */ +/* @@? 26:26 Error Semantic error ESE0144: Type name 'number' used in the wrong context */ +/* @@? 26:33 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 26:35 Error Syntax error ESY0227: Unexpected token 'string'. */ +/* @@? 26:35 Error Semantic error ESE0144: Type name 'string' used in the wrong context */ +/* @@? 26:41 Error Syntax error ESY0227: Unexpected token ']'. */ +/* @@? 28:18 Error Syntax error ESY0227: Unexpected token '?'. */ +/* @@? 28:18 Error Syntax error ESY0229: Unexpected token, expected ',' or ']'. */ +/* @@? 28:19 Error Syntax error ESY0227: Unexpected token ']'. */ +/* @@? 30:18 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 30:18 Error Syntax error ESY0229: Unexpected token, expected ',' or ']'. */ +/* @@? 30:18 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 30:20 Error Syntax error ESY0227: Unexpected token '...'. */ +/* @@? 30:23 Error Syntax error ESY0227: Unexpected token 'int'. */ +/* @@? 30:26 Error Syntax error ESY0227: Unexpected token ']'. */ +/* @@? 32:19 Error Syntax error ESY0229: Unexpected token, expected ',' or ']'. */ +/* @@? 32:19 Error Syntax error ESY0227: Unexpected token 'number'. */ +/* @@? 32:19 Error Semantic error ESE0144: Type name 'number' used in the wrong context */ +/* @@? 32:25 Error Syntax error ESY0227: Unexpected token ']'. */ +/* @@? 35:21 Error Syntax error ESY0044: A 'this' type is available only as return type in a non-static method of a class or struct and extension functions. */ +/* @@? 38:12 Error Semantic error ESE0371: Cannot find type 'a0'. */ +/* @@? 38:14 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 38:14 Error Syntax error ESY0229: Unexpected token, expected ',' or ']'. */ +/* @@? 38:16 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 38:18 Error Syntax error ESY0227: Unexpected token 'a1'. */ +/* @@? 38:22 Error Syntax error ESY0038: Label must be followed by a loop statement. */ +/* @@? 38:22 Error Syntax error ESY0227: Unexpected token ']'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/FixedArray/main_entry_point_3.ets b/ets2panda/test/ast/parser/ets/FixedArray/main_entry_point_3.ets index 333c113df0..83dabe32f1 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/main_entry_point_3.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/main_entry_point_3.ets @@ -17,4 +17,5 @@ function main(/* @@ label */i : FixedArray): void { return; } -/* @@? 16:29 Error TypeError: Only 'FixedArray' type argument is allowed. */ + +/* @@@ label Error Semantic error ESE0135: Only 'FixedArray' type argument is allowed. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/FixedArray/main_entry_point_4.ets b/ets2panda/test/ast/parser/ets/FixedArray/main_entry_point_4.ets index f3af9d3186..4101bd7975 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/main_entry_point_4.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/main_entry_point_4.ets @@ -17,4 +17,5 @@ function main(i : FixedArray, ii : int): void { return; } -/* @@? 16:10 Error TypeError: 0 or 1 argument are allowed */ + +/* @@? 16:10 Error Semantic error ESE0133: 0 or 1 argument are allowed */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/FixedArray/main_entry_point_5.ets b/ets2panda/test/ast/parser/ets/FixedArray/main_entry_point_5.ets index 5f99a78e6e..e79089b732 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/main_entry_point_5.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/main_entry_point_5.ets @@ -21,4 +21,5 @@ function /* @@ label */main(i : FixedArray): void { return; } -/* @@@ label Error TypeError: Main overload is not enabled */ + +/* @@@ label Error Semantic error ESE0373: Main overload is not enabled */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/FixedArray/method_full.ets b/ets2panda/test/ast/parser/ets/FixedArray/method_full.ets index 9efe83953a..46a1a2930f 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/method_full.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/method_full.ets @@ -30,8 +30,9 @@ abstract class method_full { private native foo_native(): int ; } -/* @@@ label Error TypeError: Function with a non void return type must return a value. */ -/* @@@ label1 Error TypeError: Function with a non void return type must return a value. */ -/* @@@ label2 Error TypeError: Function with a non void return type must return a value. */ -/* @@@ label3 Error TypeError: Function with a non void return type must return a value. */ -/* @@@ label4 Error TypeError: Function with a non void return type must return a value. */ + +/* @@@ label Error Semantic error ESE0103: Function with a non void return type must return a value. */ +/* @@@ label1 Error Semantic error ESE0103: Function with a non void return type must return a value. */ +/* @@@ label2 Error Semantic error ESE0103: Function with a non void return type must return a value. */ +/* @@@ label3 Error Semantic error ESE0103: Function with a non void return type must return a value. */ +/* @@@ label4 Error Semantic error ESE0103: Function with a non void return type must return a value. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/FixedArray/n_arrayHoldingNullValue.ets b/ets2panda/test/ast/parser/ets/FixedArray/n_arrayHoldingNullValue.ets index 3bf1015d7a..db40760e28 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/n_arrayHoldingNullValue.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/n_arrayHoldingNullValue.ets @@ -18,5 +18,6 @@ function main(): void { let d: FixedArray = /* @@ label1 */null; } -/* @@? 17:48 Error TypeError: Type 'null' cannot be assigned to type 'FixedArray' */ -/* @@? 18:46 Error TypeError: Type 'null' cannot be assigned to type 'FixedArray' */ + +/* @@@ label Error Semantic error ESE0318: Type 'null' cannot be assigned to type 'FixedArray' */ +/* @@@ label1 Error Semantic error ESE0318: Type 'null' cannot be assigned to type 'FixedArray' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/FixedArray/nonIntegralIndex.ets b/ets2panda/test/ast/parser/ets/FixedArray/nonIntegralIndex.ets index 7f0a390e84..73df1d782e 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/nonIntegralIndex.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/nonIntegralIndex.ets @@ -19,4 +19,5 @@ export class Test { } } -/* @@@ label Error TypeError: Type 'Double' cannot be used as an index type. Only primitive or unboxable integral types can be used as index. */ + +/* @@@ label Error Semantic error ESE0236: Type 'Double' cannot be used as an index type. Only primitive or unboxable integral types can be used as index. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/FixedArray/predefined_non_primitive_types.ets b/ets2panda/test/ast/parser/ets/FixedArray/predefined_non_primitive_types.ets index e096d5945f..1adcc37e5e 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/predefined_non_primitive_types.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/predefined_non_primitive_types.ets @@ -35,7 +35,8 @@ let s: String = "abc"; // see 3.2.2 Array types let a: FixedArray = new int[5]; -/* @@@ label Error TypeError: Variable 'non_prim_b' has already been declared. */ -/* @@? 23:25 Error TypeError: Type 'Double' cannot be assigned to type 'Float' */ -/* @@? 27:31 Error TypeError: Cannot find type 'Bool'. */ -/* @@? 27:38 Error TypeError: Type 'Boolean' cannot be assigned to type 'Byte' */ + +/* @@? 23:25 Error Semantic error ESE0318: Type 'Double' cannot be assigned to type 'Float' */ +/* @@@ label Error Semantic error ESE0351: Variable 'non_prim_b' has already been declared. */ +/* @@? 27:31 Error Semantic error ESE0371: Cannot find type 'Bool'. */ +/* @@? 27:38 Error Semantic error ESE0318: Type 'Boolean' cannot be assigned to type 'Byte' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/FixedArray/readonly-parameter-test/Readonly-with-ArrayType-test1.ets b/ets2panda/test/ast/parser/ets/FixedArray/readonly-parameter-test/Readonly-with-ArrayType-test1.ets index 76821f2070..edd7acf946 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/readonly-parameter-test/Readonly-with-ArrayType-test1.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/readonly-parameter-test/Readonly-with-ArrayType-test1.ets @@ -19,5 +19,6 @@ function foo (p: FixedArray) { let x: Readonly> = [] /* @@ label */foo(/* @@ label1 */x) -/* @@? 20:15 Error TypeError: No matching call signature for foo(readonly FixedArray) */ -/* @@? 20:34 Error TypeError: Type 'readonly FixedArray' is not compatible with type 'FixedArray' at index 1 */ + +/* @@@ label Error Semantic error ESE0127: No matching call signature for foo(readonly FixedArray) */ +/* @@@ label1 Error Semantic error ESE0046: Type 'readonly FixedArray' is not compatible with type 'FixedArray' at index 1 */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/FixedArray/readonly-parameter-test/Readonly-with-ArrayType-test4.ets b/ets2panda/test/ast/parser/ets/FixedArray/readonly-parameter-test/Readonly-with-ArrayType-test4.ets index 516d11b4d2..7e575432f3 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/readonly-parameter-test/Readonly-with-ArrayType-test4.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/readonly-parameter-test/Readonly-with-ArrayType-test4.ets @@ -18,4 +18,5 @@ function foo (x: Readonly>) { let x1 : FixedArray x1 = /* @@ label */x } -/* @@? 19:24 Error TypeError: Type 'readonly FixedArray' cannot be assigned to type 'FixedArray' */ + +/* @@@ label Error Semantic error ESE0318: Type 'readonly FixedArray' cannot be assigned to type 'FixedArray' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/FixedArray/record_object_value.ets b/ets2panda/test/ast/parser/ets/FixedArray/record_object_value.ets index d989ef8217..6a8ee9c558 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/record_object_value.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/record_object_value.ets @@ -57,9 +57,9 @@ function main(){ "Mary":["20", "30"] }; } -/* @@@ label Error TypeError: Type '"10"' is not compatible with type 'Double' at property 'age' */ -/* @@@ label1 Error TypeError: Type '"100"' is not compatible with type 'Double' at property 'salary' */ -/* @@@ label2 Error TypeError: Non-optional property 'salary' in type 'PersonInfoInterface' is missing in object literal. */ -/* @@@ label2 Error TypeError: Non-optional property 'age' in type 'PersonInfoInterface' is missing in object literal. */ -/* @@@ label3 Error TypeError: type PersonInfoInterface has no property named agee */ -/* @@@ label4 Error TypeError: type PersonInfoInterface has no property named other */ \ No newline at end of file +/* @@@ label Error Semantic error ESE0319: Type '"10"' is not compatible with type 'Double' at property 'age' */ +/* @@@ label1 Error Semantic error ESE0319: Type '"100"' is not compatible with type 'Double' at property 'salary' */ +/* @@@ label2 Error Semantic error ESE0400: Non-optional property 'salary' in type 'PersonInfoInterface' is missing in object literal. */ +/* @@@ label2 Error Semantic error ESE0400: Non-optional property 'age' in type 'PersonInfoInterface' is missing in object literal. */ +/* @@@ label3 Error Semantic error ESE0065: type PersonInfoInterface has no property named agee */ +/* @@@ label4 Error Semantic error ESE0065: type PersonInfoInterface has no property named other */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/FixedArray/rest_parameter_04.ets b/ets2panda/test/ast/parser/ets/FixedArray/rest_parameter_04.ets index 6d283778e6..3d48ab0619 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/rest_parameter_04.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/rest_parameter_04.ets @@ -17,7 +17,8 @@ function hehe(...items: FixedArray/* @@ label */: void /* @@ label1 */{ console.log("aaaaaaaa") } -/* @@? 16:10 Error TypeError: Only abstract or native methods can't have body. */ -/* @@@ label Error SyntaxError: Rest parameter must be the last formal parameter. */ -/* @@? 16:59 Error SyntaxError: Unexpected token 'void'. */ -/* @@@ label1 Error SyntaxError: Unexpected token '{'. */ + +/* @@? 16:10 Error Semantic error ESE0017: Only abstract or native methods can't have body. */ +/* @@@ label Error Syntax error ESY0067: Rest parameter must be the last formal parameter. */ +/* @@? 16:59 Error Syntax error ESY0227: Unexpected token 'void'. */ +/* @@@ label1 Error Syntax error ESY0227: Unexpected token '{'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/FixedArray/spreadArrayInTuple.ets b/ets2panda/test/ast/parser/ets/FixedArray/spreadArrayInTuple.ets index b663614e7a..c900c1a67a 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/spreadArrayInTuple.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/spreadArrayInTuple.ets @@ -20,7 +20,8 @@ function main() { let y2: [boolean, int, string] = /* @@ label2 */[true, /* @@ label3 */...x2] } -/* @@? 18:43 Error TypeError: Initializer has 1 elements, but tuple requires 2 */ -/* @@? 18:59 Error TypeError: 'Array' cannot be spread in tuple. */ -/* @@? 20:53 Error TypeError: Initializer has 2 elements, but tuple requires 3 */ -/* @@? 20:75 Error TypeError: 'Array' cannot be spread in tuple. */ + +/* @@@ label Error Semantic error ESE0231: Initializer has 1 elements, but tuple requires 2 */ +/* @@@ label1 Error Semantic error ESE0055: 'Array' cannot be spread in tuple. */ +/* @@@ label2 Error Semantic error ESE0231: Initializer has 2 elements, but tuple requires 3 */ +/* @@@ label3 Error Semantic error ESE0055: 'Array' cannot be spread in tuple. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/FixedArray/spreadexpr_in_newexpr_neg01.ets b/ets2panda/test/ast/parser/ets/FixedArray/spreadexpr_in_newexpr_neg01.ets index 7eef9e9c85..2d54a50504 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/spreadexpr_in_newexpr_neg01.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/spreadexpr_in_newexpr_neg01.ets @@ -26,12 +26,13 @@ function main() { let a2 = new A(...nums); } -/* @@? 18:16 Error TypeError: Only abstract or native methods can't have body. */ -/* @@? 18:41 Error SyntaxError: Rest parameter must be the last formal parameter. */ -/* @@? 18:49 Error SyntaxError: Unexpected token ')'. */ -/* @@? 18:51 Error SyntaxError: Unexpected token '{'. */ -/* @@? 19:9 Error SyntaxError: Unexpected token 'this'. */ -/* @@? 19:13 Error SyntaxError: Unexpected token '.'. */ -/* @@? 19:14 Error TypeError: Variable 'fld' has already been declared. */ -/* @@? 19:20 Error TypeError: Unresolved reference p */ -/* @@? 21:1 Error SyntaxError: Unexpected token '}'. */ + +/* @@? 18:16 Error Semantic error ESE0017: Only abstract or native methods can't have body. */ +/* @@? 18:41 Error Syntax error ESY0067: Rest parameter must be the last formal parameter. */ +/* @@? 18:49 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 18:51 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 19:9 Error Syntax error ESY0227: Unexpected token 'this'. */ +/* @@? 19:13 Error Syntax error ESY0227: Unexpected token '.'. */ +/* @@? 19:14 Error Semantic error ESE0351: Variable 'fld' has already been declared. */ +/* @@? 19:20 Error Semantic error ESE0143: Unresolved reference p */ +/* @@? 21:1 Error Syntax error ESY0227: Unexpected token '}'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/FixedArray/spreadexpr_in_newexpr_neg02.ets b/ets2panda/test/ast/parser/ets/FixedArray/spreadexpr_in_newexpr_neg02.ets index a56359fbb1..0fa84a8a99 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/spreadexpr_in_newexpr_neg02.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/spreadexpr_in_newexpr_neg02.ets @@ -26,4 +26,5 @@ function main() { let a2 = new A(1, 1.0, ...nums); } -/* @@@ label Error SyntaxError: Both optional and rest parameters are not allowed in function's parameter list. */ + +/* @@@ label Error Syntax error ESY0015: Both optional and rest parameters are not allowed in function's parameter list. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/FixedArray/static_field_3.ets b/ets2panda/test/ast/parser/ets/FixedArray/static_field_3.ets index 7bc50a28ae..7fd0294bb2 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/static_field_3.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/static_field_3.ets @@ -22,4 +22,5 @@ function main() { arr[0]./* @@ label */foo; } -/* @@@ label Error TypeError: 'foo' is a static property of 'A' */ + +/* @@@ label Error Semantic error ESE0207: 'foo' is a static property of 'A' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/FixedArray/static_func_call_8.ets b/ets2panda/test/ast/parser/ets/FixedArray/static_func_call_8.ets index ed842108df..a69858781c 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/static_func_call_8.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/static_func_call_8.ets @@ -22,4 +22,5 @@ function main() { arr[0]./* @@ label */foo(); } -/* @@@ label Error TypeError: 'foo' is a static property of 'A' */ + +/* @@@ label Error Semantic error ESE0207: 'foo' is a static property of 'A' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/FixedArray/superInConstructor3.ets b/ets2panda/test/ast/parser/ets/FixedArray/superInConstructor3.ets index cd7cb9cd0e..92e873087f 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/superInConstructor3.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/superInConstructor3.ets @@ -44,4 +44,5 @@ function foo(arg : A) { return arg; } -/* @@@ label Error TypeError: Using super is not allowed in constructor */ + +/* @@@ label Error Semantic error ESE0235: Using super is not allowed in constructor */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/FixedArray/trailing_comma_1.ets b/ets2panda/test/ast/parser/ets/FixedArray/trailing_comma_1.ets index 0a9abed75e..6aa3a34f44 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/trailing_comma_1.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/trailing_comma_1.ets @@ -35,35 +35,36 @@ foo(,a[0]) foo(a[0] a[1]) foo(,) -/* @@? 16:40 Error SyntaxError: Rest parameter must be the last formal parameter. */ -/* @@? 24:15 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 24:15 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ -/* @@? 28:12 Error SyntaxError: Unexpected token ','. */ -/* @@? 28:14 Error SyntaxError: Unexpected token, expected ',' or ']'. */ -/* @@? 28:14 Error SyntaxError: Unexpected token '2'. */ -/* @@? 28:15 Error SyntaxError: Unexpected token ','. */ -/* @@? 28:16 Error SyntaxError: Unexpected token ']'. */ -/* @@? 30:5 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@? 31:1 Error TypeError: No matching call signature for foo(a[0], a[1], ...a) */ -/* @@? 31:5 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@? 31:11 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@? 31:17 Error TypeError: Spread argument for the rest parameter can be only one. */ -/* @@? 32:5 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@? 32:10 Error SyntaxError: Unexpected token ','. */ -/* @@? 32:11 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 32:11 Error SyntaxError: Unexpected token 'a'. */ -/* @@? 32:11 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@? 32:15 Error SyntaxError: Unexpected token ')'. */ -/* @@? 33:5 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@? 33:10 Error SyntaxError: Unexpected token ','. */ -/* @@? 34:5 Error SyntaxError: Unexpected token ','. */ -/* @@? 34:6 Error SyntaxError: Unexpected token 'a'. */ -/* @@? 34:6 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 34:6 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@? 34:10 Error SyntaxError: Unexpected token ')'. */ -/* @@? 35:5 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@? 35:10 Error SyntaxError: Unexpected token 'a'. */ -/* @@? 35:10 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 35:10 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@? 35:14 Error SyntaxError: Unexpected token ')'. */ -/* @@? 36:5 Error SyntaxError: Unexpected token ','. */ + +/* @@? 16:40 Error Syntax error ESY0067: Rest parameter must be the last formal parameter. */ +/* @@? 24:15 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 24:15 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ +/* @@? 28:12 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 28:14 Error Syntax error ESY0229: Unexpected token, expected ',' or ']'. */ +/* @@? 28:14 Error Syntax error ESY0227: Unexpected token '2'. */ +/* @@? 28:15 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 28:16 Error Syntax error ESY0227: Unexpected token ']'. */ +/* @@? 30:5 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 31:1 Error Semantic error ESE0127: No matching call signature for foo(a[0], a[1], ...a) */ +/* @@? 31:5 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 31:11 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 31:17 Error Semantic error ESE0123: Spread argument for the rest parameter can be only one. */ +/* @@? 32:5 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 32:10 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 32:11 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 32:11 Error Syntax error ESY0227: Unexpected token 'a'. */ +/* @@? 32:11 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 32:15 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 33:5 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 33:10 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 34:5 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 34:6 Error Syntax error ESY0227: Unexpected token 'a'. */ +/* @@? 34:6 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 34:6 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 34:10 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 35:5 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 35:10 Error Syntax error ESY0227: Unexpected token 'a'. */ +/* @@? 35:10 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 35:10 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 35:14 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 36:5 Error Syntax error ESY0227: Unexpected token ','. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/FixedArray/tuple_type_2_neg.ets b/ets2panda/test/ast/parser/ets/FixedArray/tuple_type_2_neg.ets index a0436293f7..fea86a7916 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/tuple_type_2_neg.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/tuple_type_2_neg.ets @@ -16,14 +16,15 @@ let a: [number, FixedArray<...number>, number] = [1, 2, 3]; -/* @@? 17:17 Error TypeError: FixedArray must have only one type parameter. */ -/* @@? 17:28 Error SyntaxError: Invalid Type. */ -/* @@? 17:28 Error SyntaxError: Unexpected token, expected '>'. */ -/* @@? 17:28 Error SyntaxError: Unexpected token, expected ',' or ']'. */ -/* @@? 17:28 Error SyntaxError: Unexpected token '>'. */ -/* @@? 17:31 Error SyntaxError: Unexpected token 'number'. */ -/* @@? 17:31 Error TypeError: Type name 'number' used in the wrong context */ -/* @@? 17:38 Error SyntaxError: Unexpected token ','. */ -/* @@? 17:40 Error SyntaxError: Unexpected token 'number'. */ -/* @@? 17:40 Error TypeError: Type name 'number' used in the wrong context */ -/* @@? 17:46 Error SyntaxError: Unexpected token ']'. */ + +/* @@? 17:17 Error Semantic error ESE0277: FixedArray must have only one type parameter. */ +/* @@? 17:28 Error Syntax error ESY0138: Invalid Type. */ +/* @@? 17:28 Error Syntax error ESY0228: Unexpected token, expected '>'. */ +/* @@? 17:28 Error Syntax error ESY0229: Unexpected token, expected ',' or ']'. */ +/* @@? 17:28 Error Syntax error ESY0227: Unexpected token '>'. */ +/* @@? 17:31 Error Syntax error ESY0227: Unexpected token 'number'. */ +/* @@? 17:31 Error Semantic error ESE0144: Type name 'number' used in the wrong context */ +/* @@? 17:38 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 17:40 Error Syntax error ESY0227: Unexpected token 'number'. */ +/* @@? 17:40 Error Semantic error ESE0144: Type name 'number' used in the wrong context */ +/* @@? 17:46 Error Syntax error ESY0227: Unexpected token ']'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/FixedArray/type_argument_conversion.ets b/ets2panda/test/ast/parser/ets/FixedArray/type_argument_conversion.ets index 28ab427441..07f4450b46 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/type_argument_conversion.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/type_argument_conversion.ets @@ -30,8 +30,9 @@ function main(): int { return 0; } -/* @@? 29:34 Error TypeError: No matching construct signature for type_argument_conversion.A(Array>) */ -/* @@? 29:58 Error TypeError: No Matching Parameterless Constructor, parameter count 1 */ -/* @@? 29:58 Error TypeError: No matching parameterless constructor */ -/* @@? 29:58 Error TypeError: Signature is not available here. */ -/* @@? 29:58 Error TypeError: Type 'Array>' is not compatible with type 'FixedArray>' at index 1 */ + +/* @@? 29:34 Error Semantic error ESE0127: No matching construct signature for type_argument_conversion.A(Array>) */ +/* @@? 29:58 Error Semantic error ESE0270: No Matching Parameterless Constructor, parameter count 1 */ +/* @@? 29:58 Error Semantic error ESE0125: No matching parameterless constructor */ +/* @@? 29:58 Error Semantic error ESE0137: Signature is not available here. */ +/* @@? 29:58 Error Semantic error ESE0046: Type 'Array>' is not compatible with type 'FixedArray>' at index 1 */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/FixedArray/unclosed_loop.ets b/ets2panda/test/ast/parser/ets/FixedArray/unclosed_loop.ets index c67ef9ef12..1897289ca1 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/unclosed_loop.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/unclosed_loop.ets @@ -24,7 +24,7 @@ function main(): int { /* @@ label3 */continue return 0; } -/* @@@ label Error TypeError: Control flow redirection statement can not be used out of loop or switch statement. */ -/* @@@ label1 Error TypeError: Control flow redirection statement can not be used out of loop or switch statement. */ -/* @@@ label2 Error TypeError: Control flow redirection statement can not be used out of loop or switch statement. */ -/* @@@ label3 Error TypeError: Control flow redirection statement can not be used out of loop or switch statement. */ \ No newline at end of file +/* @@@ label Error Semantic error ESE0161: Control flow redirection statement can not be used out of loop or switch statement. */ +/* @@@ label1 Error Semantic error ESE0161: Control flow redirection statement can not be used out of loop or switch statement. */ +/* @@@ label2 Error Semantic error ESE0161: Control flow redirection statement can not be used out of loop or switch statement. */ +/* @@@ label3 Error Semantic error ESE0161: Control flow redirection statement can not be used out of loop or switch statement. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/FixedArray/unexpected_token_26.ets b/ets2panda/test/ast/parser/ets/FixedArray/unexpected_token_26.ets index 4796f4bad0..d8f1cd5135 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/unexpected_token_26.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/unexpected_token_26.ets @@ -16,4 +16,5 @@ let x: FixedArray = [1,2,3] let y: int = x [0 -/* @@? 20:1 Error SyntaxError: Unexpected token, expected ']'. */ + +/* @@? 20:76 Error Syntax error ESY0228: Unexpected token, expected ']'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/FixedArray/unexpected_token_31.ets b/ets2panda/test/ast/parser/ets/FixedArray/unexpected_token_31.ets index 37de6fe998..6df806cf96 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/unexpected_token_31.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/unexpected_token_31.ets @@ -17,16 +17,17 @@ function foo(...^number: FixedArray): int { return number[0] } -/* @@? 16:10 Error TypeError: Only abstract or native methods can't have body. */ -/* @@? 16:14 Error SyntaxError: Rest parameter should be either array or tuple type. */ -/* @@? 16:17 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 16:18 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ -/* @@? 16:18 Error SyntaxError: Rest parameter must be the last formal parameter. */ -/* @@? 16:41 Error SyntaxError: Unexpected token ')'. */ -/* @@? 16:42 Error SyntaxError: Unexpected token ':'. */ -/* @@? 16:44 Error SyntaxError: Unexpected token 'int'. */ -/* @@? 16:48 Error SyntaxError: Unexpected token '{'. */ -/* @@? 17:5 Error SyntaxError: return keyword should be used in function body. */ -/* @@? 17:12 Error TypeError: Type name 'number' used in the wrong context */ -/* @@? 17:12 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@? 17:12 Error TypeError: All return statements in the function should be empty or have a value. */ + +/* @@? 16:10 Error Semantic error ESE0017: Only abstract or native methods can't have body. */ +/* @@? 16:14 Error Syntax error ESY0193: Rest parameter should be either array or tuple type. */ +/* @@? 16:17 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 16:18 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ +/* @@? 16:18 Error Syntax error ESY0067: Rest parameter must be the last formal parameter. */ +/* @@? 16:41 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 16:42 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 16:44 Error Syntax error ESY0227: Unexpected token 'int'. */ +/* @@? 16:48 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 17:5 Error Syntax error ESY0163: return keyword should be used in function body. */ +/* @@? 17:12 Error Semantic error ESE0144: Type name 'number' used in the wrong context */ +/* @@? 17:12 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 17:12 Error Semantic error ESE0092: All return statements in the function should be empty or have a value. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/FixedArray/unexpected_token_36.ets b/ets2panda/test/ast/parser/ets/FixedArray/unexpected_token_36.ets index 556218db5c..eef8b41b82 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/unexpected_token_36.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/unexpected_token_36.ets @@ -31,12 +31,13 @@ export class AccessNSieve { } } } -/* @@? 29:10 Error TypeError: Unresolved reference le */ -/* @@? 29:13 Error SyntaxError: Expected ';', got 'identification literal'. */ -/* @@? 29:13 Error TypeError: Unresolved reference i */ -/* @@? 29:14 Error SyntaxError: Expected ';', got ':'. */ -/* @@? 29:14 Error SyntaxError: Unexpected token ':'. */ -/* @@? 29:16 Error SyntaxError: Expected ')', got 'int'. */ -/* @@? 29:16 Error SyntaxError: Unexpected token 'int'. */ -/* @@? 29:36 Error SyntaxError: Unexpected token ')'. */ -/* @@? 29:38 Error SyntaxError: Unexpected token '{'. */ + +/* @@? 29:10 Error Semantic error ESE0143: Unresolved reference le */ +/* @@? 29:13 Error Syntax error ESY0230: Expected ';', got 'identification literal'. */ +/* @@? 29:13 Error Semantic error ESE0143: Unresolved reference i */ +/* @@? 29:14 Error Syntax error ESY0230: Expected ';', got ':'. */ +/* @@? 29:14 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 29:16 Error Syntax error ESY0230: Expected ')', got 'int'. */ +/* @@? 29:16 Error Syntax error ESY0227: Unexpected token 'int'. */ +/* @@? 29:36 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 29:38 Error Syntax error ESY0227: Unexpected token '{'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/FixedArray/unexpected_token_38.ets b/ets2panda/test/ast/parser/ets/FixedArray/unexpected_token_38.ets index 311e9b2693..783da22a8d 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/unexpected_token_38.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/unexpected_token_38.ets @@ -23,10 +23,11 @@ let func3: (f: (a: number, b: string) => FixedArray): FixedArray // let func3: (f: (a: number, b: string) => FixedArray): FixedArray) => (a: number, b: boolean) => true; -/* @@? 19:8 Error TypeError: 'void' used as type annotation. */ -/* @@? 22:61 Error SyntaxError: Unexpected token, expected '=>'. */ -/* @@? 22:61 Error SyntaxError: Unexpected token '=>'. */ -/* @@? 22:63 Error SyntaxError: Unexpected token 'FixedArray'. */ -/* @@? 22:63 Error TypeError: Unresolved reference FixedArray */ -/* @@? 22:82 Error SyntaxError: Unexpected token, expected '('. */ -/* @@? 22:116 Error SyntaxError: Unexpected token, expected ',' or ')'. */ + +/* @@? 19:8 Error Semantic error ESE0232: 'void' used as type annotation. */ +/* @@? 22:61 Error Syntax error ESY0228: Unexpected token, expected '=>'. */ +/* @@? 22:61 Error Syntax error ESY0227: Unexpected token '=>'. */ +/* @@? 22:63 Error Syntax error ESY0227: Unexpected token 'FixedArray'. */ +/* @@? 22:63 Error Semantic error ESE0143: Unresolved reference FixedArray */ +/* @@? 22:82 Error Syntax error ESY0228: Unexpected token, expected '('. */ +/* @@? 22:116 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/FixedArray/unexpected_token_39.ets b/ets2panda/test/ast/parser/ets/FixedArray/unexpected_token_39.ets index 1b9561b4d5..d3f630d64b 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/unexpected_token_39.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/unexpected_token_39.ets @@ -15,4 +15,5 @@ let r: (FixedArray<((number))>/* @@ label */; -/* @@@ label Error SyntaxError: Unexpected token, expected ')'. */ + +/* @@@ label Error Syntax error ESY0228: Unexpected token, expected ')'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/FixedArray/unexpected_token_42.ets b/ets2panda/test/ast/parser/ets/FixedArray/unexpected_token_42.ets index 9e88ba3b09..28c74369be 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/unexpected_token_42.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/unexpected_token_42.ets @@ -15,5 +15,6 @@ // Int[1,2,3,4,5] let a: number = new Int[1 -/* @@? 16:17 Error TypeError: Type 'Array' cannot be assigned to type 'Double' */ -/* @@? 20:1 Error SyntaxError: Expected ']', got 'end of stream'. */ + +/* @@? 16:17 Error Semantic error ESE0318: Type 'Array' cannot be assigned to type 'Double' */ +/* @@? 20:79 Error Syntax error ESY0230: Expected ']', got 'end of stream'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/FixedArray/unexpected_token_47.ets b/ets2panda/test/ast/parser/ets/FixedArray/unexpected_token_47.ets index e6bb326eef..baac424474 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/unexpected_token_47.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/unexpected_token_47.ets @@ -15,7 +15,8 @@ let isPrime: FixedArray = new int[[]][[] -/* @@? 16:32 Error TypeError: Type 'FixedArray>' cannot be assigned to type 'FixedArray' */ -/* @@? 16:40 Error TypeError: Can't resolve array type */ -/* @@? 16:44 Error TypeError: Can't resolve array type */ -/* @@? 22:1 Error SyntaxError: Expected ']', got 'end of stream'. */ + +/* @@? 16:32 Error Semantic error ESE0318: Type 'FixedArray>' cannot be assigned to type 'FixedArray' */ +/* @@? 16:40 Error Semantic error ESE0301: Can't resolve array type */ +/* @@? 16:44 Error Semantic error ESE0301: Can't resolve array type */ +/* @@? 22:79 Error Syntax error ESY0230: Expected ']', got 'end of stream'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/FixedArray/wrong-union-array-assignment.ets b/ets2panda/test/ast/parser/ets/FixedArray/wrong-union-array-assignment.ets index 287b7a65a5..7d5351eacc 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/wrong-union-array-assignment.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/wrong-union-array-assignment.ets @@ -24,4 +24,5 @@ function main() array = /* @@ label */new Bad(); } -/* @@? 24:27 Error TypeError: Type 'Bad' cannot be assigned to type 'Array' */ + +/* @@@ label Error Semantic error ESE0318: Type 'Bad' cannot be assigned to type 'Array' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/FunctionalTypeAsArrayElement.ets b/ets2panda/test/ast/parser/ets/FunctionalTypeAsArrayElement.ets index d31642e769..9f7eddae09 100644 --- a/ets2panda/test/ast/parser/ets/FunctionalTypeAsArrayElement.ets +++ b/ets2panda/test/ast/parser/ets/FunctionalTypeAsArrayElement.ets @@ -19,4 +19,5 @@ 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' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/InferTypeParamFromParam2.ets b/ets2panda/test/ast/parser/ets/InferTypeParamFromParam2.ets index f905d8b0c4..6b6d589d55 100644 --- a/ets2panda/test/ast/parser/ets/InferTypeParamFromParam2.ets +++ b/ets2panda/test/ast/parser/ets/InferTypeParamFromParam2.ets @@ -31,5 +31,4 @@ function main() { let a = func(new B()); } -/* @@@ label Error TypeError: No matching call signature for staticFunction(B) */ -/* @@? 31:13 Error TypeError: Cannot use type 'void' as value. */ + diff --git a/ets2panda/test/ast/parser/ets/InitialCheckForGeneric.ets b/ets2panda/test/ast/parser/ets/InitialCheckForGeneric.ets index 42a51a43a8..13802fb87a 100644 --- a/ets2panda/test/ast/parser/ets/InitialCheckForGeneric.ets +++ b/ets2panda/test/ast/parser/ets/InitialCheckForGeneric.ets @@ -26,5 +26,6 @@ function main(): void { foo() } -/* @@@ label Error TypeError: Variable 'u' is used before being assigned. */ -/* @@@ label1 Error TypeError: Variable 'v' is used before being assigned. */ + +/* @@@ label Error Semantic error ESE0375: Variable 'u' is used before being assigned. */ +/* @@@ label1 Error Semantic error ESE0375: Variable 'v' is used before being assigned. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/InterfaceWithDefaultFunction1.ets b/ets2panda/test/ast/parser/ets/InterfaceWithDefaultFunction1.ets index 1082b7ab7a..ae6179c23f 100644 --- a/ets2panda/test/ast/parser/ets/InterfaceWithDefaultFunction1.ets +++ b/ets2panda/test/ast/parser/ets/InterfaceWithDefaultFunction1.ets @@ -23,4 +23,5 @@ function main() { c.foo(); } -/* @@@ label Error TypeError: Method 'foo' is declared in I1 and IBase interfaces. */ + +/* @@@ label Error Semantic error ESE0187: Method 'foo' is declared in I1 and IBase interfaces. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/InterfaceWithDefaultFunction2.ets b/ets2panda/test/ast/parser/ets/InterfaceWithDefaultFunction2.ets index 351a1bab9f..c1a1ee6037 100644 --- a/ets2panda/test/ast/parser/ets/InterfaceWithDefaultFunction2.ets +++ b/ets2panda/test/ast/parser/ets/InterfaceWithDefaultFunction2.ets @@ -23,4 +23,5 @@ function main() { c.foo(); } -/* @@@ label Error TypeError: Method 'foo' is declared in I1 and I2 interfaces. */ + +/* @@@ label Error Semantic error ESE0187: Method 'foo' is declared in I1 and I2 interfaces. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/Interface_variable_identifier.ets b/ets2panda/test/ast/parser/ets/Interface_variable_identifier.ets index dabebff9fd..38f48542d4 100644 --- a/ets2panda/test/ast/parser/ets/Interface_variable_identifier.ets +++ b/ets2panda/test/ast/parser/ets/Interface_variable_identifier.ets @@ -18,7 +18,8 @@ interface A{ gensym%%_4:string; } -/* @@? 18:11 Error SyntaxError: Interface fields must have type annotation. */ -/* @@? 18:12 Error SyntaxError: Invalid Type. */ -/* @@? 18:12 Error SyntaxError: Unexpected token, expected ','. */ -/* @@? 18:12 Error SyntaxError: Identifier expected, got 'end of stream'. */ + +/* @@? 18:11 Error Syntax error ESY0119: Interface fields must have type annotation. */ +/* @@? 18:12 Error Syntax error ESY0138: Invalid Type. */ +/* @@? 18:12 Error Syntax error ESY0228: Unexpected token, expected ','. */ +/* @@? 18:12 Error Syntax error ESY0224: Identifier expected, got 'end of stream'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/InvalidClasses.ets b/ets2panda/test/ast/parser/ets/InvalidClasses.ets index 9e9343b6b4..dd6c4a5105 100644 --- a/ets2panda/test/ast/parser/ets/InvalidClasses.ets +++ b/ets2panda/test/ast/parser/ets/InvalidClasses.ets @@ -78,55 +78,56 @@ interface I1 { x: number = } -/* @@? 16:9 Error TypeError: A is not abstract and does not override abstract method f5(): Promise in A */ -/* @@? 17:12 Error SyntaxError: Duplicated modifier is not allowed. */ -/* @@? 17:20 Error TypeError: Only abstract or native methods can't have body. */ -/* @@? 18:12 Error SyntaxError: Duplicated modifier is not allowed. */ -/* @@? 18:30 Error TypeError: Native, Abstract and Declare methods cannot have body. */ -/* @@? 19:21 Error TypeError: Static property 'f' must be accessed through it's class 'A' */ -/* @@? 22:12 Error SyntaxError: Access modifier must precede field and method modifiers. */ -/* @@? 22:36 Error TypeError: Invalid method modifier(s): an abstract method can't have private, override, static, final or native modifier. */ -/* @@? 22:46 Error TypeError: Native, Abstract and Declare methods cannot have body. */ -/* @@? 26:18 Error SyntaxError: Native method cannot be async. */ -/* @@? 27:20 Error SyntaxError: Abstract method cannot be async. */ -/* @@? 27:20 Error TypeError: Non abstract class has abstract method. */ -/* @@? 35:5 Error SyntaxError: Only one static block is allowed in one namespace or class. */ -/* @@? 38:10 Error SyntaxError: Duplicated modifier is not allowed. */ -/* @@? 41:11 Error SyntaxError: The special predefined method '$_get' should have exactly one required parameter. */ -/* @@? 41:11 Error SyntaxError: The special predefined method '$_get' cannot be asynchronous. */ -/* @@? 41:16 Error TypeError: Return type of async function must be 'Promise'. */ -/* @@? 45:11 Error SyntaxError: The special predefined method '$_set' should have exactly two required parameter. */ -/* @@? 45:11 Error SyntaxError: The special predefined method '$_set' cannot be asynchronous. */ -/* @@? 45:16 Error TypeError: Only abstract or native methods can't have body. */ -/* @@? 47:11 Error SyntaxError: The special predefined method '$_iterator' cannot be asynchronous. */ -/* @@? 47:11 Error SyntaxError: The special predefined method '$_iterator' should not have parameters. */ -/* @@? 47:21 Error TypeError: The return type of '$_iterator' must be a type that implements Iterator interface. */ -/* @@? 47:21 Error TypeError: Return type of async function must be 'Promise'. */ -/* @@? 54:21 Error TypeError: Initializers are not allowed in ambient contexts: x */ -/* @@? 54:23 Error SyntaxError: Initializers are not allowed in ambient contexts. */ -/* @@? 58:1 Error TypeError: Unresolved reference declare */ -/* @@? 58:9 Error SyntaxError: Unexpected token 'native'. */ -/* @@? 58:16 Error SyntaxError: 'native' flags must be used for functions only at top-level. */ -/* @@? 58:22 Error TypeError: Native and Declare methods should have explicit return type. */ -/* @@? 58:24 Error SyntaxError: Unexpected token, expected '('. */ -/* @@? 58:25 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 58:25 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ -/* @@? 58:25 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 58:25 Error SyntaxError: Unexpected token '}'. */ -/* @@? 61:5 Error SyntaxError: Illegal start of CLASS expression. */ -/* @@? 62:9 Error SyntaxError: Local class or interface declaration members can not have access modifies. */ -/* @@? 65:5 Error SyntaxError: Illegal start of INTERFACE expression. */ -/* @@? 66:9 Error SyntaxError: Local class or interface declaration members can not have access modifies. */ -/* @@? 66:18 Error SyntaxError: Private interface methods must have body. */ -/* @@? 67:9 Error SyntaxError: Identifier expected, got 'static'. */ -/* @@? 67:16 Error SyntaxError: Unexpected token, expected ','. */ -/* @@? 67:16 Error SyntaxError: Identifier expected, got 'static'. */ -/* @@? 67:16 Error SyntaxError: Identifier expected. */ -/* @@? 72:5 Error SyntaxError: Identifier expected, got 'class'. */ -/* @@? 72:13 Error SyntaxError: Interface fields must have type annotation. */ -/* @@? 72:14 Error SyntaxError: Invalid Type. */ -/* @@? 74:5 Error SyntaxError: Extension Getter can only have 1 parameter. */ -/* @@? 74:25 Error SyntaxError: Extension Accessor must have a receiver. */ -/* @@? 78:8 Error SyntaxError: Label must be followed by a loop statement. */ -/* @@? 78:8 Error TypeError: Type name 'number' used in the wrong context */ -/* @@? 79:1 Error SyntaxError: Unexpected token '}'. */ + +/* @@? 16:9 Error Semantic error ESE0190: A is not abstract and does not override abstract method f5(): Promise in A */ +/* @@? 17:12 Error Syntax error ESY0115: Duplicated modifier is not allowed. */ +/* @@? 17:20 Error Semantic error ESE0017: Only abstract or native methods can't have body. */ +/* @@? 18:12 Error Syntax error ESY0115: Duplicated modifier is not allowed. */ +/* @@? 18:30 Error Semantic error ESE0083: Native, Abstract and Declare methods cannot have body. */ +/* @@? 19:21 Error Semantic error ESE0173: Static property 'f' must be accessed through it's class 'A' */ +/* @@? 22:12 Error Syntax error ESY0120: Access modifier must precede field and method modifiers. */ +/* @@? 22:36 Error Semantic error ESE0047: Invalid method modifier(s): an abstract method can't have private, override, static, final or native modifier. */ +/* @@? 22:46 Error Semantic error ESE0083: Native, Abstract and Declare methods cannot have body. */ +/* @@? 26:18 Error Syntax error ESY0116: Native method cannot be async. */ +/* @@? 27:20 Error Syntax error ESY0118: Abstract method cannot be async. */ +/* @@? 27:20 Error Semantic error ESE0019: Non abstract class has abstract method. */ +/* @@? 35:5 Error Syntax error ESY0034: Only one static block is allowed in one namespace or class. */ +/* @@? 38:10 Error Syntax error ESY0115: Duplicated modifier is not allowed. */ +/* @@? 41:11 Error Syntax error ESY0221: The special predefined method '$_get' should have exactly one required parameter. */ +/* @@? 41:11 Error Syntax error ESY0220: The special predefined method '$_get' cannot be asynchronous. */ +/* @@? 41:16 Error Semantic error ESE0001: Return type of async function must be 'Promise'. */ +/* @@? 45:11 Error Syntax error ESY0222: The special predefined method '$_set' should have exactly two required parameter. */ +/* @@? 45:11 Error Syntax error ESY0220: The special predefined method '$_set' cannot be asynchronous. */ +/* @@? 45:16 Error Semantic error ESE0017: Only abstract or native methods can't have body. */ +/* @@? 47:11 Error Syntax error ESY0220: The special predefined method '$_iterator' cannot be asynchronous. */ +/* @@? 47:11 Error Syntax error ESY0223: The special predefined method '$_iterator' should not have parameters. */ +/* @@? 47:21 Error Semantic error ESE0096: The return type of '$_iterator' must be a type that implements Iterator interface. */ +/* @@? 47:21 Error Semantic error ESE0001: Return type of async function must be 'Promise'. */ +/* @@? 54:21 Error Semantic error ESE0153: Initializers are not allowed in ambient contexts: x */ +/* @@? 54:23 Error Syntax error ESY0125: Initializers are not allowed in ambient contexts. */ +/* @@? 58:1 Error Semantic error ESE0143: Unresolved reference declare */ +/* @@? 58:9 Error Syntax error ESY0227: Unexpected token 'native'. */ +/* @@? 58:16 Error Syntax error ESY0203: 'native' flags must be used for functions only at top-level. */ +/* @@? 58:22 Error Semantic error ESE0018: Native and Declare methods should have explicit return type. */ +/* @@? 58:24 Error Syntax error ESY0228: Unexpected token, expected '('. */ +/* @@? 58:25 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 58:25 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ +/* @@? 58:25 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 58:25 Error Syntax error ESY0227: Unexpected token '}'. */ +/* @@? 61:5 Error Syntax error ESY0040: Illegal start of CLASS expression. */ +/* @@? 62:9 Error Syntax error ESY0030: Local class or interface declaration members can not have access modifies. */ +/* @@? 65:5 Error Syntax error ESY0040: Illegal start of INTERFACE expression. */ +/* @@? 66:9 Error Syntax error ESY0030: Local class or interface declaration members can not have access modifies. */ +/* @@? 66:18 Error Syntax error ESY0032: Private interface methods must have body. */ +/* @@? 67:9 Error Syntax error ESY0224: Identifier expected, got 'static'. */ +/* @@? 67:16 Error Syntax error ESY0228: Unexpected token, expected ','. */ +/* @@? 67:16 Error Syntax error ESY0224: Identifier expected, got 'static'. */ +/* @@? 67:16 Error Syntax error ESY0122: Identifier expected. */ +/* @@? 72:5 Error Syntax error ESY0224: Identifier expected, got 'class'. */ +/* @@? 72:13 Error Syntax error ESY0119: Interface fields must have type annotation. */ +/* @@? 72:14 Error Syntax error ESY0138: Invalid Type. */ +/* @@? 74:5 Error Syntax error ESY0022: Extension Getter can only have 1 parameter. */ +/* @@? 74:25 Error Syntax error ESY0146: Extension Accessor must have a receiver. */ +/* @@? 78:8 Error Syntax error ESY0038: Label must be followed by a loop statement. */ +/* @@? 78:8 Error Semantic error ESE0144: Type name 'number' used in the wrong context */ +/* @@? 79:1 Error Syntax error ESY0227: Unexpected token '}'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/InvalidExpressions.ets b/ets2panda/test/ast/parser/ets/InvalidExpressions.ets index 4a96a1fe0b..02e3522215 100644 --- a/ets2panda/test/ast/parser/ets/InvalidExpressions.ets +++ b/ets2panda/test/ast/parser/ets/InvalidExpressions.ets @@ -57,56 +57,59 @@ function f6(a: int = 9 @@): void; function f7(a: (b: int = 0) => int): void { } -/* @@? 16:35 Error SyntaxError: Rest parameter cannot have the default value. */ -/* @@? 16:37 Error SyntaxError: Identifier is needed here. */ -/* @@? 16:40 Error TypeError: Cannot find type 'bool'. */ -/* @@? 17:20 Error TypeError: Unresolved reference b */ -/* @@? 17:21 Error SyntaxError: Unexpected token '...'. */ -/* @@? 17:21 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 17:24 Error SyntaxError: Unexpected token ')'. */ -/* @@? 18:13 Error TypeError: Bad operand type, the types of the operands must be numeric, same enumeration, or boolean type. */ -/* @@? 18:13 Error TypeError: Circular dependency detected for identifier: x */ -/* @@? 18:14 Error TypeError: Variable 'x' is accessed before it's initialization. */ -/* @@? 18:35 Error SyntaxError: Unexpected token, expected '>'. */ -/* @@? 18:36 Error SyntaxError: Unexpected token ';'. */ -/* @@? 18:36 Error SyntaxError: Unexpected token, expected ')'. */ -/* @@? 19:12 Error TypeError: Bad operand type, the types of the operands must be same type. */ -/* @@? 19:25 Error Warning: Type parameter is erased from type 'A' when used in instanceof expression. */ -/* @@? 22:23 Error SyntaxError: Not enable default value with default undefined. */ -/* @@? 24:10 Error TypeError: Only abstract or native methods can't have body. */ -/* @@? 24:22 Error SyntaxError: You didn't set the value. */ -/* @@? 24:22 Error SyntaxError: Unexpected token ')'. */ -/* @@? 27:5 Error TypeError: Invalid left-hand side of assignment expression */ -/* @@? 27:8 Error SyntaxError: Invalid left-hand side in assignment expression. */ -/* @@? 28:7 Error SyntaxError: Invalid left-hand side operator. */ -/* @@? 30:5 Error TypeError: Invalid left-hand side of assignment expression */ -/* @@? 30:5 Error SyntaxError: Invalid left-hand side in prefix operation. */ -/* @@? 30:8 Error SyntaxError: Invalid left-hand side in assignment expression. */ -/* @@? 33:27 Error SyntaxError: Rest parameter cannot have the default value. */ -/* @@? 33:29 Error SyntaxError: Identifier is needed here. */ -/* @@? 33:41 Error SyntaxError: Not enable default value with default undefined. */ -/* @@? 35:10 Error SyntaxError: Unexpected token ':'. */ -/* @@? 35:10 Error SyntaxError: Unexpected token, expected ')'. */ -/* @@? 35:12 Error SyntaxError: Unexpected token 'int'. */ -/* @@? 35:16 Error SyntaxError: Unexpected token '=>'. */ -/* @@? 37:5 Error TypeError: Variable 'x' has already been declared. */ -/* @@? 37:15 Error SyntaxError: Unexpected token '=>'. */ -/* @@? 38:5 Error TypeError: Variable 'x' has already been declared. */ -/* @@? 38:9 Error TypeError: This expression is not constructible. */ -/* @@? 39:5 Error TypeError: Variable 'x' has already been declared. */ -/* @@? 39:9 Error TypeError: This expression is not constructible. */ -/* @@? 39:16 Error SyntaxError: Unexpected token '{'. */ -/* @@? 47:15 Error SyntaxError: Unexpected token, expected '('. */ -/* @@? 47:17 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 48:5 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 48:5 Error SyntaxError: Expected '=>', got '}'. */ -/* @@? 48:5 Error SyntaxError: Unexpected token '}'. */ -/* @@? 51:13 Error SyntaxError: Unexpected token '.99'. */ -/* @@? 51:16 Error SyntaxError: Invalid left-hand side operator. */ -/* @@? 55:10 Error TypeError: Only abstract or native methods can't have body. */ -/* @@? 55:24 Error SyntaxError: Unexpected token '@@'. */ -/* @@? 55:24 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 55:26 Error SyntaxError: Unexpected token ')'. */ -/* @@? 55:27 Error SyntaxError: Unexpected token ':'. */ -/* @@? 55:29 Error TypeError: Unresolved reference void */ -/* @@? 57:26 Error SyntaxError: Default value is allowed only for optional parameters. */ + +/* @@? 16:35 Error Syntax error ESY0192: Rest parameter cannot have the default value. */ +/* @@? 16:37 Error Syntax error ESY0131: Identifier is needed here. */ +/* @@? 16:40 Error Semantic error ESE0371: Cannot find type 'bool'. */ +/* @@? 17:21 Error Syntax error ESY0227: Unexpected token '...'. */ +/* @@? 17:21 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 17:24 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 18:14 Error Semantic error ESE0365: Variable 'x' is accessed before it's initialization. */ +/* @@? 18:35 Error Syntax error ESY0228: Unexpected token, expected '>'. */ +/* @@? 18:36 Error Syntax error ESY0227: Unexpected token ';'. */ +/* @@? 19:5 Error Syntax error ESY0228: Unexpected token, expected ')'. */ +/* @@? 19:12 Error Syntax error ESY0227: Unexpected token 'x'. */ +/* @@? 22:23 Error Syntax error ESY0132: Not enable default value with default undefined. */ +/* @@? 24:10 Error Semantic error ESE0017: Only abstract or native methods can't have body. */ +/* @@? 24:22 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 24:22 Error Syntax error ESY0128: You didn't set the value. */ +/* @@? 24:23 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 27:5 Error Semantic error ESE0025: Invalid left-hand side of assignment expression */ +/* @@? 27:8 Error Syntax error ESY0072: Invalid left-hand side in assignment expression. */ +/* @@? 27:10 Error Syntax error ESY0227: Unexpected token 'int'. */ +/* @@? 28:7 Error Syntax error ESY0053: Invalid left-hand side operator. */ +/* @@? 30:5 Error Syntax error ESY0071: Invalid left-hand side in prefix operation. */ +/* @@? 30:5 Error Semantic error ESE0025: Invalid left-hand side of assignment expression */ +/* @@? 30:8 Error Syntax error ESY0072: Invalid left-hand side in assignment expression. */ +/* @@? 33:27 Error Syntax error ESY0192: Rest parameter cannot have the default value. */ +/* @@? 33:29 Error Syntax error ESY0131: Identifier is needed here. */ +/* @@? 33:41 Error Syntax error ESY0132: Not enable default value with default undefined. */ +/* @@? 35:10 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 35:12 Error Syntax error ESY0228: Unexpected token, expected ')'. */ +/* @@? 35:16 Error Syntax error ESY0227: Unexpected token '=>'. */ +/* @@? 37:5 Error Semantic error ESE0351: Variable 'x' has already been declared. */ +/* @@? 37:15 Error Syntax error ESY0227: Unexpected token '=>'. */ +/* @@? 37:18 Error Syntax error ESY0227: Unexpected token '77'. */ +/* @@? 38:5 Error Semantic error ESE0351: Variable 'x' has already been declared. */ +/* @@? 39:5 Error Semantic error ESE0351: Variable 'x' has already been declared. */ +/* @@? 39:16 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 47:15 Error Syntax error ESY0228: Unexpected token, expected '('. */ +/* @@? 47:17 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 47:17 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ +/* @@? 48:5 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 48:5 Error Syntax error ESY0230: Expected '=>', got '}'. */ +/* @@? 48:5 Error Syntax error ESY0227: Unexpected token '}'. */ +/* @@? 50:5 Error Semantic error ESE0140: No matching call signature with trailing lambda */ +/* @@? 51:13 Error Syntax error ESY0227: Unexpected token '.99'. */ +/* @@? 51:16 Error Syntax error ESY0053: Invalid left-hand side operator. */ +/* @@? 55:1 Error Syntax error ESY0227: Unexpected token 'function'. */ +/* @@? 55:12 Error Semantic error ESE0017: Only abstract or native methods can't have body. */ +/* @@? 55:24 Error Syntax error ESY0010: There is no any node to insert at the placeholder position. */ +/* @@? 55:24 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 55:24 Error Syntax error ESY0227: Unexpected token '@@'. */ +/* @@? 55:26 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 55:27 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 55:29 Error Syntax error ESY0295: void is a predefined type, cannot be used as an identifier */ +/* @@? 57:1 Error Syntax error ESY0227: Unexpected token 'function'. */ +/* @@? 57:26 Error Syntax error ESY0133: Default value is allowed only for optional parameters. */ +/* @@? 115:80 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/InvalidExpressions1.ets b/ets2panda/test/ast/parser/ets/InvalidExpressions1.ets index 12d43efaec..b92df056f1 100644 --- a/ets2panda/test/ast/parser/ets/InvalidExpressions1.ets +++ b/ets2panda/test/ast/parser/ets/InvalidExpressions1.ets @@ -36,45 +36,46 @@ function f(x: int): void { a?.[1+2); let a = [1, 2, 3); -/* @@? 16:16 Error SyntaxError: Unexpected token ','. */ -/* @@? 16:18 Error SyntaxError: Unexpected token, expected ',' or ']'. */ -/* @@? 16:18 Error SyntaxError: Unexpected token '2'. */ -/* @@? 16:19 Error SyntaxError: Unexpected token ']'. */ -/* @@? 18:3 Error SyntaxError: Unexpected token, expected ',' or ']'. */ -/* @@? 18:3 Error SyntaxError: Unexpected token '...'. */ -/* @@? 18:6 Error SyntaxError: Unexpected token ','. */ -/* @@? 18:8 Error SyntaxError: Unexpected token '55'. */ -/* @@? 18:10 Error SyntaxError: Unexpected token ']'. */ -/* @@? 20:5 Error TypeError: Unresolved reference x */ -/* @@? 20:6 Error SyntaxError: Unexpected token, expected ',' or ']'. */ -/* @@? 20:6 Error SyntaxError: Unexpected token '...'. */ -/* @@? 20:9 Error SyntaxError: Unexpected token ','. */ -/* @@? 20:11 Error SyntaxError: Unexpected token '78'. */ -/* @@? 20:13 Error SyntaxError: Unexpected token ']'. */ -/* @@? 22:11 Error SyntaxError: Unexpected token '=>'. */ -/* @@? 22:11 Error SyntaxError: Unexpected token. */ -/* @@? 24:5 Error TypeError: Variable 'a' has already been declared. */ -/* @@? 24:18 Error TypeError: The type of parameter 'y' cannot be inferred */ -/* @@? 24:19 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 24:19 Error SyntaxError: Expected '=>', got '...'. */ -/* @@? 24:19 Error SyntaxError: Unexpected token '...'. */ -/* @@? 24:24 Error SyntaxError: Identifier expected, got ')'. */ -/* @@? 24:32 Error SyntaxError: Unexpected token '=>'. */ -/* @@? 24:35 Error SyntaxError: Unexpected token '{'. */ -/* @@? 26:7 Error SyntaxError: Unexpected token '||='. */ -/* @@? 28:5 Error TypeError: Variable 'a' has already been declared. */ -/* @@? 28:20 Error SyntaxError: Expected '}', got ')'. */ -/* @@? 30:5 Error TypeError: Variable 'a' has already been declared. */ -/* @@? 30:13 Error SyntaxError: Unexpected token 'import'. */ -/* @@? 30:13 Error SyntaxError: Import declarations can only be used on the top level and before any other declaration, top level statement or directive. */ -/* @@? 30:13 Error SyntaxError: Invalid Type. */ -/* @@? 32:10 Error TypeError: Variable 'f' has already been declared. */ -/* @@? 33:5 Error TypeError: Call to 'super' must be first statement in constructor */ -/* @@? 33:5 Error TypeError: Expected 0 arguments, got 1. */ -/* @@? 33:5 Error TypeError: No matching call signature for std.core.Object(Int) */ -/* @@? 33:10 Error SyntaxError: Unexpected super keyword. */ -/* @@? 36:1 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@? 36:8 Error SyntaxError: Unexpected token, expected ']'. */ -/* @@? 38:5 Error TypeError: Variable 'a' has already been declared. */ -/* @@? 38:17 Error SyntaxError: Unexpected token ')'. */ -/* @@? 38:17 Error SyntaxError: Unexpected token, expected ',' or ']'. */ + +/* @@? 16:16 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 16:18 Error Syntax error ESY0229: Unexpected token, expected ',' or ']'. */ +/* @@? 16:18 Error Syntax error ESY0227: Unexpected token '2'. */ +/* @@? 16:19 Error Syntax error ESY0227: Unexpected token ']'. */ +/* @@? 18:3 Error Syntax error ESY0229: Unexpected token, expected ',' or ']'. */ +/* @@? 18:3 Error Syntax error ESY0227: Unexpected token '...'. */ +/* @@? 18:6 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 18:8 Error Syntax error ESY0227: Unexpected token '55'. */ +/* @@? 18:10 Error Syntax error ESY0227: Unexpected token ']'. */ +/* @@? 20:5 Error Semantic error ESE0143: Unresolved reference x */ +/* @@? 20:6 Error Syntax error ESY0229: Unexpected token, expected ',' or ']'. */ +/* @@? 20:6 Error Syntax error ESY0227: Unexpected token '...'. */ +/* @@? 20:9 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 20:11 Error Syntax error ESY0227: Unexpected token '78'. */ +/* @@? 20:13 Error Syntax error ESY0227: Unexpected token ']'. */ +/* @@? 22:11 Error Syntax error ESY0227: Unexpected token '=>'. */ +/* @@? 22:11 Error Syntax error ESY0016: Unexpected token. */ +/* @@? 24:5 Error Semantic error ESE0351: Variable 'a' has already been declared. */ +/* @@? 24:18 Error Semantic error ESE0132: The type of parameter 'y' cannot be inferred */ +/* @@? 24:19 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 24:19 Error Syntax error ESY0230: Expected '=>', got '...'. */ +/* @@? 24:19 Error Syntax error ESY0227: Unexpected token '...'. */ +/* @@? 24:24 Error Syntax error ESY0224: Identifier expected, got ')'. */ +/* @@? 24:32 Error Syntax error ESY0227: Unexpected token '=>'. */ +/* @@? 24:35 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 26:7 Error Syntax error ESY0227: Unexpected token '||='. */ +/* @@? 28:5 Error Semantic error ESE0351: Variable 'a' has already been declared. */ +/* @@? 28:20 Error Syntax error ESY0230: Expected '}', got ')'. */ +/* @@? 30:5 Error Semantic error ESE0351: Variable 'a' has already been declared. */ +/* @@? 30:13 Error Syntax error ESY0227: Unexpected token 'import'. */ +/* @@? 30:13 Error Syntax error ESY0226: Import declarations can only be used on the top level and before any other declaration, top level statement or directive. */ +/* @@? 30:13 Error Syntax error ESY0138: Invalid Type. */ +/* @@? 32:10 Error Semantic error ESE0351: Variable 'f' has already been declared. */ +/* @@? 33:5 Error Semantic error ESE0201: Call to 'super' must be first statement in constructor */ +/* @@? 33:5 Error Semantic error ESE0124: Expected 0 arguments, got 1. */ +/* @@? 33:5 Error Semantic error ESE0127: No matching call signature for std.core.Object(Int) */ +/* @@? 33:10 Error Syntax error ESY0061: Unexpected super keyword. */ +/* @@? 36:1 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 36:8 Error Syntax error ESY0228: Unexpected token, expected ']'. */ +/* @@? 38:5 Error Semantic error ESE0351: Variable 'a' has already been declared. */ +/* @@? 38:17 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 38:17 Error Syntax error ESY0229: Unexpected token, expected ',' or ']'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/InvalidParserImpl.ets b/ets2panda/test/ast/parser/ets/InvalidParserImpl.ets index 899de53972..6ccacb6f28 100644 --- a/ets2panda/test/ast/parser/ets/InvalidParserImpl.ets +++ b/ets2panda/test/ast/parser/ets/InvalidParserImpl.ets @@ -22,7 +22,8 @@ function fun(this: A) {} class int {} -/* @@? 17:12 Error TypeError: Getter must return a value */ -/* @@? 18:5 Error SyntaxError: Getter must not have formal parameters. */ -/* @@? 19:1 Error SyntaxError: Setter must have exactly one formal parameter. */ -/* @@? 23:7 Error SyntaxError: int is a predefined type, cannot be used as an identifier */ + +/* @@? 17:12 Error Semantic error ESE0086: Getter must return a value */ +/* @@? 18:5 Error Syntax error ESY0058: Getter must not have formal parameters. */ +/* @@? 19:1 Error Syntax error ESY0063: Setter must have exactly one formal parameter. */ +/* @@? 23:7 Error Syntax error ESY0295: int is a predefined type, cannot be used as an identifier */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/InvalidStatements1.ets b/ets2panda/test/ast/parser/ets/InvalidStatements1.ets index 07c11ed802..23c32b4757 100644 --- a/ets2panda/test/ast/parser/ets/InvalidStatements1.ets +++ b/ets2panda/test/ast/parser/ets/InvalidStatements1.ets @@ -51,21 +51,22 @@ class A { throw "abc" // there were more errors -/* @@? 22:1 Error SyntaxError: Label must be followed by a loop statement. */ -/* @@? 22:5 Error TypeError: Variable 'x' has already been declared. */ -/* @@? 25:5 Error SyntaxError: Unexpected token 'let'. */ -/* @@? 28:1 Error TypeError: Function f is already declared. */ -/* @@? 29:5 Error SyntaxError: Illegal start of STRUCT expression. */ -/* @@? 30:9 Error SyntaxError: Unexpected token 'let'. */ -/* @@? 32:5 Error SyntaxError: Nested functions are not allowed. */ -/* @@? 36:5 Error SyntaxError: Expected '{', got 'let'. */ -/* @@? 40:1 Error SyntaxError: A try statement should contain either finally clause or at least one catch clause. */ -/* @@? 40:5 Error SyntaxError: Expected '{', got 'identification literal'. */ -/* @@? 40:8 Error SyntaxError: Label must be followed by a loop statement. */ -/* @@? 42:1 Error SyntaxError: A try statement should contain either finally clause or at least one catch clause. */ -/* @@? 43:5 Error SyntaxError: Expected '{', got 'let'. */ -/* @@? 45:9 Error SyntaxError: Unexpected token '{'. */ -/* @@? 47:1 Error SyntaxError: Illegal start of CLASS expression. */ -/* @@? 48:5 Error SyntaxError: Unexpected token 'let'. */ -/* @@? 52:1 Error SyntaxError: Illegal newline after throw. */ -/* @@? 72:1 Error SyntaxError: Expected '}', got 'end of stream'. */ + +/* @@? 22:1 Error Syntax error ESY0038: Label must be followed by a loop statement. */ +/* @@? 22:5 Error Semantic error ESE0351: Variable 'x' has already been declared. */ +/* @@? 25:5 Error Syntax error ESY0227: Unexpected token 'let'. */ +/* @@? 28:1 Error Semantic error ESE0130: Function f is already declared. */ +/* @@? 29:5 Error Syntax error ESY0040: Illegal start of STRUCT expression. */ +/* @@? 30:9 Error Syntax error ESY0227: Unexpected token 'let'. */ +/* @@? 32:5 Error Syntax error ESY0135: Nested functions are not allowed. */ +/* @@? 36:5 Error Syntax error ESY0230: Expected '{', got 'let'. */ +/* @@? 40:1 Error Syntax error ESY0039: A try statement should contain either finally clause or at least one catch clause. */ +/* @@? 40:5 Error Syntax error ESY0230: Expected '{', got 'identification literal'. */ +/* @@? 40:8 Error Syntax error ESY0038: Label must be followed by a loop statement. */ +/* @@? 42:1 Error Syntax error ESY0039: A try statement should contain either finally clause or at least one catch clause. */ +/* @@? 43:5 Error Syntax error ESY0230: Expected '{', got 'let'. */ +/* @@? 45:9 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 47:1 Error Syntax error ESY0040: Illegal start of CLASS expression. */ +/* @@? 48:5 Error Syntax error ESY0227: Unexpected token 'let'. */ +/* @@? 52:1 Error Syntax error ESY0172: Illegal newline after throw. */ +/* @@? 72:79 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/InvalidStatements2.ets b/ets2panda/test/ast/parser/ets/InvalidStatements2.ets index c3d305e424..e0af6aaf4d 100644 --- a/ets2panda/test/ast/parser/ets/InvalidStatements2.ets +++ b/ets2panda/test/ast/parser/ets/InvalidStatements2.ets @@ -50,15 +50,16 @@ function g(x: int): int { } -/* @@? 16:10 Error TypeError: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ -/* @@? 20:10 Error TypeError: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ -/* @@? 20:27 Error TypeError: struct B is not extensible. */ -/* @@? 30:17 Error SyntaxError: Label already declared. */ -/* @@? 40:1 Error SyntaxError: return keyword should be used in function body. */ -/* @@? 40:8 Error TypeError: All return statements in the function should be empty or have a value. */ -/* @@? 43:12 Error SyntaxError: Expected '(', got 'identification literal'. */ -/* @@? 44:9 Error SyntaxError: Expected ')', got 'case'. */ -/* @@? 44:9 Error SyntaxError: Expected '{', got 'case'. */ -/* @@? 46:15 Error SyntaxError: Unexpected token ':'. */ -/* @@? 46:17 Error SyntaxError: Unexpected token 'return'. */ -/* @@? 48:9 Error SyntaxError: Multiple default clauses. */ + +/* @@? 16:10 Error Semantic error ESE0364: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ +/* @@? 20:10 Error Semantic error ESE0364: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ +/* @@? 20:27 Error Semantic error ESE0177: struct B is not extensible. */ +/* @@? 30:17 Error Syntax error ESY0214: Label already declared. */ +/* @@? 40:1 Error Syntax error ESY0163: return keyword should be used in function body. */ +/* @@? 40:8 Error Semantic error ESE0092: All return statements in the function should be empty or have a value. */ +/* @@? 43:12 Error Syntax error ESY0230: Expected '(', got 'identification literal'. */ +/* @@? 44:9 Error Syntax error ESY0230: Expected ')', got 'case'. */ +/* @@? 44:9 Error Syntax error ESY0230: Expected '{', got 'case'. */ +/* @@? 46:15 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 46:17 Error Syntax error ESY0227: Unexpected token 'return'. */ +/* @@? 48:9 Error Syntax error ESY0171: Multiple default clauses. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/InvalidStatements3.ets b/ets2panda/test/ast/parser/ets/InvalidStatements3.ets index be3ba4c48a..9f139e2aed 100644 --- a/ets2panda/test/ast/parser/ets/InvalidStatements3.ets +++ b/ets2panda/test/ast/parser/ets/InvalidStatements3.ets @@ -41,22 +41,23 @@ function foo() { for (let i = 1 in [0, 1, 2]) {} -/* @@? 19:1 Error SyntaxError: Expected '{', got '}'. */ -/* @@? 22:5 Error SyntaxError: Expected '{', got 'let'. */ -/* @@? 23:11 Error SyntaxError: Expected '{', got '('. */ -/* @@? 23:11 Error TypeError: Unresolved reference x */ -/* @@? 27:7 Error SyntaxError: Expected '(', got '{'. */ -/* @@? 27:7 Error TypeError: need to specify target type for class composite */ -/* @@? 29:1 Error SyntaxError: Expected ')', got 'while'. */ -/* @@? 29:7 Error SyntaxError: Expected '(', got 'identification literal'. */ -/* @@? 29:13 Error SyntaxError: Expected ')', got '{'. */ -/* @@? 31:9 Error SyntaxError: Unexpected token 'let'. */ -/* @@? 31:13 Error SyntaxError: Unexpected token 'x'. */ -/* @@? 34:5 Error SyntaxError: Illegal 'use strict' directive in function with non-simple parameter list. */ -/* @@? 38:5 Error SyntaxError: Annotation declaration can not have access modifier. */ -/* @@? 38:5 Error SyntaxError: Unexpected token 'private'. */ -/* @@? 38:13 Error SyntaxError: Unexpected token '@'. */ -/* @@? 38:14 Error TypeError: Cannot find type 'annotate'. */ -/* @@? 42:16 Error SyntaxError: 'in' operator is not supported. Use 'instanceof' operator to check whether an object is the instance of a class that contains the necessary class member. */ -/* @@? 42:28 Error SyntaxError: Expected ';', got ')'. */ -/* @@? 42:28 Error SyntaxError: Invalid left-hand side in 'For[In/Of]Statement'. */ + +/* @@? 19:1 Error Syntax error ESY0230: Expected '{', got '}'. */ +/* @@? 22:5 Error Syntax error ESY0230: Expected '{', got 'let'. */ +/* @@? 23:11 Error Syntax error ESY0230: Expected '{', got '('. */ +/* @@? 23:11 Error Semantic error ESE0143: Unresolved reference x */ +/* @@? 27:7 Error Syntax error ESY0230: Expected '(', got '{'. */ +/* @@? 27:7 Error Semantic error ESE0062: need to specify target type for class composite */ +/* @@? 29:1 Error Syntax error ESY0230: Expected ')', got 'while'. */ +/* @@? 29:7 Error Syntax error ESY0230: Expected '(', got 'identification literal'. */ +/* @@? 29:13 Error Syntax error ESY0230: Expected ')', got '{'. */ +/* @@? 31:9 Error Syntax error ESY0227: Unexpected token 'let'. */ +/* @@? 31:13 Error Syntax error ESY0227: Unexpected token 'x'. */ +/* @@? 34:5 Error Syntax error ESY0199: Illegal 'use strict' directive in function with non-simple parameter list. */ +/* @@? 38:5 Error Syntax error ESY0210: Annotation declaration can not have access modifier. */ +/* @@? 38:5 Error Syntax error ESY0227: Unexpected token 'private'. */ +/* @@? 38:13 Error Syntax error ESY0227: Unexpected token '@'. */ +/* @@? 38:14 Error Semantic error ESE0371: Cannot find type 'annotate'. */ +/* @@? 42:16 Error Syntax error ESY105822: 'in' operator is not supported. Use 'instanceof' operator to check whether an object is the instance of a class that contains the necessary class member. */ +/* @@? 42:28 Error Syntax error ESY0230: Expected ';', got ')'. */ +/* @@? 42:28 Error Syntax error ESY0167: Invalid left-hand side in 'For[In/Of]Statement'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/InvalidTyped.ets b/ets2panda/test/ast/parser/ets/InvalidTyped.ets index c194bd8831..36c29d58e4 100644 --- a/ets2panda/test/ast/parser/ets/InvalidTyped.ets +++ b/ets2panda/test/ast/parser/ets/InvalidTyped.ets @@ -30,26 +30,27 @@ interface I { // This should be the last test to show the absent of the '}'. -/* @@? 16:21 Error SyntaxError: Unexpected token, expected ','. */ -/* @@? 16:21 Error SyntaxError: Identifier expected. */ -/* @@? 16:21 Error TypeError: Interface expected here. */ -/* @@? 16:23 Error SyntaxError: Identifier expected. */ -/* @@? 16:23 Error TypeError: Interface expected here. */ -/* @@? 18:1 Error TypeError: Merging declarations is not supported, please keep all definitions of classes, interfaces and enums compact in the codebase! */ -/* @@? 18:1 Error TypeError: Variable 'C' has already been declared. */ -/* @@? 18:23 Error SyntaxError: Unexpected token, expected ','. */ -/* @@? 18:25 Error SyntaxError: Identifier expected. */ -/* @@? 20:1 Error TypeError: Variable 'C' has already been declared. */ -/* @@? 20:1 Error TypeError: Merging declarations is not supported, please keep all definitions of classes, interfaces and enums compact in the codebase! */ -/* @@? 20:21 Error SyntaxError: Identifier expected. */ -/* @@? 22:20 Error SyntaxError: Implements clause can not be empty. */ -/* @@? 24:7 Error TypeError: Variable 'A' has already been declared. */ -/* @@? 24:7 Error TypeError: Merging declarations is not supported, please keep all definitions of classes, interfaces and enums compact in the codebase! */ -/* @@? 24:21 Error SyntaxError: Expected '{', got ','. */ -/* @@? 24:21 Error SyntaxError: Unexpected token, expected ','. */ -/* @@? 24:23 Error SyntaxError: Unexpected token '{'. */ -/* @@? 26:13 Error SyntaxError: Interface declaration cannot have 'implements' clause. */ -/* @@? 28:1 Error TypeError: Variable 'I' has already been declared. */ -/* @@? 28:1 Error TypeError: Merging declarations is not supported, please keep all definitions of classes, interfaces and enums compact in the codebase! */ -/* @@? 29:5 Error SyntaxError: 'override' modifier cannot appear in interfaces. */ -/* @@? 56:1 Error SyntaxError: Unexpected token, expected '}'. */ + +/* @@? 16:21 Error Syntax error ESY0228: Unexpected token, expected ','. */ +/* @@? 16:21 Error Syntax error ESY0122: Identifier expected. */ +/* @@? 16:21 Error Semantic error ESE0179: Interface expected here. */ +/* @@? 16:23 Error Syntax error ESY0122: Identifier expected. */ +/* @@? 16:23 Error Semantic error ESE0179: Interface expected here. */ +/* @@? 18:1 Error Semantic error ESE0370: Merging declarations is not supported, please keep all definitions of classes, interfaces and enums compact in the codebase! */ +/* @@? 18:1 Error Semantic error ESE0351: Variable 'C' has already been declared. */ +/* @@? 18:23 Error Syntax error ESY0228: Unexpected token, expected ','. */ +/* @@? 18:25 Error Syntax error ESY0122: Identifier expected. */ +/* @@? 20:1 Error Semantic error ESE0351: Variable 'C' has already been declared. */ +/* @@? 20:1 Error Semantic error ESE0370: Merging declarations is not supported, please keep all definitions of classes, interfaces and enums compact in the codebase! */ +/* @@? 20:21 Error Syntax error ESY0122: Identifier expected. */ +/* @@? 22:20 Error Syntax error ESY0185: Implements clause can not be empty. */ +/* @@? 24:7 Error Semantic error ESE0351: Variable 'A' has already been declared. */ +/* @@? 24:7 Error Semantic error ESE0370: Merging declarations is not supported, please keep all definitions of classes, interfaces and enums compact in the codebase! */ +/* @@? 24:21 Error Syntax error ESY0230: Expected '{', got ','. */ +/* @@? 24:21 Error Syntax error ESY0228: Unexpected token, expected ','. */ +/* @@? 24:23 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 26:13 Error Syntax error ESY0177: Interface declaration cannot have 'implements' clause. */ +/* @@? 28:1 Error Semantic error ESE0351: Variable 'I' has already been declared. */ +/* @@? 28:1 Error Semantic error ESE0370: Merging declarations is not supported, please keep all definitions of classes, interfaces and enums compact in the codebase! */ +/* @@? 29:5 Error Syntax error ESY0189: 'override' modifier cannot appear in interfaces. */ +/* @@? 56:76 Error Syntax error ESY0228: Unexpected token, expected '}'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/Multiline_string_escape_char.ets b/ets2panda/test/ast/parser/ets/Multiline_string_escape_char.ets index 335d3e99b4..4dda4752ef 100644 --- a/ets2panda/test/ast/parser/ets/Multiline_string_escape_char.ets +++ b/ets2panda/test/ast/parser/ets/Multiline_string_escape_char.ets @@ -18,6 +18,7 @@ function main(){ Test escape characters` | "X"; } -/* @@? 17:5 Error SyntaxError: Illegal start of Type Alias expression. */ -/* @@? 17:15 Error SyntaxError: Invalid character escape sequence. */ -/* @@? 17:15 Error SyntaxError: Invalid Unicode escape. */ + +/* @@? 17:5 Error Syntax error ESY0040: Illegal start of Type Alias expression. */ +/* @@? 17:15 Error Syntax error ESY0258: Invalid character escape sequence. */ +/* @@? 17:15 Error Syntax error ESY0091: Invalid Unicode escape. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/MultipleClassErrors.ets b/ets2panda/test/ast/parser/ets/MultipleClassErrors.ets index 2eca08c7dc..72fae9d56d 100644 --- a/ets2panda/test/ast/parser/ets/MultipleClassErrors.ets +++ b/ets2panda/test/ast/parser/ets/MultipleClassErrors.ets @@ -29,12 +29,13 @@ class /* @@ label3 */77 {} class /* @@ label4 */{/* @@ label5 */} -/* @@? 17:19 Error SyntaxError: Unexpected token 'function'. */ -/* @@? 21:20 Error SyntaxError: Unexpected token 'let'. */ -/* @@? 22:20 Error SyntaxError: Unexpected token 'let'. */ -/* @@? 24:17 Error TypeError: Type '"abc"' cannot be assigned to type 'Double' */ -/* @@? 28:22 Error SyntaxError: Number, string or computed value property name '77' is not allowed, use classes to access data by property names that are identifiers */ -/* @@? 28:22 Error SyntaxError: Identifier expected, got 'number literal'. */ -/* @@? 30:22 Error SyntaxError: Identifier expected, got '{'. */ -/* @@? 30:38 Error SyntaxError: Expected '{', got '}'. */ -/* @@? 41:1 Error SyntaxError: Expected '}', got 'end of stream'. */ + +/* @@@ label Error Syntax error ESY0227: Unexpected token 'function'. */ +/* @@@ label1 Error Syntax error ESY0227: Unexpected token 'let'. */ +/* @@@ label2 Error Syntax error ESY0227: Unexpected token 'let'. */ +/* @@? 24:17 Error Semantic error ESE0318: Type '"abc"' cannot be assigned to type 'Double' */ +/* @@@ label3 Error Syntax error ESY0315: Number, string or computed value property name '77' is not allowed, use classes to access data by property names that are identifiers */ +/* @@@ label3 Error Syntax error ESY0224: Identifier expected, got 'number literal'. */ +/* @@@ label4 Error Syntax error ESY0224: Identifier expected, got '{'. */ +/* @@@ label5 Error Syntax error ESY0230: Expected '{', got '}'. */ +/* @@? 41:79 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/MultipleFunctionErrors.ets b/ets2panda/test/ast/parser/ets/MultipleFunctionErrors.ets index 5db33dcca0..cf94421e72 100644 --- a/ets2panda/test/ast/parser/ets/MultipleFunctionErrors.ets +++ b/ets2panda/test/ast/parser/ets/MultipleFunctionErrors.ets @@ -20,8 +20,9 @@ function /* @@ label1 */(): /* @@ label2 */{ /* @@ label3 */return /* @@ label4 */77; } -/* @@@ label Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@@ label1 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@@ label2 Error SyntaxError: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ -/* @@@ label3 Error SyntaxError: Unexpected token 'return'. */ -/* @@@ label4 Error SyntaxError: Unexpected token '77'. */ + +/* @@@ label Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@@ label1 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@@ label2 Error Syntax error ESY177354: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ +/* @@@ label3 Error Syntax error ESY0227: Unexpected token 'return'. */ +/* @@@ label4 Error Syntax error ESY0227: Unexpected token '77'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/MultipleParserErrors.ets b/ets2panda/test/ast/parser/ets/MultipleParserErrors.ets index 6e6cf94a8e..99d9a6cae3 100644 --- a/ets2panda/test/ast/parser/ets/MultipleParserErrors.ets +++ b/ets2panda/test/ast/parser/ets/MultipleParserErrors.ets @@ -166,127 +166,128 @@ function main(): void { f(); } -/* @@? 18:14 Error SyntaxError: Optional variable is not allowed in for of statements. */ -/* @@? 28:29 Error TypeError: Native, Abstract and Declare methods cannot have body. */ -/* @@? 34:14 Error SyntaxError: The modifier for a constructor should be limited to access modifiers (private, internal, protected, public), and 'native' modifiers. */ -/* @@? 37:33 Error SyntaxError: Unexpected token 'rethrows'. */ -/* @@? 37:33 Error TypeError: Unresolved reference rethrows */ -/* @@? 39:14 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ -/* @@? 39:14 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 39:14 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 39:24 Error SyntaxError: Unexpected token 'int'. */ -/* @@? 39:27 Error SyntaxError: Unexpected token ')'. */ -/* @@? 39:29 Error SyntaxError: Unexpected token '{'. */ -/* @@? 39:31 Error SyntaxError: return keyword should be used in function body. */ -/* @@? 39:38 Error TypeError: All return statements in the function should be empty or have a value. */ -/* @@? 41:1 Error TypeError: Unresolved reference type */ -/* @@? 41:6 Error SyntaxError: Unexpected token '123'. */ -/* @@? 41:6 Error TypeError: Invalid left-hand side of assignment expression */ -/* @@? 41:10 Error SyntaxError: Invalid left-hand side in assignment expression. */ -/* @@? 41:12 Error SyntaxError: Unexpected token 'int'. */ -/* @@? 43:6 Error SyntaxError: Unexpected token 'null'. */ -/* @@? 43:6 Error TypeError: Invalid left-hand side of assignment expression */ -/* @@? 43:11 Error SyntaxError: Invalid left-hand side in assignment expression. */ -/* @@? 43:13 Error SyntaxError: Unexpected token 'byte'. */ -/* @@? 45:6 Error SyntaxError: Unexpected token 'this'. */ -/* @@? 45:6 Error TypeError: 'this' cannot be referenced from a static context */ -/* @@? 45:6 Error TypeError: Invalid left-hand side of assignment expression */ -/* @@? 45:11 Error SyntaxError: Invalid left-hand side in assignment expression. */ -/* @@? 47:8 Error SyntaxError: Variable must be initialized or it's type must be declared. */ -/* @@? 47:8 Error TypeError: Missing initializer in const declaration */ -/* @@? 49:13 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ -/* @@? 51:25 Error SyntaxError: Rest parameter must be the last formal parameter. */ -/* @@? 51:27 Error SyntaxError: Unexpected token '...'. */ -/* @@? 51:30 Error SyntaxError: Unexpected token 'p'. */ -/* @@? 51:33 Error SyntaxError: Unexpected token 'int'. */ -/* @@? 51:33 Error SyntaxError: Label must be followed by a loop statement. */ -/* @@? 51:38 Error SyntaxError: Unexpected token ')'. */ -/* @@? 51:39 Error SyntaxError: Unexpected token ':'. */ -/* @@? 51:41 Error SyntaxError: Unexpected token 'int'. */ -/* @@? 51:45 Error SyntaxError: Unexpected token '{'. */ -/* @@? 52:5 Error SyntaxError: return keyword should be used in function body. */ -/* @@? 52:12 Error TypeError: All return statements in the function should be empty or have a value. */ -/* @@? 52:12 Error TypeError: Unresolved reference q */ -/* @@? 52:23 Error TypeError: Unresolved reference p */ -/* @@? 55:14 Error SyntaxError: Rest parameter should be either array or tuple type. */ -/* @@? 59:14 Error SyntaxError: Rest parameter should be either array or tuple type. */ -/* @@? 63:22 Error SyntaxError: Rest parameter should be either array or tuple type. */ -/* @@? 63:26 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ -/* @@? 67:7 Error TypeError: Merging declarations is not supported, please keep all definitions of classes, interfaces and enums compact in the codebase! */ -/* @@? 67:7 Error TypeError: Variable 'A' has already been declared. */ -/* @@? 68:3 Error SyntaxError: Unexpected token. A constructor, method, accessor, or property was expected. */ -/* @@? 73:7 Error TypeError: Merging declarations is not supported, please keep all definitions of classes, interfaces and enums compact in the codebase! */ -/* @@? 73:7 Error TypeError: Variable 'A' has already been declared. */ -/* @@? 74:11 Error SyntaxError: Unexpected token. A constructor, method, accessor, or property was expected. */ -/* @@? 77:20 Error TypeError: Interface expected here. */ -/* @@? 77:22 Error TypeError: 'I' type does not exist. */ -/* @@? 78:22 Error TypeError: Method fee(): Int in B not overriding any method */ -/* @@? 83:7 Error TypeError: Merging declarations is not supported, please keep all definitions of classes, interfaces and enums compact in the codebase! */ -/* @@? 83:7 Error TypeError: Variable 'A' has already been declared. */ -/* @@? 84:3 Error SyntaxError: Unexpected token. A constructor, method, accessor, or property was expected. */ -/* @@? 92:7 Error TypeError: Variable 'A' has already been declared. */ -/* @@? 92:7 Error TypeError: Merging declarations is not supported, please keep all definitions of classes, interfaces and enums compact in the codebase! */ -/* @@? 93:3 Error SyntaxError: Unexpected token. A constructor, method, accessor, or property was expected. */ -/* @@? 103:14 Error SyntaxError: Rest parameter should be either array or tuple type. */ -/* @@? 104:21 Error SyntaxError: Rest parameter should be either array or tuple type. */ -/* @@? 115:26 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 115:26 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ -/* @@? 115:26 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 115:26 Error SyntaxError: Unexpected token 'case'. */ -/* @@? 115:30 Error SyntaxError: Unexpected token ':'. */ -/* @@? 115:32 Error SyntaxError: Unexpected token 'U'. */ -/* @@? 115:32 Error TypeError: Unresolved reference U */ -/* @@? 115:33 Error SyntaxError: Unexpected token ')'. */ -/* @@? 115:34 Error SyntaxError: Unexpected token ':'. */ -/* @@? 115:36 Error SyntaxError: Unexpected token 'T'. */ -/* @@? 115:36 Error TypeError: Unresolved reference T */ -/* @@? 115:38 Error SyntaxError: Unexpected token '{'. */ -/* @@? 116:5 Error SyntaxError: return keyword should be used in function body. */ -/* @@? 116:12 Error TypeError: All return statements in the function should be empty or have a value. */ -/* @@? 119:1 Error TypeError: Function foo with this assembly signature already declared. */ -/* @@? 119:26 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 119:26 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ -/* @@? 119:26 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 119:26 Error SyntaxError: Unexpected token 'case'. */ -/* @@? 119:30 Error SyntaxError: Unexpected token ':'. */ -/* @@? 119:32 Error SyntaxError: Unexpected token 'U'. */ -/* @@? 119:33 Error SyntaxError: Unexpected token ')'. */ -/* @@? 119:34 Error SyntaxError: Unexpected token ':'. */ -/* @@? 119:36 Error SyntaxError: Unexpected token 'T'. */ -/* @@? 119:38 Error SyntaxError: Unexpected token '{'. */ -/* @@? 120:5 Error SyntaxError: return keyword should be used in function body. */ -/* @@? 120:12 Error TypeError: All return statements in the function should be empty or have a value. */ -/* @@? 123:5 Error SyntaxError: Identifier expected, got ','. */ -/* @@? 123:6 Error SyntaxError: Variable must be initialized or it's type must be declared. */ -/* @@? 123:6 Error SyntaxError: Unexpected token 'abc'. */ -/* @@? 123:6 Error TypeError: Unresolved reference abc */ -/* @@? 125:1 Error TypeError: Method declaration `foo` must all ambient or non-ambient */ -/* @@? 127:1 Error SyntaxError: The modifier async cannot be used in an ambient context. */ -/* @@? 132:14 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 137:16 Error SyntaxError: Catch clause variable cannot have an initializer. */ -/* @@? 137:16 Error SyntaxError: Expected ')', got '='. */ -/* @@? 137:16 Error SyntaxError: Expected '{', got '='. */ -/* @@? 137:16 Error SyntaxError: Unexpected token '='. */ -/* @@? 137:18 Error SyntaxError: Unexpected token '0'. */ -/* @@? 137:19 Error SyntaxError: Unexpected token ')'. */ -/* @@? 137:21 Error SyntaxError: Unexpected token '{'. */ -/* @@? 141:24 Error TypeError: This expression is not callable. */ -/* @@? 145:18 Error TypeError: A is abstract therefore cannot be instantiated. */ -/* @@? 146:28 Error TypeError: Property 'getInner' does not exist on type 'A' */ -/* @@? 148:25 Error TypeError: A is abstract therefore cannot be instantiated. */ -/* @@? 149:24 Error TypeError: A is abstract therefore cannot be instantiated. */ -/* @@? 151:20 Error TypeError: Cannot find type 'D0'. */ -/* @@? 151:29 Error TypeError: Cannot find type 'D0'. */ -/* @@? 157:16 Error TypeError: A is abstract therefore cannot be instantiated. */ -/* @@? 158:26 Error TypeError: Property 'getInner' does not exist on type 'A' */ -/* @@? 161:9 Error SyntaxError: Identifier expected, got 'let'. */ -/* @@? 161:9 Error SyntaxError: Hard keyword 'let' cannot be used as identifier */ -/* @@? 162:9 Error SyntaxError: Identifier expected, got 'const'. */ -/* @@? 162:9 Error SyntaxError: Hard keyword 'const' cannot be used as identifier */ -/* @@? 163:9 Error SyntaxError: Identifier expected, got 'new'. */ -/* @@? 163:9 Error SyntaxError: Hard keyword 'new' cannot be used as identifier */ -/* @@? 164:5 Error TypeError: This expression is not callable. */ -/* @@? 165:5 Error TypeError: This expression is not callable. */ -/* @@? 166:5 Error TypeError: No matching call signature */ -/* @@? 166:5 Error TypeError: Expected 1 arguments, got 0. */ -/* @@? 293:1 Error SyntaxError: Expected '}', got 'end of stream'. */ + +/* @@? 18:14 Error Syntax error ESY0096: Optional variable is not allowed in for of statements. */ +/* @@? 28:29 Error Semantic error ESE0083: Native, Abstract and Declare methods cannot have body. */ +/* @@? 34:14 Error Syntax error ESY0201: The modifier for a constructor should be limited to access modifiers (private, internal, protected, public), and 'native' modifiers. */ +/* @@? 37:33 Error Syntax error ESY0227: Unexpected token 'rethrows'. */ +/* @@? 37:33 Error Semantic error ESE0143: Unresolved reference rethrows */ +/* @@? 39:14 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ +/* @@? 39:14 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 39:14 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 39:24 Error Syntax error ESY0227: Unexpected token 'int'. */ +/* @@? 39:27 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 39:29 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 39:31 Error Syntax error ESY0163: return keyword should be used in function body. */ +/* @@? 39:38 Error Semantic error ESE0092: All return statements in the function should be empty or have a value. */ +/* @@? 41:1 Error Semantic error ESE0143: Unresolved reference type */ +/* @@? 41:6 Error Syntax error ESY0227: Unexpected token '123'. */ +/* @@? 41:6 Error Semantic error ESE0025: Invalid left-hand side of assignment expression */ +/* @@? 41:10 Error Syntax error ESY0072: Invalid left-hand side in assignment expression. */ +/* @@? 41:12 Error Syntax error ESY0227: Unexpected token 'int'. */ +/* @@? 43:6 Error Syntax error ESY0227: Unexpected token 'null'. */ +/* @@? 43:6 Error Semantic error ESE0025: Invalid left-hand side of assignment expression */ +/* @@? 43:11 Error Syntax error ESY0072: Invalid left-hand side in assignment expression. */ +/* @@? 43:13 Error Syntax error ESY0227: Unexpected token 'byte'. */ +/* @@? 45:6 Error Syntax error ESY0227: Unexpected token 'this'. */ +/* @@? 45:6 Error Semantic error ESE0202: 'this' cannot be referenced from a static context */ +/* @@? 45:6 Error Semantic error ESE0025: Invalid left-hand side of assignment expression */ +/* @@? 45:11 Error Syntax error ESY0072: Invalid left-hand side in assignment expression. */ +/* @@? 47:8 Error Syntax error ESY0105: Variable must be initialized or it's type must be declared. */ +/* @@? 47:8 Error Semantic error ESE0363: Missing initializer in const declaration */ +/* @@? 49:13 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ +/* @@? 51:25 Error Syntax error ESY0067: Rest parameter must be the last formal parameter. */ +/* @@? 51:27 Error Syntax error ESY0227: Unexpected token '...'. */ +/* @@? 51:30 Error Syntax error ESY0227: Unexpected token 'p'. */ +/* @@? 51:33 Error Syntax error ESY0227: Unexpected token 'int'. */ +/* @@? 51:33 Error Syntax error ESY0038: Label must be followed by a loop statement. */ +/* @@? 51:38 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 51:39 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 51:41 Error Syntax error ESY0227: Unexpected token 'int'. */ +/* @@? 51:45 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 52:5 Error Syntax error ESY0163: return keyword should be used in function body. */ +/* @@? 52:12 Error Semantic error ESE0092: All return statements in the function should be empty or have a value. */ +/* @@? 52:12 Error Semantic error ESE0143: Unresolved reference q */ +/* @@? 52:23 Error Semantic error ESE0143: Unresolved reference p */ +/* @@? 55:14 Error Syntax error ESY0193: Rest parameter should be either array or tuple type. */ +/* @@? 59:14 Error Syntax error ESY0193: Rest parameter should be either array or tuple type. */ +/* @@? 63:22 Error Syntax error ESY0193: Rest parameter should be either array or tuple type. */ +/* @@? 63:26 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ +/* @@? 67:7 Error Semantic error ESE0370: Merging declarations is not supported, please keep all definitions of classes, interfaces and enums compact in the codebase! */ +/* @@? 67:7 Error Semantic error ESE0351: Variable 'A' has already been declared. */ +/* @@? 68:3 Error Syntax error ESY0233: Unexpected token. A constructor, method, accessor, or property was expected. */ +/* @@? 73:7 Error Semantic error ESE0370: Merging declarations is not supported, please keep all definitions of classes, interfaces and enums compact in the codebase! */ +/* @@? 73:7 Error Semantic error ESE0351: Variable 'A' has already been declared. */ +/* @@? 74:11 Error Syntax error ESY0233: Unexpected token. A constructor, method, accessor, or property was expected. */ +/* @@? 77:20 Error Semantic error ESE0179: Interface expected here. */ +/* @@? 77:22 Error Semantic error ESE0070: 'I' type does not exist. */ +/* @@? 78:22 Error Semantic error ESE0136: Method fee(): Int in B not overriding any method */ +/* @@? 83:7 Error Semantic error ESE0370: Merging declarations is not supported, please keep all definitions of classes, interfaces and enums compact in the codebase! */ +/* @@? 83:7 Error Semantic error ESE0351: Variable 'A' has already been declared. */ +/* @@? 84:3 Error Syntax error ESY0233: Unexpected token. A constructor, method, accessor, or property was expected. */ +/* @@? 92:7 Error Semantic error ESE0351: Variable 'A' has already been declared. */ +/* @@? 92:7 Error Semantic error ESE0370: Merging declarations is not supported, please keep all definitions of classes, interfaces and enums compact in the codebase! */ +/* @@? 93:3 Error Syntax error ESY0233: Unexpected token. A constructor, method, accessor, or property was expected. */ +/* @@? 103:14 Error Syntax error ESY0193: Rest parameter should be either array or tuple type. */ +/* @@? 104:21 Error Syntax error ESY0193: Rest parameter should be either array or tuple type. */ +/* @@? 115:26 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 115:26 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ +/* @@? 115:26 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 115:26 Error Syntax error ESY0227: Unexpected token 'case'. */ +/* @@? 115:30 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 115:32 Error Syntax error ESY0227: Unexpected token 'U'. */ +/* @@? 115:32 Error Semantic error ESE0143: Unresolved reference U */ +/* @@? 115:33 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 115:34 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 115:36 Error Syntax error ESY0227: Unexpected token 'T'. */ +/* @@? 115:36 Error Semantic error ESE0143: Unresolved reference T */ +/* @@? 115:38 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 116:5 Error Syntax error ESY0163: return keyword should be used in function body. */ +/* @@? 116:12 Error Semantic error ESE0092: All return statements in the function should be empty or have a value. */ +/* @@? 119:1 Error Semantic error ESE0131: Function foo with this assembly signature already declared. */ +/* @@? 119:26 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 119:26 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ +/* @@? 119:26 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 119:26 Error Syntax error ESY0227: Unexpected token 'case'. */ +/* @@? 119:30 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 119:32 Error Syntax error ESY0227: Unexpected token 'U'. */ +/* @@? 119:33 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 119:34 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 119:36 Error Syntax error ESY0227: Unexpected token 'T'. */ +/* @@? 119:38 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 120:5 Error Syntax error ESY0163: return keyword should be used in function body. */ +/* @@? 120:12 Error Semantic error ESE0092: All return statements in the function should be empty or have a value. */ +/* @@? 123:5 Error Syntax error ESY0224: Identifier expected, got ','. */ +/* @@? 123:6 Error Syntax error ESY0105: Variable must be initialized or it's type must be declared. */ +/* @@? 123:6 Error Syntax error ESY0227: Unexpected token 'abc'. */ +/* @@? 123:6 Error Semantic error ESE0143: Unresolved reference abc */ +/* @@? 125:1 Error Semantic error ESE0399: Method declaration `foo` must all ambient or non-ambient */ +/* @@? 127:1 Error Syntax error ESY0106: The modifier async cannot be used in an ambient context. */ +/* @@? 132:14 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 137:16 Error Syntax error ESY0101: Catch clause variable cannot have an initializer. */ +/* @@? 137:16 Error Syntax error ESY0230: Expected ')', got '='. */ +/* @@? 137:16 Error Syntax error ESY0230: Expected '{', got '='. */ +/* @@? 137:16 Error Syntax error ESY0227: Unexpected token '='. */ +/* @@? 137:18 Error Syntax error ESY0227: Unexpected token '0'. */ +/* @@? 137:19 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 137:21 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 141:24 Error Semantic error ESE0289: This expression is not callable. */ +/* @@? 145:18 Error Semantic error ESE0052: A is abstract therefore cannot be instantiated. */ +/* @@? 146:28 Error Semantic error ESE0087: Property 'getInner' does not exist on type 'A' */ +/* @@? 148:25 Error Semantic error ESE0052: A is abstract therefore cannot be instantiated. */ +/* @@? 149:24 Error Semantic error ESE0052: A is abstract therefore cannot be instantiated. */ +/* @@? 151:20 Error Semantic error ESE0371: Cannot find type 'D0'. */ +/* @@? 151:29 Error Semantic error ESE0371: Cannot find type 'D0'. */ +/* @@? 157:16 Error Semantic error ESE0052: A is abstract therefore cannot be instantiated. */ +/* @@? 158:26 Error Semantic error ESE0087: Property 'getInner' does not exist on type 'A' */ +/* @@? 161:9 Error Syntax error ESY0224: Identifier expected, got 'let'. */ +/* @@? 161:9 Error Syntax error ESY0316: Hard keyword 'let' cannot be used as identifier */ +/* @@? 162:9 Error Syntax error ESY0224: Identifier expected, got 'const'. */ +/* @@? 162:9 Error Syntax error ESY0316: Hard keyword 'const' cannot be used as identifier */ +/* @@? 163:9 Error Syntax error ESY0224: Identifier expected, got 'new'. */ +/* @@? 163:9 Error Syntax error ESY0316: Hard keyword 'new' cannot be used as identifier */ +/* @@? 164:5 Error Semantic error ESE0289: This expression is not callable. */ +/* @@? 165:5 Error Semantic error ESE0289: This expression is not callable. */ +/* @@? 166:5 Error Semantic error ESE0128: No matching call signature */ +/* @@? 166:5 Error Semantic error ESE0124: Expected 1 arguments, got 0. */ +/* @@? 293:80 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/SmartCast_1.ets b/ets2panda/test/ast/parser/ets/SmartCast_1.ets index 003aeff8da..9be9517aef 100644 --- a/ets2panda/test/ast/parser/ets/SmartCast_1.ets +++ b/ets2panda/test/ast/parser/ets/SmartCast_1.ets @@ -36,4 +36,4 @@ function main() { foo(undefined); } -/* @@@ label Error TypeError: Bad operand type, the types of the operands must be numeric, same enumeration, or boolean type. */ + diff --git a/ets2panda/test/ast/parser/ets/SmartCast_2.ets b/ets2panda/test/ast/parser/ets/SmartCast_2.ets index 771614964c..2cf821d4fd 100644 --- a/ets2panda/test/ast/parser/ets/SmartCast_2.ets +++ b/ets2panda/test/ast/parser/ets/SmartCast_2.ets @@ -36,4 +36,4 @@ function main() { foo(undefined); } -/* @@@ label Error TypeError: Bad operand type, the types of the operands must be numeric, same enumeration, or boolean type. */ + diff --git a/ets2panda/test/ast/parser/ets/SmartCast_3.ets b/ets2panda/test/ast/parser/ets/SmartCast_3.ets index d65b202e6a..6ab869f977 100644 --- a/ets2panda/test/ast/parser/ets/SmartCast_3.ets +++ b/ets2panda/test/ast/parser/ets/SmartCast_3.ets @@ -23,4 +23,5 @@ function main() { /* @@ label */resolve("abc"); // no smart cast! } -/* @@@ label Error TypeError: This expression is not callable. */ + +/* @@@ label Error Semantic error ESE0289: This expression is not callable. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/SmartCast_4.ets b/ets2panda/test/ast/parser/ets/SmartCast_4.ets index 68cd1d342b..41ce25fa45 100644 --- a/ets2panda/test/ast/parser/ets/SmartCast_4.ets +++ b/ets2panda/test/ast/parser/ets/SmartCast_4.ets @@ -25,4 +25,5 @@ function main() { } } -/* @@@ label Error TypeError: Type 'Double|String|undefined' cannot be assigned to type 'String' */ + +/* @@@ label Error Semantic error ESE0318: Type 'Double|String|undefined' cannot be assigned to type 'String' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/StringFasta.ets b/ets2panda/test/ast/parser/ets/StringFasta.ets index 47e9de0529..9d4e13d4ab 100644 --- a/ets2panda/test/ast/parser/ets/StringFasta.ets +++ b/ets2panda/test/ast/parser/ets/StringFasta.ets @@ -122,57 +122,58 @@ function main(): void { a.run(); } -/* @@? 18:18 Error TypeError: Cannot find type 'HashMap'. */ -/* @@? 18:46 Error TypeError: Cannot find type 'HashMap'. */ -/* @@? 19:22 Error TypeError: Cannot find type 'HashMap'. */ -/* @@? 19:50 Error TypeError: Cannot find type 'HashMap'. */ -/* @@? 21:9 Error TypeError: Unresolved reference IUB */ -/* @@? 22:9 Error TypeError: Unresolved reference IUB */ -/* @@? 23:9 Error TypeError: Unresolved reference IUB */ -/* @@? 24:9 Error TypeError: Unresolved reference IUB */ -/* @@? 25:9 Error TypeError: Unresolved reference IUB */ -/* @@? 26:9 Error TypeError: Unresolved reference IUB */ -/* @@? 27:9 Error TypeError: Unresolved reference IUB */ -/* @@? 28:9 Error TypeError: Unresolved reference IUB */ -/* @@? 29:9 Error TypeError: Unresolved reference IUB */ -/* @@? 30:9 Error TypeError: Unresolved reference IUB */ -/* @@? 31:9 Error TypeError: Unresolved reference IUB */ -/* @@? 32:9 Error TypeError: Unresolved reference IUB */ -/* @@? 33:9 Error TypeError: Unresolved reference IUB */ -/* @@? 34:9 Error TypeError: Unresolved reference IUB */ -/* @@? 35:9 Error TypeError: Unresolved reference IUB */ -/* @@? 36:9 Error TypeError: Unresolved reference HomoSap */ -/* @@? 37:9 Error TypeError: Unresolved reference HomoSap */ -/* @@? 38:9 Error TypeError: Unresolved reference HomoSap */ -/* @@? 39:9 Error TypeError: Unresolved reference HomoSap */ -/* @@@ label Error SyntaxError: Unexpected token. A constructor, method, accessor, or property was expected. */ -/* @@? 47:13 Error TypeError: Static property 'last' must be accessed through it's class 'Random' */ -/* @@? 47:21 Error TypeError: Static property 'last' must be accessed through it's class 'Random' */ -/* @@? 47:28 Error TypeError: Static property 'A' must be accessed through it's class 'Random' */ -/* @@? 47:32 Error TypeError: Static property 'C' must be accessed through it's class 'Random' */ -/* @@? 47:37 Error TypeError: Static property 'M' must be accessed through it's class 'Random' */ -/* @@? 48:26 Error TypeError: Static property 'last' must be accessed through it's class 'Random' */ -/* @@? 48:33 Error TypeError: Static property 'M' must be accessed through it's class 'Random' */ -/* @@? 52:35 Error TypeError: Cannot find type 'HashMap'. */ -/* @@? 53:27 Error TypeError: Type 'null' cannot be assigned to type 'Char' */ -/* @@? 54:26 Error TypeError: Cannot find type 'HashMap'. */ -/* @@? 54:57 Error TypeError: 'For-of' statement source expression is not of iterable type. */ -/* @@? 71:33 Error TypeError: Type 'Int' has no call signatures. */ -/* @@? 72:24 Error TypeError: Type 'Int' has no call signatures. */ -/* @@? 77:33 Error TypeError: Type 'Int' has no call signatures. */ -/* @@? 78:24 Error TypeError: Type 'Int' has no call signatures. */ -/* @@? 84:41 Error TypeError: Cannot find type 'HashMap'. */ -/* @@? 86:9 Error TypeError: Static property 'makeCumulative' must be accessed through it's class 'StringFasta' */ -/* @@? 94:34 Error TypeError: Static property 'Random' must be accessed through it's class 'StringFasta' */ -/* @@? 95:34 Error TypeError: Cannot find type 'HashMap'. */ -/* @@? 95:65 Error TypeError: 'For-of' statement source expression is not of iterable type. */ -/* @@? 103:20 Error TypeError: Type 'Int' has no call signatures. */ -/* @@? 112:16 Error TypeError: Static property 'fastaRepeat' must be accessed through it's class 'StringFasta' */ -/* @@? 112:32 Error TypeError: Property 'count' must be accessed through 'this' */ -/* @@? 113:16 Error TypeError: Static property 'fastaRandom' must be accessed through it's class 'StringFasta' */ -/* @@? 113:32 Error TypeError: Property 'count' must be accessed through 'this' */ -/* @@? 113:46 Error TypeError: Unresolved reference IUB */ -/* @@? 114:16 Error TypeError: Static property 'fastaRandom' must be accessed through it's class 'StringFasta' */ -/* @@? 114:32 Error TypeError: Property 'count' must be accessed through 'this' */ -/* @@? 114:46 Error TypeError: Unresolved reference HomoSap */ -/* @@? 116:36 Error TypeError: 'expected' is a static property of 'StringFasta' */ + +/* @@? 18:18 Error Semantic error ESE0371: Cannot find type 'HashMap'. */ +/* @@? 18:46 Error Semantic error ESE0371: Cannot find type 'HashMap'. */ +/* @@? 19:22 Error Semantic error ESE0371: Cannot find type 'HashMap'. */ +/* @@? 19:50 Error Semantic error ESE0371: Cannot find type 'HashMap'. */ +/* @@? 21:9 Error Semantic error ESE0143: Unresolved reference IUB */ +/* @@? 22:9 Error Semantic error ESE0143: Unresolved reference IUB */ +/* @@? 23:9 Error Semantic error ESE0143: Unresolved reference IUB */ +/* @@? 24:9 Error Semantic error ESE0143: Unresolved reference IUB */ +/* @@? 25:9 Error Semantic error ESE0143: Unresolved reference IUB */ +/* @@? 26:9 Error Semantic error ESE0143: Unresolved reference IUB */ +/* @@? 27:9 Error Semantic error ESE0143: Unresolved reference IUB */ +/* @@? 28:9 Error Semantic error ESE0143: Unresolved reference IUB */ +/* @@? 29:9 Error Semantic error ESE0143: Unresolved reference IUB */ +/* @@? 30:9 Error Semantic error ESE0143: Unresolved reference IUB */ +/* @@? 31:9 Error Semantic error ESE0143: Unresolved reference IUB */ +/* @@? 32:9 Error Semantic error ESE0143: Unresolved reference IUB */ +/* @@? 33:9 Error Semantic error ESE0143: Unresolved reference IUB */ +/* @@? 34:9 Error Semantic error ESE0143: Unresolved reference IUB */ +/* @@? 35:9 Error Semantic error ESE0143: Unresolved reference IUB */ +/* @@? 36:9 Error Semantic error ESE0143: Unresolved reference HomoSap */ +/* @@? 37:9 Error Semantic error ESE0143: Unresolved reference HomoSap */ +/* @@? 38:9 Error Semantic error ESE0143: Unresolved reference HomoSap */ +/* @@? 39:9 Error Semantic error ESE0143: Unresolved reference HomoSap */ +/* @@@ label Error Syntax error ESY0233: Unexpected token. A constructor, method, accessor, or property was expected. */ +/* @@? 47:13 Error Semantic error ESE0173: Static property 'last' must be accessed through it's class 'Random' */ +/* @@? 47:21 Error Semantic error ESE0173: Static property 'last' must be accessed through it's class 'Random' */ +/* @@? 47:28 Error Semantic error ESE0173: Static property 'A' must be accessed through it's class 'Random' */ +/* @@? 47:32 Error Semantic error ESE0173: Static property 'C' must be accessed through it's class 'Random' */ +/* @@? 47:37 Error Semantic error ESE0173: Static property 'M' must be accessed through it's class 'Random' */ +/* @@? 48:26 Error Semantic error ESE0173: Static property 'last' must be accessed through it's class 'Random' */ +/* @@? 48:33 Error Semantic error ESE0173: Static property 'M' must be accessed through it's class 'Random' */ +/* @@? 52:35 Error Semantic error ESE0371: Cannot find type 'HashMap'. */ +/* @@? 53:27 Error Semantic error ESE0318: Type 'null' cannot be assigned to type 'Char' */ +/* @@? 54:26 Error Semantic error ESE0371: Cannot find type 'HashMap'. */ +/* @@? 54:57 Error Semantic error ESE0076: 'For-of' statement source expression is not of iterable type. */ +/* @@? 71:33 Error Semantic error ESE0002: Type 'Int' has no call signatures. */ +/* @@? 72:24 Error Semantic error ESE0002: Type 'Int' has no call signatures. */ +/* @@? 77:33 Error Semantic error ESE0002: Type 'Int' has no call signatures. */ +/* @@? 78:24 Error Semantic error ESE0002: Type 'Int' has no call signatures. */ +/* @@? 84:41 Error Semantic error ESE0371: Cannot find type 'HashMap'. */ +/* @@? 86:9 Error Semantic error ESE0173: Static property 'makeCumulative' must be accessed through it's class 'StringFasta' */ +/* @@? 94:34 Error Semantic error ESE0173: Static property 'Random' must be accessed through it's class 'StringFasta' */ +/* @@? 95:34 Error Semantic error ESE0371: Cannot find type 'HashMap'. */ +/* @@? 95:65 Error Semantic error ESE0076: 'For-of' statement source expression is not of iterable type. */ +/* @@? 103:20 Error Semantic error ESE0002: Type 'Int' has no call signatures. */ +/* @@? 112:16 Error Semantic error ESE0173: Static property 'fastaRepeat' must be accessed through it's class 'StringFasta' */ +/* @@? 112:32 Error Semantic error ESE0145: Property 'count' must be accessed through 'this' */ +/* @@? 113:16 Error Semantic error ESE0173: Static property 'fastaRandom' must be accessed through it's class 'StringFasta' */ +/* @@? 113:32 Error Semantic error ESE0145: Property 'count' must be accessed through 'this' */ +/* @@? 113:46 Error Semantic error ESE0143: Unresolved reference IUB */ +/* @@? 114:16 Error Semantic error ESE0173: Static property 'fastaRandom' must be accessed through it's class 'StringFasta' */ +/* @@? 114:32 Error Semantic error ESE0145: Property 'count' must be accessed through 'this' */ +/* @@? 114:46 Error Semantic error ESE0143: Unresolved reference HomoSap */ +/* @@? 116:36 Error Semantic error ESE0207: 'expected' is a static property of 'StringFasta' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/StructTest1.ets b/ets2panda/test/ast/parser/ets/StructTest1.ets index e6ffe7bc43..f3d6f047ca 100644 --- a/ets2panda/test/ast/parser/ets/StructTest1.ets +++ b/ets2panda/test/ast/parser/ets/StructTest1.ets @@ -20,4 +20,5 @@ struct CE { function main(): void { let a: CE = new CE; } -/* @@? 16:1 Error TypeError: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ + +/* @@? 16:1 Error Semantic error ESE0364: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/StructTest2.ets b/ets2panda/test/ast/parser/ets/StructTest2.ets index e660ecd89a..018c41dbbe 100644 --- a/ets2panda/test/ast/parser/ets/StructTest2.ets +++ b/ets2panda/test/ast/parser/ets/StructTest2.ets @@ -21,4 +21,5 @@ function main(): void { let a: CE = new CE(); } -/* @@? 16:1 Error TypeError: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ + +/* @@? 16:1 Error Semantic error ESE0364: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/StructTest3.ets b/ets2panda/test/ast/parser/ets/StructTest3.ets index 309547f41a..036fc8d472 100644 --- a/ets2panda/test/ast/parser/ets/StructTest3.ets +++ b/ets2panda/test/ast/parser/ets/StructTest3.ets @@ -16,4 +16,5 @@ struct MyStruct { } -/* @@? 16:1 Error TypeError: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ + +/* @@? 16:1 Error Semantic error ESE0364: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/TypeInferFunc.ets b/ets2panda/test/ast/parser/ets/TypeInferFunc.ets index 83cc64faeb..9c377c58c0 100644 --- a/ets2panda/test/ast/parser/ets/TypeInferFunc.ets +++ b/ets2panda/test/ast/parser/ets/TypeInferFunc.ets @@ -25,4 +25,4 @@ function main(): void { foo(bar); } -/* @@@ label Error TypeError: (...p1: double[]) => void is not compatible with type T */ + diff --git a/ets2panda/test/ast/parser/ets/UnexpectedToken.ets b/ets2panda/test/ast/parser/ets/UnexpectedToken.ets index 7e6119a026..07ac21aac3 100644 --- a/ets2panda/test/ast/parser/ets/UnexpectedToken.ets +++ b/ets2panda/test/ast/parser/ets/UnexpectedToken.ets @@ -20,14 +20,15 @@ function main(): void { } } -/* @@? 18:19 Error TypeError: Bad operand type, the types of the operands must be numeric, same enumeration, or boolean type. */ -/* @@? 18:25 Error SyntaxError: Unexpected token 'let'. */ -/* @@? 18:29 Error SyntaxError: Unexpected token, expected ')'. */ -/* @@? 18:38 Error TypeError: Cannot find type 'A'. */ -/* @@? 18:68 Error TypeError: Cannot find type 'A'. */ -/* @@? 18:72 Error TypeError: Unresolved reference f */ -/* @@? 18:78 Error TypeError: Cannot find type 'A'. */ -/* @@? 18:82 Error SyntaxError: Expected ')', got ';'. */ -/* @@? 19:4 Error TypeError: Unresolved reference i */ -/* @@? 19:10 Error SyntaxError: Unexpected token ')'. */ -/* @@? 19:12 Error SyntaxError: Unexpected token '{'. */ + +/* @@? 18:19 Error Semantic error ESE0114: Bad operand type, the types of the operands must be numeric, same enumeration, or boolean type. */ +/* @@? 18:25 Error Syntax error ESY0227: Unexpected token 'let'. */ +/* @@? 18:29 Error Syntax error ESY0228: Unexpected token, expected ')'. */ +/* @@? 18:38 Error Semantic error ESE0371: Cannot find type 'A'. */ +/* @@? 18:68 Error Semantic error ESE0371: Cannot find type 'A'. */ +/* @@? 18:72 Error Semantic error ESE0143: Unresolved reference f */ +/* @@? 18:78 Error Semantic error ESE0371: Cannot find type 'A'. */ +/* @@? 18:82 Error Syntax error ESY0230: Expected ')', got ';'. */ +/* @@? 19:4 Error Semantic error ESE0143: Unresolved reference i */ +/* @@? 19:10 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 19:12 Error Syntax error ESY0227: Unexpected token '{'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/abstract_class_modidier.ets b/ets2panda/test/ast/parser/ets/abstract_class_modidier.ets index e498973b8d..e09bf00313 100644 --- a/ets2panda/test/ast/parser/ets/abstract_class_modidier.ets +++ b/ets2panda/test/ast/parser/ets/abstract_class_modidier.ets @@ -17,4 +17,5 @@ abstract class A{ abstract /* @@ label */constructor(val: int); }; -/* @@@ label Error SyntaxError: The modifier for a constructor should be limited to access modifiers (private, internal, protected, public), and 'native' modifiers. */ + +/* @@@ label Error Syntax error ESY0201: The modifier for a constructor should be limited to access modifiers (private, internal, protected, public), and 'native' modifiers. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/access_modifier_1.ets b/ets2panda/test/ast/parser/ets/access_modifier_1.ets index 0ef12a8a6e..49afaf334d 100644 --- a/ets2panda/test/ast/parser/ets/access_modifier_1.ets +++ b/ets2panda/test/ast/parser/ets/access_modifier_1.ets @@ -17,4 +17,5 @@ class A { final /* @@ label */public foo(): void {} } -/* @@@ label Error SyntaxError: Access modifier must precede field and method modifiers. */ + +/* @@@ label Error Syntax error ESY0120: Access modifier must precede field and method modifiers. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/access_modifier_4.ets b/ets2panda/test/ast/parser/ets/access_modifier_4.ets index 2a88b634ae..4c944ad93f 100644 --- a/ets2panda/test/ast/parser/ets/access_modifier_4.ets +++ b/ets2panda/test/ast/parser/ets/access_modifier_4.ets @@ -17,4 +17,5 @@ class A { static /* @@ label */public n: int; } -/* @@@ label Error SyntaxError: Access modifier must precede field and method modifiers. */ + +/* @@@ label Error Syntax error ESY0120: Access modifier must precede field and method modifiers. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/accessor_call.ets b/ets2panda/test/ast/parser/ets/accessor_call.ets index 918aaffe39..b143b5334d 100644 --- a/ets2panda/test/ast/parser/ets/accessor_call.ets +++ b/ets2panda/test/ast/parser/ets/accessor_call.ets @@ -21,4 +21,5 @@ function main(): void { /* @@ label */new A().x(); } -/* @@@ label Error TypeError: Type 'Int' has no call signatures. */ + +/* @@@ label Error Semantic error ESE0002: Type 'Int' has no call signatures. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/accessor_void.ets b/ets2panda/test/ast/parser/ets/accessor_void.ets index 966e7b1f3f..c6c23870a7 100644 --- a/ets2panda/test/ast/parser/ets/accessor_void.ets +++ b/ets2panda/test/ast/parser/ets/accessor_void.ets @@ -17,4 +17,5 @@ class A { get x/* @@ label */(): void { } } -/* @@@ label Error TypeError: Getter must return a value */ + +/* @@@ label Error Semantic error ESE0086: Getter must return a value */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/accessor_with_this_param.ets b/ets2panda/test/ast/parser/ets/accessor_with_this_param.ets index df3867b378..28dd0f8aec 100644 --- a/ets2panda/test/ast/parser/ets/accessor_with_this_param.ets +++ b/ets2panda/test/ast/parser/ets/accessor_with_this_param.ets @@ -33,8 +33,9 @@ class B { } } -/* @@? 18:11 Error SyntaxError: Unexpected 'this' keyword in non-receiver context. */ -/* @@? 21:5 Error SyntaxError: Getter must not have formal parameters. */ -/* @@? 21:11 Error SyntaxError: Unexpected 'this' keyword in non-receiver context. */ -/* @@? 24:1 Error SyntaxError: Setter must have exactly one formal parameter. */ -/* @@? 31:11 Error SyntaxError: Unexpected 'this' keyword in non-receiver context. */ + +/* @@? 18:11 Error Syntax error ESY0240: Unexpected 'this' keyword in non-receiver context. */ +/* @@? 21:5 Error Syntax error ESY0058: Getter must not have formal parameters. */ +/* @@? 21:11 Error Syntax error ESY0240: Unexpected 'this' keyword in non-receiver context. */ +/* @@? 24:1 Error Syntax error ESY0063: Setter must have exactly one formal parameter. */ +/* @@? 31:11 Error Syntax error ESY0240: Unexpected 'this' keyword in non-receiver context. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/ambient_class_missing_body.ets b/ets2panda/test/ast/parser/ets/ambient_class_missing_body.ets index 1428f6e5ba..7a61d359f8 100644 --- a/ets2panda/test/ast/parser/ets/ambient_class_missing_body.ets +++ b/ets2panda/test/ast/parser/ets/ambient_class_missing_body.ets @@ -16,4 +16,4 @@ declare class B -/* @@? 20:1 Error SyntaxError: Ambient class declarations must have a body. */ +/* @@? 19:89 Error Syntax error ESY0004: Ambient class declarations must have a body. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/ambient_declaration.ets b/ets2panda/test/ast/parser/ets/ambient_declaration.ets index ee8515f116..05cbcdb4af 100644 --- a/ets2panda/test/ast/parser/ets/ambient_declaration.ets +++ b/ets2panda/test/ast/parser/ets/ambient_declaration.ets @@ -15,7 +15,8 @@ declare /* @@ label1 */module /* @@ label2 */"someModule" /* @@ label3 */{} -/* @@@ label1 Error SyntaxError: Ambient module declaration is not supported! */ -/* @@@ label1 Error TypeError: Unresolved reference module */ -/* @@@ label2 Error SyntaxError: Unexpected token 'someModule'. */ -/* @@@ label3 Error SyntaxError: Unexpected token '{'. */ + +/* @@@ label1 Error Syntax error ESY0308: Ambient module declaration is not supported! */ +/* @@@ label1 Error Semantic error ESE0143: Unresolved reference module */ +/* @@@ label2 Error Syntax error ESY0227: Unexpected token 'someModule'. */ +/* @@@ label3 Error Syntax error ESY0227: Unexpected token '{'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/ambient_indexer_10.ets b/ets2panda/test/ast/parser/ets/ambient_indexer_10.ets index 6089b2b446..e91f23499d 100644 --- a/ets2panda/test/ast/parser/ets/ambient_indexer_10.ets +++ b/ets2panda/test/ast/parser/ets/ambient_indexer_10.ets @@ -19,4 +19,5 @@ declare class ClassWithSymbols { } -/* @@@ label1 Error SyntaxError: Only one index signature can exist in a class */ + +/* @@@ label1 Error Syntax error ESY0326: Only one index signature can exist in a class */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/ambient_indexer_2.ets b/ets2panda/test/ast/parser/ets/ambient_indexer_2.ets index d1c5273f0c..ab570b74f2 100644 --- a/ets2panda/test/ast/parser/ets/ambient_indexer_2.ets +++ b/ets2panda/test/ast/parser/ets/ambient_indexer_2.ets @@ -21,4 +21,4 @@ function main() { let a : A = new A(); } -/* @@? 17:6 Error TypeError: Indexed signatures are not allowed. Use arrays instead! */ \ No newline at end of file +/* @@? 17:6 Error Semantic error ESE0343: Indexed signatures are not allowed. Use arrays instead! */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/ambient_indexer_3.ets b/ets2panda/test/ast/parser/ets/ambient_indexer_3.ets index 4f06b3693e..822b3f2b15 100644 --- a/ets2panda/test/ast/parser/ets/ambient_indexer_3.ets +++ b/ets2panda/test/ast/parser/ets/ambient_indexer_3.ets @@ -21,12 +21,13 @@ function main() { let a : A = new A(); } -/* @@? 17:14 Error SyntaxError: Index type must be number in index signature. */ -/* @@? 17:14 Error SyntaxError: ] expected in index signature. */ -/* @@? 17:20 Error SyntaxError: An index signature must have a type annotation. */ -/* @@? 17:20 Error SyntaxError: Expected ':', got ']'. */ -/* @@? 17:20 Error SyntaxError: Invalid Type. */ -/* @@? 17:20 Error SyntaxError: Return type of index signature from exported class or interface need to be identifier. */ -/* @@? 17:20 Error SyntaxError: Unexpected token ']'. */ -/* @@? 17:22 Error SyntaxError: Unexpected token ':'. */ -/* @@? 17:24 Error SyntaxError: string is a predefined type, cannot be used as an identifier */ + +/* @@? 17:14 Error Syntax error ESY0018: Index type must be number in index signature. */ +/* @@? 17:14 Error Syntax error ESY0019: ] expected in index signature. */ +/* @@? 17:20 Error Syntax error ESY0020: An index signature must have a type annotation. */ +/* @@? 17:20 Error Syntax error ESY0230: Expected ':', got ']'. */ +/* @@? 17:20 Error Syntax error ESY0138: Invalid Type. */ +/* @@? 17:20 Error Syntax error ESY0021: Return type of index signature from exported class or interface need to be identifier. */ +/* @@? 17:20 Error Syntax error ESY0227: Unexpected token ']'. */ +/* @@? 17:22 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 17:24 Error Syntax error ESY0295: string is a predefined type, cannot be used as an identifier */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/ambient_indexer_4.ets b/ets2panda/test/ast/parser/ets/ambient_indexer_4.ets index 33e4fff0d1..30cbcc62fb 100644 --- a/ets2panda/test/ast/parser/ets/ambient_indexer_4.ets +++ b/ets2panda/test/ast/parser/ets/ambient_indexer_4.ets @@ -21,7 +21,8 @@ declare class A { let a : A = new A(); } -/* @@@ label Error SyntaxError: An index signature must have a type annotation. */ -/* @@@ label Error SyntaxError: Expected ':', got '}'. */ -/* @@@ label Error SyntaxError: Invalid Type. */ -/* @@@ label Error SyntaxError: Return type of index signature from exported class or interface need to be identifier. */ + +/* @@@ label Error Syntax error ESY0020: An index signature must have a type annotation. */ +/* @@@ label Error Syntax error ESY0230: Expected ':', got '}'. */ +/* @@@ label Error Syntax error ESY0138: Invalid Type. */ +/* @@@ label Error Syntax error ESY0021: Return type of index signature from exported class or interface need to be identifier. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/ambient_indexer_5.ets b/ets2panda/test/ast/parser/ets/ambient_indexer_5.ets index 7ea0d48dd4..99bdaa0ba1 100644 --- a/ets2panda/test/ast/parser/ets/ambient_indexer_5.ets +++ b/ets2panda/test/ast/parser/ets/ambient_indexer_5.ets @@ -21,6 +21,7 @@ function main() { let a : A = new A(); } -/* @@@ label Error SyntaxError: Invalid Type. */ -/* @@@ label Error SyntaxError: Return type of index signature from exported class or interface need to be identifier. */ -/* @@@ label Error SyntaxError: Unexpected token '?'. */ + +/* @@@ label Error Syntax error ESY0138: Invalid Type. */ +/* @@@ label Error Syntax error ESY0021: Return type of index signature from exported class or interface need to be identifier. */ +/* @@@ label Error Syntax error ESY0227: Unexpected token '?'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/ambient_indexer_7.ets b/ets2panda/test/ast/parser/ets/ambient_indexer_7.ets index c9e6ef112e..9a9b9de0a9 100644 --- a/ets2panda/test/ast/parser/ets/ambient_indexer_7.ets +++ b/ets2panda/test/ast/parser/ets/ambient_indexer_7.ets @@ -21,6 +21,7 @@ function main() { let a : A = new A(); } -/* @@@ label Error SyntaxError: ] expected in index signature. */ -/* @@@ label1 Error SyntaxError: An index signature must have a type annotation. */ -/* @@@ label1 Error SyntaxError: Expected ':', got 'identification literal'. */ + +/* @@@ label Error Syntax error ESY0019: ] expected in index signature. */ +/* @@@ label1 Error Syntax error ESY0020: An index signature must have a type annotation. */ +/* @@@ label1 Error Syntax error ESY0230: Expected ':', got 'identification literal'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/ambient_indexer_8.ets b/ets2panda/test/ast/parser/ets/ambient_indexer_8.ets index 62e5623e90..c3b0be736f 100644 --- a/ets2panda/test/ast/parser/ets/ambient_indexer_8.ets +++ b/ets2panda/test/ast/parser/ets/ambient_indexer_8.ets @@ -21,8 +21,9 @@ function main() { let a : A = new A(); } -/* @@@ label Error SyntaxError: Index type expected in index signature. */ -/* @@@ label1 Error SyntaxError: Index type must be number in index signature. */ -/* @@@ label1 Error SyntaxError: ] expected in index signature. */ -/* @@@ label2 Error SyntaxError: An index signature must have a type annotation. */ -/* @@@ label2 Error SyntaxError: Expected ':', got 'identification literal'. */ + +/* @@@ label Error Syntax error ESY0017: Index type expected in index signature. */ +/* @@@ label1 Error Syntax error ESY0018: Index type must be number in index signature. */ +/* @@@ label1 Error Syntax error ESY0019: ] expected in index signature. */ +/* @@@ label2 Error Syntax error ESY0020: An index signature must have a type annotation. */ +/* @@@ label2 Error Syntax error ESY0230: Expected ':', got 'identification literal'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/ambient_indexer_9.ets b/ets2panda/test/ast/parser/ets/ambient_indexer_9.ets index 8d48e6cdbb..d6c04b694d 100644 --- a/ets2panda/test/ast/parser/ets/ambient_indexer_9.ets +++ b/ets2panda/test/ast/parser/ets/ambient_indexer_9.ets @@ -21,4 +21,5 @@ function main() { let a : A = new A(); } -/* @@@ label Error SyntaxError: Unexpected token '&'. */ + +/* @@@ label Error Syntax error ESY0227: Unexpected token '&'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/ambient_iterable_declaration.ets b/ets2panda/test/ast/parser/ets/ambient_iterable_declaration.ets index 749b248c23..d234a093fb 100644 --- a/ets2panda/test/ast/parser/ets/ambient_iterable_declaration.ets +++ b/ets2panda/test/ast/parser/ets/ambient_iterable_declaration.ets @@ -18,4 +18,5 @@ declare class C { [Symbol.iterator]/* @@ label */(): A; } -/* @@@ label Error TypeError: The return type of '$_iterator' must be a type that implements Iterator interface. */ + +/* @@@ label Error Semantic error ESE0096: The return type of '$_iterator' must be a type that implements Iterator interface. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/ambiguous_call_1.ets b/ets2panda/test/ast/parser/ets/ambiguous_call_1.ets index e16e6af524..e475a7958f 100644 --- a/ets2panda/test/ast/parser/ets/ambiguous_call_1.ets +++ b/ets2panda/test/ast/parser/ets/ambiguous_call_1.ets @@ -23,4 +23,5 @@ function main (): void { /* @@ label */goo (new X()) } -/* @@@ label Error TypeError: Call to `goo` is ambiguous as `2` versions of `goo` are available: `goo(p1: I1): void` and `goo(p2: I2): void` */ + +/* @@@ label Error Semantic error ESE0142: Call to `goo` is ambiguous as `2` versions of `goo` are available: `goo(p1: I1): void` and `goo(p2: I2): void` */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/ambiguous_call_2.ets b/ets2panda/test/ast/parser/ets/ambiguous_call_2.ets index 4d3d2c8539..e4ab486c49 100644 --- a/ets2panda/test/ast/parser/ets/ambiguous_call_2.ets +++ b/ets2panda/test/ast/parser/ets/ambiguous_call_2.ets @@ -27,5 +27,6 @@ function main (): void { goo (0, new X(), "ambiguous") } -/* @@? 27:5 Error TypeError: Call to `goo` is ambiguous as `2` versions of `goo` are available: `goo(i: Int, p1: I1, s: String): void` and `goo(i: Int, p2: I5, s: String): void` */ -/* @@? 27:5 Error TypeError: Call to `goo` is ambiguous as `2` versions of `goo` are available: `goo(i: Int, p1: I1, s: String): void` and `goo(i: Int, p2: I2, s: String): void` */ + +/* @@? 27:5 Error Semantic error ESE0142: Call to `goo` is ambiguous as `2` versions of `goo` are available: `goo(i: Int, p1: I1, s: String): void` and `goo(i: Int, p2: I5, s: String): void` */ +/* @@? 27:5 Error Semantic error ESE0142: Call to `goo` is ambiguous as `2` versions of `goo` are available: `goo(i: Int, p1: I1, s: String): void` and `goo(i: Int, p2: I2, s: String): void` */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/ambiguous_call_3.ets b/ets2panda/test/ast/parser/ets/ambiguous_call_3.ets index 9b9498171d..f91f3a0b44 100644 --- a/ets2panda/test/ast/parser/ets/ambiguous_call_3.ets +++ b/ets2panda/test/ast/parser/ets/ambiguous_call_3.ets @@ -23,4 +23,5 @@ function main (): void { /* @@ label */goo (new X()) } -/* @@@ label Error TypeError: Call to `goo` is ambiguous as `2` versions of `goo` are available: `goo(p2: B): void` and `goo(p1: I1): void` */ + +/* @@@ label Error Semantic error ESE0142: Call to `goo` is ambiguous as `2` versions of `goo` are available: `goo(p2: B): void` and `goo(p1: I1): void` */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/anno_interface_invalid_error.ets b/ets2panda/test/ast/parser/ets/anno_interface_invalid_error.ets index f3fefe0e9d..c560bd04f4 100644 --- a/ets2panda/test/ast/parser/ets/anno_interface_invalid_error.ets +++ b/ets2panda/test/ast/parser/ets/anno_interface_invalid_error.ets @@ -45,6 +45,7 @@ class C{ public foo() {} } -/* @@? 29:4 Error SyntaxError: Missing type annotation for property 'b'. */ -/* @@? 42:11 Error TypeError: Invalid value for annotation field, expected a constant literal. */ -/* @@? 44:16 Error TypeError: Invalid annotation field type. Only numeric, boolean, string, enum, or arrays of these types are permitted for annotation fields. */ + +/* @@? 29:4 Error Syntax error ESY0001: Missing type annotation for property 'b'. */ +/* @@? 42:11 Error Semantic error ESE0012: Invalid value for annotation field, expected a constant literal. */ +/* @@? 44:16 Error Semantic error ESE0042: Invalid annotation field type. Only numeric, boolean, string, enum, or arrays of these types are permitted for annotation fields. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_bad_initializer01.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_bad_initializer01.ets index 1c44ded693..7e6d4909ba 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_bad_initializer01.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_bad_initializer01.ets @@ -20,6 +20,7 @@ class A{} } -/* @@@ label Error SyntaxError: Class cannot be used as object. */ -/* @@@ label Error TypeError: Type 'A' cannot be assigned to type 'String' */ -/* @@@ label Error TypeError: Invalid value for annotation field, expected a constant literal. */ + +/* @@@ label Error Syntax error ESY0318: Class cannot be used as object. */ +/* @@@ label Error Semantic error ESE0318: Type 'A' cannot be assigned to type 'String' */ +/* @@@ label Error Semantic error ESE0012: Invalid value for annotation field, expected a constant literal. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_bad_initializer02.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_bad_initializer02.ets index 8c6f67789b..b43accd274 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_bad_initializer02.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_bad_initializer02.ets @@ -18,5 +18,6 @@ } -/* @@@ label Error TypeError: Unresolved reference a */ -/* @@@ label Error TypeError: Invalid value for annotation field, expected a constant literal. */ + +/* @@@ label Error Semantic error ESE0143: Unresolved reference a */ +/* @@@ label Error Semantic error ESE0012: Invalid value for annotation field, expected a constant literal. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_bad_initializer03.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_bad_initializer03.ets index 6d9b6522bd..657cd710f3 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_bad_initializer03.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_bad_initializer03.ets @@ -18,4 +18,6 @@ } -/* @@@ label Error TypeError: Unresolved reference a */ + +/* @@? 17:29 Error Semantic error ESE0012: Invalid value for annotation field, expected a constant literal. */ +/* @@@ label Error Semantic error ESE0143: Unresolved reference a */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_bad_initializer04.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_bad_initializer04.ets index e1434d9663..3cb1934616 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_bad_initializer04.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_bad_initializer04.ets @@ -17,5 +17,5 @@ testProperty1: string = /* @@ label */{s:A} } -/* @@@ label Error SyntaxError: Invalid value for annotation field, expected a constant literal. */ -/* @@? 17:44 Error TypeError: type String has no property named s */ + +/* @@@ label Error Syntax error ESY0027: Invalid value for annotation field, expected a constant literal. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_bad_initializer05.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_bad_initializer05.ets index 90ac52450a..710860f8f0 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_bad_initializer05.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_bad_initializer05.ets @@ -19,5 +19,5 @@ class A{} testProperty1: string = /* @@ label */new A() } -/* @@@ label Error SyntaxError: Invalid value for annotation field, expected a constant literal. */ -/* @@? 19:43 Error TypeError: Type 'A' cannot be assigned to type 'String' */ + +/* @@@ label Error Syntax error ESY0027: Invalid value for annotation field, expected a constant literal. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_bad_initializer06.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_bad_initializer06.ets index 8ede82f797..b69f082a48 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_bad_initializer06.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_bad_initializer06.ets @@ -19,4 +19,5 @@ class A{} testProperty1: string = /* @@ label */(a:int)=>{} } -/* @@@ label Error SyntaxError: Invalid value for annotation field, expected a constant literal. */ + +/* @@@ label Error Syntax error ESY0027: Invalid value for annotation field, expected a constant literal. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_classDecl_conflict.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_classDecl_conflict.ets index 9a1ce8d5b9..ab6cfd1e12 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_classDecl_conflict.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_classDecl_conflict.ets @@ -16,5 +16,6 @@ @interface MyAnno {} class /* @@ label */MyAnno {} -/* @@@ label Error TypeError: Variable 'MyAnno' has already been declared. */ -/* @@@ label Error TypeError: Merging declarations is not supported, please keep all definitions of classes, interfaces and enums compact in the codebase! */ + +/* @@@ label Error Semantic error ESE0351: Variable 'MyAnno' has already been declared. */ +/* @@@ label Error Semantic error ESE0370: Merging declarations is not supported, please keep all definitions of classes, interfaces and enums compact in the codebase! */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_enum_conflict.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_enum_conflict.ets index 9fc03e1561..85de56cc04 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_enum_conflict.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_enum_conflict.ets @@ -16,4 +16,5 @@ interface MyAnno {} enum /* @@ label */MyAnno {one, two, three} -/* @@@ label Error TypeError: Variable 'MyAnno' has already been declared. */ + +/* @@@ label Error Semantic error ESE0351: Variable 'MyAnno' has already been declared. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_field_with_modifiers01.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_field_with_modifiers01.ets index 902ec6220d..5a2b81a818 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_field_with_modifiers01.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_field_with_modifiers01.ets @@ -18,4 +18,5 @@ } -/* @@? 16:5 Error SyntaxError: Annotation property can not have access modifiers. */ + +/* @@? 16:5 Error Syntax error ESY0024: Annotation property can not have access modifiers. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_field_with_modifiers02.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_field_with_modifiers02.ets index 996f31f8ad..17196ef0b6 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_field_with_modifiers02.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_field_with_modifiers02.ets @@ -18,4 +18,5 @@ } -/* @@? 16:5 Error SyntaxError: Annotation property can not have access modifiers. */ + +/* @@? 16:5 Error Syntax error ESY0024: Annotation property can not have access modifiers. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_field_with_modifiers03.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_field_with_modifiers03.ets index 662e92b925..38d8f61e47 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_field_with_modifiers03.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_field_with_modifiers03.ets @@ -18,4 +18,5 @@ } -/* @@? 16:5 Error SyntaxError: Annotation property can not have access modifiers. */ + +/* @@? 16:5 Error Syntax error ESY0024: Annotation property can not have access modifiers. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_field_with_modifiers04.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_field_with_modifiers04.ets index 91db8071ef..f8f18cc4dc 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_field_with_modifiers04.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_field_with_modifiers04.ets @@ -18,5 +18,6 @@ } -/* @@? 16:5 Error SyntaxError: Annotation property can not have access modifiers. */ + +/* @@? 16:5 Error Syntax error ESY0024: Annotation property can not have access modifiers. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_interface_conflict.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_interface_conflict.ets index 12d9c22c9d..de99b26684 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_interface_conflict.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_interface_conflict.ets @@ -16,5 +16,6 @@ @interface MyAnno {} /* @@ label */interface MyAnno {} -/* @@@ label Error TypeError: Variable 'MyAnno' has already been declared. */ -/* @@@ label Error TypeError: Merging declarations is not supported, please keep all definitions of classes, interfaces and enums compact in the codebase! */ + +/* @@@ label Error Semantic error ESE0351: Variable 'MyAnno' has already been declared. */ +/* @@@ label Error Semantic error ESE0370: Merging declarations is not supported, please keep all definitions of classes, interfaces and enums compact in the codebase! */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_locally.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_locally.ets index 17b793bf6c..ae94679bc0 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_locally.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_locally.ets @@ -17,5 +17,6 @@ class A{ } -/* @@? 16:6 Error SyntaxError: Annotations can only be declared at the top level. */ -/* @@? 16:6 Error SyntaxError: Unexpected token. A constructor, method, accessor, or property was expected. */ + +/* @@? 16:6 Error Syntax error ESY0114: Annotations can only be declared at the top level. */ +/* @@? 16:6 Error Syntax error ESY0233: Unexpected token. A constructor, method, accessor, or property was expected. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_missing_typeAnnotation01.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_missing_typeAnnotation01.ets index 364f83c4d5..a499591967 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_missing_typeAnnotation01.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_missing_typeAnnotation01.ets @@ -19,4 +19,5 @@ class A{} testProperty1 /* @@ label */= 1 } -/* @@@ label Error SyntaxError: Missing type annotation for property 'testProperty1'. */ + +/* @@@ label Error Syntax error ESY0001: Missing type annotation for property 'testProperty1'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_missing_typeAnnotation02.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_missing_typeAnnotation02.ets index be4d572baa..8522a0d67b 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_missing_typeAnnotation02.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_missing_typeAnnotation02.ets @@ -19,4 +19,5 @@ class A{} testProperty1 /* @@ label */} -/* @@@ label Error SyntaxError: Missing type annotation for property 'testProperty1'. */ + +/* @@@ label Error Syntax error ESY0001: Missing type annotation for property 'testProperty1'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_missing_typeAnnotation03.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_missing_typeAnnotation03.ets index 14e1b15227..0cc83b9520 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_missing_typeAnnotation03.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_missing_typeAnnotation03.ets @@ -17,4 +17,5 @@ a: @Anno } -/* @@? 18:1 Error SyntaxError: Invalid Type. */ + +/* @@? 18:1 Error Syntax error ESY0138: Invalid Type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_parser_bad_token01.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_parser_bad_token01.ets index 5e37281975..05279bcd5a 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_parser_bad_token01.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_parser_bad_token01.ets @@ -17,4 +17,5 @@ testProperty2: number } -/* @@@ label Error SyntaxError: Identifier expected, got ','. */ + +/* @@@ label Error Syntax error ESY0224: Identifier expected, got ','. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_parser_bad_token02.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_parser_bad_token02.ets index 837d0ff787..f029962de8 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_parser_bad_token02.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_parser_bad_token02.ets @@ -18,8 +18,9 @@ testProperty2: number } -/* @@? 18:18 Error SyntaxError: Identifier expected, got ':'. */ -/* @@? 18:20 Error SyntaxError: number is a predefined type, cannot be used as an identifier */ -/* @@? 19:1 Error SyntaxError: Identifier expected, got '}'. */ -/* @@? 18:5 Error TypeError: Unresolved reference testProperty2 */ -/* @@? 18:5 Error TypeError: Invalid value for annotation field, expected a constant literal. */ + +/* @@? 18:5 Error Semantic error ESE0143: Unresolved reference testProperty2 */ +/* @@? 18:5 Error Semantic error ESE0012: Invalid value for annotation field, expected a constant literal. */ +/* @@? 18:18 Error Syntax error ESY0224: Identifier expected, got ':'. */ +/* @@? 18:20 Error Syntax error ESY0295: number is a predefined type, cannot be used as an identifier */ +/* @@? 19:1 Error Syntax error ESY0224: Identifier expected, got '}'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_parser_bad_token03.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_parser_bad_token03.ets index 59e11cb6ca..dbbdf204be 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_parser_bad_token03.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_parser_bad_token03.ets @@ -17,8 +17,9 @@ testProperty2/* @@ label1 */: number } -/* @@@ label1 Error SyntaxError: Identifier expected, got ':'. */ -/* @@? 17:35 Error SyntaxError: number is a predefined type, cannot be used as an identifier */ -/* @@? 18:1 Error SyntaxError: Identifier expected, got '}'. */ -/* @@? 17:5 Error TypeError: Unresolved reference testProperty2 */ -/* @@? 17:5 Error TypeError: Invalid value for annotation field, expected a constant literal. */ + +/* @@? 17:5 Error Semantic error ESE0143: Unresolved reference testProperty2 */ +/* @@? 17:5 Error Semantic error ESE0012: Invalid value for annotation field, expected a constant literal. */ +/* @@@ label1 Error Syntax error ESY0224: Identifier expected, got ':'. */ +/* @@? 17:35 Error Syntax error ESY0295: number is a predefined type, cannot be used as an identifier */ +/* @@? 18:1 Error Syntax error ESY0224: Identifier expected, got '}'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_parser_bad_token04.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_parser_bad_token04.ets index 21d016f414..96f8aebafc 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_parser_bad_token04.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_parser_bad_token04.ets @@ -19,4 +19,5 @@ import * as Src from "./annotation_export" Src.MyAnno class /* @@ label */A/* @@ label1 */{} -/* @@? 19:5 Error TypeError: Property 'MyAnno' does not exist on type 'annotation_export' */ + +/* @@? 19:5 Error Semantic error ESE0087: Property 'MyAnno' does not exist on type 'annotation_export' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_parser_bad_token05.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_parser_bad_token05.ets index 5648eba09f..f882d287d4 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_parser_bad_token05.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_parser_bad_token05.ets @@ -19,4 +19,5 @@ import * as Src from "./annotation_export" /* @@ label */Src.MyAnno() class A{} -/* @@@ label Error TypeError: MyAnno is an annotation therefore cannot be instantiated. */ + +/* @@@ label Error Semantic error ESE0396: MyAnno is an annotation therefore cannot be instantiated. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_parser_bad_token06.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_parser_bad_token06.ets index e7a3b43456..534f4bb7e2 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_parser_bad_token06.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_parser_bad_token06.ets @@ -19,7 +19,8 @@ import * as Src from "./annotation_export" Src.@MyAnno() class A{} -/* @@? 19:5 Error SyntaxError: Identifier expected. */ -/* @@? 19:5 Error SyntaxError: Identifier expected, got '@'. */ -/* @@? 19:6 Error SyntaxError: Unexpected token 'MyAnno'. */ -/* @@? 19:6 Error TypeError: Unresolved reference MyAnno */ + +/* @@? 19:5 Error Syntax error ESY0122: Identifier expected. */ +/* @@? 19:5 Error Syntax error ESY0224: Identifier expected, got '@'. */ +/* @@? 19:6 Error Syntax error ESY0227: Unexpected token 'MyAnno'. */ +/* @@? 19:6 Error Semantic error ESE0143: Unresolved reference MyAnno */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_parser_bad_token07.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_parser_bad_token07.ets index 9912bc89a8..f0905fc6e2 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_parser_bad_token07.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_parser_bad_token07.ets @@ -18,5 +18,6 @@ } -/* @@? 15:1 Error SyntaxError: Unexpected token '@@'. */ -/* @@? 15:3 Error SyntaxError: Unexpected token 'interface'. */ + +/* @@? 15:1 Error Syntax error ESY0227: Unexpected token '@@'. */ +/* @@? 15:3 Error Syntax error ESY0227: Unexpected token 'interface'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_redefined.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_redefined.ets index 4cb6fd937b..1f4181c0b1 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_redefined.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_redefined.ets @@ -27,4 +27,5 @@ testProperty4: number } -/* @@@ label Error TypeError: Variable 'MyAnno' has already been declared. */ + +/* @@@ label Error Semantic error ESE0351: Variable 'MyAnno' has already been declared. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_with_access_modifier01.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_with_access_modifier01.ets index 00384aaf23..b427d8fd27 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_with_access_modifier01.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_with_access_modifier01.ets @@ -16,6 +16,7 @@ public @interface MyAnno { testProperty1: string } -/* @@? 15:1 Error SyntaxError: Annotation declaration can not have access modifier. */ -/* @@? 15:1 Error SyntaxError: Unexpected token 'public'. */ -/* @@? 15:8 Error SyntaxError: Unexpected token '@'. */ + +/* @@? 15:1 Error Syntax error ESY0210: Annotation declaration can not have access modifier. */ +/* @@? 15:1 Error Syntax error ESY0227: Unexpected token 'public'. */ +/* @@? 15:8 Error Syntax error ESY0227: Unexpected token '@'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_with_access_modifier02.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_with_access_modifier02.ets index 4e855e39f4..c51981aefa 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_with_access_modifier02.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_with_access_modifier02.ets @@ -16,6 +16,7 @@ private @interface MyAnno { testProperty1: string } -/* @@? 15:1 Error SyntaxError: Annotation declaration can not have access modifier. */ -/* @@? 15:1 Error SyntaxError: Unexpected token 'private'. */ -/* @@? 15:9 Error SyntaxError: Unexpected token '@'. */ + +/* @@? 15:1 Error Syntax error ESY0210: Annotation declaration can not have access modifier. */ +/* @@? 15:1 Error Syntax error ESY0227: Unexpected token 'private'. */ +/* @@? 15:9 Error Syntax error ESY0227: Unexpected token '@'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_with_access_modifier03.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_with_access_modifier03.ets index 9128014805..e5e4c1e4da 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_with_access_modifier03.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_with_access_modifier03.ets @@ -17,5 +17,6 @@ } -/* @@@ label Error SyntaxError: Unexpected token 'static'. */ -/* @@@ label1 Error SyntaxError: Unexpected token '@'. */ + +/* @@@ label Error Syntax error ESY0227: Unexpected token 'static'. */ +/* @@@ label1 Error Syntax error ESY0227: Unexpected token '@'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_with_innerclass.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_with_innerclass.ets index 02ed066c23..67b630f5c4 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_with_innerclass.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_with_innerclass.ets @@ -17,9 +17,10 @@ class A{} } -/* @@? 17:5 Error SyntaxError: Hard keyword 'class' cannot be used as identifier */ -/* @@? 17:5 Error SyntaxError: Identifier expected, got 'class'. */ -/* @@? 17:12 Error SyntaxError: Missing type annotation for property 'A'. */ -/* @@? 17:12 Error SyntaxError: Identifier expected, got '{'. */ -/* @@? 17:13 Error SyntaxError: Identifier expected, got '}'. */ -/* @@? 18:1 Error SyntaxError: Unexpected token '}'. */ + +/* @@? 17:5 Error Syntax error ESY0316: Hard keyword 'class' cannot be used as identifier */ +/* @@? 17:5 Error Syntax error ESY0224: Identifier expected, got 'class'. */ +/* @@? 17:12 Error Syntax error ESY0001: Missing type annotation for property 'A'. */ +/* @@? 17:12 Error Syntax error ESY0224: Identifier expected, got '{'. */ +/* @@? 17:13 Error Syntax error ESY0224: Identifier expected, got '}'. */ +/* @@? 18:1 Error Syntax error ESY0227: Unexpected token '}'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_with_method.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_with_method.ets index 328a7d5fea..da60a36f84 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_with_method.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationDecl_with_method.ets @@ -18,10 +18,11 @@ } -/* @@? 17:8 Error SyntaxError: Annotation can not have method as property. */ -/* @@? 17:8 Error SyntaxError: Missing type annotation for property 'foo'. */ -/* @@? 17:8 Error SyntaxError: Identifier expected, got '('. */ -/* @@? 17:9 Error SyntaxError: Identifier expected, got ')'. */ -/* @@? 17:10 Error SyntaxError: Identifier expected, got '{'. */ -/* @@? 17:11 Error SyntaxError: Identifier expected, got '}'. */ -/* @@? 18:1 Error SyntaxError: Unexpected token '}'. */ + +/* @@? 17:8 Error Syntax error ESY0025: Annotation can not have method as property. */ +/* @@? 17:8 Error Syntax error ESY0001: Missing type annotation for property 'foo'. */ +/* @@? 17:8 Error Syntax error ESY0224: Identifier expected, got '('. */ +/* @@? 17:9 Error Syntax error ESY0224: Identifier expected, got ')'. */ +/* @@? 17:10 Error Syntax error ESY0224: Identifier expected, got '{'. */ +/* @@? 17:11 Error Syntax error ESY0224: Identifier expected, got '}'. */ +/* @@? 18:1 Error Syntax error ESY0227: Unexpected token '}'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param01.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param01.ets index 2fb3feaa78..0f06bcfc49 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param01.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param01.ets @@ -23,6 +23,7 @@ class A{} class B{} -/* @@@ label Error SyntaxError: Class cannot be used as object. */ -/* @@@ label Error TypeError: Type 'A' cannot be assigned to type 'String' */ -/* @@@ label Error TypeError: Invalid value for annotation field, expected a constant literal. */ + +/* @@@ label Error Syntax error ESY0318: Class cannot be used as object. */ +/* @@@ label Error Semantic error ESE0318: Type 'A' cannot be assigned to type 'String' */ +/* @@@ label Error Semantic error ESE0012: Invalid value for annotation field, expected a constant literal. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param02.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param02.ets index 4b52a661a3..2c2ad4d0ed 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param02.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param02.ets @@ -22,6 +22,7 @@ class A{} @MyAnno(/* @@ label */new A()) class B{} -/* @@@ label Error SyntaxError: Invalid value for annotation field, expected a constant literal. */ -/* @@@ label Error TypeError: Invalid value for annotation field, expected a constant literal. */ -/* @@? 22:23 Error TypeError: Type 'A' cannot be assigned to type 'String' */ + +/* @@@ label Error Syntax error ESY0027: Invalid value for annotation field, expected a constant literal. */ +/* @@@ label Error Semantic error ESE0318: Type 'A' cannot be assigned to type 'String' */ +/* @@@ label Error Semantic error ESE0012: Invalid value for annotation field, expected a constant literal. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param03.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param03.ets index 0c71b47706..3d59ac696a 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param03.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param03.ets @@ -21,5 +21,6 @@ class B{} -/* @@@ label Error TypeError: Unresolved reference a */ -/* @@@ label Error TypeError: Invalid value for annotation field, expected a constant literal. */ + +/* @@@ label Error Semantic error ESE0143: Unresolved reference a */ +/* @@@ label Error Semantic error ESE0012: Invalid value for annotation field, expected a constant literal. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param04.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param04.ets index 578d3567c6..e0e31977d1 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param04.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param04.ets @@ -21,5 +21,6 @@ @MyAnno({testProperty1: "1", testProperty2: [1, 2, a]}) class B{} -/* @@? 21:45 Error TypeError: Invalid value for annotation field, expected a constant literal. */ -/* @@? 21:52 Error TypeError: Unresolved reference a */ + +/* @@? 21:45 Error Semantic error ESE0012: Invalid value for annotation field, expected a constant literal. */ +/* @@? 21:52 Error Semantic error ESE0143: Unresolved reference a */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param05.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param05.ets index 587d3a3031..796c1d7296 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param05.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param05.ets @@ -21,4 +21,5 @@ @MyAnno({testProperty1: /* @@ label */{s: A}, testProperty2: 1}) class B{} -/* @@@ label Error SyntaxError: Invalid value for annotation field, expected a constant literal. */ + +/* @@@ label Error Syntax error ESY0027: Invalid value for annotation field, expected a constant literal. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param06.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param06.ets index 34a1f1fdfa..5fea830be4 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 '(p1: 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 '(p1: Int) => void' cannot be assigned to type 'String' */ +/* @@@ label Error Semantic error ESE0012: Invalid value for annotation field, expected a constant literal. */ diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param07.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param07.ets index d507754484..f44069d479 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param07.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param07.ets @@ -20,6 +20,7 @@ function foo(@MyAnno ...a){} -/* @@? 22:15 Error TypeError: The required field 'testProperty1' must be specified. Fields without default values cannot be omitted. */ -/* @@? 22:22 Error SyntaxError: Rest parameter should be either array or tuple type. */ -/* @@? 22:26 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ + +/* @@? 22:15 Error Semantic error ESE0044: The required field 'testProperty1' must be specified. Fields without default values cannot be omitted. */ +/* @@? 22:22 Error Syntax error ESY0193: Rest parameter should be either array or tuple type. */ +/* @@? 22:26 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param_for_classproperty.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param_for_classproperty.ets index 389af848c7..22e7f328a9 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param_for_classproperty.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param_for_classproperty.ets @@ -28,9 +28,10 @@ class B{ } -/* @@@ label1 Error SyntaxError: Class cannot be used as object. */ -/* @@@ label1 Error TypeError: Type 'A' cannot be assigned to type 'String' */ -/* @@@ label1 Error TypeError: Invalid value for annotation field, expected a constant literal. */ -/* @@@ label2 Error SyntaxError: Class cannot be used as object. */ -/* @@@ label2 Error TypeError: Type 'A' cannot be assigned to type 'String' */ -/* @@@ label2 Error TypeError: Invalid value for annotation field, expected a constant literal. */ + +/* @@@ label1 Error Syntax error ESY0318: Class cannot be used as object. */ +/* @@@ label1 Error Semantic error ESE0318: Type 'A' cannot be assigned to type 'String' */ +/* @@@ label1 Error Semantic error ESE0012: Invalid value for annotation field, expected a constant literal. */ +/* @@@ label2 Error Syntax error ESY0318: Class cannot be used as object. */ +/* @@@ label2 Error Semantic error ESE0318: Type 'A' cannot be assigned to type 'String' */ +/* @@@ label2 Error Semantic error ESE0012: Invalid value for annotation field, expected a constant literal. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param_for_function_param.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param_for_function_param.ets index cf347df6c7..de3d2e97b9 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param_for_function_param.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param_for_function_param.ets @@ -23,6 +23,7 @@ class A{} function foo(@MyAnno({testProperty1: /* @@ label */A}) x: int) { } -/* @@@ label Error SyntaxError: Class cannot be used as object. */ -/* @@@ label Error TypeError: Type 'A' cannot be assigned to type 'String' */ -/* @@@ label Error TypeError: Invalid value for annotation field, expected a constant literal. */ + +/* @@@ label Error Syntax error ESY0318: Class cannot be used as object. */ +/* @@@ label Error Semantic error ESE0318: Type 'A' cannot be assigned to type 'String' */ +/* @@@ label Error Semantic error ESE0012: Invalid value for annotation field, expected a constant literal. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param_for_global_variable_decl.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param_for_global_variable_decl.ets index 535b365f32..79dd2191a0 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param_for_global_variable_decl.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param_for_global_variable_decl.ets @@ -24,6 +24,7 @@ class A{} let x = "abc" -/* @@@ label Error SyntaxError: Class cannot be used as object. */ -/* @@@ label Error TypeError: Type 'A' cannot be assigned to type 'String' */ -/* @@@ label Error TypeError: Invalid value for annotation field, expected a constant literal. */ + +/* @@@ label Error Syntax error ESY0318: Class cannot be used as object. */ +/* @@@ label Error Semantic error ESE0318: Type 'A' cannot be assigned to type 'String' */ +/* @@@ label Error Semantic error ESE0012: Invalid value for annotation field, expected a constant literal. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param_for_interface.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param_for_interface.ets index d544f882f7..e83e71d8e2 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param_for_interface.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param_for_interface.ets @@ -25,6 +25,7 @@ interface itf { foo() : string } -/* @@@ label Error SyntaxError: Class cannot be used as object. */ -/* @@@ label Error TypeError: Type 'A' cannot be assigned to type 'String' */ -/* @@@ label Error TypeError: Invalid value for annotation field, expected a constant literal. */ + +/* @@@ label Error Syntax error ESY0318: Class cannot be used as object. */ +/* @@@ label Error Semantic error ESE0318: Type 'A' cannot be assigned to type 'String' */ +/* @@@ label Error Semantic error ESE0012: Invalid value for annotation field, expected a constant literal. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param_for_interfacemethod.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param_for_interfacemethod.ets index ae609bf8f8..8e74d70a2c 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param_for_interfacemethod.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param_for_interfacemethod.ets @@ -25,6 +25,7 @@ interface itf { } -/* @@@ label Error SyntaxError: Class cannot be used as object. */ -/* @@@ label Error TypeError: Type 'A' cannot be assigned to type 'String' */ -/* @@@ label Error TypeError: Invalid value for annotation field, expected a constant literal. */ + +/* @@@ label Error Syntax error ESY0318: Class cannot be used as object. */ +/* @@@ label Error Semantic error ESE0318: Type 'A' cannot be assigned to type 'String' */ +/* @@@ label Error Semantic error ESE0012: Invalid value for annotation field, expected a constant literal. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param_for_interfaceproperty.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param_for_interfaceproperty.ets index 4ce655dabf..cd38c170f2 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param_for_interfaceproperty.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param_for_interfaceproperty.ets @@ -25,6 +25,9 @@ interface itf { } -/* @@@ label Error SyntaxError: Class cannot be used as object. */ -/* @@@ label Error TypeError: Type 'A' cannot be assigned to type 'String' */ -/* @@@ label Error TypeError: Invalid value for annotation field, expected a constant literal. */ + +/* @@@ label Error Syntax error ESY0318: Class cannot be used as object. */ +/* @@@ label Error Semantic error ESE0318: Type 'A' cannot be assigned to type 'String' */ +/* @@@ label Error Semantic error ESE0012: Invalid value for annotation field, expected a constant literal. */ +/* @@@ label Error Semantic error ESE0318: Type 'A' cannot be assigned to type 'String' */ +/* @@@ label Error Semantic error ESE0012: Invalid value for annotation field, expected a constant literal. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param_for_lambda.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param_for_lambda.ets index 7a6cad9d41..f87ef9b73a 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param_for_lambda.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param_for_lambda.ets @@ -19,5 +19,5 @@ @ClassAuthor (x: 1) => x * 2; -/* @@? 20:2 Error TypeError: Cannot find type 'ClassAuthor'. */ -/* @@? 20:18 Error SyntaxError: Invalid Type. */ \ No newline at end of file +/* @@? 20:2 Error Semantic error ESE0371: Cannot find type 'ClassAuthor'. */ +/* @@? 20:18 Error Syntax error ESY0138: Invalid Type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param_for_local_variable_decl.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param_for_local_variable_decl.ets index 9c65ff8922..3483cfa233 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param_for_local_variable_decl.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param_for_local_variable_decl.ets @@ -26,6 +26,7 @@ function main():void { } -/* @@@ label Error SyntaxError: Class cannot be used as object. */ -/* @@@ label Error TypeError: Type 'A' cannot be assigned to type 'String' */ -/* @@@ label Error TypeError: Invalid value for annotation field, expected a constant literal. */ + +/* @@@ label Error Syntax error ESY0318: Class cannot be used as object. */ +/* @@@ label Error Semantic error ESE0318: Type 'A' cannot be assigned to type 'String' */ +/* @@@ label Error Semantic error ESE0012: Invalid value for annotation field, expected a constant literal. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param_for_type_alias.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param_for_type_alias.ets index d066379ae2..9e51df8bb4 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param_for_type_alias.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_bad_param_for_type_alias.ets @@ -29,8 +29,9 @@ function main(): void { } -/* @@@ label1 Error SyntaxError: Class cannot be used as object. */ -/* @@@ label1 Error TypeError: Type 'A' cannot be assigned to type 'String' */ -/* @@@ label1 Error TypeError: Invalid value for annotation field, expected a constant literal. */ -/* @@@ label2 Error SyntaxError: Illegal start of Type Alias expression. */ -/* @@@ label2 Error SyntaxError: Annotations are not allowed on this type of declaration. */ + +/* @@@ label1 Error Syntax error ESY0318: Class cannot be used as object. */ +/* @@@ label1 Error Semantic error ESE0318: Type 'A' cannot be assigned to type 'String' */ +/* @@@ label1 Error Semantic error ESE0012: Invalid value for annotation field, expected a constant literal. */ +/* @@@ label2 Error Syntax error ESY0040: Illegal start of Type Alias expression. */ +/* @@@ label2 Error Syntax error ESY0028: Annotations are not allowed on this type of declaration. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_for_invalid_expr.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_for_invalid_expr.ets index 2bab477ef1..f383b9a7cd 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_for_invalid_expr.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_for_invalid_expr.ets @@ -22,5 +22,6 @@ const invalidUsage2 = @AddMetadata("array") [1, 2, 3]; -/* @@? 20:45 Error SyntaxError: Annotations are not allowed on this type of declaration. */ -/* @@? 21:45 Error SyntaxError: Annotations are not allowed on this type of declaration. */ + +/* @@? 20:45 Error Syntax error ESY0028: Annotations are not allowed on this type of declaration. */ +/* @@? 21:45 Error Syntax error ESY0028: Annotations are not allowed on this type of declaration. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_missing_AT_for_classproperty.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_missing_AT_for_classproperty.ets index d49d7dd9fe..a8abea9f6f 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_missing_AT_for_classproperty.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_missing_AT_for_classproperty.ets @@ -21,8 +21,9 @@ class A{ x : int } -/* @@? 20:12 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 20:12 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ -/* @@? 20:12 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 20:28 Error SyntaxError: Label must be followed by a loop statement. */ -/* @@? 20:31 Error SyntaxError: Unexpected token ')'. */ + +/* @@? 20:12 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 20:12 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ +/* @@? 20:12 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 20:28 Error Syntax error ESY0038: Label must be followed by a loop statement. */ +/* @@? 20:31 Error Syntax error ESY0227: Unexpected token ')'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_missing_AT_for_function_param.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_missing_AT_for_function_param.ets index 96304af440..acd6666cf6 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_missing_AT_for_function_param.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_missing_AT_for_function_param.ets @@ -25,44 +25,44 @@ function foo(MyAnno({testProperty1: ""}) x: int, MyAnno({testProperty1: ""}) y: function foo(MyAnno({testProperty1: ""}) x: int, MyAnno({testProperty1: ""}) y: string) { } -/* @@? 19:10 Error TypeError: Only abstract or native methods can't have body. */ -/* @@? 19:20 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 19:20 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ -/* @@? 19:20 Error TypeError: need to specify target type for class composite */ -/* @@? 19:42 Error SyntaxError: Unexpected token 'x'. */ -/* @@? 19:45 Error SyntaxError: Label must be followed by a loop statement. */ -/* @@? 19:45 Error SyntaxError: Unexpected token 'int'. */ -/* @@? 19:48 Error SyntaxError: Unexpected token ')'. */ -/* @@? 19:50 Error SyntaxError: Unexpected token '{'. */ -/* @@? 22:1 Error TypeError: Function foo is already declared. */ -/* @@? 22:20 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ -/* @@? 22:20 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 22:20 Error TypeError: need to specify target type for class composite */ -/* @@? 22:42 Error SyntaxError: Unexpected token 'x'. */ -/* @@? 22:45 Error SyntaxError: Label must be followed by a loop statement. */ -/* @@? 22:45 Error SyntaxError: Unexpected token 'int'. */ -/* @@? 22:48 Error SyntaxError: Unexpected token ','. */ -/* @@? 22:50 Error SyntaxError: Unexpected token 'MyAnno'. */ -/* @@? 22:50 Error TypeError: This expression is not callable. */ -/* @@? 22:50 Error TypeError: Annotation missing '@' symbol before annotation name. */ -/* @@? 22:78 Error SyntaxError: Unexpected token 'y'. */ -/* @@? 22:81 Error SyntaxError: Label must be followed by a loop statement. */ -/* @@? 22:81 Error TypeError: Type name 'string' used in the wrong context */ -/* @@? 22:87 Error SyntaxError: Unexpected token ')'. */ -/* @@? 22:89 Error SyntaxError: Unexpected token '{'. */ -/* @@? 25:1 Error TypeError: Function foo is already declared. */ -/* @@? 25:20 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ -/* @@? 25:20 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 25:20 Error TypeError: need to specify target type for class composite */ -/* @@? 25:42 Error SyntaxError: Unexpected token 'x'. */ -/* @@? 25:45 Error SyntaxError: Unexpected token 'int'. */ -/* @@? 25:45 Error SyntaxError: Label must be followed by a loop statement. */ -/* @@? 25:48 Error SyntaxError: Unexpected token ','. */ -/* @@? 25:50 Error SyntaxError: Unexpected token 'MyAnno'. */ -/* @@? 25:50 Error TypeError: Annotation missing '@' symbol before annotation name. */ -/* @@? 25:50 Error TypeError: This expression is not callable. */ -/* @@? 25:78 Error SyntaxError: Unexpected token 'y'. */ -/* @@? 25:81 Error SyntaxError: Label must be followed by a loop statement. */ -/* @@? 25:81 Error TypeError: Type name 'string' used in the wrong context */ -/* @@? 25:87 Error SyntaxError: Unexpected token ')'. */ -/* @@? 25:89 Error SyntaxError: Unexpected token '{'. */ \ No newline at end of file +/* @@? 19:10 Error Semantic error ESE0017: Only abstract or native methods can't have body. */ +/* @@? 19:20 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 19:20 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ +/* @@? 19:20 Error Semantic error ESE0062: need to specify target type for class composite */ +/* @@? 19:42 Error Syntax error ESY0227: Unexpected token 'x'. */ +/* @@? 19:45 Error Syntax error ESY0038: Label must be followed by a loop statement. */ +/* @@? 19:45 Error Syntax error ESY0227: Unexpected token 'int'. */ +/* @@? 19:48 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 19:50 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 22:1 Error Semantic error ESE0130: Function foo is already declared. */ +/* @@? 22:20 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ +/* @@? 22:20 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 22:20 Error Semantic error ESE0062: need to specify target type for class composite */ +/* @@? 22:42 Error Syntax error ESY0227: Unexpected token 'x'. */ +/* @@? 22:45 Error Syntax error ESY0227: Unexpected token 'int'. */ +/* @@? 22:45 Error Syntax error ESY0038: Label must be followed by a loop statement. */ +/* @@? 22:48 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 22:50 Error Syntax error ESY0227: Unexpected token 'MyAnno'. */ +/* @@? 22:50 Error Semantic error ESE0289: This expression is not callable. */ +/* @@? 22:50 Error Semantic error ESE0230: Annotation missing '@' symbol before annotation name. */ +/* @@? 22:78 Error Syntax error ESY0227: Unexpected token 'y'. */ +/* @@? 22:81 Error Syntax error ESY0038: Label must be followed by a loop statement. */ +/* @@? 22:81 Error Semantic error ESE0144: Type name 'string' used in the wrong context */ +/* @@? 22:87 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 22:89 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 25:1 Error Semantic error ESE0130: Function foo is already declared. */ +/* @@? 25:20 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 25:20 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ +/* @@? 25:20 Error Semantic error ESE0062: need to specify target type for class composite */ +/* @@? 25:42 Error Syntax error ESY0227: Unexpected token 'x'. */ +/* @@? 25:45 Error Syntax error ESY0227: Unexpected token 'int'. */ +/* @@? 25:45 Error Syntax error ESY0038: Label must be followed by a loop statement. */ +/* @@? 25:48 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 25:50 Error Syntax error ESY0227: Unexpected token 'MyAnno'. */ +/* @@? 25:50 Error Semantic error ESE0230: Annotation missing '@' symbol before annotation name. */ +/* @@? 25:50 Error Semantic error ESE0289: This expression is not callable. */ +/* @@? 25:78 Error Syntax error ESY0227: Unexpected token 'y'. */ +/* @@? 25:81 Error Syntax error ESY0038: Label must be followed by a loop statement. */ +/* @@? 25:81 Error Semantic error ESE0144: Type name 'string' used in the wrong context */ +/* @@? 25:87 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 25:89 Error Syntax error ESY0227: Unexpected token '{'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_missing_initializer01.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_missing_initializer01.ets index a1c6ed41b6..6d1af29ca2 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_missing_initializer01.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_missing_initializer01.ets @@ -20,4 +20,5 @@ @MyAnno({testProperty1: "123", testProperty2/* @@ label */}) class A{} -/* @@@ label Error SyntaxError: Invalid argument passed to 'testProperty2'. */ + +/* @@@ label Error Syntax error ESY0026: Invalid argument passed to 'testProperty2'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_on_annotationDecl.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_on_annotationDecl.ets index fabbeb1021..d63676039d 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_on_annotationDecl.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_on_annotationDecl.ets @@ -25,4 +25,5 @@ testProperty2: number } -/* @@? 22:2 Error TypeError: Only standard annotations are allowed to be applied on annotations. */ + +/* @@? 22:2 Error Semantic error ESE0006: Only standard annotations are allowed to be applied on annotations. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_parser_bad_token01.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_parser_bad_token01.ets index f7664657d2..7eb4b4405c 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_parser_bad_token01.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_parser_bad_token01.ets @@ -19,8 +19,9 @@ @MyAnno("123"/* @@ label */, "1"/* @@ label1 */) class A{} -/* @@@ label Error SyntaxError: Expected ')', got ','. */ -/* @@@ label Error SyntaxError: Unexpected token ','. */ -/* @@@ label Error SyntaxError: Annotations are not allowed on this type of declaration. */ -/* @@? 19:30 Error SyntaxError: Unexpected token '1'. */ -/* @@@ label1 Error SyntaxError: Unexpected token ')'. */ + +/* @@@ label Error Syntax error ESY0230: Expected ')', got ','. */ +/* @@@ label Error Syntax error ESY0227: Unexpected token ','. */ +/* @@@ label Error Syntax error ESY0028: Annotations are not allowed on this type of declaration. */ +/* @@? 19:30 Error Syntax error ESY0227: Unexpected token '1'. */ +/* @@@ label1 Error Syntax error ESY0227: Unexpected token ')'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_parser_bad_token02.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_parser_bad_token02.ets index 4fc4472c2e..5259fa7e50 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_parser_bad_token02.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_parser_bad_token02.ets @@ -20,5 +20,6 @@ @MyAnno({testProperty1: "123"/* @@ label */; /* @@ label1 */testProperty2: 123}) class A{} -/* @@? 20:44 Error SyntaxError: Expected ',', got ';'. */ -/* @@? 20:44 Error SyntaxError: Identifier expected, got ';'. */ + +/* @@@ label Error Syntax error ESY0230: Expected ',', got ';'. */ +/* @@@ label Error Syntax error ESY0224: Identifier expected, got ';'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_parser_bad_token03.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_parser_bad_token03.ets index 6ed09ff532..4b828927ba 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_parser_bad_token03.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_parser_bad_token03.ets @@ -20,7 +20,8 @@ @MyAnno({testProperty1: "123", testProperty2: 123/* @@ label */;/* @@ label1 */}) class A{} -/* @@? 20:2 Error TypeError: The number of arguments provided for the annotation exceeds the number of fields defined. */ -/* @@? 20:64 Error SyntaxError: Expected ',', got ';'. */ -/* @@? 20:64 Error SyntaxError: Identifier expected, got ';'. */ -/* @@? 20:80 Error SyntaxError: Identifier expected, got '}'. */ + +/* @@? 20:2 Error Semantic error ESE0068: The number of arguments provided for the annotation exceeds the number of fields defined. */ +/* @@@ label Error Syntax error ESY0230: Expected ',', got ';'. */ +/* @@@ label Error Syntax error ESY0224: Identifier expected, got ';'. */ +/* @@@ label1 Error Syntax error ESY0224: Identifier expected, got '}'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_parser_bad_token04.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_parser_bad_token04.ets index 44730b44be..979596c802 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_parser_bad_token04.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_parser_bad_token04.ets @@ -18,7 +18,8 @@ const invalidUsage1 = @Log("value")) ()=>{} -/* @@? 19:24 Error TypeError: Annotations without 'SOURCE' cannot be used on lambda expressions, local declarations, or types. */ -/* @@? 19:36 Error SyntaxError: Unexpected token ')'. */ -/* @@? 19:40 Error SyntaxError: Unexpected token '=>'. */ -/* @@? 19:40 Error SyntaxError: Unexpected token. */ + +/* @@? 19:24 Error Semantic error ESE0005: Annotations without 'SOURCE' cannot be used on lambda expressions, local declarations, or types. */ +/* @@? 19:36 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 19:40 Error Syntax error ESY0227: Unexpected token '=>'. */ +/* @@? 19:40 Error Syntax error ESY0016: Unexpected token. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_parser_bad_token05.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_parser_bad_token05.ets index 8fefd09985..406649b9d4 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_parser_bad_token05.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_parser_bad_token05.ets @@ -18,7 +18,8 @@ const invalidUsage1 = @@Log("value") ()=>{} -/* @@? 19:23 Error SyntaxError: Unexpected token '@@'. */ -/* @@? 19:25 Error SyntaxError: Unexpected token 'Log'. */ -/* @@? 19:40 Error SyntaxError: Unexpected token '=>'. */ -/* @@? 19:40 Error SyntaxError: Unexpected token. */ + +/* @@? 19:23 Error Syntax error ESY0227: Unexpected token '@@'. */ +/* @@? 19:25 Error Syntax error ESY0227: Unexpected token 'Log'. */ +/* @@? 19:40 Error Syntax error ESY0227: Unexpected token '=>'. */ +/* @@? 19:40 Error Syntax error ESY0016: Unexpected token. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_tmp.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_tmp.ets index 7173d03c9b..2c2ad4d0ed 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_tmp.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotationUsage_tmp.ets @@ -22,6 +22,7 @@ class A{} @MyAnno(/* @@ label */new A()) class B{} -/* @@@ label Error SyntaxError: Invalid value for annotation field, expected a constant literal. */ -/* @@@ label Error TypeError: Invalid value for annotation field, expected a constant literal. */ -/* @@@ label Error TypeError: Type 'A' cannot be assigned to type 'String' */ + +/* @@@ label Error Syntax error ESY0027: Invalid value for annotation field, expected a constant literal. */ +/* @@@ label Error Semantic error ESE0318: Type 'A' cannot be assigned to type 'String' */ +/* @@@ label Error Semantic error ESE0012: Invalid value for annotation field, expected a constant literal. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotation_default_export.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotation_default_export.ets index c3dd9704f6..a52b3761b2 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotation_default_export.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotation_default_export.ets @@ -15,4 +15,5 @@ export default @/* @@ label */interface MyAnno {} -/* @@@ label Error SyntaxError: Can not export annotation default. */ + +/* @@@ label Error Syntax error ESY0042: Can not export annotation default. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotation_rename_export.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotation_rename_export.ets index 7daa6f364a..bcb6e3f1e6 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotation_rename_export.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotation_rename_export.ets @@ -17,4 +17,5 @@ export {MyAnno as /* @@ label */NA} @interface MyAnno{} -/* @@@ label Error SyntaxError: Can not rename annotation 'MyAnno' in export or import statements. */ + +/* @@@ label Error Syntax error ESY0280: Can not rename annotation 'MyAnno' in export or import statements. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotation_rename_import.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotation_rename_import.ets index 06ee35b51d..eb1911573f 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotation_rename_import.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotation_rename_import.ets @@ -15,4 +15,5 @@ import {MyAnno as NA} from /* @@ label */"./annotation_export" -/* @@@ label Error TypeError: Can not rename annotation 'MyAnno' in export or import statements. */ + +/* @@@ label Error Semantic error ESE0357: Can not rename annotation 'MyAnno' in export or import statements. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/annotations_tests/annotation_usage_wrong_ref.ets b/ets2panda/test/ast/parser/ets/annotations_tests/annotation_usage_wrong_ref.ets index 6aa297c618..aec97f7520 100644 --- a/ets2panda/test/ast/parser/ets/annotations_tests/annotation_usage_wrong_ref.ets +++ b/ets2panda/test/ast/parser/ets/annotations_tests/annotation_usage_wrong_ref.ets @@ -18,4 +18,4 @@ function foo() {} @/* @@ label */foo @interface anno {} -/* @@@ label Error TypeError: Cannot find type 'foo'. */ \ No newline at end of file +/* @@@ label Error Semantic error ESE0371: Cannot find type 'foo'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/anonymous_class.ets b/ets2panda/test/ast/parser/ets/anonymous_class.ets index f277596205..4d2e727201 100644 --- a/ets2panda/test/ast/parser/ets/anonymous_class.ets +++ b/ets2panda/test/ast/parser/ets/anonymous_class.ets @@ -20,5 +20,6 @@ class A { }; } -/* @@? 17:35 Error SyntaxError: Unexpected token '{'. */ -/* @@? 21:1 Error SyntaxError: Unexpected token '}'. */ + +/* @@? 17:35 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 21:1 Error Syntax error ESY0227: Unexpected token '}'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/arithmetic/ops_overflow.ets b/ets2panda/test/ast/parser/ets/arithmetic/ops_overflow.ets index 83e76e9d97..b47e8d9061 100644 --- a/ets2panda/test/ast/parser/ets/arithmetic/ops_overflow.ets +++ b/ets2panda/test/ast/parser/ets/arithmetic/ops_overflow.ets @@ -33,13 +33,14 @@ const AddByte = /*@@ AddByte */ BYTE_MIN + BYTE_MIN; const NegInt = -INT_MIN; const NegByte = -BYTE_MIN; -/* @@@ DivInt Error TypeError: Arithmetic operation causes an overflow. */ -/* @@@ ModInt Error TypeError: Arithmetic operation causes an overflow. */ -/* @@@ MulInt Error TypeError: Arithmetic operation causes an overflow. */ -/* @@@ SubInt Error TypeError: Arithmetic operation causes an overflow. */ -/* @@@ AddInt Error TypeError: Arithmetic operation causes an overflow. */ -/* @@@ DivByte Error TypeError: Arithmetic operation causes an overflow. */ -/* @@@ ModByte Error TypeError: Arithmetic operation causes an overflow. */ -/* @@@ MulByte Error TypeError: Arithmetic operation causes an overflow. */ -/* @@@ SubByte Error TypeError: Arithmetic operation causes an overflow. */ -/* @@@ AddByte Error TypeError: Arithmetic operation causes an overflow. */ + +/* @@? 17:31 Error Semantic error ESE4101: Arithmetic operation causes an overflow. */ +/* @@? 18:31 Error Semantic error ESE4101: Arithmetic operation causes an overflow. */ +/* @@? 19:31 Error Semantic error ESE4101: Arithmetic operation causes an overflow. */ +/* @@? 20:31 Error Semantic error ESE4101: Arithmetic operation causes an overflow. */ +/* @@? 21:31 Error Semantic error ESE4101: Arithmetic operation causes an overflow. */ +/* @@? 26:33 Error Semantic error ESE4101: Arithmetic operation causes an overflow. */ +/* @@? 27:33 Error Semantic error ESE4101: Arithmetic operation causes an overflow. */ +/* @@? 28:33 Error Semantic error ESE4101: Arithmetic operation causes an overflow. */ +/* @@? 29:33 Error Semantic error ESE4101: Arithmetic operation causes an overflow. */ +/* @@? 30:33 Error Semantic error ESE4101: Arithmetic operation causes an overflow. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/array_2.ets b/ets2panda/test/ast/parser/ets/array_2.ets index f949a62c20..4b1e08c220 100644 --- a/ets2panda/test/ast/parser/ets/array_2.ets +++ b/ets2panda/test/ast/parser/ets/array_2.ets @@ -15,7 +15,8 @@ let c: Double[] = [0.33 /* @@ label */0.66 0.99] -/* @@@ label Error SyntaxError: Unexpected token, expected ',' or ']'. */ -/* @@@ label Error SyntaxError: Unexpected token '0.66'. */ -/* @@? 16:44 Error SyntaxError: Unexpected token '0.99'. */ -/* @@? 16:48 Error SyntaxError: Unexpected token ']'. */ + +/* @@@ label Error Syntax error ESY0229: Unexpected token, expected ',' or ']'. */ +/* @@@ label Error Syntax error ESY0227: Unexpected token '0.66'. */ +/* @@? 16:44 Error Syntax error ESY0227: Unexpected token '0.99'. */ +/* @@? 16:48 Error Syntax error ESY0227: Unexpected token ']'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/array_literal_inference.ets b/ets2panda/test/ast/parser/ets/array_literal_inference.ets index 9ab410b887..3f0623aa69 100644 --- a/ets2panda/test/ast/parser/ets/array_literal_inference.ets +++ b/ets2panda/test/ast/parser/ets/array_literal_inference.ets @@ -17,4 +17,4 @@ function foo(): void { let b: [] = /* @@ label */[ 1 ] } -/* @@@ label Error TypeError: Initializer has 1 elements, but tuple requires 0 */ \ No newline at end of file +/* @@@ label Error Semantic error ESE0231: Initializer has 1 elements, but tuple requires 0 */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/array_missing_element.ets b/ets2panda/test/ast/parser/ets/array_missing_element.ets index 0c7d520831..d38979cfe5 100644 --- a/ets2panda/test/ast/parser/ets/array_missing_element.ets +++ b/ets2panda/test/ast/parser/ets/array_missing_element.ets @@ -17,8 +17,9 @@ function foo(): void { let b: (number|undefined)[] = [ 1, 2, 3, , 4, ] } -/* @@? 17:45 Error SyntaxError: Unexpected token ','. */ -/* @@? 17:47 Error SyntaxError: Unexpected token, expected ',' or ']'. */ -/* @@? 17:47 Error SyntaxError: Unexpected token '4'. */ -/* @@? 17:48 Error SyntaxError: Unexpected token ','. */ -/* @@? 17:50 Error SyntaxError: Unexpected token ']'. */ + +/* @@? 17:45 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 17:47 Error Syntax error ESY0229: Unexpected token, expected ',' or ']'. */ +/* @@? 17:47 Error Syntax error ESY0227: Unexpected token '4'. */ +/* @@? 17:48 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 17:50 Error Syntax error ESY0227: Unexpected token ']'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/array_new_failed.ets b/ets2panda/test/ast/parser/ets/array_new_failed.ets index d851e069fe..b26092e933 100644 --- a/ets2panda/test/ast/parser/ets/array_new_failed.ets +++ b/ets2panda/test/ast/parser/ets/array_new_failed.ets @@ -17,4 +17,5 @@ function foo(): void { let a = new int[/* @@ label */5.1] } -/* @@@ label Error TypeError: Index fractional part should be zero. */ + +/* @@@ label Error Semantic error ESE0197: Index fractional part should be zero. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/array_type.ets b/ets2panda/test/ast/parser/ets/array_type.ets index 44f57bdbc2..1f9e03bab5 100644 --- a/ets2panda/test/ast/parser/ets/array_type.ets +++ b/ets2panda/test/ast/parser/ets/array_type.ets @@ -24,7 +24,8 @@ class array_type { } } -/* @@@ label Error TypeError: Property 'a' might not have been initialized. */ -/* @@@ label1 Error TypeError: Property 'f' might not have been initialized. */ -/* @@@ label2 Error TypeError: Function with a non void return type must return a value. */ -/* @@@ label3 Error TypeError: Function with a non void return type must return a value. */ + +/* @@@ label Error Semantic error ESE0280: Property 'a' might not have been initialized. */ +/* @@@ label1 Error Semantic error ESE0280: Property 'f' might not have been initialized. */ +/* @@@ label2 Error Semantic error ESE0103: Function with a non void return type must return a value. */ +/* @@@ label3 Error Semantic error ESE0103: Function with a non void return type must return a value. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/array_union_type_not_contains_nullish_type.ets b/ets2panda/test/ast/parser/ets/array_union_type_not_contains_nullish_type.ets index 760389c8da..623dbca433 100644 --- a/ets2panda/test/ast/parser/ets/array_union_type_not_contains_nullish_type.ets +++ b/ets2panda/test/ast/parser/ets/array_union_type_not_contains_nullish_type.ets @@ -21,4 +21,5 @@ class cls { } } -/* @@@ label Error TypeError: Cannot use array creation expression with non-constructable element type which is non-assignable from undefined. */ + +/* @@@ label Error Semantic error ESE0051: Cannot use array creation expression with non-constructable element type which is non-assignable from undefined. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/arrow_1.ets b/ets2panda/test/ast/parser/ets/arrow_1.ets index dfb34413aa..48f23ebe56 100644 --- a/ets2panda/test/ast/parser/ets/arrow_1.ets +++ b/ets2panda/test/ast/parser/ets/arrow_1.ets @@ -27,4 +27,5 @@ let a: A = { } } -/* @@? 22:12 Error SyntaxError: Expected '=>', got ','. */ + +/* @@? 22:12 Error Syntax error ESY0230: Expected '=>', got ','. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/assert_with_not_boolean_type_1.ets b/ets2panda/test/ast/parser/ets/assert_with_not_boolean_type_1.ets index 83c44d1cf3..0c8f1741f1 100644 --- a/ets2panda/test/ast/parser/ets/assert_with_not_boolean_type_1.ets +++ b/ets2panda/test/ast/parser/ets/assert_with_not_boolean_type_1.ets @@ -17,5 +17,5 @@ function main(): void { /* @@ label1 */arktest.assertTrue(/* @@ label2 */"true") } -/* @@@ label1 Error TypeError: No matching call signature for assertTrue("true") */ -/* @@@ label2 Error TypeError: Type '"true"' is not compatible with type 'Boolean' at index 1 */ \ No newline at end of file +/* @@@ label1 Error Semantic error ESE0127: No matching call signature for assertTrue("true") */ +/* @@@ label2 Error Semantic error ESE0046: Type '"true"' is not compatible with type 'Boolean' at index 1 */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/assert_with_not_boolean_type_2.ets b/ets2panda/test/ast/parser/ets/assert_with_not_boolean_type_2.ets index 30a3f6b53d..7927771732 100644 --- a/ets2panda/test/ast/parser/ets/assert_with_not_boolean_type_2.ets +++ b/ets2panda/test/ast/parser/ets/assert_with_not_boolean_type_2.ets @@ -17,5 +17,6 @@ function main(): void { /* @@ label1 */arktest.assertTrue(/* @@ label2 */1) } -/* @@@ label1 Error TypeError: No matching call signature for assertTrue(Int) */ -/* @@@ label2 Error TypeError: Type 'Int' is not compatible with type 'Boolean' at index 1 */ + +/* @@@ label1 Error Semantic error ESE0127: No matching call signature for assertTrue(Int) */ +/* @@@ label2 Error Semantic error ESE0046: Type 'Int' is not compatible with type 'Boolean' at index 1 */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/assign-func-iface.ets b/ets2panda/test/ast/parser/ets/assign-func-iface.ets index fa29a6e6ce..9bda77fb33 100644 --- a/ets2panda/test/ast/parser/ets/assign-func-iface.ets +++ b/ets2panda/test/ast/parser/ets/assign-func-iface.ets @@ -17,4 +17,5 @@ interface Foo { /* @@ label */async foo(): Promise; } -/* @@@ label Error SyntaxError: Identifier expected, got 'async'. */ + +/* @@@ label Error Syntax error ESY0224: Identifier expected, got 'async'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/assign_bad.ets b/ets2panda/test/ast/parser/ets/assign_bad.ets index 11de990c99..da67df06bb 100644 --- a/ets2panda/test/ast/parser/ets/assign_bad.ets +++ b/ets2panda/test/ast/parser/ets/assign_bad.ets @@ -20,9 +20,10 @@ function main(): void { a := b; } -/* @@? 16:1 Error TypeError: Unresolved reference dim */ -/* @@? 16:5 Error SyntaxError: Unexpected token 'a'. */ -/* @@? 16:5 Error TypeError: Unresolved reference a */ -/* @@? 20:6 Error SyntaxError: Label must be followed by a loop statement. */ -/* @@? 20:6 Error SyntaxError: Unexpected token '='. */ -/* @@? 20:8 Error SyntaxError: Unexpected token 'b'. */ + +/* @@? 16:1 Error Semantic error ESE0143: Unresolved reference dim */ +/* @@? 16:5 Error Syntax error ESY0227: Unexpected token 'a'. */ +/* @@? 16:5 Error Semantic error ESE0143: Unresolved reference a */ +/* @@? 20:6 Error Syntax error ESY0038: Label must be followed by a loop statement. */ +/* @@? 20:6 Error Syntax error ESY0227: Unexpected token '='. */ +/* @@? 20:8 Error Syntax error ESY0227: Unexpected token 'b'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/assignment_non-functional_variable_to_functional_type.ets b/ets2panda/test/ast/parser/ets/assignment_non-functional_variable_to_functional_type.ets index 5886f5d01a..b29c9ce56e 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,5 @@ 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' */ \ No newline at end of file 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..a770fe8ba2 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,5 @@ 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' */ \ No newline at end of file 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..538f01cc77 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,5 @@ 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' */ \ No newline at end of file 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..4f02d70b14 100644 --- a/ets2panda/test/ast/parser/ets/asteriks_in_selective_binding.ets +++ b/ets2panda/test/ast/parser/ets/asteriks_in_selective_binding.ets @@ -15,7 +15,8 @@ import { * } from './module'; -/* @@? 16:10 Error SyntaxError: The '*' token is not allowed as a selective binding (between braces). */ -/* @@? 16:10 Error SyntaxError: Unexpected token '*'. */ -/* @@? 16:14 Error TypeError: Unresolved reference from */ -/* @@? 16:19 Error SyntaxError: Unexpected token './module'. */ + +/* @@? 16:10 Error Syntax error ESY0102: The '*' token is not allowed as a selective binding (between braces). */ +/* @@? 16:10 Error Syntax error ESY0227: Unexpected token '*'. */ +/* @@? 16:14 Error Semantic error ESE0143: Unresolved reference from */ +/* @@? 16:19 Error Syntax error ESY0227: Unexpected token './module'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/async_abstract_bad.ets b/ets2panda/test/ast/parser/ets/async_abstract_bad.ets index e36a906942..7990f245c8 100644 --- a/ets2panda/test/ast/parser/ets/async_abstract_bad.ets +++ b/ets2panda/test/ast/parser/ets/async_abstract_bad.ets @@ -17,4 +17,5 @@ abstract class Foo { abstract async /* @@ label */foo(): Promise; } -/* @@@ label Error SyntaxError: Abstract method cannot be async. */ + +/* @@@ label Error Syntax error ESY0118: Abstract method cannot be async. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/async_ctor.ets b/ets2panda/test/ast/parser/ets/async_ctor.ets index 1ddb4cc81d..054df2de5f 100644 --- a/ets2panda/test/ast/parser/ets/async_ctor.ets +++ b/ets2panda/test/ast/parser/ets/async_ctor.ets @@ -17,4 +17,5 @@ class Test { async /* @@ label */constructor() {} } -/* @@@ label Error SyntaxError: The modifier for a constructor should be limited to access modifiers (private, internal, protected, public), and 'native' modifiers. */ + +/* @@@ label Error Syntax error ESY0201: The modifier for a constructor should be limited to access modifiers (private, internal, protected, public), and 'native' modifiers. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/async_func_return_type_bad.ets b/ets2panda/test/ast/parser/ets/async_func_return_type_bad.ets index 9533580615..675310ad23 100644 --- a/ets2panda/test/ast/parser/ets/async_func_return_type_bad.ets +++ b/ets2panda/test/ast/parser/ets/async_func_return_type_bad.ets @@ -17,4 +17,5 @@ async function foo(): Promise { return /* @@ label */"abc"; } -/* @@@ label Error TypeError: Type '"abc"' is not compatible with the enclosing method's return type 'Promise | Int' */ + +/* @@@ label Error Semantic error ESE0091: Type '"abc"' is not compatible with the enclosing method's return type 'Promise | Int' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/async_function_bad.ets b/ets2panda/test/ast/parser/ets/async_function_bad.ets index d7c4a852b2..153462ab5e 100644 --- a/ets2panda/test/ast/parser/ets/async_function_bad.ets +++ b/ets2panda/test/ast/parser/ets/async_function_bad.ets @@ -15,13 +15,14 @@ async native function foo(): Promise; -/* @@? 16:7 Error SyntaxError: 'async' flags must be used for functions only at top-level. */ -/* @@? 16:14 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 16:14 Error SyntaxError: Unexpected token, expected '('. */ -/* @@? 16:14 Error TypeError: Only abstract or native methods can't have body. */ -/* @@? 16:26 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ -/* @@? 16:26 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 16:27 Error SyntaxError: Unexpected token ')'. */ -/* @@? 16:28 Error SyntaxError: Unexpected token, expected ')'. */ -/* @@? 16:30 Error SyntaxError: Unexpected token 'Promise'. */ -/* @@? 16:30 Error SyntaxError: Class cannot be used as object. */ + +/* @@? 16:7 Error Syntax error ESY0202: 'async' flags must be used for functions only at top-level. */ +/* @@? 16:14 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 16:14 Error Syntax error ESY0228: Unexpected token, expected '('. */ +/* @@? 16:14 Error Semantic error ESE0017: Only abstract or native methods can't have body. */ +/* @@? 16:26 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ +/* @@? 16:26 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 16:27 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 16:28 Error Syntax error ESY0228: Unexpected token, expected ')'. */ +/* @@? 16:30 Error Syntax error ESY0227: Unexpected token 'Promise'. */ +/* @@? 16:30 Error Syntax error ESY0318: Class cannot be used as object. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/async_method_bad.ets b/ets2panda/test/ast/parser/ets/async_method_bad.ets index 3e84247af8..6283ec1ebf 100644 --- a/ets2panda/test/ast/parser/ets/async_method_bad.ets +++ b/ets2panda/test/ast/parser/ets/async_method_bad.ets @@ -17,6 +17,7 @@ class Test { public async native /* @@ label */bar(): Promise; } -/* @@@ label Error SyntaxError: Native method cannot be async. */ -/* @@? 17:46 Error TypeError: Type 'Promise' is generic but type argument were not provided. */ -/* @@? 17:42 Error TypeError: Return type of async function must be 'Promise'. */ + +/* @@@ label Error Syntax error ESY0116: Native method cannot be async. */ +/* @@? 17:42 Error Semantic error ESE0001: Return type of async function must be 'Promise'. */ +/* @@? 17:46 Error Semantic error ESE0170: Type 'Promise' is generic but type argument were not provided. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/async_this.ets b/ets2panda/test/ast/parser/ets/async_this.ets index 7abb732b25..aa35f35709 100644 --- a/ets2panda/test/ast/parser/ets/async_this.ets +++ b/ets2panda/test/ast/parser/ets/async_this.ets @@ -19,4 +19,4 @@ class A{ } } -/* @@? 17:15 Error SyntaxError: Unexpected 'this' keyword in non-receiver context. */ \ No newline at end of file +/* @@? 17:15 Error Syntax error ESY0240: Unexpected 'this' keyword in non-receiver context. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/await_argument_null.ets b/ets2panda/test/ast/parser/ets/await_argument_null.ets index 80bafac120..297460e100 100644 --- a/ets2panda/test/ast/parser/ets/await_argument_null.ets +++ b/ets2panda/test/ast/parser/ets/await_argument_null.ets @@ -18,6 +18,7 @@ async function foo(): Promise { return /* @@ label1 */null; } -/* @@@ label Error TypeError: Type 'null' can not be awaited, it is not a Promise. */ -/* @@@ label Error TypeError: Type 'null' cannot be assigned to type 'Object' */ -/* @@@ label1 Error TypeError: Type 'null' is not compatible with the enclosing method's return type 'Promise | Object' */ + +/* @@@ label Error Semantic error ESE0303: Type 'null' can not be awaited, it is not a Promise. */ +/* @@@ label Error Semantic error ESE0318: Type 'null' cannot be assigned to type 'Object' */ +/* @@@ label1 Error Semantic error ESE0091: Type 'null' is not compatible with the enclosing method's return type 'Promise | Object' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/await_object_bad.ets b/ets2panda/test/ast/parser/ets/await_object_bad.ets index f7d0995413..ddf0add86e 100644 --- a/ets2panda/test/ast/parser/ets/await_object_bad.ets +++ b/ets2panda/test/ast/parser/ets/await_object_bad.ets @@ -18,5 +18,6 @@ async function foo(): Promise { return /* @@ label1 */null; } -/* @@@ label Error TypeError: Type 'Int' can not be awaited, it is not a Promise. */ -/* @@@ label1 Error TypeError: Type 'null' is not compatible with the enclosing method's return type 'Promise | Object' */ + +/* @@@ label Error Semantic error ESE0303: Type 'Int' can not be awaited, it is not a Promise. */ +/* @@@ label1 Error Semantic error ESE0091: Type 'null' is not compatible with the enclosing method's return type 'Promise | Object' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/await_promise_bad.ets b/ets2panda/test/ast/parser/ets/await_promise_bad.ets index e1d10cf959..539c083f27 100644 --- a/ets2panda/test/ast/parser/ets/await_promise_bad.ets +++ b/ets2panda/test/ast/parser/ets/await_promise_bad.ets @@ -18,5 +18,6 @@ async function foo(): Promise { return /* @@ label1 */null; } -/* @@@ label Error TypeError: Type 'Object' can not be awaited, it is not a Promise. */ -/* @@@ label1 Error TypeError: Type 'null' is not compatible with the enclosing method's return type 'Promise | Object' */ + +/* @@@ label Error Semantic error ESE0303: Type 'Object' can not be awaited, it is not a Promise. */ +/* @@@ label1 Error Semantic error ESE0091: Type 'null' is not compatible with the enclosing method's return type 'Promise | Object' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/call_expression_for_non_functional_type.ets b/ets2panda/test/ast/parser/ets/call_expression_for_non_functional_type.ets index fca951695d..0497b26727 100644 --- a/ets2panda/test/ast/parser/ets/call_expression_for_non_functional_type.ets +++ b/ets2panda/test/ast/parser/ets/call_expression_for_non_functional_type.ets @@ -27,5 +27,6 @@ function main() /* @@ label */b(1, 2) } -/* @@@ label Error TypeError: No static $_invoke method and static $_instantiate method in b. b() is not allowed. */ -/* @@@ label Error TypeError: Type 'Int' has no call signatures. */ + +/* @@@ label Error Semantic error ESE0172: No static $_invoke method and static $_instantiate method in b. b() is not allowed. */ +/* @@@ label Error Semantic error ESE0002: Type 'Int' has no call signatures. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/calls.ets b/ets2panda/test/ast/parser/ets/calls.ets index 13ed2d7b93..a3a796882f 100644 --- a/ets2panda/test/ast/parser/ets/calls.ets +++ b/ets2panda/test/ast/parser/ets/calls.ets @@ -26,4 +26,5 @@ function main(): void { foo(11); } -/* @@@ label Error TypeError: Function with a non void return type must return a value. */ + +/* @@@ label Error Semantic error ESE0103: Function with a non void return type must return a value. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/cast_expressions10.ets b/ets2panda/test/ast/parser/ets/cast_expressions10.ets index 8ac8ebd670..230fd2fb12 100644 --- a/ets2panda/test/ast/parser/ets/cast_expressions10.ets +++ b/ets2panda/test/ast/parser/ets/cast_expressions10.ets @@ -25,6 +25,6 @@ function main(): void { let Long_a: Long[][] = Int_a as Long[][]; } -/* @@? 19:30 Error TypeError: Cannot cast type 'Array>' to 'Array>' */ -/* @@? 20:25 Error TypeError: Cannot cast type 'Array>' to 'Array>' */ -/* @@? 25:26 Error TypeError: Cannot cast type 'Array>' to 'Array>' */ \ No newline at end of file +/* @@? 19:30 Error Semantic error ESE0326: Cannot cast type 'Array>' to 'Array>' */ +/* @@? 20:25 Error Semantic error ESE0326: Cannot cast type 'Array>' to 'Array>' */ +/* @@? 25:26 Error Semantic error ESE0326: Cannot cast type 'Array>' to 'Array>' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/cast_expressions2.ets b/ets2panda/test/ast/parser/ets/cast_expressions2.ets index c624f52ae7..9b73755f08 100644 --- a/ets2panda/test/ast/parser/ets/cast_expressions2.ets +++ b/ets2panda/test/ast/parser/ets/cast_expressions2.ets @@ -20,4 +20,5 @@ function narrowing_reference_test(): void { let A_ = new A(); let B_ = /* @@ label */A_ as B; } -/* @@@ label Error TypeError: Cannot cast type 'A' to 'B' */ + +/* @@@ label Error Semantic error ESE0326: Cannot cast type 'A' to 'B' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/cast_expressions7.ets b/ets2panda/test/ast/parser/ets/cast_expressions7.ets index 7247dfdf88..8a54294613 100644 --- a/ets2panda/test/ast/parser/ets/cast_expressions7.ets +++ b/ets2panda/test/ast/parser/ets/cast_expressions7.ets @@ -27,6 +27,6 @@ function main(): void { let long_a: long[] = int_a as long[]; } -/* @@? 21:16 Error TypeError: Cannot cast type 'Array' to 'Array' */ -/* @@? 22:17 Error TypeError: Cannot cast type 'Array' to 'Array' */ -/* @@? 27:24 Error TypeError: Cannot cast type 'Array' to 'Array' */ \ No newline at end of file +/* @@? 21:16 Error Semantic error ESE0326: Cannot cast type 'Array' to 'Array' */ +/* @@? 22:17 Error Semantic error ESE0326: Cannot cast type 'Array' to 'Array' */ +/* @@? 27:24 Error Semantic error ESE0326: Cannot cast type 'Array' to 'Array' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/cast_expressions9.ets b/ets2panda/test/ast/parser/ets/cast_expressions9.ets index 02e25d9248..d252306a5c 100644 --- a/ets2panda/test/ast/parser/ets/cast_expressions9.ets +++ b/ets2panda/test/ast/parser/ets/cast_expressions9.ets @@ -19,4 +19,4 @@ function main(): void { let long_a: long[][] = int_a as long[][]; } -/* @@? 19:26 Error TypeError: Cannot cast type 'Array>' to 'Array>' */ \ No newline at end of file +/* @@? 19:26 Error Semantic error ESE0326: Cannot cast type 'Array>' to 'Array>' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/circular_class_extends.ets b/ets2panda/test/ast/parser/ets/circular_class_extends.ets index 4cac2e3719..3776b81dfd 100644 --- a/ets2panda/test/ast/parser/ets/circular_class_extends.ets +++ b/ets2panda/test/ast/parser/ets/circular_class_extends.ets @@ -24,4 +24,5 @@ export { m }; // If you want to re-export the class from the namespace: export class c extends m.c {} -/* @@? 25:28 Error TypeError: Class's super type is itself */ + +/* @@? 25:28 Error Semantic error ESE0380: Class's super type is itself */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/circular_in_class_functions.ets b/ets2panda/test/ast/parser/ets/circular_in_class_functions.ets index d128f8bcce..d77b005e30 100644 --- a/ets2panda/test/ast/parser/ets/circular_in_class_functions.ets +++ b/ets2panda/test/ast/parser/ets/circular_in_class_functions.ets @@ -26,8 +26,9 @@ class Test { baz(a: Test, k: keyof Test) {} } -/* @@? 20:9 Error TypeError: No matching call signature for baz(Test, "*1*") */ -/* @@? 20:24 Error TypeError: Type '"*1*"' is not compatible with type '"foo"|"bar"|"baz"' at index 2 */ -/* @@? 23:9 Error TypeError: No matching call signature for baz(Test, "*2*") */ -/* @@? 23:21 Error TypeError: Type '"*2*"' is not compatible with type '"foo"|"bar"|"baz"' at index 2 */ -/* @@? 26:31 Error TypeError: Circular type of reference */ + +/* @@? 20:9 Error Semantic error ESE0127: No matching call signature for baz(Test, "*1*") */ +/* @@? 20:24 Error Semantic error ESE0046: Type '"*1*"' is not compatible with type '"foo"|"bar"|"baz"' at index 2 */ +/* @@? 23:9 Error Semantic error ESE0127: No matching call signature for baz(Test, "*2*") */ +/* @@? 23:21 Error Semantic error ESE0046: Type '"*2*"' is not compatible with type '"foo"|"bar"|"baz"' at index 2 */ +/* @@? 26:31 Error Semantic error ESE0379: Circular type of reference */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/circular_type_in_alias.ets b/ets2panda/test/ast/parser/ets/circular_type_in_alias.ets index 09a0912afd..3a7e12cfbd 100644 --- a/ets2panda/test/ast/parser/ets/circular_type_in_alias.ets +++ b/ets2panda/test/ast/parser/ets/circular_type_in_alias.ets @@ -17,20 +17,21 @@ type Loop> = { [P in keyof T]: U[P] extends boolean ? number : string; }; -/* @@? 16:24 Error TypeError: Circular type alias reference */ -/* @@? 16:38 Error SyntaxError: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ -/* @@? 17:6 Error TypeError: Indexed signatures are not allowed. Use arrays instead! */ -/* @@? 17:10 Error SyntaxError: Field type annotation expected. */ -/* @@? 17:16 Error SyntaxError: Field type annotation expected. */ -/* @@? 17:18 Error SyntaxError: Unexpected token ']'. */ -/* @@? 17:18 Error SyntaxError: Field type annotation expected. */ -/* @@? 17:19 Error SyntaxError: Unexpected token ':'. */ -/* @@? 17:22 Error SyntaxError: Field type annotation expected. */ -/* @@? 17:23 Error TypeError: Indexed signatures are not allowed. Use arrays instead! */ -/* @@? 17:24 Error SyntaxError: Unexpected token ']'. */ -/* @@? 17:26 Error SyntaxError: Unexpected token 'extends'. */ -/* @@? 17:34 Error SyntaxError: boolean is a predefined type, cannot be used as an identifier */ -/* @@? 17:42 Error SyntaxError: Unexpected token '?'. */ -/* @@? 17:44 Error SyntaxError: number is a predefined type, cannot be used as an identifier */ -/* @@? 17:51 Error SyntaxError: Unexpected token ':'. */ -/* @@? 17:53 Error SyntaxError: string is a predefined type, cannot be used as an identifier */ + +/* @@? 16:24 Error Semantic error ESE0311: Circular type alias reference */ +/* @@? 16:38 Error Syntax error ESY177354: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ +/* @@? 17:6 Error Semantic error ESE0343: Indexed signatures are not allowed. Use arrays instead! */ +/* @@? 17:10 Error Syntax error ESY0121: Field type annotation expected. */ +/* @@? 17:16 Error Syntax error ESY0121: Field type annotation expected. */ +/* @@? 17:18 Error Syntax error ESY0227: Unexpected token ']'. */ +/* @@? 17:18 Error Syntax error ESY0121: Field type annotation expected. */ +/* @@? 17:19 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 17:22 Error Syntax error ESY0121: Field type annotation expected. */ +/* @@? 17:23 Error Semantic error ESE0343: Indexed signatures are not allowed. Use arrays instead! */ +/* @@? 17:24 Error Syntax error ESY0227: Unexpected token ']'. */ +/* @@? 17:26 Error Syntax error ESY0227: Unexpected token 'extends'. */ +/* @@? 17:34 Error Syntax error ESY0295: boolean is a predefined type, cannot be used as an identifier */ +/* @@? 17:42 Error Syntax error ESY0227: Unexpected token '?'. */ +/* @@? 17:44 Error Syntax error ESY0295: number is a predefined type, cannot be used as an identifier */ +/* @@? 17:51 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 17:53 Error Syntax error ESY0295: string is a predefined type, cannot be used as an identifier */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/circulary_interface_declaration.ets b/ets2panda/test/ast/parser/ets/circulary_interface_declaration.ets index f3b7579fd5..1375cee768 100644 --- a/ets2panda/test/ast/parser/ets/circulary_interface_declaration.ets +++ b/ets2panda/test/ast/parser/ets/circulary_interface_declaration.ets @@ -21,4 +21,5 @@ interface C extends B {} interface D extends C {} -/* @@? 16:11 Error TypeError: Cyclic inheritance involving A. */ + +/* @@? 16:11 Error Semantic error ESE0310: Cyclic inheritance involving A. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/class-instance-field-redeclaration.ets b/ets2panda/test/ast/parser/ets/class-instance-field-redeclaration.ets index 5724caccac..b257d061f2 100644 --- a/ets2panda/test/ast/parser/ets/class-instance-field-redeclaration.ets +++ b/ets2panda/test/ast/parser/ets/class-instance-field-redeclaration.ets @@ -18,4 +18,5 @@ class C { /* @@ label */foo: int = 20; } -/* @@@ label Error TypeError: Variable 'foo' has already been declared. */ + +/* @@@ label Error Semantic error ESE0351: Variable 'foo' has already been declared. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/class-static-field-redeclaration.ets b/ets2panda/test/ast/parser/ets/class-static-field-redeclaration.ets index 7951f410c9..8ac6dff56e 100644 --- a/ets2panda/test/ast/parser/ets/class-static-field-redeclaration.ets +++ b/ets2panda/test/ast/parser/ets/class-static-field-redeclaration.ets @@ -18,4 +18,5 @@ class C { static /* @@ label */foo: int = 20; } -/* @@@ label Error TypeError: Variable 'foo' has already been declared. */ + +/* @@@ label Error Semantic error ESE0351: Variable 'foo' has already been declared. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/classAsFunctionParam.ets b/ets2panda/test/ast/parser/ets/classAsFunctionParam.ets index a3c567456e..7efe84d050 100644 --- a/ets2panda/test/ast/parser/ets/classAsFunctionParam.ets +++ b/ets2panda/test/ast/parser/ets/classAsFunctionParam.ets @@ -23,6 +23,7 @@ function main(): void { alma(C); } -/* @@? 23:10 Error TypeError: Class or interface or enum 'C' cannot be used as object */ -/* @@? 23:10 Error TypeError: Class name can't be the argument of function or method. */ -/* @@? 23:5 Error TypeError: No matching call signature for alma(C) */ + +/* @@? 23:5 Error Semantic error ESE0127: No matching call signature for alma(C) */ +/* @@? 23:10 Error Semantic error ESE0122: Class name can't be the argument of function or method. */ +/* @@? 23:10 Error Semantic error ESE0294: Class or interface or enum 'C' cannot be used as object */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/class_as_object_1.ets b/ets2panda/test/ast/parser/ets/class_as_object_1.ets index 2adb2ac00f..29ed598ef1 100644 --- a/ets2panda/test/ast/parser/ets/class_as_object_1.ets +++ b/ets2panda/test/ast/parser/ets/class_as_object_1.ets @@ -15,5 +15,7 @@ console.log(Object) -/* @@? 16:13 Error TypeError: Class or interface or enum 'Object' cannot be used as object */ -/* @@? 16:13 Error TypeError: Class name can't be the argument of function or method. */ + +/* @@? 16:13 Error Semantic error ESE0122: Class name can't be the argument of function or method. */ +/* @@? 16:13 Error Semantic error ESE0294: Class or interface or enum 'Object' cannot be used as object */ +/* @@? 16:13 Error Semantic error ESE0122: Class name can't be the argument of function or method. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/class_composite_1.ets b/ets2panda/test/ast/parser/ets/class_composite_1.ets index c3a6a4f585..1889f63d87 100644 --- a/ets2panda/test/ast/parser/ets/class_composite_1.ets +++ b/ets2panda/test/ast/parser/ets/class_composite_1.ets @@ -17,5 +17,6 @@ function main() : void { let x : boolean = {y: false}.y } -/* @@? 17:9 Error TypeError: Class composite must be constructed separately before referring their members. */ -/* @@? 17:23 Error TypeError: need to specify target type for class composite */ + +/* @@? 17:9 Error Semantic error ESE0151: Class composite must be constructed separately before referring their members. */ +/* @@? 17:23 Error Semantic error ESE0062: need to specify target type for class composite */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/class_composite_invalid_target.ets b/ets2panda/test/ast/parser/ets/class_composite_invalid_target.ets index dcf98bfb30..297c34df39 100644 --- a/ets2panda/test/ast/parser/ets/class_composite_invalid_target.ets +++ b/ets2panda/test/ast/parser/ets/class_composite_invalid_target.ets @@ -19,4 +19,5 @@ let obj: A = { x: 123 }; -/* @@? 18:14 Error TypeError: Target type for class composite needs to be an object type, found 'Double|Boolean' */ + +/* @@? 18:14 Error Semantic error ESE0063: Target type for class composite needs to be an object type, found 'Double|Boolean' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/class_interface_enum_only_top_level_1.ets b/ets2panda/test/ast/parser/ets/class_interface_enum_only_top_level_1.ets index 58848afbb6..37cf79d826 100644 --- a/ets2panda/test/ast/parser/ets/class_interface_enum_only_top_level_1.ets +++ b/ets2panda/test/ast/parser/ets/class_interface_enum_only_top_level_1.ets @@ -19,4 +19,5 @@ class A { } } -/* @@@ label Error SyntaxError: Unexpected token. A constructor, method, accessor, or property was expected. */ + +/* @@@ label Error Syntax error ESY0233: Unexpected token. A constructor, method, accessor, or property was expected. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/class_interface_enum_only_top_level_2.ets b/ets2panda/test/ast/parser/ets/class_interface_enum_only_top_level_2.ets index f0052c09b0..8854d5ebf3 100644 --- a/ets2panda/test/ast/parser/ets/class_interface_enum_only_top_level_2.ets +++ b/ets2panda/test/ast/parser/ets/class_interface_enum_only_top_level_2.ets @@ -19,4 +19,5 @@ class A { } } -/* @@@ label Error SyntaxError: Unexpected token. A constructor, method, accessor, or property was expected. */ + +/* @@@ label Error Syntax error ESY0233: Unexpected token. A constructor, method, accessor, or property was expected. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/class_interface_enum_only_top_level_3.ets b/ets2panda/test/ast/parser/ets/class_interface_enum_only_top_level_3.ets index 837f0da4f0..9df4a89858 100644 --- a/ets2panda/test/ast/parser/ets/class_interface_enum_only_top_level_3.ets +++ b/ets2panda/test/ast/parser/ets/class_interface_enum_only_top_level_3.ets @@ -17,4 +17,5 @@ class A { /* @@ label */enum Color { Red, Green, Blue } } -/* @@@ label Error SyntaxError: Unexpected token. A constructor, method, accessor, or property was expected. */ + +/* @@@ label Error Syntax error ESY0233: Unexpected token. A constructor, method, accessor, or property was expected. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/class_interface_enum_only_top_level_5.ets b/ets2panda/test/ast/parser/ets/class_interface_enum_only_top_level_5.ets index 1d7d00c1c8..bcce729583 100644 --- a/ets2panda/test/ast/parser/ets/class_interface_enum_only_top_level_5.ets +++ b/ets2panda/test/ast/parser/ets/class_interface_enum_only_top_level_5.ets @@ -18,4 +18,5 @@ function main() : void /* @@ label */enum Color { Red, Green, Blue } } -/* @@@ label Error SyntaxError: Local enum declaration support is not yet implemented. */ + +/* @@@ label Error Syntax error ESY0040: Illegal start of ENUM expression. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/class_keyword.ets b/ets2panda/test/ast/parser/ets/class_keyword.ets index 93b3062592..d0a40470ab 100644 --- a/ets2panda/test/ast/parser/ets/class_keyword.ets +++ b/ets2panda/test/ast/parser/ets/class_keyword.ets @@ -17,6 +17,7 @@ final kngkgj class B { } -/* @@? 16:7 Error SyntaxError: Unexpected token 'kngkgj'. */ -/* @@? 16:7 Error TypeError: Unresolved reference kngkgj */ -/* @@? 16:14 Error SyntaxError: Unexpected token 'class'. */ + +/* @@? 16:7 Error Syntax error ESY0227: Unexpected token 'kngkgj'. */ +/* @@? 16:7 Error Semantic error ESE0143: Unresolved reference kngkgj */ +/* @@? 16:14 Error Syntax error ESY0227: Unexpected token 'class'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/class_late_initialization_conflict_modifier.ets b/ets2panda/test/ast/parser/ets/class_late_initialization_conflict_modifier.ets index f6d963475f..2acd9c20a9 100644 --- a/ets2panda/test/ast/parser/ets/class_late_initialization_conflict_modifier.ets +++ b/ets2panda/test/ast/parser/ets/class_late_initialization_conflict_modifier.ets @@ -18,7 +18,8 @@ class A { f2!?:number } -/* @@? 17:7 Error SyntaxError: Conflicting modifiers '!' and '?' on field. */ -/* @@? 17:10 Error TypeError: Late-initialized field cannot be nullish types or possibly nullish types. */ -/* @@? 18:7 Error SyntaxError: Conflicting modifiers '!' and '?' on field. */ -/* @@? 18:10 Error TypeError: Late-initialized field cannot be nullish types or possibly nullish types. */ + +/* @@? 17:7 Error Syntax error ESY0127: Conflicting modifiers '!' and '?' on field. */ +/* @@? 17:10 Error Semantic error ESE0376: Late-initialized field cannot be nullish types or possibly nullish types. */ +/* @@? 18:7 Error Syntax error ESY0127: Conflicting modifiers '!' and '?' on field. */ +/* @@? 18:10 Error Semantic error ESE0376: Late-initialized field cannot be nullish types or possibly nullish types. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/class_late_initialization_with_initalizer_01.ets b/ets2panda/test/ast/parser/ets/class_late_initialization_with_initalizer_01.ets index 7f42ec5dc7..6d3ece2848 100644 --- a/ets2panda/test/ast/parser/ets/class_late_initialization_with_initalizer_01.ets +++ b/ets2panda/test/ast/parser/ets/class_late_initialization_with_initalizer_01.ets @@ -16,4 +16,5 @@ class A { f!: string = "abc" } -/* @@? 17:6 Error SyntaxError: Late-initialized field cannot have default value. */ + +/* @@? 17:6 Error Syntax error ESY0304: Late-initialized field cannot have default value. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/class_late_initialization_with_initalizer_02.ets b/ets2panda/test/ast/parser/ets/class_late_initialization_with_initalizer_02.ets index d37fc87aa7..58058d8838 100644 --- a/ets2panda/test/ast/parser/ets/class_late_initialization_with_initalizer_02.ets +++ b/ets2panda/test/ast/parser/ets/class_late_initialization_with_initalizer_02.ets @@ -17,7 +17,8 @@ interface A { f!: string = "abc" } -/* @@? 17:16 Error SyntaxError: Interface member initialization is prohibited. */ -/* @@? 17:18 Error SyntaxError: Unexpected token, expected ','. */ -/* @@? 17:18 Error SyntaxError: Identifier expected, got 'string literal'. */ -/* @@? 18:1 Error SyntaxError: Identifier expected. */ + +/* @@? 17:16 Error Syntax error ESY0180: Interface member initialization is prohibited. */ +/* @@? 17:18 Error Syntax error ESY0228: Unexpected token, expected ','. */ +/* @@? 17:18 Error Syntax error ESY0224: Identifier expected, got 'string literal'. */ +/* @@? 18:1 Error Syntax error ESY0122: Identifier expected. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/class_late_initialization_with_initalizer_03.ets b/ets2panda/test/ast/parser/ets/class_late_initialization_with_initalizer_03.ets index 5e773322d4..3b1ed80631 100644 --- a/ets2panda/test/ast/parser/ets/class_late_initialization_with_initalizer_03.ets +++ b/ets2panda/test/ast/parser/ets/class_late_initialization_with_initalizer_03.ets @@ -18,5 +18,6 @@ class B { f!: A = undefined; }; -/* @@? 18:6 Error SyntaxError: Late-initialized field cannot have default value. */ -/* @@? 18:9 Error TypeError: Late-initialized field cannot be nullish types or possibly nullish types. */ + +/* @@? 18:6 Error Syntax error ESY0304: Late-initialized field cannot have default value. */ +/* @@? 18:9 Error Semantic error ESE0376: Late-initialized field cannot be nullish types or possibly nullish types. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/class_late_initialization_with_invalid_type_01.ets b/ets2panda/test/ast/parser/ets/class_late_initialization_with_invalid_type_01.ets index fc9d3639e5..5ab72df312 100644 --- a/ets2panda/test/ast/parser/ets/class_late_initialization_with_invalid_type_01.ets +++ b/ets2panda/test/ast/parser/ets/class_late_initialization_with_invalid_type_01.ets @@ -20,7 +20,7 @@ class A { f4!: number | null } -/* @@? 17:10 Error TypeError: Late-initialized field cannot be nullish types or possibly nullish types. */ -/* @@? 18:10 Error TypeError: Late-initialized field cannot be nullish types or possibly nullish types. */ -/* @@? 19:10 Error TypeError: Late-initialized field cannot be nullish types or possibly nullish types. */ -/* @@? 20:10 Error TypeError: Late-initialized field cannot be nullish types or possibly nullish types. */ \ No newline at end of file +/* @@? 17:10 Error Semantic error ESE0376: Late-initialized field cannot be nullish types or possibly nullish types. */ +/* @@? 18:10 Error Semantic error ESE0376: Late-initialized field cannot be nullish types or possibly nullish types. */ +/* @@? 19:10 Error Semantic error ESE0376: Late-initialized field cannot be nullish types or possibly nullish types. */ +/* @@? 20:10 Error Semantic error ESE0376: Late-initialized field cannot be nullish types or possibly nullish types. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/class_late_initialization_with_invalid_type_02.ets b/ets2panda/test/ast/parser/ets/class_late_initialization_with_invalid_type_02.ets index 080bad8136..9fe3cd8d55 100644 --- a/ets2panda/test/ast/parser/ets/class_late_initialization_with_invalid_type_02.ets +++ b/ets2panda/test/ast/parser/ets/class_late_initialization_with_invalid_type_02.ets @@ -25,8 +25,8 @@ class B { f3!: T | null // cte } -/* @@? 17:10 Error TypeError: Late-initialized field cannot be nullish types or possibly nullish types. */ -/* @@? 18:10 Error TypeError: Late-initialized field cannot be nullish types or possibly nullish types. */ -/* @@? 19:10 Error TypeError: Late-initialized field cannot be nullish types or possibly nullish types. */ -/* @@? 24:10 Error TypeError: Late-initialized field cannot be nullish types or possibly nullish types. */ -/* @@? 25:10 Error TypeError: Late-initialized field cannot be nullish types or possibly nullish types. */ \ No newline at end of file +/* @@? 17:10 Error Semantic error ESE0376: Late-initialized field cannot be nullish types or possibly nullish types. */ +/* @@? 18:10 Error Semantic error ESE0376: Late-initialized field cannot be nullish types or possibly nullish types. */ +/* @@? 19:10 Error Semantic error ESE0376: Late-initialized field cannot be nullish types or possibly nullish types. */ +/* @@? 24:10 Error Semantic error ESE0376: Late-initialized field cannot be nullish types or possibly nullish types. */ +/* @@? 25:10 Error Semantic error ESE0376: Late-initialized field cannot be nullish types or possibly nullish types. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/class_late_initialization_with_invalid_type_03.ets b/ets2panda/test/ast/parser/ets/class_late_initialization_with_invalid_type_03.ets index 59ae593755..11f75ab6f2 100644 --- a/ets2panda/test/ast/parser/ets/class_late_initialization_with_invalid_type_03.ets +++ b/ets2panda/test/ast/parser/ets/class_late_initialization_with_invalid_type_03.ets @@ -33,5 +33,6 @@ class E extends A{ f1!: T // cte } -/* @@? 17:10 Error TypeError: Late-initialized field cannot be nullish types or possibly nullish types. */ -/* @@? 33:10 Error TypeError: Late-initialized field cannot be nullish types or possibly nullish types. */ + +/* @@? 17:10 Error Semantic error ESE0376: Late-initialized field cannot be nullish types or possibly nullish types. */ +/* @@? 33:10 Error Semantic error ESE0376: Late-initialized field cannot be nullish types or possibly nullish types. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/class_late_initialization_with_invalid_type_04.ets b/ets2panda/test/ast/parser/ets/class_late_initialization_with_invalid_type_04.ets index 876ca3f3af..c49c2c186c 100644 --- a/ets2panda/test/ast/parser/ets/class_late_initialization_with_invalid_type_04.ets +++ b/ets2panda/test/ast/parser/ets/class_late_initialization_with_invalid_type_04.ets @@ -34,4 +34,5 @@ class E implements A{ } -/* @@? 33:10 Error TypeError: Late-initialized field cannot be nullish types or possibly nullish types. */ + +/* @@? 33:10 Error Semantic error ESE0376: Late-initialized field cannot be nullish types or possibly nullish types. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/class_optional_property.ets b/ets2panda/test/ast/parser/ets/class_optional_property.ets index cdcd21bb99..d470b2cf6f 100644 --- a/ets2panda/test/ast/parser/ets/class_optional_property.ets +++ b/ets2panda/test/ast/parser/ets/class_optional_property.ets @@ -17,4 +17,5 @@ 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' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/class_property_access.ets b/ets2panda/test/ast/parser/ets/class_property_access.ets index a233467157..34eb9742f3 100644 --- a/ets2panda/test/ast/parser/ets/class_property_access.ets +++ b/ets2panda/test/ast/parser/ets/class_property_access.ets @@ -25,4 +25,5 @@ class outer { } } -/* @@@ label Error SyntaxError: Unexpected token. A constructor, method, accessor, or property was expected. */ + +/* @@@ label Error Syntax error ESY0233: Unexpected token. A constructor, method, accessor, or property was expected. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/class_static_late_initialization_assignment_error.ets b/ets2panda/test/ast/parser/ets/class_static_late_initialization_assignment_error.ets index 2dd6dec533..217fddb4f7 100644 --- a/ets2panda/test/ast/parser/ets/class_static_late_initialization_assignment_error.ets +++ b/ets2panda/test/ast/parser/ets/class_static_late_initialization_assignment_error.ets @@ -17,4 +17,5 @@ class A{ static f!:string } -/* @@? 17:13 Error SyntaxError: Late-initialized field cannot be defined as static. */ + +/* @@? 17:13 Error Syntax error ESY0303: Late-initialized field cannot be defined as static. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/class_variable_empty.ets b/ets2panda/test/ast/parser/ets/class_variable_empty.ets index cb91389b8d..fedfad26b6 100644 --- a/ets2panda/test/ast/parser/ets/class_variable_empty.ets +++ b/ets2panda/test/ast/parser/ets/class_variable_empty.ets @@ -21,7 +21,8 @@ function main(): void { } arktest.assertTrue(a != null) } -/* @@? 18:5 Error SyntaxError: Illegal start of CLASS expression. */ -/* @@? 19:12 Error TypeError: Cannot find type 'A'. */ -/* @@? 19:20 Error TypeError: Cannot find type 'A'. */ -/* @@? 22:22 Error TypeError: Unresolved reference a */ + +/* @@? 18:5 Error Syntax error ESY0040: Illegal start of CLASS expression. */ +/* @@? 19:12 Error Semantic error ESE0371: Cannot find type 'A'. */ +/* @@? 19:20 Error Semantic error ESE0371: Cannot find type 'A'. */ +/* @@? 22:22 Error Semantic error ESE0143: Unresolved reference a */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/comma_only_in_for.ets b/ets2panda/test/ast/parser/ets/comma_only_in_for.ets index 049e5d2b56..20f70004e8 100644 --- a/ets2panda/test/ast/parser/ets/comma_only_in_for.ets +++ b/ets2panda/test/ast/parser/ets/comma_only_in_for.ets @@ -16,4 +16,5 @@ let x = 0 x = (++x/* @@ label */, x++) -/* @@@ label Error SyntaxError: Comma operator is supported only in 'for' loops. */ + +/* @@@ label Error Syntax error ESY133681: Comma operator is supported only in 'for' loops. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/comma_only_in_for_2.ets b/ets2panda/test/ast/parser/ets/comma_only_in_for_2.ets index 4b39ce7534..60882286be 100644 --- a/ets2panda/test/ast/parser/ets/comma_only_in_for_2.ets +++ b/ets2panda/test/ast/parser/ets/comma_only_in_for_2.ets @@ -16,4 +16,5 @@ let x = 10 let y = (x++/* @@ label */, 2, 44, x+10) -/* @@@ label Error SyntaxError: Comma operator is supported only in 'for' loops. */ + +/* @@@ label Error Syntax error ESY133681: Comma operator is supported only in 'for' loops. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/constFloatInSwitch.ets b/ets2panda/test/ast/parser/ets/constFloatInSwitch.ets index 9b252bca18..f60629c418 100644 --- a/ets2panda/test/ast/parser/ets/constFloatInSwitch.ets +++ b/ets2panda/test/ast/parser/ets/constFloatInSwitch.ets @@ -31,5 +31,6 @@ function main(): void { } } -/* @@@ label1 Error TypeError: Type 'void' is not compatible with the enclosing method's return type 'Int' */ -/* @@? 25:33 Error TypeError: Switch case type 'double' is not comparable to discriminant type 'int' */ + +/* @@@ label1 Error Semantic error ESE0091: Type 'void' is not compatible with the enclosing method's return type 'Int' */ +/* @@? 25:33 Error Semantic error ESE0262: Switch case type 'double' is not comparable to discriminant type 'int' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/constant_expression_divide_zero.ets b/ets2panda/test/ast/parser/ets/constant_expression_divide_zero.ets index 56d7728f42..2dc8d568ea 100644 --- a/ets2panda/test/ast/parser/ets/constant_expression_divide_zero.ets +++ b/ets2panda/test/ast/parser/ets/constant_expression_divide_zero.ets @@ -25,5 +25,6 @@ enum Color { } -/* @@? 20:14 Error SyntaxError: Division by zero is not allowed. */ -/* @@? 24:11 Error SyntaxError: Division by zero is not allowed. */ + +/* @@? 20:14 Error Syntax error ESY0273: Division by zero is not allowed. */ +/* @@? 24:11 Error Syntax error ESY0273: Division by zero is not allowed. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/constructorFunctionType_n.ets b/ets2panda/test/ast/parser/ets/constructorFunctionType_n.ets index b5087a482b..66cd64183a 100644 --- a/ets2panda/test/ast/parser/ets/constructorFunctionType_n.ets +++ b/ets2panda/test/ast/parser/ets/constructorFunctionType_n.ets @@ -18,4 +18,5 @@ class Person { } type PersonCtor = new (name: string, age: number) => Person -/* @@? 19:1 Error SyntaxError: Constructor function types are not supported. */ + +/* @@? 19:1 Error Syntax error ESY93489: Constructor function types are not supported. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/constructor_default_super.ets b/ets2panda/test/ast/parser/ets/constructor_default_super.ets index cc891353b4..2e1b6ab3ee 100644 --- a/ets2panda/test/ast/parser/ets/constructor_default_super.ets +++ b/ets2panda/test/ast/parser/ets/constructor_default_super.ets @@ -20,4 +20,5 @@ class Base { class Derived extends Base { } // Discussion about change that phrase #23218 -/* @@? 20:29 Error TypeError: Must call super constructor */ + +/* @@? 20:29 Error Semantic error ESE0192: Must call super constructor */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/constructor_functionbody_nullptr.ets b/ets2panda/test/ast/parser/ets/constructor_functionbody_nullptr.ets index 394fe76b37..03bc8c8a1a 100644 --- a/ets2panda/test/ast/parser/ets/constructor_functionbody_nullptr.ets +++ b/ets2panda/test/ast/parser/ets/constructor_functionbody_nullptr.ets @@ -17,4 +17,5 @@ class A { constructor() } -/* @@? 17:14 Error TypeError: Only abstract or native methods can't have body. */ + +/* @@? 17:14 Error Semantic error ESE0017: Only abstract or native methods can't have body. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/constructor_super_call2.ets b/ets2panda/test/ast/parser/ets/constructor_super_call2.ets index d97df6e49e..11c7de1cd4 100644 --- a/ets2panda/test/ast/parser/ets/constructor_super_call2.ets +++ b/ets2panda/test/ast/parser/ets/constructor_super_call2.ets @@ -23,4 +23,5 @@ class B extends A { } } -/* @@@ label Error TypeError: Must call super constructor */ + +/* @@@ label Error Semantic error ESE0192: Must call super constructor */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/constructor_type_inference_crash.ets b/ets2panda/test/ast/parser/ets/constructor_type_inference_crash.ets index 6b09631bfb..93b4b989ed 100644 --- a/ets2panda/test/ast/parser/ets/constructor_type_inference_crash.ets +++ b/ets2panda/test/ast/parser/ets/constructor_type_inference_crash.ets @@ -20,8 +20,9 @@ class C { } let c = new C(10, 'foo'); -/* @@? 17:14 Error TypeError: Only abstract or native methods can't have body. */ -/* @@? 19:3 Error TypeError: No matching call signature for constructor */ -/* @@? 19:19 Error TypeError: Cannot find type 'xny'. */ -/* @@? 19:28 Error TypeError: Cannot find type 'xny'. */ + +/* @@? 17:14 Error Semantic error ESE0017: Only abstract or native methods can't have body. */ +/* @@? 19:3 Error Semantic error ESE0204: No matching call signature for constructor */ +/* @@? 19:19 Error Semantic error ESE0371: Cannot find type 'xny'. */ +/* @@? 19:28 Error Semantic error ESE0371: Cannot find type 'xny'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/constructor_type_parameters.ets b/ets2panda/test/ast/parser/ets/constructor_type_parameters.ets index ff1194075b..bf61caf38c 100644 --- a/ets2panda/test/ast/parser/ets/constructor_type_parameters.ets +++ b/ets2panda/test/ast/parser/ets/constructor_type_parameters.ets @@ -17,4 +17,5 @@ class C { constructor(x: T) {} } -/* @@? 17:17 Error SyntaxError: Constructor should not have type parameters. */ + +/* @@? 17:17 Error Syntax error ESY0330: Constructor should not have type parameters. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/constructor_with_return_1.ets b/ets2panda/test/ast/parser/ets/constructor_with_return_1.ets index c394db0309..c01ac57b4d 100644 --- a/ets2panda/test/ast/parser/ets/constructor_with_return_1.ets +++ b/ets2panda/test/ast/parser/ets/constructor_with_return_1.ets @@ -22,4 +22,5 @@ class A { } } -/* @@@ label Error TypeError: Return statement with expression isn't allowed in constructor. */ + +/* @@@ label Error Semantic error ESE0033: Return statement with expression isn't allowed in constructor. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/constructor_with_return_3.ets b/ets2panda/test/ast/parser/ets/constructor_with_return_3.ets index c0275b2ad5..888460bfe6 100644 --- a/ets2panda/test/ast/parser/ets/constructor_with_return_3.ets +++ b/ets2panda/test/ast/parser/ets/constructor_with_return_3.ets @@ -22,4 +22,5 @@ class A { } } -/* @@@ label Error SyntaxError: Type annotation isn't allowed for constructor. */ + +/* @@@ label Error Syntax error ESY0140: Type annotation isn't allowed for constructor. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/constructors.ets b/ets2panda/test/ast/parser/ets/constructors.ets index 7a9155c470..cd91ea4628 100644 --- a/ets2panda/test/ast/parser/ets/constructors.ets +++ b/ets2panda/test/ast/parser/ets/constructors.ets @@ -34,4 +34,5 @@ class I1 extends /* @@ label */I { } } -/* @@@ label Error TypeError: Cannot inherit with 'final' modifier. */ + +/* @@@ label Error Semantic error ESE0178: Cannot inherit with 'final' modifier. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/continue_while_target_outside_lambda.ets b/ets2panda/test/ast/parser/ets/continue_while_target_outside_lambda.ets index 77a0f430c3..03b43ab8ed 100644 --- a/ets2panda/test/ast/parser/ets/continue_while_target_outside_lambda.ets +++ b/ets2panda/test/ast/parser/ets/continue_while_target_outside_lambda.ets @@ -29,4 +29,5 @@ function main(): void { } } -/* @@? 26:17 Error TypeError: Continue or break target can't be outside the function */ + +/* @@? 26:17 Error Semantic error ESE49316: Continue or break target can't be outside the function */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/cycle_constructor.ets b/ets2panda/test/ast/parser/ets/cycle_constructor.ets index 39de52dd45..b18e93b1e3 100644 --- a/ets2panda/test/ast/parser/ets/cycle_constructor.ets +++ b/ets2panda/test/ast/parser/ets/cycle_constructor.ets @@ -29,7 +29,7 @@ class B extends A { } } -/* @@? 28:9 Error TypeError: Expected 0 arguments, got 1. */ -/* @@? 28:9 Error TypeError: No matching call signature for cycle_constructor.B(Int) */ -/* @@? 28:9 Error TypeError: No matching call signature for constructor */ -/* @@? 28:14 Error TypeError: Using super is not allowed in constructor */ \ No newline at end of file +/* @@? 28:9 Error Semantic error ESE0124: Expected 0 arguments, got 1. */ +/* @@? 28:9 Error Semantic error ESE0127: No matching call signature for cycle_constructor.B(Int) */ +/* @@? 28:9 Error Semantic error ESE0204: No matching call signature for constructor */ +/* @@? 28:14 Error Semantic error ESE0235: Using super is not allowed in constructor */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/decl_in_param.ets b/ets2panda/test/ast/parser/ets/decl_in_param.ets index 39e7ac9b8f..a8e1fbb130 100644 --- a/ets2panda/test/ast/parser/ets/decl_in_param.ets +++ b/ets2panda/test/ast/parser/ets/decl_in_param.ets @@ -19,6 +19,7 @@ class C{ constructor(public m:number) {} m(public x:number) {} } -/* @@? 16:12 Error SyntaxError: Declaring fields in parameter list is not supported */ -/* @@? 19:17 Error SyntaxError: Declaring fields in parameter list is not supported */ -/* @@? 20:7 Error SyntaxError: Declaring fields in parameter list is not supported */ + +/* @@? 16:12 Error Syntax error ESY0319: Declaring fields in parameter list is not supported */ +/* @@? 19:17 Error Syntax error ESY0319: Declaring fields in parameter list is not supported */ +/* @@? 20:7 Error Syntax error ESY0319: Declaring fields in parameter list is not supported */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/declare_ambient_context.ets b/ets2panda/test/ast/parser/ets/declare_ambient_context.ets index f7284c2aee..8d9ba1c762 100644 --- a/ets2panda/test/ast/parser/ets/declare_ambient_context.ets +++ b/ets2panda/test/ast/parser/ets/declare_ambient_context.ets @@ -17,4 +17,5 @@ declare namespace A{ declare function foo(): void } -/* @@? 17:5 Error SyntaxError: A 'declare' modifier cannot be used in an already ambient context. */ + +/* @@? 17:5 Error Syntax error ESY0104: A 'declare' modifier cannot be used in an already ambient context. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/declare_annotation.ets b/ets2panda/test/ast/parser/ets/declare_annotation.ets index ba73fcc9ba..7ab96bee62 100644 --- a/ets2panda/test/ast/parser/ets/declare_annotation.ets +++ b/ets2panda/test/ast/parser/ets/declare_annotation.ets @@ -27,12 +27,13 @@ class A{ @ClassAuthor({authorName: "22"}) foo3() -/* @@? 17:7 Error SyntaxError: Missing type annotation for property 'au'. */ -/* @@? 17:7 Error SyntaxError: Identifier expected, got '`'. */ -/* @@? 21:6 Error TypeError: The required field 'au' must be specified. Fields without default values cannot be omitted. */ -/* @@? 24:6 Error TypeError: Annotation 'ClassAuthor' requires multiple fields to be specified. */ -/* @@? 24:18 Error TypeError: Invalid annotation field type. Only numeric, boolean, string, enum, or arrays of these types are permitted for annotation fields. */ -/* @@? 27:6 Error TypeError: The required field 'au' must be specified. Fields without default values cannot be omitted. */ -/* @@? 27:19 Error TypeError: The parameter 'authorName' does not match any declared property in the annotation 'ClassAuthor'. */ -/* @@? 28:9 Error TypeError: Only abstract or native methods can't have body. */ -/* @@? 39:1 Error SyntaxError: Expected '}', got 'end of stream'. */ + +/* @@? 17:7 Error Syntax error ESY0001: Missing type annotation for property 'au'. */ +/* @@? 17:7 Error Syntax error ESY0224: Identifier expected, got '`'. */ +/* @@? 21:6 Error Semantic error ESE0044: The required field 'au' must be specified. Fields without default values cannot be omitted. */ +/* @@? 24:6 Error Semantic error ESE0043: Annotation 'ClassAuthor' requires multiple fields to be specified. */ +/* @@? 24:18 Error Semantic error ESE0042: Invalid annotation field type. Only numeric, boolean, string, enum, or arrays of these types are permitted for annotation fields. */ +/* @@? 27:6 Error Semantic error ESE0044: The required field 'au' must be specified. Fields without default values cannot be omitted. */ +/* @@? 27:19 Error Semantic error ESE0045: The parameter 'authorName' does not match any declared property in the annotation 'ClassAuthor'. */ +/* @@? 28:9 Error Semantic error ESE0017: Only abstract or native methods can't have body. */ +/* @@? 39:79 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/declare_class_bad_1.ets b/ets2panda/test/ast/parser/ets/declare_class_bad_1.ets index 29c95eb7e7..5b33f5d4dd 100644 --- a/ets2panda/test/ast/parser/ets/declare_class_bad_1.ets +++ b/ets2panda/test/ast/parser/ets/declare_class_bad_1.ets @@ -18,6 +18,7 @@ declare class A { /* @@ label */foo(p: string): double; } -/* @@@ label Error SyntaxError: Initializers are not allowed in ambient contexts. */ -/* @@? 17:18 Error TypeError: Initializers are not allowed in ambient contexts: f1 */ -/* @@? 17:18 Error TypeError: Type 'Int' cannot be assigned to type 'String' */ + +/* @@? 17:18 Error Semantic error ESE0153: Initializers are not allowed in ambient contexts: f1 */ +/* @@? 17:18 Error Semantic error ESE0318: Type 'Int' cannot be assigned to type 'String' */ +/* @@@ label Error Syntax error ESY0125: Initializers are not allowed in ambient contexts. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/declare_class_bad_2.ets b/ets2panda/test/ast/parser/ets/declare_class_bad_2.ets index 43605d1ef9..fdf2ef5c09 100644 --- a/ets2panda/test/ast/parser/ets/declare_class_bad_2.ets +++ b/ets2panda/test/ast/parser/ets/declare_class_bad_2.ets @@ -18,4 +18,5 @@ declare class A { foo(p: string): void /* @@ label */{} } -/* @@@ label Error TypeError: Native, Abstract and Declare methods cannot have body. */ + +/* @@@ label Error Semantic error ESE0083: Native, Abstract and Declare methods cannot have body. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/declare_class_bad_3.ets b/ets2panda/test/ast/parser/ets/declare_class_bad_3.ets index d826e1d205..fda0698a7e 100644 --- a/ets2panda/test/ast/parser/ets/declare_class_bad_3.ets +++ b/ets2panda/test/ast/parser/ets/declare_class_bad_3.ets @@ -18,6 +18,7 @@ declare class A { /* @@ label */static foo(p: string): double; } -/* @@@ label Error SyntaxError: Initializers are not allowed in ambient contexts. */ -/* @@? 17:25 Error TypeError: Initializers are not allowed in ambient contexts: f1 */ -/* @@? 17:25 Error TypeError: Type 'Int' cannot be assigned to type 'String' */ + +/* @@? 17:25 Error Semantic error ESE0153: Initializers are not allowed in ambient contexts: f1 */ +/* @@? 17:25 Error Semantic error ESE0318: Type 'Int' cannot be assigned to type 'String' */ +/* @@@ label Error Syntax error ESY0125: Initializers are not allowed in ambient contexts. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/declare_class_bad_4.ets b/ets2panda/test/ast/parser/ets/declare_class_bad_4.ets index 6169ced07b..de98e6fbdd 100644 --- a/ets2panda/test/ast/parser/ets/declare_class_bad_4.ets +++ b/ets2panda/test/ast/parser/ets/declare_class_bad_4.ets @@ -18,4 +18,5 @@ declare class A { static foo(p: string): void /* @@ label */{} } -/* @@@ label Error TypeError: Native, Abstract and Declare methods cannot have body. */ + +/* @@@ label Error Semantic error ESE0083: Native, Abstract and Declare methods cannot have body. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/declare_class_bad_5.ets b/ets2panda/test/ast/parser/ets/declare_class_bad_5.ets index 00ddb7fdf7..62d665e89c 100644 --- a/ets2panda/test/ast/parser/ets/declare_class_bad_5.ets +++ b/ets2panda/test/ast/parser/ets/declare_class_bad_5.ets @@ -50,15 +50,15 @@ declare class E { internal [index: number]: number } -/* @@? 17:3 Error SyntaxError: Methods or fields should not be decorated with private in ambient class. */ -/* @@? 18:3 Error SyntaxError: Methods or fields should not be decorated with internal in ambient class. */ -/* @@? 19:3 Error SyntaxError: Methods or fields should not be decorated with private in ambient class. */ -/* @@? 20:3 Error SyntaxError: Methods or fields should not be decorated with internal in ambient class. */ -/* @@? 21:3 Error SyntaxError: Methods or fields should not be decorated with private in ambient class. */ -/* @@? 22:3 Error SyntaxError: Methods or fields should not be decorated with internal in ambient class. */ -/* @@? 23:3 Error SyntaxError: Methods or fields should not be decorated with private in ambient class. */ -/* @@? 24:3 Error SyntaxError: Methods or fields should not be decorated with internal in ambient class. */ -/* @@? 38:3 Error SyntaxError: Methods or fields should not be decorated with private in ambient class. */ -/* @@? 42:3 Error SyntaxError: Methods or fields should not be decorated with internal in ambient class. */ -/* @@? 46:3 Error SyntaxError: Methods or fields should not be decorated with private in ambient class. */ -/* @@? 50:3 Error SyntaxError: Methods or fields should not be decorated with internal in ambient class. */ \ No newline at end of file +/* @@? 17:3 Error Syntax error ESY0238: Methods or fields should not be decorated with private in ambient class. */ +/* @@? 18:3 Error Syntax error ESY0238: Methods or fields should not be decorated with internal in ambient class. */ +/* @@? 19:3 Error Syntax error ESY0238: Methods or fields should not be decorated with private in ambient class. */ +/* @@? 20:3 Error Syntax error ESY0238: Methods or fields should not be decorated with internal in ambient class. */ +/* @@? 21:3 Error Syntax error ESY0238: Methods or fields should not be decorated with private in ambient class. */ +/* @@? 22:3 Error Syntax error ESY0238: Methods or fields should not be decorated with internal in ambient class. */ +/* @@? 23:3 Error Syntax error ESY0238: Methods or fields should not be decorated with private in ambient class. */ +/* @@? 24:3 Error Syntax error ESY0238: Methods or fields should not be decorated with internal in ambient class. */ +/* @@? 38:3 Error Syntax error ESY0238: Methods or fields should not be decorated with private in ambient class. */ +/* @@? 42:3 Error Syntax error ESY0238: Methods or fields should not be decorated with internal in ambient class. */ +/* @@? 46:3 Error Syntax error ESY0238: Methods or fields should not be decorated with private in ambient class. */ +/* @@? 50:3 Error Syntax error ESY0238: Methods or fields should not be decorated with internal in ambient class. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/declare_class_neg.ets b/ets2panda/test/ast/parser/ets/declare_class_neg.ets index 9426627656..a386c590fd 100644 --- a/ets2panda/test/ast/parser/ets/declare_class_neg.ets +++ b/ets2panda/test/ast/parser/ets/declare_class_neg.ets @@ -19,6 +19,7 @@ declare class A { class B { declare/* @@ label1 */ constructor() } -/* @@? 17:10 Error SyntaxError: Field type annotation expected. */ -/* @@? 20:10 Error SyntaxError: Field type annotation expected. */ -/* @@? 20:37 Error TypeError: Only abstract or native methods can't have body. */ + +/* @@? 17:10 Error Syntax error ESY0121: Field type annotation expected. */ +/* @@? 20:10 Error Syntax error ESY0121: Field type annotation expected. */ +/* @@? 20:37 Error Semantic error ESE0017: Only abstract or native methods can't have body. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/declare_func_bad.ets b/ets2panda/test/ast/parser/ets/declare_func_bad.ets index e237b1dc8b..695f32f998 100644 --- a/ets2panda/test/ast/parser/ets/declare_func_bad.ets +++ b/ets2panda/test/ast/parser/ets/declare_func_bad.ets @@ -15,4 +15,5 @@ declare function foo(p: string): void /* @@ label */{} -/* @@@ label Error TypeError: Native, Abstract and Declare methods cannot have body. */ + +/* @@@ label Error Semantic error ESE0083: Native, Abstract and Declare methods cannot have body. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/declare_namespace_5.ets b/ets2panda/test/ast/parser/ets/declare_namespace_5.ets index 0b586d7daf..6f9f5c36d5 100644 --- a/ets2panda/test/ast/parser/ets/declare_namespace_5.ets +++ b/ets2panda/test/ast/parser/ets/declare_namespace_5.ets @@ -48,12 +48,13 @@ class B { } } -/* @@? 17:5 Error SyntaxError: Namespace is allowed only at the top level or inside a namespace. */ -/* @@? 18:9 Error TypeError: Unresolved reference dfdfsfdf */ -/* @@? 20:5 Error SyntaxError: Namespace is allowed only at the top level or inside a namespace. */ -/* @@? 23:20 Error TypeError: Unresolved reference foo */ -/* @@? 27:11 Error TypeError: Property 'getInstance' does not exist on type 'B' */ -/* @@? 36:5 Error SyntaxError: Namespace is allowed only at the top level or inside a namespace. */ -/* @@? 38:13 Error SyntaxError: Field type annotation expected. */ -/* @@? 39:20 Error TypeError: This expression is not callable. */ -/* @@? 43:11 Error TypeError: Property 'getInstance' does not exist on type 'B' */ + +/* @@? 17:5 Error Syntax error ESY0134: Namespace is allowed only at the top level or inside a namespace. */ +/* @@? 18:9 Error Semantic error ESE0143: Unresolved reference dfdfsfdf */ +/* @@? 20:5 Error Syntax error ESY0134: Namespace is allowed only at the top level or inside a namespace. */ +/* @@? 23:20 Error Semantic error ESE0143: Unresolved reference foo */ +/* @@? 27:11 Error Semantic error ESE0087: Property 'getInstance' does not exist on type 'B' */ +/* @@? 36:5 Error Syntax error ESY0134: Namespace is allowed only at the top level or inside a namespace. */ +/* @@? 38:13 Error Syntax error ESY0121: Field type annotation expected. */ +/* @@? 39:20 Error Semantic error ESE0289: This expression is not callable. */ +/* @@? 43:11 Error Semantic error ESE0087: Property 'getInstance' does not exist on type 'B' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/default_parameter2.ets b/ets2panda/test/ast/parser/ets/default_parameter2.ets index be81d6ef84..dc630fee1b 100644 --- a/ets2panda/test/ast/parser/ets/default_parameter2.ets +++ b/ets2panda/test/ast/parser/ets/default_parameter2.ets @@ -28,5 +28,6 @@ function foo(a : int) : int return a; } -/* @@@ label Error TypeError: Expected 1 arguments, got 0. */ -/* @@@ label Error TypeError: No matching call signature */ + +/* @@@ label Error Semantic error ESE0124: Expected 1 arguments, got 0. */ +/* @@@ label Error Semantic error ESE0128: No matching call signature */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/default_parameter3.ets b/ets2panda/test/ast/parser/ets/default_parameter3.ets index 80c76508f8..7689866544 100644 --- a/ets2panda/test/ast/parser/ets/default_parameter3.ets +++ b/ets2panda/test/ast/parser/ets/default_parameter3.ets @@ -18,4 +18,5 @@ function foo(a : int = 10, /* @@ label */b : int, c : int = 15) : int return a + b; } -/* @@@ label Error SyntaxError: A required parameter cannot follow an optional parameter. */ + +/* @@@ label Error Syntax error ESY0219: A required parameter cannot follow an optional parameter. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/default_parameters_multi_error.ets b/ets2panda/test/ast/parser/ets/default_parameters_multi_error.ets index 3f4edbb1c7..cacd86c69e 100644 --- a/ets2panda/test/ast/parser/ets/default_parameters_multi_error.ets +++ b/ets2panda/test/ast/parser/ets/default_parameters_multi_error.ets @@ -22,5 +22,5 @@ function foo2 (x: int, y: int = 0, ...r: int[]): int { return 4; } -/* @@? 16:28 Error SyntaxError: Required parameter follows default parameter(s). */ -/* @@? 21:10 Error SyntaxError: Both optional and rest parameters are not allowed in function's parameter list. */ + +/* @@? 16:28 Error Syntax error ESY0219: A required parameter cannot follow an optional parameter. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/differentTypeCompare.ets b/ets2panda/test/ast/parser/ets/differentTypeCompare.ets index 445b9063bd..5924c4294e 100644 --- a/ets2panda/test/ast/parser/ets/differentTypeCompare.ets +++ b/ets2panda/test/ast/parser/ets/differentTypeCompare.ets @@ -23,4 +23,5 @@ function main(): void { foo(/* @@ label */a == b); } -/* @@@ label Error TypeError: Operator '==' cannot be applied to types '"alma"' and 'Int'. */ + +/* @@@ label Error Semantic error ESE0105: Operator '==' cannot be applied to types '"alma"' and 'Int'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/distinguishable-decl-1.ets b/ets2panda/test/ast/parser/ets/distinguishable-decl-1.ets index c8ac00947b..5b4e129e0d 100644 --- a/ets2panda/test/ast/parser/ets/distinguishable-decl-1.ets +++ b/ets2panda/test/ast/parser/ets/distinguishable-decl-1.ets @@ -17,4 +17,5 @@ const PI314 = 3.14 function /* @@ label */PI314(): double { return 3.14 } -/* @@@ label Error TypeError: Variable 'PI314' has already been declared. */ + +/* @@@ label Error Semantic error ESE0351: Variable 'PI314' has already been declared. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/do_while.ets b/ets2panda/test/ast/parser/ets/do_while.ets index a0256a02dc..2af98fc0a9 100644 --- a/ets2panda/test/ast/parser/ets/do_while.ets +++ b/ets2panda/test/ast/parser/ets/do_while.ets @@ -15,9 +15,10 @@ do a -/* @@? 16:4 Error TypeError: Unresolved reference a */ -/* @@? 24:1 Error SyntaxError: Unexpected token, expected 'while'. */ -/* @@? 24:1 Error SyntaxError: Unexpected token, expected '('. */ -/* @@? 24:1 Error SyntaxError: Unexpected token 'end of stream'. */ -/* @@? 24:1 Error SyntaxError: Missing condition in do while statement */ -/* @@? 24:1 Error SyntaxError: Expected ')', got 'end of stream'. */ + +/* @@? 16:4 Error Semantic error ESE0143: Unresolved reference a */ +/* @@? 24:79 Error Syntax error ESY0228: Unexpected token, expected 'while'. */ +/* @@? 24:79 Error Syntax error ESY0228: Unexpected token, expected '('. */ +/* @@? 24:79 Error Syntax error ESY0227: Unexpected token 'end of stream'. */ +/* @@? 24:79 Error Syntax error ESY0301: Missing condition in do while statement */ +/* @@? 24:79 Error Syntax error ESY0230: Expected ')', got 'end of stream'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/do_while_with_empty_body.ets b/ets2panda/test/ast/parser/ets/do_while_with_empty_body.ets index 9edf5999e6..0a609bb609 100644 --- a/ets2panda/test/ast/parser/ets/do_while_with_empty_body.ets +++ b/ets2panda/test/ast/parser/ets/do_while_with_empty_body.ets @@ -16,11 +16,12 @@ do export Boolean [1] = delete while(true) -/* @@? 16:4 Error SyntaxError: Unexpected token 'export'. */ -/* @@? 16:4 Error SyntaxError: Missing body in do while statement */ -/* @@? 16:4 Error SyntaxError: Unexpected token, expected 'while'. */ -/* @@? 16:12 Error SyntaxError: Unexpected token, expected '('. */ -/* @@? 16:20 Error SyntaxError: Invalid left-hand side in array destructuring pattern. */ -/* @@? 16:20 Error TypeError: Invalid left-hand side of assignment expression */ -/* @@? 17:4 Error SyntaxError: Expected ')', got 'while'. */ -/* @@? 27:1 Error SyntaxError: Unexpected token 'end of stream'. */ + +/* @@? 16:4 Error Syntax error ESY0227: Unexpected token 'export'. */ +/* @@? 16:4 Error Syntax error ESY0300: Missing body in do while statement */ +/* @@? 16:4 Error Syntax error ESY0228: Unexpected token, expected 'while'. */ +/* @@? 16:12 Error Syntax error ESY0228: Unexpected token, expected '('. */ +/* @@? 16:20 Error Syntax error ESY0204: Invalid left-hand side in array destructuring pattern. */ +/* @@? 16:20 Error Semantic error ESE0025: Invalid left-hand side of assignment expression */ +/* @@? 17:4 Error Syntax error ESY0230: Expected ')', got 'while'. */ +/* @@? 27:78 Error Syntax error ESY0227: Unexpected token 'end of stream'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/do_while_with_empty_condition.ets b/ets2panda/test/ast/parser/ets/do_while_with_empty_condition.ets index afaa9713f4..e9fed1f7e9 100644 --- a/ets2panda/test/ast/parser/ets/do_while_with_empty_condition.ets +++ b/ets2panda/test/ast/parser/ets/do_while_with_empty_condition.ets @@ -16,6 +16,7 @@ do {} while() -/* @@? 17:10 Error SyntaxError: Unexpected token ')'. */ -/* @@? 22:1 Error SyntaxError: Missing condition in do while statement */ -/* @@? 22:1 Error SyntaxError: Expected ')', got 'end of stream'. */ + +/* @@? 17:10 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 22:79 Error Syntax error ESY0301: Missing condition in do while statement */ +/* @@? 22:79 Error Syntax error ESY0230: Expected ')', got 'end of stream'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/double_parenthesis_invocation_setter_supposed_to_fail.ets b/ets2panda/test/ast/parser/ets/double_parenthesis_invocation_setter_supposed_to_fail.ets index 743990625e..cb3e6f8f15 100644 --- a/ets2panda/test/ast/parser/ets/double_parenthesis_invocation_setter_supposed_to_fail.ets +++ b/ets2panda/test/ast/parser/ets/double_parenthesis_invocation_setter_supposed_to_fail.ets @@ -17,10 +17,11 @@ interface Test { set color(s: string)() } -/* @@? 17:25 Error SyntaxError: Unexpected token '('. */ -/* @@? 17:25 Error SyntaxError: Unexpected token, expected ','. */ -/* @@? 17:25 Error SyntaxError: Identifier expected, got 'end of stream'. */ -/* @@? 17:26 Error SyntaxError: Identifier expected. */ -/* @@? 17:26 Error SyntaxError: Unexpected token, expected ','. */ -/* @@? 17:26 Error SyntaxError: Identifier expected, got 'end of stream'. */ -/* @@? 18:1 Error SyntaxError: Identifier expected. */ + +/* @@? 17:25 Error Syntax error ESY0227: Unexpected token '('. */ +/* @@? 17:25 Error Syntax error ESY0228: Unexpected token, expected ','. */ +/* @@? 17:25 Error Syntax error ESY0224: Identifier expected, got 'end of stream'. */ +/* @@? 17:26 Error Syntax error ESY0122: Identifier expected. */ +/* @@? 17:26 Error Syntax error ESY0228: Unexpected token, expected ','. */ +/* @@? 17:26 Error Syntax error ESY0224: Identifier expected, got 'end of stream'. */ +/* @@? 18:1 Error Syntax error ESY0122: Identifier expected. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/double_parenthesis_invocation_supposed_to_fail.ets b/ets2panda/test/ast/parser/ets/double_parenthesis_invocation_supposed_to_fail.ets index 13e8057f3e..9645f82a85 100644 --- a/ets2panda/test/ast/parser/ets/double_parenthesis_invocation_supposed_to_fail.ets +++ b/ets2panda/test/ast/parser/ets/double_parenthesis_invocation_supposed_to_fail.ets @@ -18,11 +18,12 @@ interface Test { proc()() // throws SyntaxError } -/* @@? 18:5 Error TypeError: Function proc is already declared. */ -/* @@? 18:11 Error SyntaxError: Unexpected token '('. */ -/* @@? 18:11 Error SyntaxError: Unexpected token, expected ','. */ -/* @@? 18:11 Error SyntaxError: Identifier expected, got 'end of stream'. */ -/* @@? 18:12 Error SyntaxError: Identifier expected. */ -/* @@? 18:12 Error SyntaxError: Unexpected token, expected ','. */ -/* @@? 18:12 Error SyntaxError: Identifier expected, got 'end of stream'. */ -/* @@? 19:1 Error SyntaxError: Identifier expected. */ + +/* @@? 18:5 Error Semantic error ESE0130: Function proc is already declared. */ +/* @@? 18:11 Error Syntax error ESY0227: Unexpected token '('. */ +/* @@? 18:11 Error Syntax error ESY0228: Unexpected token, expected ','. */ +/* @@? 18:11 Error Syntax error ESY0224: Identifier expected, got 'end of stream'. */ +/* @@? 18:12 Error Syntax error ESY0122: Identifier expected. */ +/* @@? 18:12 Error Syntax error ESY0228: Unexpected token, expected ','. */ +/* @@? 18:12 Error Syntax error ESY0224: Identifier expected, got 'end of stream'. */ +/* @@? 19:1 Error Syntax error ESY0122: Identifier expected. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/duplicated_identifier.ets b/ets2panda/test/ast/parser/ets/duplicated_identifier.ets index b36f9db2df..60f6ceed43 100644 --- a/ets2panda/test/ast/parser/ets/duplicated_identifier.ets +++ b/ets2panda/test/ast/parser/ets/duplicated_identifier.ets @@ -20,4 +20,5 @@ export class testGC{ } } -/* @@? 16:23 Error TypeError: Identifier 'testGC' has already been declared. */ + +/* @@? 16:23 Error Semantic error ESE0369: Identifier 'testGC' has already been declared. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/dynamic_import_tests/dynamic_class_ctor_decl_import_bad.ets b/ets2panda/test/ast/parser/ets/dynamic_import_tests/dynamic_class_ctor_decl_import_bad.ets index 15a984dc8f..bc75c88863 100644 --- a/ets2panda/test/ast/parser/ets/dynamic_import_tests/dynamic_class_ctor_decl_import_bad.ets +++ b/ets2panda/test/ast/parser/ets/dynamic_import_tests/dynamic_class_ctor_decl_import_bad.ets @@ -23,6 +23,7 @@ function main(): void { let x = new A("abc", 10) } -/* @@? 23:13 Error TypeError: Expected 0 arguments, got 2. */ -/* @@? 23:13 Error TypeError: No matching construct signature for module.A("abc", Int) */ -/* @@? 23:19 Error TypeError: Type '"abc"' is not compatible with type 'Double' at index 1 */ + +/* @@? 23:13 Error Semantic error ESE0124: Expected 0 arguments, got 2. */ +/* @@? 23:13 Error Semantic error ESE0127: No matching construct signature for module.A("abc", Int) */ +/* @@? 23:19 Error Semantic error ESE0046: Type '"abc"' is not compatible with type 'Double' at index 1 */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/dynamic_import_tests/dynamic_class_field_decl_import_bad_1.ets b/ets2panda/test/ast/parser/ets/dynamic_import_tests/dynamic_class_field_decl_import_bad_1.ets index c2356b47e2..1d4204acfb 100644 --- a/ets2panda/test/ast/parser/ets/dynamic_import_tests/dynamic_class_field_decl_import_bad_1.ets +++ b/ets2panda/test/ast/parser/ets/dynamic_import_tests/dynamic_class_field_decl_import_bad_1.ets @@ -22,4 +22,5 @@ import { A } from "dynamic_import_tests/modules/module" function foo(p: A): void { p.f1 = /* @@ label */10 } -/* @@@ label Error TypeError: Type 'Int' cannot be assigned to type 'String' */ + +/* @@@ label Error Semantic error ESE0318: Type 'Int' cannot be assigned to type 'String' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/dynamic_import_tests/dynamic_class_field_decl_import_bad_2.ets b/ets2panda/test/ast/parser/ets/dynamic_import_tests/dynamic_class_field_decl_import_bad_2.ets index 20edcbd465..8f5aab3fe3 100644 --- a/ets2panda/test/ast/parser/ets/dynamic_import_tests/dynamic_class_field_decl_import_bad_2.ets +++ b/ets2panda/test/ast/parser/ets/dynamic_import_tests/dynamic_class_field_decl_import_bad_2.ets @@ -22,4 +22,5 @@ import { A } from "dynamic_import_tests/modules/module" function foo(): void { let x: string = /* @@ label */A.f2 } -/* @@@ label Error TypeError: Type 'Double' cannot be assigned to type 'String' */ + +/* @@@ label Error Semantic error ESE0318: Type 'Double' cannot be assigned to type 'String' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/dynamic_import_tests/dynamic_class_interface.ets b/ets2panda/test/ast/parser/ets/dynamic_import_tests/dynamic_class_interface.ets index fba26f3242..a48ec4b2d9 100644 --- a/ets2panda/test/ast/parser/ets/dynamic_import_tests/dynamic_class_interface.ets +++ b/ets2panda/test/ast/parser/ets/dynamic_import_tests/dynamic_class_interface.ets @@ -55,11 +55,11 @@ function foo(i: I) { i./* @@ label7 */f3() // cte } -/* @@@ label Error TypeError: Animal is abstract therefore cannot be instantiated. */ -/* @@@ label1 Error TypeError: class Bird can not extends class Animal which is from dynamic declaration file. */ -/* @@@ label2 Error TypeError: class C can not extends class A which is from dynamic declaration file. */ -/* @@@ label3 Error TypeError: Property 'f3' does not exist on type 'C' */ -/* @@@ label4 Error TypeError: Property 'foa' does not exist on type 'C' */ -/* @@@ label5 Error TypeError: class C1 can not implements interface I which is from dynamic declaration file. */ -/* @@@ label6 Error TypeError: Property 'n' does not exist on type 'I' */ -/* @@@ label7 Error TypeError: Property 'f3' does not exist on type 'I' */ \ No newline at end of file +/* @@@ label Error Semantic error ESE0052: Animal is abstract therefore cannot be instantiated. */ +/* @@@ label1 Error Semantic error ESE24143: class Bird can not extends class Animal which is from dynamic declaration file. */ +/* @@@ label2 Error Semantic error ESE24143: class C can not extends class A which is from dynamic declaration file. */ +/* @@@ label3 Error Semantic error ESE0087: Property 'f3' does not exist on type 'C' */ +/* @@@ label4 Error Semantic error ESE0087: Property 'foa' does not exist on type 'C' */ +/* @@@ label5 Error Semantic error ESE24143: class C1 can not implements interface I which is from dynamic declaration file. */ +/* @@@ label6 Error Semantic error ESE0087: Property 'n' does not exist on type 'I' */ +/* @@@ label7 Error Semantic error ESE0087: Property 'f3' does not exist on type 'I' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/dynamic_import_tests/dynamic_class_method_decl_import_bad_1.ets b/ets2panda/test/ast/parser/ets/dynamic_import_tests/dynamic_class_method_decl_import_bad_1.ets index db83b85465..b68190fde7 100644 --- a/ets2panda/test/ast/parser/ets/dynamic_import_tests/dynamic_class_method_decl_import_bad_1.ets +++ b/ets2panda/test/ast/parser/ets/dynamic_import_tests/dynamic_class_method_decl_import_bad_1.ets @@ -22,5 +22,6 @@ import { A } from "dynamic_import_tests/modules/module" function foo(p: A): void { /* @@ label */p.foo(/* @@ label1 */"abc") } -/* @@@ label1 Error TypeError: Type '"abc"' is not compatible with type 'Double' at index 1 */ -/* @@@ label Error TypeError: No matching call signature for foo("abc") */ + +/* @@@ label Error Semantic error ESE0127: No matching call signature for foo("abc") */ +/* @@@ label1 Error Semantic error ESE0046: Type '"abc"' is not compatible with type 'Double' at index 1 */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/dynamic_import_tests/dynamic_class_method_decl_import_bad_2.ets b/ets2panda/test/ast/parser/ets/dynamic_import_tests/dynamic_class_method_decl_import_bad_2.ets index bb4b9e0c59..4ce88df947 100644 --- a/ets2panda/test/ast/parser/ets/dynamic_import_tests/dynamic_class_method_decl_import_bad_2.ets +++ b/ets2panda/test/ast/parser/ets/dynamic_import_tests/dynamic_class_method_decl_import_bad_2.ets @@ -22,4 +22,5 @@ import { A } from "dynamic_import_tests/modules/module" function foo(): void { let x: string = /* @@ label */A.bar() } -/* @@@ label Error TypeError: Type 'Double' cannot be assigned to type 'String' */ + +/* @@@ label Error Semantic error ESE0318: Type 'Double' cannot be assigned to type 'String' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/dynamic_import_tests/dynamic_func_decl_import_bad.ets b/ets2panda/test/ast/parser/ets/dynamic_import_tests/dynamic_func_decl_import_bad.ets index ddca569f9a..af6e6e6df9 100644 --- a/ets2panda/test/ast/parser/ets/dynamic_import_tests/dynamic_func_decl_import_bad.ets +++ b/ets2panda/test/ast/parser/ets/dynamic_import_tests/dynamic_func_decl_import_bad.ets @@ -22,5 +22,6 @@ import { foo } from "dynamic_import_tests/modules/module" function main(): void { /* @@ label */foo(/* @@ label1 */"abc") } -/* @@@ label1 Error TypeError: Type '"abc"' is not compatible with type 'A' at index 1 */ -/* @@@ label Error TypeError: No matching call signature for foo("abc") */ + +/* @@@ label Error Semantic error ESE0127: No matching call signature for foo("abc") */ +/* @@@ label1 Error Semantic error ESE0046: Type '"abc"' is not compatible with type 'A' at index 1 */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/dynamic_import_tests/readonly_dynamic_class_interface.ets b/ets2panda/test/ast/parser/ets/dynamic_import_tests/readonly_dynamic_class_interface.ets index f81878ad25..33f801c135 100644 --- a/ets2panda/test/ast/parser/ets/dynamic_import_tests/readonly_dynamic_class_interface.ets +++ b/ets2panda/test/ast/parser/ets/dynamic_import_tests/readonly_dynamic_class_interface.ets @@ -29,6 +29,7 @@ function main() { i.age = 124 } -/* @@? 24:5 Error TypeError: The 'Readonly' property cannot be reassigned. */ -/* @@? 24:5 Error TypeError: Cannot assign to a readonly variable s */ -/* @@? 29:5 Error TypeError: The 'Readonly' property cannot be reassigned. */ + +/* @@? 24:5 Error Semantic error ESE0338: The 'Readonly' property cannot be reassigned. */ +/* @@? 24:5 Error Semantic error ESE4002: Cannot assign to a readonly field s */ +/* @@? 29:5 Error Semantic error ESE0338: The 'Readonly' property cannot be reassigned. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/dynamic_import_tests/static_class_extends_dynamic_class_bad.ets b/ets2panda/test/ast/parser/ets/dynamic_import_tests/static_class_extends_dynamic_class_bad.ets index 57d9770aff..719ddbcf58 100644 --- a/ets2panda/test/ast/parser/ets/dynamic_import_tests/static_class_extends_dynamic_class_bad.ets +++ b/ets2panda/test/ast/parser/ets/dynamic_import_tests/static_class_extends_dynamic_class_bad.ets @@ -22,4 +22,5 @@ import { C } from "dynamic_import_tests/modules/module" class A extends C /* @@ label */{ } -/* @@@ label Error TypeError: class A can not extends class C which is from dynamic declaration file. */ + +/* @@@ label Error Semantic error ESE24143: class A can not extends class C which is from dynamic declaration file. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/dynamic_import_tests/static_class_impl_dynamic_interface_bad.ets b/ets2panda/test/ast/parser/ets/dynamic_import_tests/static_class_impl_dynamic_interface_bad.ets index 28aadb3b20..60c56c32f9 100644 --- a/ets2panda/test/ast/parser/ets/dynamic_import_tests/static_class_impl_dynamic_interface_bad.ets +++ b/ets2panda/test/ast/parser/ets/dynamic_import_tests/static_class_impl_dynamic_interface_bad.ets @@ -29,4 +29,5 @@ class A implements I /* @@ label */{ } } -/* @@@ label Error TypeError: class A can not implements interface I which is from dynamic declaration file. */ + +/* @@@ label Error Semantic error ESE24143: class A can not implements interface I which is from dynamic declaration file. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/dynamic_import_tests/static_interface_extends_dynamic_interface_bad.ets b/ets2panda/test/ast/parser/ets/dynamic_import_tests/static_interface_extends_dynamic_interface_bad.ets index 4832fff193..b3d94bc1b2 100644 --- a/ets2panda/test/ast/parser/ets/dynamic_import_tests/static_interface_extends_dynamic_interface_bad.ets +++ b/ets2panda/test/ast/parser/ets/dynamic_import_tests/static_interface_extends_dynamic_interface_bad.ets @@ -22,4 +22,5 @@ import { I } from "dynamic_import_tests/modules/module" /* @@ label */interface A extends I { } -/* @@@ label Error TypeError: interface A can not extends interface I which is from dynamic declaration file. */ + +/* @@@ label Error Semantic error ESE24143: interface A can not extends interface I which is from dynamic declaration file. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/dynmicImportUnimplemented.ets b/ets2panda/test/ast/parser/ets/dynmicImportUnimplemented.ets index 113b6cd670..83a11d0b40 100644 --- a/ets2panda/test/ast/parser/ets/dynmicImportUnimplemented.ets +++ b/ets2panda/test/ast/parser/ets/dynmicImportUnimplemented.ets @@ -27,5 +27,6 @@ function main() { arktest.assertTrue(!"nothing was thrown") } -/* @@? 18:15 Error SyntaxError: Unexpected token 'import'. */ -/* @@? 18:9 Error TypeError: Type '*ERROR_TYPE*' can not be awaited, it is not a Promise. */ + +/* @@? 18:9 Error Semantic error ESE0303: Type '*ERROR_TYPE*' can not be awaited, it is not a Promise. */ +/* @@? 18:15 Error Syntax error ESY0227: Unexpected token 'import'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/empty_array_map_inference_fail.ets b/ets2panda/test/ast/parser/ets/empty_array_map_inference_fail.ets index dab191d5b7..9f53ac2a0f 100644 --- a/ets2panda/test/ast/parser/ets/empty_array_map_inference_fail.ets +++ b/ets2panda/test/ast/parser/ets/empty_array_map_inference_fail.ets @@ -21,9 +21,10 @@ return x+1; }); -/* @@? 16:2 Error SyntaxError: Function expressions are not supported, use arrow functions instead */ -/* @@? 20:1 Error TypeError: Can't resolve array type */ -/* @@? 20:8 Error SyntaxError: Function expressions are not supported, use arrow functions instead */ -/* @@? 20:18 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ + +/* @@? 16:2 Error Syntax error ESY0320: Function expressions are not supported, use arrow functions instead */ +/* @@? 20:1 Error Semantic error ESE0301: Can't resolve array type */ +/* @@? 20:8 Error Syntax error ESY0320: Function expressions are not supported, use arrow functions instead */ +/* @@? 20:18 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/enum.ets b/ets2panda/test/ast/parser/ets/enum.ets index 3443eb3f6c..cbbc0e578b 100644 --- a/ets2panda/test/ast/parser/ets/enum.ets +++ b/ets2panda/test/ast/parser/ets/enum.ets @@ -66,4 +66,5 @@ function main(): void { } } -/* @@? 26:10 Warning Warning: Enum cast is deprecated. Cast support from 'Color' to 'Int' will be removed. */ + +/* @@? 26:10 Warning Warning W0030: Enum cast is deprecated. Cast support from 'Color' to 'Int' will be removed. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/enum11.ets b/ets2panda/test/ast/parser/ets/enum11.ets index c78d967491..c080ef951c 100644 --- a/ets2panda/test/ast/parser/ets/enum11.ets +++ b/ets2panda/test/ast/parser/ets/enum11.ets @@ -23,6 +23,7 @@ function main(): void { let ordinalFail: int = /* @@ label */Color as int; } -/* @@@ label Error TypeError: Enum name 'Color' used in the wrong context */ -/* @@? 21:22 Warning Warning: Enum cast is deprecated. Cast support from 'Color' to 'Int' will be removed. */ -/* @@? 22:13 Warning Warning: Enum cast is deprecated. Cast support from 'Int' to 'Color' will be removed. */ + +/* @@? 21:22 Warning Warning W0030: Enum cast is deprecated. Cast support from 'Color' to 'Int' will be removed. */ +/* @@? 22:13 Warning Warning W0030: Enum cast is deprecated. Cast support from 'Int' to 'Color' will be removed. */ +/* @@@ label Error Semantic error ESE0144: Enum name 'Color' used in the wrong context */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/enum12.ets b/ets2panda/test/ast/parser/ets/enum12.ets index 2a7a1dd7bb..987c2803dc 100644 --- a/ets2panda/test/ast/parser/ets/enum12.ets +++ b/ets2panda/test/ast/parser/ets/enum12.ets @@ -24,4 +24,5 @@ function main(): void { test(Color.Red); } -/* @@@ label Error TypeError: 'toString' is an instance property of 'Color' */ + +/* @@@ label Error Semantic error ESE0208: 'toString' is an instance property of 'Color' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/enum13.ets b/ets2panda/test/ast/parser/ets/enum13.ets index 0a4828ea51..02aaf0421e 100644 --- a/ets2panda/test/ast/parser/ets/enum13.ets +++ b/ets2panda/test/ast/parser/ets/enum13.ets @@ -24,4 +24,5 @@ function main(): void { test(Color.Red); } -/* @@? 20:28 Error TypeError: 'valueOf' is an instance property of 'Color' */ + +/* @@? 20:28 Error Semantic error ESE0208: 'valueOf' is an instance property of 'Color' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/enum14.ets b/ets2panda/test/ast/parser/ets/enum14.ets index d152c4368f..89c91195f6 100644 --- a/ets2panda/test/ast/parser/ets/enum14.ets +++ b/ets2panda/test/ast/parser/ets/enum14.ets @@ -24,4 +24,5 @@ function main(): void { } } -/* @@@ label Error TypeError: Enum switch case must be unqualified name of an enum constant */ + +/* @@@ label Error Semantic error ESE0334: Enum switch case must be unqualified name of an enum constant */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/enum15.ets b/ets2panda/test/ast/parser/ets/enum15.ets index 2a32ffa219..68a59203d1 100644 --- a/ets2panda/test/ast/parser/ets/enum15.ets +++ b/ets2panda/test/ast/parser/ets/enum15.ets @@ -20,7 +20,7 @@ enum InvalidInitTypeEnum { } -/* @@? 18:11 Error TypeError: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ -/* @@? 19:7 Error SyntaxError: Only constant expression is expected in the field */ -/* @@? 19:7 Error TypeError: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ + +/* @@? 18:11 Error Semantic error ESE0342: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ +/* @@? 19:7 Error Semantic error ESE0342: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/enum16.ets b/ets2panda/test/ast/parser/ets/enum16.ets index 4b48931d3d..f5c07201a1 100644 --- a/ets2panda/test/ast/parser/ets/enum16.ets +++ b/ets2panda/test/ast/parser/ets/enum16.ets @@ -19,8 +19,9 @@ enum InvalidInitTypeEnum { Blue } -/* @@? 18:13 Error SyntaxError: Unexpected token, expected ',' or '}'. */ -/* @@? 18:13 Error TypeError: Unresolved reference b7 */ -/* @@? 18:15 Error SyntaxError: Unexpected token ','. */ -/* @@? 19:3 Error TypeError: Unresolved reference Blue */ -/* @@? 20:1 Error SyntaxError: Unexpected token '}'. */ + +/* @@? 18:13 Error Syntax error ESY0229: Unexpected token, expected ',' or '}'. */ +/* @@? 18:13 Error Semantic error ESE0143: Unresolved reference b7 */ +/* @@? 18:15 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 19:3 Error Semantic error ESE0143: Unresolved reference Blue */ +/* @@? 20:1 Error Syntax error ESY0227: Unexpected token '}'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/enum17.ets b/ets2panda/test/ast/parser/ets/enum17.ets index ef121a53aa..f70402e05f 100644 --- a/ets2panda/test/ast/parser/ets/enum17.ets +++ b/ets2panda/test/ast/parser/ets/enum17.ets @@ -19,5 +19,6 @@ enum InvalidInitTypeEnum { Blue } -/* @@? 19:7 Error TypeError: Arithmetic operation causes an overflow. */ -/* @@? 19:7 Error TypeError: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ + +/* @@? 19:7 Error Semantic error ESE4101: Arithmetic operation causes an overflow. */ +/* @@? 19:7 Error Semantic error ESE0342: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/enum18.ets b/ets2panda/test/ast/parser/ets/enum18.ets index 8c34ab054c..0cccb135f2 100644 --- a/ets2panda/test/ast/parser/ets/enum18.ets +++ b/ets2panda/test/ast/parser/ets/enum18.ets @@ -19,5 +19,6 @@ enum InvalidInitTypeEnum { Blue } -/* @@@ label Error TypeError: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ -/* @@? 19:7 Error TypeError: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ + +/* @@@ label Error Semantic error ESE0342: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ +/* @@? 19:7 Error Semantic error ESE0342: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/enum2.ets b/ets2panda/test/ast/parser/ets/enum2.ets index 7df33b51a9..2e57573569 100644 --- a/ets2panda/test/ast/parser/ets/enum2.ets +++ b/ets2panda/test/ast/parser/ets/enum2.ets @@ -38,7 +38,8 @@ class NestedEnums { } } -/* @@@ label Error SyntaxError: Unexpected token. A constructor, method, accessor, or property was expected. */ -/* @@@ label1 Error SyntaxError: Unexpected token. A constructor, method, accessor, or property was expected. */ -/* @@@ label2 Error SyntaxError: Unexpected token. A constructor, method, accessor, or property was expected. */ -/* @@@ label3 Error SyntaxError: Unexpected token. A constructor, method, accessor, or property was expected. */ + +/* @@@ label Error Syntax error ESY0233: Unexpected token. A constructor, method, accessor, or property was expected. */ +/* @@@ label1 Error Syntax error ESY0233: Unexpected token. A constructor, method, accessor, or property was expected. */ +/* @@@ label2 Error Syntax error ESY0233: Unexpected token. A constructor, method, accessor, or property was expected. */ +/* @@@ label3 Error Syntax error ESY0233: Unexpected token. A constructor, method, accessor, or property was expected. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/enum20.ets b/ets2panda/test/ast/parser/ets/enum20.ets index 3f79f66f30..14d4773f7f 100644 --- a/ets2panda/test/ast/parser/ets/enum20.ets +++ b/ets2panda/test/ast/parser/ets/enum20.ets @@ -22,7 +22,8 @@ function main(): void { let white = Color.White./* @@ label3 */ordinal(); } -/* @@@ label Error TypeError: Property 'ordinal' does not exist on type 'Color' */ -/* @@@ label1 Error TypeError: Property 'ordinal' does not exist on type 'Color' */ -/* @@@ label2 Error TypeError: Property 'ordinal' does not exist on type 'Color' */ -/* @@@ label3 Error TypeError: Property 'ordinal' does not exist on type 'Color' */ + +/* @@@ label Error Semantic error ESE0087: Property 'ordinal' does not exist on type 'Color' */ +/* @@@ label1 Error Semantic error ESE0087: Property 'ordinal' does not exist on type 'Color' */ +/* @@@ label2 Error Semantic error ESE0087: Property 'ordinal' does not exist on type 'Color' */ +/* @@@ label3 Error Semantic error ESE0087: Property 'ordinal' does not exist on type 'Color' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/enum22.ets b/ets2panda/test/ast/parser/ets/enum22.ets index b052216cad..adb6f0f49f 100644 --- a/ets2panda/test/ast/parser/ets/enum22.ets +++ b/ets2panda/test/ast/parser/ets/enum22.ets @@ -17,4 +17,5 @@ enum duplicateKeysStringCase { Gray = "#ff808080", /* @@ label */Gray = "#ff808080" } -/* @@@ label Error TypeError: Variable 'Gray' has already been declared. */ + +/* @@@ label Error Semantic error ESE0351: Variable 'Gray' has already been declared. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/enum23.ets b/ets2panda/test/ast/parser/ets/enum23.ets index fbea4d6c3b..179f26504e 100644 --- a/ets2panda/test/ast/parser/ets/enum23.ets +++ b/ets2panda/test/ast/parser/ets/enum23.ets @@ -17,4 +17,4 @@ enum duplicateKeysNumCase { Red = 1, /* @@ label */Red = 1 } -/* @@@ label Error TypeError: Variable 'Red' has already been declared. */ \ No newline at end of file +/* @@@ label Error Semantic error ESE0351: Variable 'Red' has already been declared. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/enum24.ets b/ets2panda/test/ast/parser/ets/enum24.ets index fd80f213a4..8969eb46d9 100644 --- a/ets2panda/test/ast/parser/ets/enum24.ets +++ b/ets2panda/test/ast/parser/ets/enum24.ets @@ -21,4 +21,5 @@ enum Direction { } -/* @@@ label Error TypeError: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ + +/* @@@ label Error Semantic error ESE0342: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/enum26.ets b/ets2panda/test/ast/parser/ets/enum26.ets index 8a4845c43b..557f9ea9f9 100644 --- a/ets2panda/test/ast/parser/ets/enum26.ets +++ b/ets2panda/test/ast/parser/ets/enum26.ets @@ -20,6 +20,7 @@ enum Direction { /* @@ label */Right = "RIGHT" /* @@ label1 */} -/* @@@ label Error SyntaxError: Unexpected token, expected ',' or '}'. */ -/* @@@ label Error TypeError: Unresolved reference Right */ -/* @@@ label1 Error SyntaxError: Unexpected token '}'. */ + +/* @@@ label Error Syntax error ESY0229: Unexpected token, expected ',' or '}'. */ +/* @@@ label Error Semantic error ESE0143: Unresolved reference Right */ +/* @@@ label1 Error Syntax error ESY0227: Unexpected token '}'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/enum27.ets b/ets2panda/test/ast/parser/ets/enum27.ets index 1e38fdc9cc..e7b8b5476c 100644 --- a/ets2panda/test/ast/parser/ets/enum27.ets +++ b/ets2panda/test/ast/parser/ets/enum27.ets @@ -23,5 +23,6 @@ enum Date { } -/* @@@ label2 Error TypeError: Class 'Date' is already defined with different type. */ -/* @@@ label1 Error TypeError: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ + +/* @@@ label2 Error Semantic error ESE0350: Class 'Date' is already defined with different type. */ +/* @@@ label1 Error Semantic error ESE0342: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/enum28.ets b/ets2panda/test/ast/parser/ets/enum28.ets index 3c63eabaad..9c2bee6d58 100644 --- a/ets2panda/test/ast/parser/ets/enum28.ets +++ b/ets2panda/test/ast/parser/ets/enum28.ets @@ -17,5 +17,4 @@ enum Color { Red = /* @@ label */`Line 1\nLine 2 ${1}`, } -/* @@@ label Error SyntaxError: String Interpolation Expression is not constant expression. */ -/* @@@ label Error TypeError: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ + diff --git a/ets2panda/test/ast/parser/ets/enum29.ets b/ets2panda/test/ast/parser/ets/enum29.ets index b7981e02d0..99dbea081e 100644 --- a/ets2panda/test/ast/parser/ets/enum29.ets +++ b/ets2panda/test/ast/parser/ets/enum29.ets @@ -66,5 +66,6 @@ function main(): void { } } -/* @@@ label Error TypeError: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ -/* @@@ label1 Error TypeError: Enum switch case must be unqualified name of an enum constant */ + +/* @@@ label Error Semantic error ESE0342: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ +/* @@@ label1 Error Semantic error ESE0334: Enum switch case must be unqualified name of an enum constant */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/enum31.ets b/ets2panda/test/ast/parser/ets/enum31.ets index 78bc7d8d2c..bb0c8a2e7b 100644 --- a/ets2panda/test/ast/parser/ets/enum31.ets +++ b/ets2panda/test/ast/parser/ets/enum31.ets @@ -24,5 +24,6 @@ enum ColorC { Green = /* @@ label1 */ColorB.Green } -/* @@? 20:27 Error TypeError: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ -/* @@? 24:28 Error TypeError: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ + +/* @@@ label Error Semantic error ESE0342: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ +/* @@@ label1 Error Semantic error ESE0342: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/enum32.ets b/ets2panda/test/ast/parser/ets/enum32.ets index 0201bd17b9..8b14289ed0 100644 --- a/ets2panda/test/ast/parser/ets/enum32.ets +++ b/ets2panda/test/ast/parser/ets/enum32.ets @@ -18,7 +18,8 @@ enum Color2 { Red = /* @@ label1 */Color.Red } enum Color3 { Red = /* @@ label2 */Color2.Red } enum Color4 { Red = /* @@ label3 */Color3.Red } -/* @@@ label Error TypeError: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ -/* @@@ label1 Error TypeError: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ -/* @@@ label2 Error TypeError: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ -/* @@@ label3 Error TypeError: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ + +/* @@@ label Error Semantic error ESE0342: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ +/* @@@ label1 Error Semantic error ESE0342: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ +/* @@@ label2 Error Semantic error ESE0342: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ +/* @@@ label3 Error Semantic error ESE0342: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/enum34.ets b/ets2panda/test/ast/parser/ets/enum34.ets index 9fcdc33582..5326531f10 100644 --- a/ets2panda/test/ast/parser/ets/enum34.ets +++ b/ets2panda/test/ast/parser/ets/enum34.ets @@ -19,4 +19,5 @@ enum Fraction { } -/* @@? 18:9 Error TypeError: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ + +/* @@? 18:9 Error Semantic error ESE0342: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/enum5.ets b/ets2panda/test/ast/parser/ets/enum5.ets index 74fc8ad53d..91b800d280 100644 --- a/ets2panda/test/ast/parser/ets/enum5.ets +++ b/ets2panda/test/ast/parser/ets/enum5.ets @@ -18,6 +18,7 @@ enum MissingCommaEnum { /* @@ label */Green /* @@ label1 */} -/* @@@ label Error SyntaxError: Unexpected token, expected ',' or '}'. */ -/* @@@ label Error TypeError: Unresolved reference Green */ -/* @@@ label1 Error SyntaxError: Unexpected token '}'. */ + +/* @@@ label Error Syntax error ESY0229: Unexpected token, expected ',' or '}'. */ +/* @@@ label Error Semantic error ESE0143: Unresolved reference Green */ +/* @@@ label1 Error Syntax error ESY0227: Unexpected token '}'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/enum6.ets b/ets2panda/test/ast/parser/ets/enum6.ets index bea6774682..acdd731e92 100644 --- a/ets2panda/test/ast/parser/ets/enum6.ets +++ b/ets2panda/test/ast/parser/ets/enum6.ets @@ -25,4 +25,5 @@ function main(): void { i = i./* @@ label */Blue; } -/* @@@ label Error TypeError: 'Blue' is a static property of 'Color' */ + +/* @@@ label Error Semantic error ESE0207: 'Blue' is a static property of 'Color' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/enum7.ets b/ets2panda/test/ast/parser/ets/enum7.ets index 9fb29fa64f..b0b45e9c37 100644 --- a/ets2panda/test/ast/parser/ets/enum7.ets +++ b/ets2panda/test/ast/parser/ets/enum7.ets @@ -21,4 +21,5 @@ function main(): void { arktest.assertTrue(/* @@ label */Color.Red != Color2.Red); } -/* @@@ label Error TypeError: Bad operand type, the types of the operands must be numeric, same enumeration, or boolean type. */ + +/* @@@ label Error Semantic error ESE0114: Bad operand type, the types of the operands must be numeric, same enumeration, or boolean type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/enum8.ets b/ets2panda/test/ast/parser/ets/enum8.ets index 5da56671e4..71b8cc1621 100644 --- a/ets2panda/test/ast/parser/ets/enum8.ets +++ b/ets2panda/test/ast/parser/ets/enum8.ets @@ -20,4 +20,5 @@ function main(): void { let red: Color = /* @@ label */Color2.Red; } -/* @@@ label Error TypeError: Type 'Color2' cannot be assigned to type 'Color' */ + +/* @@@ label Error Semantic error ESE0318: Type 'Color2' cannot be assigned to type 'Color' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/enumAnnotation3.ets b/ets2panda/test/ast/parser/ets/enumAnnotation3.ets index 17fc47a361..48875a6c2c 100644 --- a/ets2panda/test/ast/parser/ets/enumAnnotation3.ets +++ b/ets2panda/test/ast/parser/ets/enumAnnotation3.ets @@ -19,4 +19,5 @@ enum Fraction: string { } -/* @@? 16:23 Error SyntaxError: Unsupported enum type annotation. Supported enum types are: int, long or double. String is allowed for literal types, not annotations. */ + +/* @@? 16:23 Error Syntax error ESY0327: Unsupported enum type annotation. Supported enum types are: int, long or double. String is allowed for literal types, not annotations. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/enumAnnotation4.ets b/ets2panda/test/ast/parser/ets/enumAnnotation4.ets index 2816b123bb..3dde30c968 100644 --- a/ets2panda/test/ast/parser/ets/enumAnnotation4.ets +++ b/ets2panda/test/ast/parser/ets/enumAnnotation4.ets @@ -19,4 +19,4 @@ enum Fraction: customInt { } -/* @@? 16:26 Error SyntaxError: Unsupported enum type annotation. Supported enum types are: int, long or double. String is allowed for literal types, not annotations. */ \ No newline at end of file +/* @@? 16:26 Error Syntax error ESY0327: Unsupported enum type annotation. Supported enum types are: int, long or double. String is allowed for literal types, not annotations. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/enumAnnotation5.ets b/ets2panda/test/ast/parser/ets/enumAnnotation5.ets index 64ff1a3635..51a0c1c84e 100644 --- a/ets2panda/test/ast/parser/ets/enumAnnotation5.ets +++ b/ets2panda/test/ast/parser/ets/enumAnnotation5.ets @@ -19,5 +19,5 @@ enum Fraction: int { } -/* @@? 17:9 Error TypeError: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ -/* @@? 18:9 Error TypeError: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ \ No newline at end of file +/* @@? 17:9 Error Semantic error ESE0342: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ +/* @@? 18:9 Error Semantic error ESE0342: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/enumAnnotation6.ets b/ets2panda/test/ast/parser/ets/enumAnnotation6.ets index b52526a67f..a0801c60b5 100644 --- a/ets2panda/test/ast/parser/ets/enumAnnotation6.ets +++ b/ets2panda/test/ast/parser/ets/enumAnnotation6.ets @@ -19,4 +19,5 @@ enum Fraction: byte { } -/* @@? 16:21 Error SyntaxError: Unsupported enum type annotation. Supported enum types are: int, long or double. String is allowed for literal types, not annotations. */ + +/* @@? 16:21 Error Syntax error ESY0327: Unsupported enum type annotation. Supported enum types are: int, long or double. String is allowed for literal types, not annotations. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/enum_default_invalid_value_type.ets b/ets2panda/test/ast/parser/ets/enum_default_invalid_value_type.ets index b80dde0c68..84d6990098 100644 --- a/ets2panda/test/ast/parser/ets/enum_default_invalid_value_type.ets +++ b/ets2panda/test/ast/parser/ets/enum_default_invalid_value_type.ets @@ -27,6 +27,7 @@ enum C { } -/* @@? 17:9 Error TypeError: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ -/* @@? 21:9 Error TypeError: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ -/* @@? 26:9 Error TypeError: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ + +/* @@? 17:9 Error Semantic error ESE0342: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ +/* @@? 21:9 Error Semantic error ESE0342: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ +/* @@? 26:9 Error Semantic error ESE0342: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/enum_default_negative.ets b/ets2panda/test/ast/parser/ets/enum_default_negative.ets index 28e438a43b..f88de8e1d2 100644 --- a/ets2panda/test/ast/parser/ets/enum_default_negative.ets +++ b/ets2panda/test/ast/parser/ets/enum_default_negative.ets @@ -26,13 +26,14 @@ enum D { } -/* @@? 17:9 Error TypeError: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ -/* @@? 17:10 Error SyntaxError: Unexpected token ')'. */ -/* @@? 18:1 Error SyntaxError: Unexpected token, expected ')'. */ -/* @@? 20:1 Error SyntaxError: Unexpected token, expected ',' or '}'. */ -/* @@? 21:9 Error SyntaxError: Unexpected token ')'. */ -/* @@? 21:9 Error TypeError: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ -/* @@? 25:9 Error TypeError: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ -/* @@? 26:1 Error SyntaxError: Unexpected token, expected ':'. */ -/* @@? 39:1 Error SyntaxError: Unexpected token 'end of stream'. */ -/* @@? 39:1 Error SyntaxError: Unexpected token, expected ',' or '}'. */ + +/* @@? 17:9 Error Semantic error ESE0342: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ +/* @@? 17:10 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 18:1 Error Syntax error ESY0228: Unexpected token, expected ')'. */ +/* @@? 20:1 Error Syntax error ESY0229: Unexpected token, expected ',' or '}'. */ +/* @@? 21:9 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 21:9 Error Semantic error ESE0342: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ +/* @@? 25:9 Error Semantic error ESE0342: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ +/* @@? 26:1 Error Syntax error ESY0228: Unexpected token, expected ':'. */ +/* @@? 39:83 Error Syntax error ESY0227: Unexpected token 'end of stream'. */ +/* @@? 39:83 Error Syntax error ESY0229: Unexpected token, expected ',' or '}'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/enum_default_negative1.ets b/ets2panda/test/ast/parser/ets/enum_default_negative1.ets index 8764bff88c..b2462468b2 100644 --- a/ets2panda/test/ast/parser/ets/enum_default_negative1.ets +++ b/ets2panda/test/ast/parser/ets/enum_default_negative1.ets @@ -23,8 +23,8 @@ enum B { } -/* @@? 17:9 Error SyntaxError: Unsupported operator for String. */ -/* @@? 17:9 Error TypeError: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ -/* @@? 22:9 Error SyntaxError: Only constant expression is expected in the field */ -/* @@? 22:9 Error TypeError: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ + +/* @@? 17:9 Error Semantic error ESE0346: Wrong type of operands for binary expression */ +/* @@? 17:9 Error Semantic error ESE0342: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ +/* @@? 22:9 Error Semantic error ESE0342: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/enum_multi_error/enum_empty.ets b/ets2panda/test/ast/parser/ets/enum_multi_error/enum_empty.ets index 5ccbb98118..f99ae1e239 100644 --- a/ets2panda/test/ast/parser/ets/enum_multi_error/enum_empty.ets +++ b/ets2panda/test/ast/parser/ets/enum_multi_error/enum_empty.ets @@ -16,7 +16,7 @@ enum // Printed two errors about eos, because there are two attempts to read identifiers: name enum and name property -/* @@@ label Error SyntaxError: Identifier expected, got 'end of stream'. */ -/* @@@ label Error SyntaxError: Unexpected token, expected '{'. */ -/* @@@ label Error SyntaxError: Expected '}', got 'end of stream'. */ -/* @@ label */ \ No newline at end of file + +/* @@ label *//* @@? 22:79 Error Syntax error ESY0224: Identifier expected, got 'end of stream'. */ +/* @@? 22:79 Error Syntax error ESY0228: Unexpected token, expected '{'. */ +/* @@? 22:79 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/enum_multi_error/enum_not_pair_brackets.ets b/ets2panda/test/ast/parser/ets/enum_multi_error/enum_not_pair_brackets.ets index 7a2ac6350b..ec8164d0b7 100644 --- a/ets2panda/test/ast/parser/ets/enum_multi_error/enum_not_pair_brackets.ets +++ b/ets2panda/test/ast/parser/ets/enum_multi_error/enum_not_pair_brackets.ets @@ -16,5 +16,5 @@ enum Color { Red, Green // Printed two errors about eos, because there are two attempts to read identifiers: name enum and name property -/* @@@ label Error SyntaxError: Unexpected token, expected ',' or '}'. */ -/* @@ label */ \ No newline at end of file + +/* @@ label *//* @@? 20:97 Error Syntax error ESY0229: Unexpected token, expected ',' or '}'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/enum_multi_error/enum_with_identifier.ets b/ets2panda/test/ast/parser/ets/enum_multi_error/enum_with_identifier.ets index 13fbdd0ad7..8d4c327aeb 100644 --- a/ets2panda/test/ast/parser/ets/enum_multi_error/enum_with_identifier.ets +++ b/ets2panda/test/ast/parser/ets/enum_multi_error/enum_with_identifier.ets @@ -15,6 +15,6 @@ enum a -/* @@@ label Error SyntaxError: Unexpected token, expected '{'. */ -/* @@@ label Error SyntaxError: Expected '}', got 'end of stream'. */ -/* @@ label */ \ No newline at end of file + +/* @@ label *//* @@? 20:79 Error Syntax error ESY0228: Unexpected token, expected '{'. */ +/* @@? 20:79 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/ets_never_type_without_affect_other.ets b/ets2panda/test/ast/parser/ets/ets_never_type_without_affect_other.ets index 01cd69625e..d81162153a 100644 --- a/ets2panda/test/ast/parser/ets/ets_never_type_without_affect_other.ets +++ b/ets2panda/test/ast/parser/ets/ets_never_type_without_affect_other.ets @@ -26,5 +26,6 @@ function foo(): number { return n! } -/* @@? 23:17 Error TypeError: Bad operand type, the types of the operands must be numeric type. */ -/* @@? 26:12 Error Warning: Bad operand type, the operand of the non-nullish expression is 'null' or 'undefined'. */ + +/* @@? 23:17 Error Semantic error ESE0107: Bad operand type, the types of the operands must be numeric type. */ +/* @@? 26:12 Warning Warning W0014: Bad operand type, the operand of the non-nullish expression is 'null' or 'undefined'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/export_after_statement.ets b/ets2panda/test/ast/parser/ets/export_after_statement.ets index cf56e544de..26df21a9c5 100644 --- a/ets2panda/test/ast/parser/ets/export_after_statement.ets +++ b/ets2panda/test/ast/parser/ets/export_after_statement.ets @@ -16,5 +16,6 @@ while (false) export { } -/* @@? 16:15 Error SyntaxError: Unexpected token 'export'. */ -/* @@? 16:15 Error SyntaxError: Missing body in while statement */ + +/* @@? 16:15 Error Syntax error ESY0227: Unexpected token 'export'. */ +/* @@? 16:15 Error Syntax error ESY0300: Missing body in while statement */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/export_as.ets b/ets2panda/test/ast/parser/ets/export_as.ets index f2c130fbe8..4037060671 100644 --- a/ets2panda/test/ast/parser/ets/export_as.ets +++ b/ets2panda/test/ast/parser/ets/export_as.ets @@ -15,6 +15,7 @@ export /* @@ label1 */as /* @@ label2 */namespace mathLib {} -/* @@@ label1 Error SyntaxError: Universal module definitions are not supported, please use ordinary import/export syntax instead. */ -/* @@@ label1 Error SyntaxError: Unexpected token 'as'. */ -/* @@@ label2 Error SyntaxError: Unexpected token 'namespace'. */ + +/* @@@ label1 Error Syntax error ESY114179: Universal module definitions are not supported, please use ordinary import/export syntax instead. */ +/* @@@ label1 Error Syntax error ESY0227: Unexpected token 'as'. */ +/* @@@ label2 Error Syntax error ESY0227: Unexpected token 'namespace'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/export_assignment.ets b/ets2panda/test/ast/parser/ets/export_assignment.ets index 7dc0bbfcc8..2b848beddf 100644 --- a/ets2panda/test/ast/parser/ets/export_assignment.ets +++ b/ets2panda/test/ast/parser/ets/export_assignment.ets @@ -15,7 +15,8 @@ export /* @@ label1 */= /* @@ label2 */Point -/* @@@ label1 Error SyntaxError: 'export = ...' syntax is not supported, use regular import/export instead! */ -/* @@@ label1 Error SyntaxError: Unexpected token '='. */ -/* @@@ label2 Error SyntaxError: Unexpected token 'Point'. */ -/* @@@ label2 Error TypeError: Unresolved reference Point */ + +/* @@@ label1 Error Syntax error ESY0307: 'export = ...' syntax is not supported, use regular import/export instead! */ +/* @@@ label1 Error Syntax error ESY0227: Unexpected token '='. */ +/* @@@ label2 Error Syntax error ESY0227: Unexpected token 'Point'. */ +/* @@@ label2 Error Semantic error ESE0143: Unresolved reference Point */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/export_default_multiple_specifier.ets b/ets2panda/test/ast/parser/ets/export_default_multiple_specifier.ets index dfd5025564..2bd078aa78 100644 --- a/ets2panda/test/ast/parser/ets/export_default_multiple_specifier.ets +++ b/ets2panda/test/ast/parser/ets/export_default_multiple_specifier.ets @@ -18,4 +18,5 @@ function foo(): void {} export default {myFunc as default, foo as default} -/* @@? 22:1 Error SyntaxError: export default is not allowed to export multiple specifiers. */ + +/* @@? 22:106 Error Syntax error ESY0005: export default is not allowed to export multiple specifiers. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/extension_function_tests/extension_function_error1.ets b/ets2panda/test/ast/parser/ets/extension_function_tests/extension_function_error1.ets index dc07a97939..d566686880 100644 --- a/ets2panda/test/ast/parser/ets/extension_function_tests/extension_function_error1.ets +++ b/ets2panda/test/ast/parser/ets/extension_function_tests/extension_function_error1.ets @@ -17,7 +17,8 @@ function animatableWidth(this: TextAttribute, this { this.width(width); return this; } -/* @@? 16:2 Error TypeError: Cannot find type 'AnimatableExtend'. */ -/* @@? 17:32 Error TypeError: Cannot find type 'TextAttribute'. */ -/* @@? 17:52 Error SyntaxError: The function parameter 'this' must explicitly specify the typeAnnotation. */ -/* @@? 17:52 Error SyntaxError: Unexpected token, expected ',' or ')'. */ + +/* @@? 16:2 Error Semantic error ESE0371: Cannot find type 'AnimatableExtend'. */ +/* @@? 17:32 Error Semantic error ESE0371: Cannot find type 'TextAttribute'. */ +/* @@? 17:52 Error Syntax error ESY0099: The function parameter 'this' must explicitly specify the typeAnnotation. */ +/* @@? 17:52 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/extension_function_tests/extension_function_error2.ets b/ets2panda/test/ast/parser/ets/extension_function_tests/extension_function_error2.ets index 569109a6ae..e62bba408e 100644 --- a/ets2panda/test/ast/parser/ets/extension_function_tests/extension_function_error2.ets +++ b/ets2panda/test/ast/parser/ets/extension_function_tests/extension_function_error2.ets @@ -16,16 +16,17 @@ let a = (this: TextAttribute, this { this.width(width); return this; } -/* @@? 16:9 Error TypeError: 'this' cannot be referenced from a static context */ -/* @@? 16:14 Error SyntaxError: Unexpected token, expected ')'. */ -/* @@? 16:16 Error SyntaxError: Unexpected token 'TextAttribute'. */ -/* @@? 16:16 Error TypeError: Unresolved reference TextAttribute */ -/* @@? 16:29 Error SyntaxError: Unexpected token ','. */ -/* @@? 16:31 Error SyntaxError: Unexpected token 'this'. */ -/* @@? 16:31 Error TypeError: 'this' cannot be referenced from a static context */ -/* @@? 16:36 Error SyntaxError: Unexpected token '{'. */ -/* @@? 16:38 Error TypeError: 'this' cannot be referenced from a static context */ -/* @@? 16:43 Error TypeError: Property 'width' does not exist on type 'ETSGLOBAL' */ -/* @@? 16:57 Error SyntaxError: return keyword should be used in function body. */ -/* @@? 16:64 Error TypeError: 'this' cannot be referenced from a static context */ -/* @@? 16:64 Error TypeError: All return statements in the function should be empty or have a value. */ + +/* @@? 16:9 Error Semantic error ESE0202: 'this' cannot be referenced from a static context */ +/* @@? 16:14 Error Syntax error ESY0228: Unexpected token, expected ')'. */ +/* @@? 16:16 Error Syntax error ESY0227: Unexpected token 'TextAttribute'. */ +/* @@? 16:16 Error Semantic error ESE0143: Unresolved reference TextAttribute */ +/* @@? 16:29 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 16:31 Error Syntax error ESY0227: Unexpected token 'this'. */ +/* @@? 16:31 Error Semantic error ESE0202: 'this' cannot be referenced from a static context */ +/* @@? 16:36 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 16:38 Error Semantic error ESE0202: 'this' cannot be referenced from a static context */ +/* @@? 16:43 Error Semantic error ESE0087: Property 'width' does not exist on type 'ETSGLOBAL' */ +/* @@? 16:57 Error Syntax error ESY0163: return keyword should be used in function body. */ +/* @@? 16:64 Error Semantic error ESE0202: 'this' cannot be referenced from a static context */ +/* @@? 16:64 Error Semantic error ESE0092: All return statements in the function should be empty or have a value. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/extension_function_tests/extension_function_not_in_toplevel.ets b/ets2panda/test/ast/parser/ets/extension_function_tests/extension_function_not_in_toplevel.ets index 4354b9c818..b3d3ad6153 100644 --- a/ets2panda/test/ast/parser/ets/extension_function_tests/extension_function_not_in_toplevel.ets +++ b/ets2panda/test/ast/parser/ets/extension_function_tests/extension_function_not_in_toplevel.ets @@ -27,6 +27,7 @@ function main() { fruit.price(); } -/* @@? 20:5 Error SyntaxError: Nested functions are not allowed. */ -/* @@? 20:20 Error SyntaxError: Unexpected 'this' keyword in non-receiver context. */ -/* @@? 27:11 Error TypeError: Property 'price' does not exist on type 'Fruit' */ + +/* @@? 20:5 Error Syntax error ESY0135: Nested functions are not allowed. */ +/* @@? 20:20 Error Syntax error ESY0240: Unexpected 'this' keyword in non-receiver context. */ +/* @@? 27:11 Error Semantic error ESE0087: Property 'price' does not exist on type 'Fruit' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/fields.ets b/ets2panda/test/ast/parser/ets/fields.ets index 31cdc48edb..0a67c363c1 100644 --- a/ets2panda/test/ast/parser/ets/fields.ets +++ b/ets2panda/test/ast/parser/ets/fields.ets @@ -27,4 +27,5 @@ class C { protected static readonly h = 30; } -/* @@@ label Error TypeError: Variable 'f' has already been declared. */ + +/* @@@ label Error Semantic error ESE0351: Variable 'f' has already been declared. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/forOfCustomIterator1.ets b/ets2panda/test/ast/parser/ets/forOfCustomIterator1.ets index 83583c963d..a9f338efb7 100644 --- a/ets2panda/test/ast/parser/ets/forOfCustomIterator1.ets +++ b/ets2panda/test/ast/parser/ets/forOfCustomIterator1.ets @@ -49,6 +49,7 @@ function main(): void { arktest.assertEQ(res, "abc"); } -/* @@? 48:19 Error TypeError: Iterator method must return an object which implements Iterator */ -/* @@? 48:19 Error TypeError: 'For-of' statement source expression is not of iterable type. */ -/* @@? 18:15 Error TypeError: The return type of '$_iterator' must be a type that implements Iterator interface. */ + +/* @@? 18:15 Error Semantic error ESE0096: The return type of '$_iterator' must be a type that implements Iterator interface. */ +/* @@? 48:19 Error Semantic error ESE0261: Iterator method must return an object which implements Iterator */ +/* @@? 48:19 Error Semantic error ESE0076: 'For-of' statement source expression is not of iterable type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/forOfCustomIterator2.ets b/ets2panda/test/ast/parser/ets/forOfCustomIterator2.ets index 6282df4a6f..5fb11f5d4d 100644 --- a/ets2panda/test/ast/parser/ets/forOfCustomIterator2.ets +++ b/ets2panda/test/ast/parser/ets/forOfCustomIterator2.ets @@ -47,6 +47,7 @@ function main(): void { arktest.assertEQ(res, "abc"); } -/* @@? 46:19 Error TypeError: Iterator method must return an object which implements Iterator */ -/* @@? 46:19 Error TypeError: 'For-of' statement source expression is not of iterable type. */ -/* @@? 18:15 Error TypeError: The return type of '$_iterator' must be a type that implements Iterator interface. */ + +/* @@? 18:15 Error Semantic error ESE0096: The return type of '$_iterator' must be a type that implements Iterator interface. */ +/* @@? 46:19 Error Semantic error ESE0261: Iterator method must return an object which implements Iterator */ +/* @@? 46:19 Error Semantic error ESE0076: 'For-of' statement source expression is not of iterable type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/forOfType.ets b/ets2panda/test/ast/parser/ets/forOfType.ets index 32ef6ae505..a0138a2800 100644 --- a/ets2panda/test/ast/parser/ets/forOfType.ets +++ b/ets2panda/test/ast/parser/ets/forOfType.ets @@ -17,4 +17,5 @@ function k() : long { return 0; } for ( Fi of /* @@ label */ k as () => bigint | long ) await this instanceof int -/* @@@ label Error TypeError: 'For-of' statement source expression is not of iterable type. */ + +/* @@? 17:28 Error Semantic error ESE0076: 'For-of' statement source expression is not of iterable type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/for_await_of_loop.ets b/ets2panda/test/ast/parser/ets/for_await_of_loop.ets index 9ec9ec14ae..ba60bb6ea5 100644 --- a/ets2panda/test/ast/parser/ets/for_await_of_loop.ets +++ b/ets2panda/test/ast/parser/ets/for_await_of_loop.ets @@ -17,8 +17,9 @@ for await (let k: int /* @@ label1 */= 0; /* @@ label2 */k < d.length; k++) { this.$_set_unsafe(k + 1, d[k]) } -/* @@? 16:38 Error SyntaxError: for-await-of loop variable declaration may not have an initializer. */ -/* @@? 16:58 Error SyntaxError: Unexpected token 'k'. */ -/* @@? 16:62 Error TypeError: Unresolved reference d */ -/* @@? 17:5 Error TypeError: 'this' cannot be referenced from a static context */ -/* @@? 17:10 Error TypeError: Property '$_set_unsafe' does not exist on type 'ETSGLOBAL' */ + +/* @@@ label1 Error Syntax error ESY0097: for-await-of loop variable declaration may not have an initializer. */ +/* @@@ label2 Error Syntax error ESY0227: Unexpected token 'k'. */ +/* @@? 16:62 Error Semantic error ESE0143: Unresolved reference d */ +/* @@? 17:5 Error Semantic error ESE0202: 'this' cannot be referenced from a static context */ +/* @@? 17:10 Error Semantic error ESE0087: Property '$_set_unsafe' does not exist on type 'ETSGLOBAL' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/for_in.ets b/ets2panda/test/ast/parser/ets/for_in.ets index 922bde17d5..a959fd5724 100644 --- a/ets2panda/test/ast/parser/ets/for_in.ets +++ b/ets2panda/test/ast/parser/ets/for_in.ets @@ -17,6 +17,6 @@ let a: number[] = [1.0, 2.0, 3.0] for (let i /* @@ label */in a) { } -/* @@@ label Error SyntaxError: Variable must be initialized or it's type must be declared. */ -/* @@@ label Error SyntaxError: 'for ... in' loop is not supported, please use regular 'for' or 'for ... of ...' loop to iterate through arrays - and iterable objects. */ + +/* @@@ label Error Syntax error ESY0105: Variable must be initialized or it's type must be declared. */ +/* @@@ label Error Syntax error ESY6987: 'for ... in' loop is not supported, please use regular 'for' or 'for ... of ...' loop to iterate through arrays and iterable objects. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/for_of_02.ets b/ets2panda/test/ast/parser/ets/for_of_02.ets index b30a1e168d..b2c788345f 100644 --- a/ets2panda/test/ast/parser/ets/for_of_02.ets +++ b/ets2panda/test/ast/parser/ets/for_of_02.ets @@ -32,4 +32,6 @@ function main(): void { } } -/* @@@ label Error TypeError: Source element type 'Double' is not assignable to the loop iterator type 'Float'. */ + +/* @@? 19:3 Error Semantic error ESE0069: Source element type 'String' is not assignable to the loop iterator type 'Int'. */ +/* @@@ label Error Semantic error ESE0069: Source element type 'Double' is not assignable to the loop iterator type 'Float'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/for_of_03.ets b/ets2panda/test/ast/parser/ets/for_of_03.ets index 12cd09f1b7..f56e10821b 100644 --- a/ets2panda/test/ast/parser/ets/for_of_03.ets +++ b/ets2panda/test/ast/parser/ets/for_of_03.ets @@ -23,5 +23,6 @@ function main(): void { } } -/* @@@ label Error SyntaxError: Invalid left-hand side in 'for' statement: must have a single binding. */ -/* @@@ label1 Error SyntaxError: Expected ')', got '{'. */ + +/* @@@ label Error Syntax error ESY0211: Invalid left-hand side in 'for' statement: must have a single binding. */ +/* @@@ label1 Error Syntax error ESY0230: Expected ')', got '{'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/for_of_04.ets b/ets2panda/test/ast/parser/ets/for_of_04.ets index 0b51c9f55c..8b5e177dc6 100644 --- a/ets2panda/test/ast/parser/ets/for_of_04.ets +++ b/ets2panda/test/ast/parser/ets/for_of_04.ets @@ -25,14 +25,15 @@ function main(): void { for (i in 50) { a += 10 } -/* @@? 20:9 Error SyntaxError: Type annotation is not allowed when existing variable is used as loop iterator in 'for' statement. */ -/* @@? 20:11 Error SyntaxError: Expected ';', got 'double'. */ -/* @@? 20:11 Error SyntaxError: Unexpected token 'double'. */ -/* @@? 20:18 Error SyntaxError: Expected ';', got 'identification literal'. */ -/* @@? 20:18 Error TypeError: Unresolved reference of */ -/* @@? 20:21 Error SyntaxError: Expected ')', got 'identification literal'. */ -/* @@? 20:21 Error TypeError: Unresolved reference a */ -/* @@? 20:22 Error SyntaxError: Unexpected token ')'. */ -/* @@? 20:24 Error SyntaxError: Unexpected token '{'. */ -/* @@? 25:11 Error TypeError: Object type doesn't have proper iterator method. */ -/* @@? 25:11 Error TypeError: 'For-of' statement source expression is not of iterable type. */ + +/* @@? 20:9 Error Syntax error ESY0212: Type annotation is not allowed when existing variable is used as loop iterator in 'for' statement. */ +/* @@? 20:11 Error Syntax error ESY0230: Expected ';', got 'double'. */ +/* @@? 20:11 Error Syntax error ESY0227: Unexpected token 'double'. */ +/* @@? 20:18 Error Syntax error ESY0230: Expected ';', got 'identification literal'. */ +/* @@? 20:18 Error Semantic error ESE0143: Unresolved reference of */ +/* @@? 20:21 Error Syntax error ESY0230: Expected ')', got 'identification literal'. */ +/* @@? 20:21 Error Semantic error ESE0143: Unresolved reference a */ +/* @@? 20:22 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 20:24 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 25:11 Error Semantic error ESE0258: Object type doesn't have proper iterator method. */ +/* @@? 25:11 Error Semantic error ESE0076: 'For-of' statement source expression is not of iterable type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/for_of_loop_variable.ets b/ets2panda/test/ast/parser/ets/for_of_loop_variable.ets index 58952390f7..8025e022b2 100644 --- a/ets2panda/test/ast/parser/ets/for_of_loop_variable.ets +++ b/ets2panda/test/ast/parser/ets/for_of_loop_variable.ets @@ -30,7 +30,8 @@ for (let value = 40 /* @@ label2 */of iterable2) { console.log(value); } -/* @@@ label1 Error SyntaxError: for-of loop variable declaration may not have an initializer. */ -/* @@@ label2 Error SyntaxError: for-of loop variable declaration may not have an initializer. */ -/* @@? 18:1 Error TypeError: Source element type 'Double' is not assignable to the loop iterator type 'Int'. */ -/* @@? 28:1 Error TypeError: Source element type 'Double' is not assignable to the loop iterator type 'Int'. */ + +/* @@? 18:1 Error Semantic error ESE0069: Source element type 'Double' is not assignable to the loop iterator type 'Int'. */ +/* @@@ label1 Error Syntax error ESY0168: for-of loop variable declaration may not have an initializer. */ +/* @@? 28:1 Error Semantic error ESE0069: Source element type 'Double' is not assignable to the loop iterator type 'Int'. */ +/* @@@ label2 Error Syntax error ESY0168: for-of loop variable declaration may not have an initializer. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/for_with_empty_body.ets b/ets2panda/test/ast/parser/ets/for_with_empty_body.ets index a1e35845ea..ba5e46a9e8 100644 --- a/ets2panda/test/ast/parser/ets/for_with_empty_body.ets +++ b/ets2panda/test/ast/parser/ets/for_with_empty_body.ets @@ -23,4 +23,5 @@ try { } -/* @@? 22:1 Error SyntaxError: A try statement should contain either finally clause or at least one catch clause. */ + +/* @@? 22:1 Error Syntax error ESY0039: A try statement should contain either finally clause or at least one catch clause. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/functionTypeParam_neg.ets b/ets2panda/test/ast/parser/ets/functionTypeParam_neg.ets index 898c63dfdb..dac80eeda3 100644 --- a/ets2panda/test/ast/parser/ets/functionTypeParam_neg.ets +++ b/ets2panda/test/ast/parser/ets/functionTypeParam_neg.ets @@ -21,4 +21,5 @@ function foo() {} function main(): int { return 0 } -/* @@@ label Error TypeError: Duplicate type parameter 'T'. */ + +/* @@@ label Error Semantic error ESE0182: Duplicate type parameter 'T'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/functionTypeParam_neg2.ets b/ets2panda/test/ast/parser/ets/functionTypeParam_neg2.ets index e781375637..8056285c36 100644 --- a/ets2panda/test/ast/parser/ets/functionTypeParam_neg2.ets +++ b/ets2panda/test/ast/parser/ets/functionTypeParam_neg2.ets @@ -23,19 +23,20 @@ declare class Environment { static foo7(props1: {key:string, value:int}[], props2: int[]): void; } -/* @@? 17:23 Error SyntaxError: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ -/* @@? 18:25 Error SyntaxError: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ -/* @@? 19:25 Error SyntaxError: Invalid Type. */ -/* @@? 21:16 Error TypeError: Native and Declare methods should have explicit return type. */ -/* @@? 21:20 Error SyntaxError: Invalid Type. */ -/* @@? 21:28 Error SyntaxError: Invalid Type. */ -/* @@? 21:37 Error SyntaxError: Unexpected token, expected '=>'. */ -/* @@? 21:39 Error SyntaxError: Unexpected token '--'. */ -/* @@? 21:41 Error SyntaxError: Unexpected token '-'. */ -/* @@? 21:42 Error SyntaxError: Unexpected token ','. */ -/* @@? 21:43 Error SyntaxError: Unexpected token ')'. */ -/* @@? 21:44 Error SyntaxError: Unexpected token ':'. */ -/* @@? 21:45 Error SyntaxError: void is a predefined type, cannot be used as an identifier */ -/* @@? 22:20 Error SyntaxError: Invalid Type. */ -/* @@? 23:25 Error SyntaxError: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ -/* @@? 23:36 Error SyntaxError: Unexpected token ','. */ + +/* @@? 17:23 Error Syntax error ESY177354: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ +/* @@? 18:25 Error Syntax error ESY177354: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ +/* @@? 19:25 Error Syntax error ESY0138: Invalid Type. */ +/* @@? 21:16 Error Semantic error ESE0018: Native and Declare methods should have explicit return type. */ +/* @@? 21:20 Error Syntax error ESY0138: Invalid Type. */ +/* @@? 21:28 Error Syntax error ESY0138: Invalid Type. */ +/* @@? 21:37 Error Syntax error ESY0228: Unexpected token, expected '=>'. */ +/* @@? 21:39 Error Syntax error ESY0227: Unexpected token '--'. */ +/* @@? 21:41 Error Syntax error ESY0227: Unexpected token '-'. */ +/* @@? 21:42 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 21:43 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 21:44 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 21:45 Error Syntax error ESY0295: void is a predefined type, cannot be used as an identifier */ +/* @@? 22:20 Error Syntax error ESY0138: Invalid Type. */ +/* @@? 23:25 Error Syntax error ESY177354: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ +/* @@? 23:36 Error Syntax error ESY0227: Unexpected token ','. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/functionTypeRethrows.ets b/ets2panda/test/ast/parser/ets/functionTypeRethrows.ets index 97ae8eaf9d..59986083f2 100644 --- a/ets2panda/test/ast/parser/ets/functionTypeRethrows.ets +++ b/ets2panda/test/ast/parser/ets/functionTypeRethrows.ets @@ -16,5 +16,6 @@ let a: (c: int, b: int) => char /* @@ label */rethrows; -/* @@@ label Error SyntaxError: Unexpected token 'rethrows'. */ -/* @@@ label Error TypeError: Unresolved reference rethrows */ + +/* @@@ label Error Syntax error ESY0227: Unexpected token 'rethrows'. */ +/* @@@ label Error Semantic error ESE0143: Unresolved reference rethrows */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/functionTypeWithDefaultParam1.ets b/ets2panda/test/ast/parser/ets/functionTypeWithDefaultParam1.ets index 8f9e154697..364ec3bba0 100644 --- a/ets2panda/test/ast/parser/ets/functionTypeWithDefaultParam1.ets +++ b/ets2panda/test/ast/parser/ets/functionTypeWithDefaultParam1.ets @@ -16,4 +16,5 @@ function foo(a: (b: int = /* @@ label */0) => int): void { } -/* @@@ label Error SyntaxError: Default value is allowed only for optional parameters. */ + +/* @@@ label Error Syntax error ESY0133: Default value is allowed only for optional parameters. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/functionTypeWithDefaultParam2.ets b/ets2panda/test/ast/parser/ets/functionTypeWithDefaultParam2.ets index 7896f0b6aa..403e585933 100644 --- a/ets2panda/test/ast/parser/ets/functionTypeWithDefaultParam2.ets +++ b/ets2panda/test/ast/parser/ets/functionTypeWithDefaultParam2.ets @@ -25,4 +25,5 @@ function main(): void { foo(func); } -/* @@@ label Error SyntaxError: Default value is allowed only for optional parameters. */ + +/* @@@ label Error Syntax error ESY0133: Default value is allowed only for optional parameters. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/function_decl.ets b/ets2panda/test/ast/parser/ets/function_decl.ets index 6b0e4ac716..6e830e78df 100644 --- a/ets2panda/test/ast/parser/ets/function_decl.ets +++ b/ets2panda/test/ast/parser/ets/function_decl.ets @@ -14,4 +14,5 @@ */ function /* @@ label */foo(a: int, b: float, ...c: int[]): boolean {} -/* @@@ label Error TypeError: Function with a non void return type must return a value. */ + +/* @@@ label Error Semantic error ESE0103: Function with a non void return type must return a value. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/function_implicit_return_type.ets b/ets2panda/test/ast/parser/ets/function_implicit_return_type.ets index 08913b18bb..6d2ec26d3c 100644 --- a/ets2panda/test/ast/parser/ets/function_implicit_return_type.ets +++ b/ets2panda/test/ast/parser/ets/function_implicit_return_type.ets @@ -24,6 +24,7 @@ let void6: (i: int ) /* @@ label */= void1 /* @@ label1 */; // CTE; need function main() {} -/* @@? 23:43 Error SyntaxError: Unexpected token, expected '=>'. */ -/* @@? 23:43 Error SyntaxError: Unexpected token '=>'. */ -/* @@? 23:45 Error SyntaxError: Unexpected token 'void1'. */ + +/* @@@ label Error Syntax error ESY0228: Unexpected token, expected '=>'. */ +/* @@@ label Error Syntax error ESY0227: Unexpected token '=>'. */ +/* @@? 23:45 Error Syntax error ESY0227: Unexpected token 'void1'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/function_implicit_return_type2.ets b/ets2panda/test/ast/parser/ets/function_implicit_return_type2.ets index 7ae27d0965..4cb17fd9d6 100644 --- a/ets2panda/test/ast/parser/ets/function_implicit_return_type2.ets +++ b/ets2panda/test/ast/parser/ets/function_implicit_return_type2.ets @@ -16,4 +16,5 @@ let fn: (i: int) => int = () => {/* @@ label */return; }; -/* @@@ label Error TypeError: Missing return value. */ + +/* @@@ label Error Semantic error ESE0032: Missing return value. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/function_implicit_return_type3.ets b/ets2panda/test/ast/parser/ets/function_implicit_return_type3.ets index 0d49c52c50..279a5f27c4 100644 --- a/ets2panda/test/ast/parser/ets/function_implicit_return_type3.ets +++ b/ets2panda/test/ast/parser/ets/function_implicit_return_type3.ets @@ -17,4 +17,4 @@ function void1(i: int) {} let fn: (i: int) => int = /* @@ label */void1; -/* @@@ label Error TypeError: Type '(p1: Int) => void' cannot be assigned to type '(p1: Int) => Int' */ +/* @@@ label Error Semantic error ESE0318: Type '(p1: Int) => void' cannot be assigned to type '(p1: Int) => Int' */ diff --git a/ets2panda/test/ast/parser/ets/function_implicit_return_type4.ets b/ets2panda/test/ast/parser/ets/function_implicit_return_type4.ets index 89efc28509..93fb5c9db4 100644 --- a/ets2panda/test/ast/parser/ets/function_implicit_return_type4.ets +++ b/ets2panda/test/ast/parser/ets/function_implicit_return_type4.ets @@ -22,5 +22,6 @@ final class B extends A { public override fn(): int { return 42; } } -/* @@? 22:21 Error TypeError: fn(): Int in B cannot override fn(): void in A because overriding return type is not compatible with the other return type. */ -/* @@? 22:21 Error TypeError: Method fn(): Int in B not overriding any method */ + +/* @@? 22:21 Error Semantic error ESE0141: fn(): Int in B cannot override fn(): void in A because overriding return type is not compatible with the other return type. */ +/* @@? 22:21 Error Semantic error ESE0136: Method fn(): Int in B not overriding any method */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/generator_function.ets b/ets2panda/test/ast/parser/ets/generator_function.ets index 7f865bb644..13efbc1482 100644 --- a/ets2panda/test/ast/parser/ets/generator_function.ets +++ b/ets2panda/test/ast/parser/ets/generator_function.ets @@ -14,4 +14,5 @@ */ function* f() {} -/* @@? 16:11 Error SyntaxError: Generator functions are not supported, please use async/await mechanism for multitasking */ + +/* @@? 16:11 Error Syntax error ESY0314: Generator functions are not supported, please use async/await mechanism for multitasking */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/genericDefaultParam_2.ets b/ets2panda/test/ast/parser/ets/genericDefaultParam_2.ets index 0c3d580491..19379fb026 100644 --- a/ets2panda/test/ast/parser/ets/genericDefaultParam_2.ets +++ b/ets2panda/test/ast/parser/ets/genericDefaultParam_2.ets @@ -15,4 +15,5 @@ class C1 {} -/* @@@ label Error SyntaxError: Required type parameters may not follow optional type parameters. */ + +/* @@@ label Error Syntax error ESY0179: Required type parameters may not follow optional type parameters. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/genericDefaultParam_4.ets b/ets2panda/test/ast/parser/ets/genericDefaultParam_4.ets index 87657b52f3..007e69c458 100644 --- a/ets2panda/test/ast/parser/ets/genericDefaultParam_4.ets +++ b/ets2panda/test/ast/parser/ets/genericDefaultParam_4.ets @@ -23,5 +23,6 @@ function main() : void { let a1 = /* @@ label */new A(/* @@ label1 */"hello") } -/* @@@ label1 Error TypeError: Type '"hello"' is not compatible with type 'Double' at index 1 */ -/* @@@ label Error TypeError: No matching construct signature for genericDefaultParam_4.A("hello") */ + +/* @@@ label Error Semantic error ESE0127: No matching construct signature for genericDefaultParam_4.A("hello") */ +/* @@@ label1 Error Semantic error ESE0046: Type '"hello"' is not compatible with type 'Double' at index 1 */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/generic_defined_before_use_neg_1.ets b/ets2panda/test/ast/parser/ets/generic_defined_before_use_neg_1.ets index 51901fd4f3..01871a9cfd 100644 --- a/ets2panda/test/ast/parser/ets/generic_defined_before_use_neg_1.ets +++ b/ets2panda/test/ast/parser/ets/generic_defined_before_use_neg_1.ets @@ -14,4 +14,5 @@ */ class C {} -/* @@@ label Error TypeError: Type Parameter T3 should be defined before use. */ + +/* @@@ label Error Semantic error ESE0183: Type Parameter T3 should be defined before use. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/generic_defined_before_use_neg_2.ets b/ets2panda/test/ast/parser/ets/generic_defined_before_use_neg_2.ets index ab1b916139..cd495d03c4 100644 --- a/ets2panda/test/ast/parser/ets/generic_defined_before_use_neg_2.ets +++ b/ets2panda/test/ast/parser/ets/generic_defined_before_use_neg_2.ets @@ -13,4 +13,5 @@ * limitations under the License. */ function foo(){} -/* @@@ label Error TypeError: Type Parameter F should be defined before use. */ + +/* @@@ label Error Semantic error ESE0183: Type Parameter F should be defined before use. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/generic_defined_before_use_neg_3.ets b/ets2panda/test/ast/parser/ets/generic_defined_before_use_neg_3.ets index deee3d30ac..df87751eed 100644 --- a/ets2panda/test/ast/parser/ets/generic_defined_before_use_neg_3.ets +++ b/ets2panda/test/ast/parser/ets/generic_defined_before_use_neg_3.ets @@ -14,4 +14,5 @@ */ class SomeType{} function foo(){} -/* @@@ label Error TypeError: Type Parameter T2 should be defined before use. */ + +/* @@@ label Error Semantic error ESE0183: Type Parameter T2 should be defined before use. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/generic_defined_before_use_neg_4.ets b/ets2panda/test/ast/parser/ets/generic_defined_before_use_neg_4.ets index 1335e78b55..8feab589cb 100644 --- a/ets2panda/test/ast/parser/ets/generic_defined_before_use_neg_4.ets +++ b/ets2panda/test/ast/parser/ets/generic_defined_before_use_neg_4.ets @@ -14,4 +14,5 @@ */ class SomeType{} function foo(){} -/* @@@ label Error TypeError: Type Parameter T2 should be defined before use. */ + +/* @@@ label Error Semantic error ESE0183: Type Parameter T2 should be defined before use. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/generic_defined_before_use_neg_5.ets b/ets2panda/test/ast/parser/ets/generic_defined_before_use_neg_5.ets index 807151f8e0..01a8348068 100644 --- a/ets2panda/test/ast/parser/ets/generic_defined_before_use_neg_5.ets +++ b/ets2panda/test/ast/parser/ets/generic_defined_before_use_neg_5.ets @@ -14,4 +14,5 @@ */ class SomeType{} function foo(){} -/* @@? 1:3 Error TypeError: Type Parameter T2 should be defined before use. */ + +/* @@? 1:3 Error Semantic error ESE0183: Type Parameter T2 should be defined before use. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/generic_defined_before_use_neg_6.ets b/ets2panda/test/ast/parser/ets/generic_defined_before_use_neg_6.ets index 56b63e63fe..497672af1b 100644 --- a/ets2panda/test/ast/parser/ets/generic_defined_before_use_neg_6.ets +++ b/ets2panda/test/ast/parser/ets/generic_defined_before_use_neg_6.ets @@ -14,4 +14,5 @@ */ class SomeType{} function foo, T2=SomeType>(){} -/* @@@ label Error TypeError: Type Parameter T2 should be defined before use. */ + +/* @@@ label Error Semantic error ESE0183: Type Parameter T2 should be defined before use. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/generic_error.ets b/ets2panda/test/ast/parser/ets/generic_error.ets index 195bb99fa6..e33b78c26f 100644 --- a/ets2panda/test/ast/parser/ets/generic_error.ets +++ b/ets2panda/test/ast/parser/ets/generic_error.ets @@ -23,4 +23,5 @@ function main(): void { let m = new OldMap/* @@ label */(); } -/* @@@ label Error TypeError: Type argument 'C' should be a subtype of 'Comparable'-constraint */ + +/* @@@ label Error Semantic error ESE0228: Type argument 'C' should be a subtype of 'Comparable'-constraint */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/generic_lambda_err1.ets b/ets2panda/test/ast/parser/ets/generic_lambda_err1.ets new file mode 100644 index 0000000000..5c885acdfe --- /dev/null +++ b/ets2panda/test/ast/parser/ets/generic_lambda_err1.ets @@ -0,0 +1,29 @@ +/* + * Copyright (c) 2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +function main() { + let foo = < (): void => {} +} + + +/* @@? 17:15 Error Syntax error ESY0227: Unexpected token '<<'. */ +/* @@? 17:17 Error Syntax error ESY0227: Unexpected token 'T'. */ +/* @@? 17:17 Error Semantic error ESE0143: Unresolved reference T */ +/* @@? 17:17 Error Semantic error ESE0114: Bad operand type, the types of the operands must be numeric, same enumeration, or boolean type. */ +/* @@? 17:22 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 17:22 Error Syntax error ESY0230: Expected '=>', got 'identification literal'. */ +/* @@? 17:22 Error Semantic error ESE0143: Unresolved reference : */ +/* @@? 17:24 Error Syntax error ESY0227: Unexpected token 'void'. */ +/* @@? 17:29 Error Syntax error ESY0227: Unexpected token '=>'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/generic_lambda_err2.ets b/ets2panda/test/ast/parser/ets/generic_lambda_err2.ets new file mode 100644 index 0000000000..146495a2e4 --- /dev/null +++ b/ets2panda/test/ast/parser/ets/generic_lambda_err2.ets @@ -0,0 +1,40 @@ +/* + * Copyright (c) 2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +function main() { + let foo1 = (p: T): T => p; + foo1("1", 2) + foo1("1", 2) + + let foo2 = (p: T): NonNullable =>p; + + let foo3 = (p: T): T => p; + + let foo4 = (p: T, q: U): T => p; + foo4(1) + foo4(1) + foo4(1, 1) +} + + +/* @@? 17:16 Error Syntax error ESY12842: Generic lambda expressions are not supported. */ +/* @@? 18:5 Error Semantic error ESE0289: This expression is not callable. */ +/* @@? 19:5 Error Semantic error ESE0289: This expression is not callable. */ +/* @@? 21:16 Error Syntax error ESY12842: Generic lambda expressions are not supported. */ +/* @@? 23:16 Error Syntax error ESY12842: Generic lambda expressions are not supported. */ +/* @@? 25:16 Error Syntax error ESY12842: Generic lambda expressions are not supported. */ +/* @@? 26:5 Error Semantic error ESE0289: This expression is not callable. */ +/* @@? 27:5 Error Semantic error ESE0289: This expression is not callable. */ +/* @@? 28:5 Error Semantic error ESE0289: This expression is not callable. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/generic_lambda_err3.ets b/ets2panda/test/ast/parser/ets/generic_lambda_err3.ets new file mode 100644 index 0000000000..0eaf7533d5 --- /dev/null +++ b/ets2panda/test/ast/parser/ets/generic_lambda_err3.ets @@ -0,0 +1,48 @@ +/* + * Copyright (c) 2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +let foo1 = +let foo2 = () +let foo3 = ; +let foo4 = (); +function main() { + let foo5 = + let foo6 = () +} + + +/* @@? 17:12 Error Syntax error ESY178094: Type cast syntax '' is not supported, please use 'as' keyword instead */ +/* @@? 18:1 Error Syntax error ESY0227: Unexpected token 'let'. */ +/* @@? 18:5 Error Syntax error ESY0227: Unexpected token 'foo2'. */ +/* @@? 18:5 Error Semantic error ESE0143: Unresolved reference foo2 */ +/* @@? 18:12 Error Syntax error ESY178094: Type cast syntax '' is not supported, please use 'as' keyword instead */ +/* @@? 18:16 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 19:1 Error Syntax error ESY0228: Unexpected token, expected ')'. */ +/* @@? 19:5 Error Syntax error ESY0227: Unexpected token 'foo3'. */ +/* @@? 19:5 Error Semantic error ESE0143: Unresolved reference foo3 */ +/* @@? 19:12 Error Syntax error ESY178094: Type cast syntax '' is not supported, please use 'as' keyword instead */ +/* @@? 19:15 Error Syntax error ESY0227: Unexpected token ';'. */ +/* @@? 20:12 Error Syntax error ESY178094: Type cast syntax '' is not supported, please use 'as' keyword instead */ +/* @@? 20:16 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 20:17 Error Syntax error ESY0228: Unexpected token, expected ')'. */ +/* @@? 22:16 Error Syntax error ESY178094: Type cast syntax '' is not supported, please use 'as' keyword instead */ +/* @@? 23:5 Error Syntax error ESY0227: Unexpected token 'let'. */ +/* @@? 23:9 Error Syntax error ESY0227: Unexpected token 'foo6'. */ +/* @@? 23:9 Error Semantic error ESE0143: Unresolved reference foo6 */ +/* @@? 23:16 Error Syntax error ESY178094: Type cast syntax '' is not supported, please use 'as' keyword instead */ +/* @@? 23:20 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 24:1 Error Syntax error ESY0228: Unexpected token, expected ')'. */ +/* @@? 48:79 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/generic_type_alias_clone_fix.ets b/ets2panda/test/ast/parser/ets/generic_type_alias_clone_fix.ets index b3b1333cee..bf889fff50 100644 --- a/ets2panda/test/ast/parser/ets/generic_type_alias_clone_fix.ets +++ b/ets2panda/test/ast/parser/ets/generic_type_alias_clone_fix.ets @@ -21,6 +21,7 @@ type RecordMap = { n: number }; let myMap: MyMap<"n"> = { kind: "n" }; -/* @@? 16:37 Error TypeError: The `keyof` keyword can only be used for class or interface type. */ -/* @@? 16:41 Error SyntaxError: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ -/* @@? 20:18 Error SyntaxError: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ + +/* @@? 16:37 Error Semantic error ESE0276: The `keyof` keyword can only be used for class or interface type. */ +/* @@? 16:41 Error Syntax error ESY177354: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ +/* @@? 20:18 Error Syntax error ESY177354: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/generics_1.ets b/ets2panda/test/ast/parser/ets/generics_1.ets index de790ec0e4..cec2aa5aa8 100644 --- a/ets2panda/test/ast/parser/ets/generics_1.ets +++ b/ets2panda/test/ast/parser/ets/generics_1.ets @@ -36,5 +36,4 @@ function main(): void { /* @@ label */d.b.a.c = 127; } -/* @@@ label Error TypeError: Variable 'd' is used before being assigned. */ -/* @@@ label Error TypeError: There were errors during assign analysis (1) */ + diff --git a/ets2panda/test/ast/parser/ets/generics_type_param_constraint_8.ets b/ets2panda/test/ast/parser/ets/generics_type_param_constraint_8.ets index 3b5e329f91..7f84171862 100644 --- a/ets2panda/test/ast/parser/ets/generics_type_param_constraint_8.ets +++ b/ets2panda/test/ast/parser/ets/generics_type_param_constraint_8.ets @@ -19,4 +19,5 @@ function main(){ const myCharClass = new X/* @@ label */(); } -/* @@@ label Error TypeError: Type argument 'Char' should be a subtype of 'Comparable'-constraint */ + +/* @@@ label Error Semantic error ESE0228: Type argument 'Char' should be a subtype of 'Comparable'-constraint */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/generics_type_param_no_typeargs_no_default.ets b/ets2panda/test/ast/parser/ets/generics_type_param_no_typeargs_no_default.ets index ec985c8f81..4ab03b37bf 100644 --- a/ets2panda/test/ast/parser/ets/generics_type_param_no_typeargs_no_default.ets +++ b/ets2panda/test/ast/parser/ets/generics_type_param_no_typeargs_no_default.ets @@ -21,6 +21,7 @@ class Base { class Derived extends Base {} -/* @@? 18:11 Error TypeError: Type 'Base' is generic but type argument were not provided. */ -/* @@? 22:23 Error TypeError: Type 'Base' is generic but type argument were not provided. */ -/* @@? 22:23 Error TypeError: The super type of 'Derived' class is not extensible. */ + +/* @@? 18:11 Error Semantic error ESE0170: Type 'Base' is generic but type argument were not provided. */ +/* @@? 22:23 Error Semantic error ESE0170: Type 'Base' is generic but type argument were not provided. */ +/* @@? 22:23 Error Semantic error ESE0176: The super type of 'Derived' class is not extensible. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/generics_type_param_no_typeargs_no_default_2.ets b/ets2panda/test/ast/parser/ets/generics_type_param_no_typeargs_no_default_2.ets index 5b73550d83..2d6c575b29 100644 --- a/ets2panda/test/ast/parser/ets/generics_type_param_no_typeargs_no_default_2.ets +++ b/ets2panda/test/ast/parser/ets/generics_type_param_no_typeargs_no_default_2.ets @@ -40,5 +40,6 @@ function doSomethingUseful() { } -/* @@@ label Error TypeError: Type 'Boxx' is generic but type argument were not provided. */ -/* @@@ label1 Error TypeError: Type 'Boxx' is generic but type argument were not provided. */ + +/* @@@ label Error Semantic error ESE0170: Type 'Boxx' is generic but type argument were not provided. */ +/* @@@ label1 Error Semantic error ESE0170: Type 'Boxx' is generic but type argument were not provided. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/get_unexpected_void.ets b/ets2panda/test/ast/parser/ets/get_unexpected_void.ets index 0a69841695..846f1c1119 100644 --- a/ets2panda/test/ast/parser/ets/get_unexpected_void.ets +++ b/ets2panda/test/ast/parser/ets/get_unexpected_void.ets @@ -17,5 +17,6 @@ class SomeClass { $_get (index: string, value: SomeClass) { } } -/* @@? 17:5 Error SyntaxError: The special predefined method '$_get' should have exactly one required parameter. */ -/* @@? 17:11 Error TypeError: 'The special predefined method '$_get' shouldn't have void return type. */ + +/* @@? 17:5 Error Syntax error ESY0221: The special predefined method '$_get' should have exactly one required parameter. */ +/* @@? 17:11 Error Semantic error ESE0093: 'The special predefined method '$_get' shouldn't have void return type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/getterOverrideGen_n.ets b/ets2panda/test/ast/parser/ets/getterOverrideGen_n.ets index 2247606d2b..7c5185d364 100644 --- a/ets2panda/test/ast/parser/ets/getterOverrideGen_n.ets +++ b/ets2panda/test/ast/parser/ets/getterOverrideGen_n.ets @@ -21,4 +21,5 @@ class AA implements A { /* @@ label */prop2 = new Int(); } -/* @@@ label Error TypeError: Method prop2(prop2: Int): void in AA not overriding any method */ + +/* @@@ label Error Semantic error ESE0136: Method prop2(prop2: Int): void in AA not overriding any method */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/getter_native.ets b/ets2panda/test/ast/parser/ets/getter_native.ets index 2c36a49e5f..5330861a60 100644 --- a/ets2panda/test/ast/parser/ets/getter_native.ets +++ b/ets2panda/test/ast/parser/ets/getter_native.ets @@ -20,4 +20,5 @@ class Door { } } -/* @@@ label1 Error TypeError: Native, Abstract and Declare methods cannot have body. */ + +/* @@@ label1 Error Semantic error ESE0083: Native, Abstract and Declare methods cannot have body. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/getter_not_abstract.ets b/ets2panda/test/ast/parser/ets/getter_not_abstract.ets index aca30c3be7..fdbfff03cf 100644 --- a/ets2panda/test/ast/parser/ets/getter_not_abstract.ets +++ b/ets2panda/test/ast/parser/ets/getter_not_abstract.ets @@ -20,6 +20,7 @@ interface A { } } -/* @@? 17:5 Error TypeError: Function color is already declared. */ -/* @@? 18:9 Error TypeError: Variable 'color' has already been declared. */ -/* @@? 18:14 Error SyntaxError: Getter and setter methods must be abstracts in the interface body. */ + +/* @@? 17:5 Error Semantic error ESE0130: Function color is already declared. */ +/* @@? 18:9 Error Semantic error ESE0351: Variable 'color' has already been declared. */ +/* @@? 18:14 Error Syntax error ESY0031: Getter and setter methods must be abstracts in the interface body. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/getter_setter_access_modifiers_2.ets b/ets2panda/test/ast/parser/ets/getter_setter_access_modifiers_2.ets index ba846261ac..51a03bcbe9 100644 --- a/ets2panda/test/ast/parser/ets/getter_setter_access_modifiers_2.ets +++ b/ets2panda/test/ast/parser/ets/getter_setter_access_modifiers_2.ets @@ -39,7 +39,8 @@ class Hex extends Core { } } -/* @@? 33:22 Error TypeError: size(s: Int): void in Hex cannot override size(s: Int): void in Core because overridden method is final. */ -/* @@? 33:22 Error TypeError: Method size(s: Int): void in Hex not overriding any method */ -/* @@? 37:22 Error TypeError: size(): Int in Hex cannot override size(): Int in Core because overridden method is final. */ -/* @@? 37:22 Error TypeError: Method size(): Int in Hex not overriding any method */ + +/* @@? 33:22 Error Semantic error ESE0141: size(s: Int): void in Hex cannot override size(s: Int): void in Core because overridden method is final. */ +/* @@? 33:22 Error Semantic error ESE0136: Method size(s: Int): void in Hex not overriding any method */ +/* @@? 37:22 Error Semantic error ESE0141: size(): Int in Hex cannot override size(): Int in Core because overridden method is final. */ +/* @@? 37:22 Error Semantic error ESE0136: Method size(): Int in Hex not overriding any method */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/getter_setter_endless_loop.ets b/ets2panda/test/ast/parser/ets/getter_setter_endless_loop.ets index 0336a0ba77..44e2e07dc4 100644 --- a/ets2panda/test/ast/parser/ets/getter_setter_endless_loop.ets +++ b/ets2panda/test/ast/parser/ets/getter_setter_endless_loop.ets @@ -26,5 +26,6 @@ function main() { a.i = 2 } -/* @@? 20:58 Warning Warning: Reading the value of the property inside its getter may lead to an endless loop. */ -/* @@? 21:52 Warning Warning: Assigning new value to the property inside its setter may lead to an endless loop. */ + +/* @@? 20:58 Warning Warning W0023: Reading the value of the property inside its getter may lead to an endless loop. */ +/* @@? 21:52 Warning Warning W0024: Assigning new value to the property inside its setter may lead to an endless loop. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/getter_setter_modifier_diff.ets b/ets2panda/test/ast/parser/ets/getter_setter_modifier_diff.ets index f34e24383d..59f90c91e1 100644 --- a/ets2panda/test/ast/parser/ets/getter_setter_modifier_diff.ets +++ b/ets2panda/test/ast/parser/ets/getter_setter_modifier_diff.ets @@ -18,4 +18,5 @@ class A { final get foo/* @@ label */(): int {} } -/* @@@ label Error TypeError: Getter and setter methods must have the same accessor modifiers */ + +/* @@@ label Error Semantic error ESE0220: Getter and setter methods must have the same accessor modifiers */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/getter_setter_modifier_limited.ets b/ets2panda/test/ast/parser/ets/getter_setter_modifier_limited.ets index cb74e1bad8..fd9b6629b7 100644 --- a/ets2panda/test/ast/parser/ets/getter_setter_modifier_limited.ets +++ b/ets2panda/test/ast/parser/ets/getter_setter_modifier_limited.ets @@ -18,4 +18,4 @@ class Person { async get age(): number { return this._age } } -/* @@? 18:11 Error SyntaxError: Modifiers of getter and setter are limited to ('abstract', 'static', 'final', 'override', 'native'). */ +/* @@? 18:11 Error Syntax error ESY0107: Modifiers of getter and setter are limited to ('abstract', 'static', 'final', 'override', 'native'). */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/global_const_vars1.ets b/ets2panda/test/ast/parser/ets/global_const_vars1.ets index 5a02f4857e..bae2156e0f 100644 --- a/ets2panda/test/ast/parser/ets/global_const_vars1.ets +++ b/ets2panda/test/ast/parser/ets/global_const_vars1.ets @@ -18,4 +18,5 @@ const a: int; function main(): void {} -/* @@? 17:8 Error TypeError: Missing initializer in const declaration */ + +/* @@? 17:8 Error Semantic error ESE0363: Missing initializer in const declaration */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/global_const_vars2.ets b/ets2panda/test/ast/parser/ets/global_const_vars2.ets index d84138433c..037fee2dee 100644 --- a/ets2panda/test/ast/parser/ets/global_const_vars2.ets +++ b/ets2panda/test/ast/parser/ets/global_const_vars2.ets @@ -17,4 +17,5 @@ const date: Date/* @@ label */; function main(): void {} -/* @@? 16:10 Error TypeError: Missing initializer in const declaration */ + +/* @@? 16:10 Error Semantic error ESE0363: Missing initializer in const declaration */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/global_const_vars4.ets b/ets2panda/test/ast/parser/ets/global_const_vars4.ets index 5f80623d78..58b1103169 100644 --- a/ets2panda/test/ast/parser/ets/global_const_vars4.ets +++ b/ets2panda/test/ast/parser/ets/global_const_vars4.ets @@ -27,4 +27,5 @@ class ABC { public main(): void {} } -/* @@@ label Error TypeError: Cannot assign to a readonly field date */ + +/* @@@ label Error Semantic error ESE4002: Cannot assign to a readonly field date */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/global_scope_boolean.ets b/ets2panda/test/ast/parser/ets/global_scope_boolean.ets index 2d098591f4..2013b0d8c5 100644 --- a/ets2panda/test/ast/parser/ets/global_scope_boolean.ets +++ b/ets2panda/test/ast/parser/ets/global_scope_boolean.ets @@ -16,4 +16,4 @@ /* @@ label */true -/* @@@ label Error SyntaxError: Unexpected token ''. */ + diff --git a/ets2panda/test/ast/parser/ets/global_scope_string.ets b/ets2panda/test/ast/parser/ets/global_scope_string.ets index cece77cb82..275c25fb4f 100644 --- a/ets2panda/test/ast/parser/ets/global_scope_string.ets +++ b/ets2panda/test/ast/parser/ets/global_scope_string.ets @@ -16,4 +16,4 @@ /* @@ label */"a\bcde\fg" -/* @@@ label Error SyntaxError: Unexpected token 'string literal'. */ + diff --git a/ets2panda/test/ast/parser/ets/illegal_break_statement.ets b/ets2panda/test/ast/parser/ets/illegal_break_statement.ets index 3dc1bb95b0..05e699734f 100644 --- a/ets2panda/test/ast/parser/ets/illegal_break_statement.ets +++ b/ets2panda/test/ast/parser/ets/illegal_break_statement.ets @@ -27,8 +27,9 @@ function foo2() { console.log(a + 5) } -/* @@@ label1 Error SyntaxError: Illegal break statement. */ -/* @@@ label2 Error SyntaxError: Illegal break statement. */ -/* @@? 18:20 Error TypeError: Control flow redirection statement can not be used out of loop or switch statement. */ -/* @@? 25:20 Error TypeError: Control flow redirection statement can not be used out of loop or switch statement. */ -/* @@? 27:17 Error TypeError: Unresolved reference a */ + +/* @@@ label1 Error Syntax error ESY0209: Illegal break statement. */ +/* @@@ label1 Error Semantic error ESE0161: Control flow redirection statement can not be used out of loop or switch statement. */ +/* @@@ label2 Error Syntax error ESY0209: Illegal break statement. */ +/* @@@ label2 Error Semantic error ESE0161: Control flow redirection statement can not be used out of loop or switch statement. */ +/* @@? 27:17 Error Semantic error ESE0143: Unresolved reference a */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/illegal_continue_statement.ets b/ets2panda/test/ast/parser/ets/illegal_continue_statement.ets index 51b0927f20..b652755c4c 100644 --- a/ets2panda/test/ast/parser/ets/illegal_continue_statement.ets +++ b/ets2panda/test/ast/parser/ets/illegal_continue_statement.ets @@ -41,12 +41,13 @@ function foo4() { console.log(a + 5) } -/* @@? 18:5 Error SyntaxError: Illegal continue statement. */ -/* @@? 18:5 Error TypeError: Control flow redirection statement can not be used out of loop or switch statement. */ -/* @@? 25:5 Error SyntaxError: Illegal continue statement. */ -/* @@? 25:5 Error TypeError: Control flow redirection statement can not be used out of loop or switch statement. */ -/* @@? 27:17 Error TypeError: Unresolved reference a */ -/* @@? 32:5 Error SyntaxError: Illegal break statement. */ -/* @@? 32:5 Error TypeError: Control flow redirection statement can not be used out of loop or switch statement. */ -/* @@? 39:5 Error SyntaxError: Illegal break statement. */ -/* @@? 39:5 Error TypeError: Control flow redirection statement can not be used out of loop or switch statement. */ + +/* @@? 18:5 Error Syntax error ESY0165: Illegal continue statement. */ +/* @@? 18:5 Error Semantic error ESE0161: Control flow redirection statement can not be used out of loop or switch statement. */ +/* @@? 25:5 Error Syntax error ESY0165: Illegal continue statement. */ +/* @@? 25:5 Error Semantic error ESE0161: Control flow redirection statement can not be used out of loop or switch statement. */ +/* @@? 27:17 Error Semantic error ESE0143: Unresolved reference a */ +/* @@? 32:5 Error Syntax error ESY0209: Illegal break statement. */ +/* @@? 32:5 Error Semantic error ESE0161: Control flow redirection statement can not be used out of loop or switch statement. */ +/* @@? 39:5 Error Syntax error ESY0209: Illegal break statement. */ +/* @@? 39:5 Error Semantic error ESE0161: Control flow redirection statement can not be used out of loop or switch statement. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/illegal_line_after_throw.ets b/ets2panda/test/ast/parser/ets/illegal_line_after_throw.ets index de62283798..81bb8b20ac 100644 --- a/ets2panda/test/ast/parser/ets/illegal_line_after_throw.ets +++ b/ets2panda/test/ast/parser/ets/illegal_line_after_throw.ets @@ -25,5 +25,6 @@ throw /* @@ label */{ } -/* @@@ label Error SyntaxError: Illegal newline after throw. */ -/* @@@ label Error TypeError: need to specify target type for class composite */ + +/* @@@ label Error Syntax error ESY0172: Illegal newline after throw. */ +/* @@@ label Error Semantic error ESE0062: need to specify target type for class composite */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/illegal_union_member_exp.ets b/ets2panda/test/ast/parser/ets/illegal_union_member_exp.ets index d49ec5f228..d56be06e29 100644 --- a/ets2panda/test/ast/parser/ets/illegal_union_member_exp.ets +++ b/ets2panda/test/ast/parser/ets/illegal_union_member_exp.ets @@ -23,4 +23,4 @@ function main(): void { } -/* @@@ label Error TypeError: Type String|Int[] is illegal in union member expression. */ + diff --git a/ets2panda/test/ast/parser/ets/import_assertion.ets b/ets2panda/test/ast/parser/ets/import_assertion.ets index bbf4ed4a28..ff7f23ce54 100644 --- a/ets2panda/test/ast/parser/ets/import_assertion.ets +++ b/ets2panda/test/ast/parser/ets/import_assertion.ets @@ -16,7 +16,9 @@ import * as Pt from "mod" /* @@ label1 */assert /* @@ label2 */{ type: /* @@ label3 */"json" } -/* @@@ label1 Error SyntaxError: Import assertion is not supported, please use the ordinary import syntax instead! */ -/* @@@ label1 Error TypeError: Unresolved reference assert */ -/* @@@ label2 Error SyntaxError: Unexpected token '{'. */ -/* @@@ label3 Error SyntaxError: Label must be followed by a loop statement. */ + +/* @@? 16:21 Error Fatal error F0016: Can't find prefix for 'mod' in /workspaces/arkcompiler/default-build/tools/es2panda/generated/arktsconfig.json */ +/* @@@ label1 Error Syntax error ESY0313: Import assertion is not supported, please use the ordinary import syntax instead! */ +/* @@@ label1 Error Semantic error ESE0143: Unresolved reference assert */ +/* @@@ label2 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@@ label3 Error Syntax error ESY0038: Label must be followed by a loop statement. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/import_no_empty_binding_list.ets b/ets2panda/test/ast/parser/ets/import_no_empty_binding_list.ets index dd2ff3124f..f7e2a895c9 100644 --- a/ets2panda/test/ast/parser/ets/import_no_empty_binding_list.ets +++ b/ets2panda/test/ast/parser/ets/import_no_empty_binding_list.ets @@ -15,6 +15,7 @@ import {/* @@ label1 */} /* @@ label2 */from /* @@ label3 */'module' -/* @@@ label1 Error SyntaxError: Importing for side-effect only is prohibited! Please provide objects to be imported explicitly or use * to import all objects declared in the module! */ -/* @@@ label2 Error TypeError: Unresolved reference from */ -/* @@@ label3 Error SyntaxError: Unexpected token 'module'. */ + +/* @@@ label1 Error Syntax error ESY73297: Importing for side-effect only is prohibited! Please provide objects to be imported explicitly or use * to import all objects declared in the module! */ +/* @@@ label2 Error Semantic error ESE0143: Unresolved reference from */ +/* @@@ label3 Error Syntax error ESY0227: Unexpected token 'module'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/import_no_side_effect.ets b/ets2panda/test/ast/parser/ets/import_no_side_effect.ets index cd4d80cab0..9d7219ea7a 100644 --- a/ets2panda/test/ast/parser/ets/import_no_side_effect.ets +++ b/ets2panda/test/ast/parser/ets/import_no_side_effect.ets @@ -15,4 +15,5 @@ import /* @@ label1 */'module' -/* @@@ label1 Error SyntaxError: Importing for side-effect only is prohibited! Please provide objects to be imported explicitly or use * to import all objects declared in the module! */ + +/* @@@ label1 Error Syntax error ESY73297: Importing for side-effect only is prohibited! Please provide objects to be imported explicitly or use * to import all objects declared in the module! */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/import_require.ets b/ets2panda/test/ast/parser/ets/import_require.ets index ad8766f57b..713c2ab1a8 100644 --- a/ets2panda/test/ast/parser/ets/import_require.ets +++ b/ets2panda/test/ast/parser/ets/import_require.ets @@ -15,7 +15,8 @@ import m /* @@ label1 */= /* @@ label2 */require("mod") -/* @@@ label1 Error SyntaxError: Importing by 'require' and 'import' assignment is not supported, use 'import * as ... from ...' form instead! */ -/* @@@ label1 Error SyntaxError: Unexpected token '='. */ -/* @@@ label2 Error SyntaxError: Unexpected token 'require'. */ -/* @@@ label2 Error TypeError: Unresolved reference require */ + +/* @@@ label1 Error Syntax error ESY0312: Importing by 'require' and 'import' assignment is not supported, use 'import * as ... from ...' form instead! */ +/* @@@ label1 Error Syntax error ESY0227: Unexpected token '='. */ +/* @@@ label2 Error Syntax error ESY0227: Unexpected token 'require'. */ +/* @@@ label2 Error Semantic error ESE0143: Unresolved reference require */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/import_tests/Import_error_token_1.ets b/ets2panda/test/ast/parser/ets/import_tests/Import_error_token_1.ets index 349644d2b1..43bbddbebe 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/Import_error_token_1.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/Import_error_token_1.ets @@ -18,8 +18,9 @@ function main():void{ console.log("not hehe") } -/* @@? 15:10 Error SyntaxError: Expected 'as', got 'number literal'. */ -/* @@? 15:10 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 15:16 Error SyntaxError: Unexpected token, expected 'from'. */ -/* @@? 15:21 Error SyntaxError: Unexpected token, expected string literal. */ -/* @@? 15:26 Error SyntaxError: Unexpected token 'import_tests/packages'. */ + +/* @@? 15:10 Error Syntax error ESY0230: Expected 'as', got 'number literal'. */ +/* @@? 15:10 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 15:16 Error Syntax error ESY0228: Unexpected token, expected 'from'. */ +/* @@? 15:21 Error Syntax error ESY0151: Unexpected token, expected string literal. */ +/* @@? 15:26 Error Syntax error ESY0227: Unexpected token 'import_tests/packages'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/import_tests/check_exported_1.ets b/ets2panda/test/ast/parser/ets/import_tests/check_exported_1.ets index 816c81ef2b..6e30e3057c 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/check_exported_1.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/check_exported_1.ets @@ -20,4 +20,5 @@ function main(): void { all./* @@ label */bar(); } -/* @@@ label Error TypeError: Property 'bar' does not exist on type 'check_exported_2' */ + +/* @@@ label Error Semantic error ESE0087: Property 'bar' does not exist on type 'check_exported_2' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/import_tests/default_import2.ets b/ets2panda/test/ast/parser/ets/import_tests/default_import2.ets index f7f0e84322..85c6614260 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/default_import2.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/default_import2.ets @@ -15,4 +15,5 @@ import default_imported from /* @@ label */"import_tests/modules/missing_default_export"; -/* @@@ label Error TypeError: Cannot find default imported element in the target */ + +/* @@@ label Error Semantic error ESE0358: Cannot find default imported element in the target */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/import_tests/default_import3.ets b/ets2panda/test/ast/parser/ets/import_tests/default_import3.ets index b9a0fc925d..383dd2b63e 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/default_import3.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/default_import3.ets @@ -15,8 +15,9 @@ import {default/* @@ label */} from /* @@ label1 */"./modules/class_default_module.ets"/* @@ label2 */; -/* @@@ label Error SyntaxError: Unexpected token, expected 'as'. */ -/* @@@ label Error SyntaxError: Unexpected token '}'. */ -/* @@@ label1 Error SyntaxError: Unexpected token, expected ',' or '}'. */ -/* @@@ label1 Error SyntaxError: Unexpected token, expected 'from'. */ -/* @@@ label2 Error SyntaxError: Unexpected token, expected string literal. */ + +/* @@@ label Error Syntax error ESY0095: Unexpected token, expected 'as'. */ +/* @@@ label Error Syntax error ESY0227: Unexpected token '}'. */ +/* @@@ label1 Error Syntax error ESY0229: Unexpected token, expected ',' or '}'. */ +/* @@@ label1 Error Syntax error ESY0228: Unexpected token, expected 'from'. */ +/* @@@ label2 Error Syntax error ESY0151: Unexpected token, expected string literal. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/import_tests/export_and_import_class.ets b/ets2panda/test/ast/parser/ets/import_tests/export_and_import_class.ets index 373caaaa9a..32833c04e2 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/export_and_import_class.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/export_and_import_class.ets @@ -22,3 +22,4 @@ export class InExport { let y = new InImport().y // ignored because used only in import +/* @@? import_type_error_in_class.ets:21:28 Error Semantic error ESE0318: Type '"InImport"' cannot be assigned to type 'Int' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/import_tests/export_and_import_top_level.ets b/ets2panda/test/ast/parser/ets/import_tests/export_and_import_top_level.ets index 577206beed..47bf44d199 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/export_and_import_top_level.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/export_and_import_top_level.ets @@ -18,3 +18,4 @@ import {fooImport} from "./import_type_error_top_level" export let inExport = fooImport() // ignored because used only in import +/* @@? import_type_error_top_level.ets:21:35 Error Semantic error ESE0318: Type 'Int' cannot be assigned to type 'String' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/import_tests/export_no_comma.ets b/ets2panda/test/ast/parser/ets/import_tests/export_no_comma.ets index 3693002348..f2c0a8912a 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/export_no_comma.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/export_no_comma.ets @@ -18,5 +18,6 @@ function foo2(): void {} export {foo1 /* @@ label */foo2/* @@ label1 */} -/* @@@ label Error SyntaxError: Unexpected token, expected ',' or '}'. */ -/* @@@ label1 Error SyntaxError: Unexpected token '}'. */ + +/* @@@ label Error Syntax error ESY0229: Unexpected token, expected ',' or '}'. */ +/* @@@ label1 Error Syntax error ESY0227: Unexpected token '}'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/import_tests/export_trailing_comma.ets b/ets2panda/test/ast/parser/ets/import_tests/export_trailing_comma.ets index 9a2411abe4..c06b61916b 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/export_trailing_comma.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/export_trailing_comma.ets @@ -19,4 +19,5 @@ function foo3(): void {} export {foo2,} export {/* @@ label */, foo3} -/* @@@ label Error SyntaxError: Unexpected token ','. */ + +/* @@@ label Error Syntax error ESY0227: Unexpected token ','. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/import_tests/import_alias/import_alias_2.ets b/ets2panda/test/ast/parser/ets/import_tests/import_alias/import_alias_2.ets index 553ab2b287..aed063eb8d 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/import_alias/import_alias_2.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/import_alias/import_alias_2.ets @@ -20,4 +20,5 @@ function main():void{ } -/* @@@ label Error TypeError: 'bar1' type does not exist. */ + +/* @@@ label Error Semantic error ESE0070: 'bar1' type does not exist. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/import_tests/import_alias/import_alias_3.ets b/ets2panda/test/ast/parser/ets/import_tests/import_alias/import_alias_3.ets index bcd085eb42..fb2c69a939 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/import_alias/import_alias_3.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/import_alias/import_alias_3.ets @@ -20,4 +20,5 @@ function main():void{ } -/* @@@ label Error TypeError: Property 'foo1' does not exist on type 'export' */ + +/* @@@ label Error Semantic error ESE0087: Property 'foo1' does not exist on type 'export' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/import_tests/import_alias/import_alias_4.ets b/ets2panda/test/ast/parser/ets/import_tests/import_alias/import_alias_4.ets index 67fe814600..e2b30ecc9f 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/import_alias/import_alias_4.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/import_alias/import_alias_4.ets @@ -20,4 +20,5 @@ function main():void{ } -/* @@@ label Error TypeError: Property 'goo1' does not exist on type 'export' */ + +/* @@@ label Error Semantic error ESE0087: Property 'goo1' does not exist on type 'export' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/import_tests/import_all_2.ets b/ets2panda/test/ast/parser/ets/import_tests/import_all_2.ets index b7ea1a2d11..a00123d3d8 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/import_all_2.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/import_all_2.ets @@ -19,4 +19,5 @@ function main(): void { all./* @@ label */DefaultExportedFunc(); } -/* @@@ label Error TypeError: Property 'DefaultExportedFunc' does not exist on type 'default_export' */ + +/* @@@ label Error Semantic error ESE0087: Property 'DefaultExportedFunc' does not exist on type 'default_export' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/import_tests/import_all_alias_2.ets b/ets2panda/test/ast/parser/ets/import_tests/import_all_alias_2.ets index 6e328b67b4..706d5f2f22 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/import_all_alias_2.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/import_all_alias_2.ets @@ -19,5 +19,6 @@ import * as Test from "import_tests/packages"; let x = foo(dbl /* double based signature */); -/* @@? 20:9 Error TypeError: Unresolved reference foo */ -/* @@? 20:9 Error TypeError: This expression is not callable. */ + +/* @@? 20:9 Error Semantic error ESE0143: Unresolved reference foo */ +/* @@? 20:9 Error Semantic error ESE0289: This expression is not callable. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/import_tests/import_all_alias_neg.ets b/ets2panda/test/ast/parser/ets/import_tests/import_all_alias_neg.ets index c2552fb47d..ec910d9b3c 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/import_all_alias_neg.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/import_all_alias_neg.ets @@ -17,5 +17,6 @@ import * as Test from "import_tests/packages"; function main() { Test() } -/* @@? 18:19 Error TypeError: Namespace style identifier Test is not callable. */ -/* @@? 18:19 Error TypeError: No static $_invoke method and static $_instantiate method in Test. Test() is not allowed. */ + +/* @@? 18:19 Error Semantic error ESE0295: Namespace style identifier Test is not callable. */ +/* @@? 18:19 Error Semantic error ESE0172: No static $_invoke method and static $_instantiate method in Test. Test() is not allowed. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/import_tests/import_folder_n.ets b/ets2panda/test/ast/parser/ets/import_tests/import_folder_n.ets index 68fe6856ce..967dd15fd6 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/import_folder_n.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/import_folder_n.ets @@ -15,4 +15,5 @@ import * as all from /* @@ label */"./folderWithoutIndexOrPackage" -/* @@@ label Error TypeError: Cannot find index.[ets|ts] or package module in folder: ./folderWithoutIndexOrPackage */ + +/* @@@ label Error Semantic error ESE0359: Cannot find index.[ets|ts] or package module in folder: ./folderWithoutIndexOrPackage */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/import_tests/import_name_2.ets b/ets2panda/test/ast/parser/ets/import_tests/import_name_2.ets index 47185e975b..f8fd932fb2 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/import_name_2.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/import_name_2.ets @@ -18,5 +18,6 @@ import {foo, flt} from "import_tests/packages"; // Throw error: "dbl" is not visible. let x = foo(dbl); -/* @@? 19:13 Error TypeError: Unresolved reference dbl */ + +/* @@? 19:13 Error Semantic error ESE0143: Unresolved reference dbl */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/import_tests/import_name_3.ets b/ets2panda/test/ast/parser/ets/import_tests/import_name_3.ets index 5b2415ea07..8e0c6d919f 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/import_name_3.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/import_name_3.ets @@ -15,4 +15,5 @@ import {DefaultExportedFunc} from /* @@ label */"import_tests/modules/default_export"; -/* @@@ label Error TypeError: Use the default import syntax to import a default exported element */ + +/* @@@ label Error Semantic error ESE0353: Use the default import syntax to import a default exported element */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/import_tests/import_name_alias_2.ets b/ets2panda/test/ast/parser/ets/import_tests/import_name_alias_2.ets index dede176fcc..a40537a873 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/import_name_alias_2.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/import_name_alias_2.ets @@ -18,5 +18,6 @@ import {foo as Foo, dbl} from "import_tests/packages"; // Throw error: Foo qualifier should be used instead of foo. let x = foo(dbl); -/* @@? 19:9 Error TypeError: Unresolved reference foo */ -/* @@? 19:9 Error TypeError: This expression is not callable. */ + +/* @@? 19:9 Error Semantic error ESE0143: Unresolved reference foo */ +/* @@? 19:9 Error Semantic error ESE0289: This expression is not callable. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/import_tests/import_name_conflict_1.ets b/ets2panda/test/ast/parser/ets/import_tests/import_name_conflict_1.ets index cf73cdfa0c..302071b27c 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/import_name_conflict_1.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/import_name_conflict_1.ets @@ -18,4 +18,5 @@ import {flt as floatingPointNumber} from /* @@ label */"import_tests/packages"; // Throw error because floatingPointNumber is for multiple value. -/* @@@ label Error TypeError: Variable 'floatingPointNumber' is already defined. */ + +/* @@@ label Error Semantic error ESE0349: Variable 'floatingPointNumber' is already defined. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/import_tests/import_name_conflict_10.ets b/ets2panda/test/ast/parser/ets/import_tests/import_name_conflict_10.ets index da0bfebf30..326272b7d6 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/import_name_conflict_10.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/import_name_conflict_10.ets @@ -20,4 +20,5 @@ function foo(): int { } //Throw error: Variable 'foo' is already defined. -/* @@@ label Error TypeError: Variable 'foo' is already defined with different type. */ + +/* @@@ label Error Semantic error ESE0350: Variable 'foo' is already defined with different type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/import_tests/import_name_conflict_11.ets b/ets2panda/test/ast/parser/ets/import_tests/import_name_conflict_11.ets index f5fcd7f50f..71d3f2ac0a 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/import_name_conflict_11.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/import_name_conflict_11.ets @@ -18,4 +18,5 @@ import {bar} from /* @@ label */"./check_exported_3"; let bar: int = 1; //Throw error: Function already declared. -/* @@@ label Error TypeError: Function 'bar' is already defined with different type. */ + +/* @@@ label Error Semantic error ESE0350: Function 'bar' is already defined with different type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/import_tests/import_name_conflict_12.ets b/ets2panda/test/ast/parser/ets/import_tests/import_name_conflict_12.ets index df4213856b..a6e5482d6c 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/import_name_conflict_12.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/import_name_conflict_12.ets @@ -20,4 +20,5 @@ function Point(): int { } //Throw error: Class already declared. -/* @@@ label Error TypeError: Class 'Point' is already defined with different type. */ + +/* @@@ label Error Semantic error ESE0350: Class 'Point' is already defined with different type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/import_tests/import_name_conflict_2.ets b/ets2panda/test/ast/parser/ets/import_tests/import_name_conflict_2.ets index 071330db39..0e3a51abdd 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/import_name_conflict_2.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/import_name_conflict_2.ets @@ -17,4 +17,5 @@ import * as all from "import_tests/packages/var-duplication"; // Throw error: "a" is defined twice in this package. -/* @@? subpackage_module_2.ets:19:12 Error TypeError: Variable 'a' has already been declared. */ + +/* @@? subpackage_module_2.ets:19:12 Error Semantic error ESE0351: Variable 'a' has already been declared. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/import_tests/import_name_conflict_4.ets b/ets2panda/test/ast/parser/ets/import_tests/import_name_conflict_4.ets index 98e9319e03..a261125ecb 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/import_name_conflict_4.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/import_name_conflict_4.ets @@ -18,4 +18,5 @@ import {foo} from /* @@ label */"import_tests/packages/subpackage-1"; let foo: int = 1; //Throw error: Variable 'foo' is already defined. -/* @@@ label Error TypeError: Variable 'foo' is already defined. */ + +/* @@@ label Error Semantic error ESE0349: Variable 'foo' is already defined. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/import_tests/import_name_conflict_5.ets b/ets2panda/test/ast/parser/ets/import_tests/import_name_conflict_5.ets index 9e117d9e1a..c54bdaf0d0 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/import_name_conflict_5.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/import_name_conflict_5.ets @@ -20,4 +20,5 @@ function bar(): int { } //Throw error: Function already declared. -/* @@? check_exported_3.ets:16:8 Error TypeError: Function bar is already declared. */ + +/* @@? check_exported_3.ets:16:8 Error Semantic error ESE0130: Function bar is already declared. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/import_tests/import_name_conflict_6.ets b/ets2panda/test/ast/parser/ets/import_tests/import_name_conflict_6.ets index 294064cf7a..c317289e6d 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/import_name_conflict_6.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/import_name_conflict_6.ets @@ -18,4 +18,5 @@ import {Point} from /* @@ label */"import_tests/relative_import/Point"; class Point {} //Throw error: Class already declared. -/* @@@ label Error TypeError: Class 'Point' is already defined. */ + +/* @@@ label Error Semantic error ESE0349: Class 'Point' is already defined. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/import_tests/import_name_conflict_7.ets b/ets2panda/test/ast/parser/ets/import_tests/import_name_conflict_7.ets index dbae3e3415..d8a2b7531b 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/import_name_conflict_7.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/import_name_conflict_7.ets @@ -18,4 +18,5 @@ import {foo} from /* @@ label */"import_tests/packages/subpackage-1"; class foo{}; //Throw error: Variable 'foo' is already defined. -/* @@@ label Error TypeError: Variable 'foo' is already defined with different type. */ + +/* @@@ label Error Semantic error ESE0350: Variable 'foo' is already defined with different type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/import_tests/import_name_conflict_8.ets b/ets2panda/test/ast/parser/ets/import_tests/import_name_conflict_8.ets index c4964db7f3..9596d6dfab 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/import_name_conflict_8.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/import_name_conflict_8.ets @@ -18,4 +18,5 @@ import {bar} from /* @@ label */"./check_exported_3"; class bar{}; //Throw error: Function already declared. -/* @@@ label Error TypeError: Function 'bar' is already defined with different type. */ + +/* @@@ label Error Semantic error ESE0350: Function 'bar' is already defined with different type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/import_tests/import_name_conflict_9.ets b/ets2panda/test/ast/parser/ets/import_tests/import_name_conflict_9.ets index 495c4ff776..52c32116cf 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/import_name_conflict_9.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/import_name_conflict_9.ets @@ -18,4 +18,5 @@ import {Point} from /* @@ label */"import_tests/relative_import/Point"; let Point: int = 1; //Throw error: Class already declared. -/* @@@ label Error TypeError: Class 'Point' is already defined with different type. */ + +/* @@@ label Error Semantic error ESE0350: Class 'Point' is already defined with different type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/import_tests/import_name_conflicts/main_1.ets b/ets2panda/test/ast/parser/ets/import_tests/import_name_conflicts/main_1.ets index 31857cd3ba..fcf94f6a76 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/import_name_conflicts/main_1.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/import_name_conflicts/main_1.ets @@ -20,4 +20,5 @@ import {foo_2 as foo} from "./imported_module_2.ets" function main() : void {} // NOTE(kaskov): Add more precise error, when will be suggestions -/* @@? imported_module_2.ets:27:8 Error TypeError: Function foo_1 is already declared. */ + +/* @@? imported_module_2.ets:27:8 Error Semantic error ESE0130: Function foo_1 is already declared. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/import_tests/import_name_conflicts/main_2.ets b/ets2panda/test/ast/parser/ets/import_tests/import_name_conflicts/main_2.ets index 80cf35a016..64a8e4c168 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/import_name_conflicts/main_2.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/import_name_conflicts/main_2.ets @@ -19,4 +19,5 @@ import {flt as floatingPointNumber} from /* @@ label */"./imported_module_2.ets" function main() {} -/* @@@ label Error TypeError: Variable 'floatingPointNumber' is already defined. */ + +/* @@@ label Error Semantic error ESE0349: Variable 'floatingPointNumber' is already defined. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/import_tests/import_name_conflicts/main_3.ets b/ets2panda/test/ast/parser/ets/import_tests/import_name_conflicts/main_3.ets index a2bd7160fe..ad11dedbf5 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/import_name_conflicts/main_3.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/import_name_conflicts/main_3.ets @@ -19,4 +19,5 @@ import {C as B} from /* @@ label */"./imported_module_2.ets"; function main() : void {} -/* @@@ label Error TypeError: Class 'B' is already defined. */ + +/* @@@ label Error Semantic error ESE0349: Class 'B' is already defined. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/import_tests/import_name_conflicts/main_4.ets b/ets2panda/test/ast/parser/ets/import_tests/import_name_conflicts/main_4.ets index 5f9b89e924..6ae21b2404 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/import_name_conflicts/main_4.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/import_name_conflicts/main_4.ets @@ -18,4 +18,5 @@ import {foo_1} from /* @@ label */"./imported_module_1.ets" function main() : void {} -/* @@@ label Error TypeError: Function 'foo_1' is already defined with different type. */ + +/* @@@ label Error Semantic error ESE0350: Function 'foo_1' is already defined with different type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/import_tests/import_name_conflicts/main_5.ets b/ets2panda/test/ast/parser/ets/import_tests/import_name_conflicts/main_5.ets index de20e6e0ff..5556336e28 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/import_name_conflicts/main_5.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/import_name_conflicts/main_5.ets @@ -18,4 +18,5 @@ import /* @@ label */* as b from "./imported_module_2.ets" function main() : void {} -/* @@@ label Error TypeError: Variable 'b' has already been declared. */ + +/* @@@ label Error Semantic error ESE0351: Variable 'b' has already been declared. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/import_tests/import_name_conflicts/main_6.ets b/ets2panda/test/ast/parser/ets/import_tests/import_name_conflicts/main_6.ets index 48c5443552..0e3389ab93 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/import_name_conflicts/main_6.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/import_name_conflicts/main_6.ets @@ -20,4 +20,5 @@ import * as c from "./imported_module_2.ets"; function main() { console.log(c); } -/* @@@ label Error TypeError: Variable 'c' is already defined with different type. */ + +/* @@@ label Error Semantic error ESE0350: Variable 'c' is already defined with different type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/import_tests/import_name_conflicts/main_7.ets b/ets2panda/test/ast/parser/ets/import_tests/import_name_conflicts/main_7.ets index 0424ee2b69..05e519a44f 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/import_name_conflicts/main_7.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/import_name_conflicts/main_7.ets @@ -18,4 +18,5 @@ import type {CType as A} from /* @@ label */"./imported_module_2.ets" function main() : void {} -/* @@@ label Error TypeError: Class 'A' is already defined. */ + +/* @@@ label Error Semantic error ESE0349: Class 'A' is already defined. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/import_tests/import_name_conflicts/main_8.ets b/ets2panda/test/ast/parser/ets/import_tests/import_name_conflicts/main_8.ets index fdd98363e9..f3621e5ba8 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/import_name_conflicts/main_8.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/import_name_conflicts/main_8.ets @@ -18,4 +18,5 @@ import type {CType as B} from /* @@ label */"./imported_module_2.ets" function main() : void {} -/* @@@ label Error TypeError: Class 'B' is already defined. */ + +/* @@@ label Error Semantic error ESE0349: Class 'B' is already defined. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/import_tests/import_no_comma.ets b/ets2panda/test/ast/parser/ets/import_tests/import_no_comma.ets index dc956c6f39..0ae13a5b7f 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/import_no_comma.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/import_no_comma.ets @@ -15,9 +15,10 @@ import {foo flt} from "import_tests/packages"; -/* @@? 16:13 Error SyntaxError: Unexpected token, expected ',' or '}'. */ -/* @@? 16:13 Error SyntaxError: Unexpected token, expected 'from'. */ -/* @@? 16:16 Error SyntaxError: Unexpected token, expected string literal. */ -/* @@? 16:18 Error SyntaxError: Unexpected token 'from'. */ -/* @@? 16:18 Error TypeError: Unresolved reference from */ -/* @@? 16:23 Error SyntaxError: Unexpected token 'import_tests/packages'. */ + +/* @@? 16:13 Error Syntax error ESY0229: Unexpected token, expected ',' or '}'. */ +/* @@? 16:13 Error Syntax error ESY0228: Unexpected token, expected 'from'. */ +/* @@? 16:16 Error Syntax error ESY0151: Unexpected token, expected string literal. */ +/* @@? 16:18 Error Syntax error ESY0227: Unexpected token 'from'. */ +/* @@? 16:18 Error Semantic error ESE0143: Unresolved reference from */ +/* @@? 16:23 Error Syntax error ESY0227: Unexpected token 'import_tests/packages'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/import_tests/import_type_error_in_class.ets b/ets2panda/test/ast/parser/ets/import_tests/import_type_error_in_class.ets index eec369a4bf..561f26e7ce 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/import_type_error_in_class.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/import_type_error_in_class.ets @@ -24,4 +24,5 @@ export class InImport { // used to give wrong output: // TypeError: Type '"InImport"' cannot be assigned to type 'int' [export_and_import_class.ets:21:1] -/* @@@ label Error TypeError: Type '"InImport"' cannot be assigned to type 'Int' */ + +/* @@@ label Error Semantic error ESE0318: Type '"InImport"' cannot be assigned to type 'Int' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/import_tests/import_type_error_top_level.ets b/ets2panda/test/ast/parser/ets/import_tests/import_type_error_top_level.ets index c22d229514..e9891b63df 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/import_type_error_top_level.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/import_type_error_top_level.ets @@ -25,4 +25,5 @@ export function fooImport() { // used to give wrong output: // TypeError: Type 'int' cannot be assigned to type 'String' [export_and_import_top_level.ets:21:1] -/* @@@ label Error TypeError: Type 'Int' cannot be assigned to type 'String' */ + +/* @@@ label Error Semantic error ESE0318: Type 'Int' cannot be assigned to type 'String' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/import_tests/invalid_default_export/default_export_invalid_syntax_3.ets b/ets2panda/test/ast/parser/ets/import_tests/invalid_default_export/default_export_invalid_syntax_3.ets index 01ce457289..ddd053c2be 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/invalid_default_export/default_export_invalid_syntax_3.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/invalid_default_export/default_export_invalid_syntax_3.ets @@ -15,4 +15,5 @@ export default * /* @@ err */from "./for_re-export" -/* @@@ err Error SyntaxError: Cannot use 'export default' in re-export context */ + +/* @@@ err Error Syntax error ESY0244: Cannot use 'export default' in re-export context */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/import_tests/invalid_default_export/default_export_invalid_syntax_4.ets b/ets2panda/test/ast/parser/ets/import_tests/invalid_default_export/default_export_invalid_syntax_4.ets index 51575a695b..d677789d5b 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/invalid_default_export/default_export_invalid_syntax_4.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/invalid_default_export/default_export_invalid_syntax_4.ets @@ -15,4 +15,5 @@ export default {foo} /* @@ err */from "./for_re-export" -/* @@@ err Error SyntaxError: Cannot use 'export default' in re-export context */ + +/* @@@ err Error Syntax error ESY0244: Cannot use 'export default' in re-export context */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/import_tests/modules/invalid_namespace_import.ets b/ets2panda/test/ast/parser/ets/import_tests/modules/invalid_namespace_import.ets index 1a88cd181c..20156589aa 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/modules/invalid_namespace_import.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/modules/invalid_namespace_import.ets @@ -15,4 +15,5 @@ import * /* @@ label */from "./module" -/* @@@ label Error SyntaxError: Unexpected token, expected 'as'. */ + +/* @@@ label Error Syntax error ESY0228: Unexpected token, expected 'as'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/import_tests/modules/invalid_namespace_import2.ets b/ets2panda/test/ast/parser/ets/import_tests/modules/invalid_namespace_import2.ets index c61d893c63..827ffff55a 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/modules/invalid_namespace_import2.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/modules/invalid_namespace_import2.ets @@ -15,9 +15,10 @@ import * \u0061s something from "./module" -/* @@? 16:10 Error SyntaxError: Escape sequences are not allowed in keyword. */ -/* @@? 16:10 Error SyntaxError: Escape sequences are not allowed in 'as' keyword.*/ -/* @@? 16:10 Error SyntaxError: Expected 'as', got 'identification literal'. */ -/* @@? 16:18 Error SyntaxError: Unexpected token, expected 'from'. */ -/* @@? 16:28 Error SyntaxError: Unexpected token, expected string literal. */ -/* @@? 16:33 Error SyntaxError: Unexpected token './module'. */ + +/* @@? 16:10 Error Syntax error ESY0271: Escape sequences are not allowed in keyword. */ +/* @@? 16:10 Error Syntax error ESY0108: Escape sequences are not allowed in 'as' keyword. */ +/* @@? 16:10 Error Syntax error ESY0230: Expected 'as', got 'identification literal'. */ +/* @@? 16:18 Error Syntax error ESY0228: Unexpected token, expected 'from'. */ +/* @@? 16:28 Error Syntax error ESY0151: Unexpected token, expected string literal. */ +/* @@? 16:33 Error Syntax error ESY0227: Unexpected token './module'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/import_tests/modules/too_many_default_exports.ets b/ets2panda/test/ast/parser/ets/import_tests/modules/too_many_default_exports.ets index a70cf173d9..67f2bad535 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/modules/too_many_default_exports.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/modules/too_many_default_exports.ets @@ -16,4 +16,5 @@ export default function TestFunc(): void {} export default /* @@ label */function TestFuncToo(): void {} -/* @@@ label Error TypeError: Only one default export is allowed in a module */ + +/* @@@ label Error Semantic error ESE0374: Only one default export is allowed in a module */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/import_tests/modules/too_many_default_exports_2.ets b/ets2panda/test/ast/parser/ets/import_tests/modules/too_many_default_exports_2.ets index 6f77ae0896..5b4bac366c 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/modules/too_many_default_exports_2.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/modules/too_many_default_exports_2.ets @@ -15,4 +15,5 @@ export default let a = 2, /* @@ label */b = 3; -/* @@@ label Error TypeError: Only one default export is allowed in a module */ + +/* @@@ label Error Semantic error ESE0374: Only one default export is allowed in a module */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/import_tests/packages/different-header/subpackage_module_1.ets b/ets2panda/test/ast/parser/ets/import_tests/packages/different-header/subpackage_module_1.ets index fab0916b77..51caff9ad9 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/packages/different-header/subpackage_module_1.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/packages/different-header/subpackage_module_1.ets @@ -17,5 +17,6 @@ export let a: String = "SubpackageA"; -/* @@? 1:1 Error SyntaxError: Files 'subpackage_module_1' and 'subpackage_module_2' are in the same folder, but have different package names. */ + +/* @@? 1:1 Error Syntax error ESY0002: Files 'subpackage_module_1' and 'subpackage_module_2' are in the same folder, but have different package names. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/import_tests/packages/different-header/subpackage_module_2.ets b/ets2panda/test/ast/parser/ets/import_tests/packages/different-header/subpackage_module_2.ets index 8576819f85..c95dc28acf 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/packages/different-header/subpackage_module_2.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/packages/different-header/subpackage_module_2.ets @@ -17,4 +17,5 @@ export let b: String = "SubpackageA"; -/* @@? 1:1 Error SyntaxError: Files 'subpackage_module_2' and 'subpackage_module_1' are in the same folder, but have different package names. */ + +/* @@? 1:1 Error Syntax error ESY0002: Files 'subpackage_module_2' and 'subpackage_module_1' are in the same folder, but have different package names. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/import_tests/type/import_type_1.ets b/ets2panda/test/ast/parser/ets/import_tests/type/import_type_1.ets index 4f8dbcf52f..4b9d1f476f 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/type/import_type_1.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/type/import_type_1.ets @@ -17,5 +17,6 @@ import {/* @@ label */A} from "./type" let aa:A; -/* @@@ label Error TypeError: Cannot find imported element 'A' */ -/* @@? 18:8 Error TypeError: Cannot find type 'A'. */ + +/* @@@ label Error Semantic error ESE0356: Cannot find imported element 'A' */ +/* @@? 18:8 Error Semantic error ESE0371: Cannot find type 'A'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/import_tests/type/import_type_2.ets b/ets2panda/test/ast/parser/ets/import_tests/type/import_type_2.ets index 2a63140b10..4de0376cf9 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/type/import_type_2.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/type/import_type_2.ets @@ -17,4 +17,5 @@ import * as B from "./type" let aa:B./* @@ label */A; -/* @@@ label Error TypeError: 'A' type does not exist. */ + +/* @@@ label Error Semantic error ESE0070: 'A' type does not exist. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/import_tests/type/type_3.ets b/ets2panda/test/ast/parser/ets/import_tests/type/type_3.ets index ea9cf69480..4e50e50d01 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/type/type_3.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/type/type_3.ets @@ -19,4 +19,5 @@ class TestClass {} export {foo} export type {TestClass as foo} -/* @@? 20:14 Error SyntaxError: Cannot export two different names with the same export alias name 'foo'. */ + +/* @@? 20:14 Error Syntax error ESY0344: Cannot export two different names with the same export alias name 'foo'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/import_tests/wrong_import_decl_placement/import_decl_after_decl_n.ets b/ets2panda/test/ast/parser/ets/import_tests/wrong_import_decl_placement/import_decl_after_decl_n.ets index 5d987046c3..4fdac807e3 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/wrong_import_decl_placement/import_decl_after_decl_n.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/wrong_import_decl_placement/import_decl_after_decl_n.ets @@ -19,4 +19,5 @@ class TestClass { /* @@ err */import {testFunc} from "./export" -/* @@@ err Error SyntaxError: Import declarations can only be used on the top level and before any other declaration, top level statement or directive. */ + +/* @@@ err Error Syntax error ESY0226: Import declarations can only be used on the top level and before any other declaration, top level statement or directive. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/import_tests/wrong_import_decl_placement/import_decl_in_block_n.ets b/ets2panda/test/ast/parser/ets/import_tests/wrong_import_decl_placement/import_decl_in_block_n.ets index 5298672ca7..194032259d 100644 --- a/ets2panda/test/ast/parser/ets/import_tests/wrong_import_decl_placement/import_decl_in_block_n.ets +++ b/ets2panda/test/ast/parser/ets/import_tests/wrong_import_decl_placement/import_decl_in_block_n.ets @@ -17,4 +17,5 @@ function main(): void { /* @@ err */import {testFunc} from "./export" } -/* @@@ err Error SyntaxError: Import declarations can only be used on the top level and before any other declaration, top level statement or directive. */ + +/* @@@ err Error Syntax error ESY0226: Import declarations can only be used on the top level and before any other declaration, top level statement or directive. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/increment-on-nullish-type-undefined-invalid.ets b/ets2panda/test/ast/parser/ets/increment-on-nullish-type-undefined-invalid.ets index 76b9878b1c..2e4b9788f6 100644 --- a/ets2panda/test/ast/parser/ets/increment-on-nullish-type-undefined-invalid.ets +++ b/ets2panda/test/ast/parser/ets/increment-on-nullish-type-undefined-invalid.ets @@ -16,6 +16,7 @@ let a = 1; a/* @@ label */~/* @@ label2 */!/* @@ label3 */; } -/* @@@ label Error SyntaxError: Unexpected token '~'. */ -/* @@@ label2 Error TypeError: Bad operand type, the type of the operand must be numeric type. */ -/* @@@ label3 Error SyntaxError: Unexpected token ';'. */ + +/* @@@ label Error Syntax error ESY0227: Unexpected token '~'. */ +/* @@@ label2 Error Semantic error ESE0066: Bad operand type, the type of the operand must be numeric type. */ +/* @@@ label3 Error Syntax error ESY0227: Unexpected token ';'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/increment-on-nullish-type-undefined.ets b/ets2panda/test/ast/parser/ets/increment-on-nullish-type-undefined.ets index 8ff53d347d..05331fa653 100644 --- a/ets2panda/test/ast/parser/ets/increment-on-nullish-type-undefined.ets +++ b/ets2panda/test/ast/parser/ets/increment-on-nullish-type-undefined.ets @@ -17,5 +17,6 @@ a!++; } - /* @@? 17:3 Warning Warning: Bad operand type, the operand of the non-nullish expression is 'null' or 'undefined'. */ - /* @@? 17:3 Error TypeError: Type 'Double' cannot be assigned to type 'undefined' */ + +/* @@? 17:3 Error Semantic error ESE0318: Type 'Double' cannot be assigned to type 'undefined' */ +/* @@? 17:3 Warning Warning W0014: Bad operand type, the operand of the non-nullish expression is 'null' or 'undefined'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/index_not_support_such_type.ets b/ets2panda/test/ast/parser/ets/index_not_support_such_type.ets index c713e31333..87d7230305 100644 --- a/ets2panda/test/ast/parser/ets/index_not_support_such_type.ets +++ b/ets2panda/test/ast/parser/ets/index_not_support_such_type.ets @@ -18,12 +18,13 @@ function main() { console.log(/* @@ label */a[0]) } -/* @@? 18:5 Error TypeError: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Boolean): void` */ -/* @@? 18:5 Error TypeError: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Byte): void` */ -/* @@? 18:5 Error TypeError: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Short): void` */ -/* @@? 18:5 Error TypeError: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Char): void` */ -/* @@? 18:5 Error TypeError: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Int): void` */ -/* @@? 18:5 Error TypeError: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Long): void` */ -/* @@? 18:5 Error TypeError: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Float): void` */ -/* @@? 18:5 Error TypeError: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Double): void` */ -/* @@@ label Error TypeError: Object type doesn't have proper index access method. */ + +/* @@? 18:5 Error Semantic error ESE0142: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Boolean): void` */ +/* @@? 18:5 Error Semantic error ESE0142: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Byte): void` */ +/* @@? 18:5 Error Semantic error ESE0142: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Short): void` */ +/* @@? 18:5 Error Semantic error ESE0142: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Char): void` */ +/* @@? 18:5 Error Semantic error ESE0142: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Int): void` */ +/* @@? 18:5 Error Semantic error ESE0142: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Long): void` */ +/* @@? 18:5 Error Semantic error ESE0142: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Float): void` */ +/* @@? 18:5 Error Semantic error ESE0142: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Double): void` */ +/* @@@ label Error Semantic error ESE0250: Object type doesn't have proper index access method. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/index_signature_error_1.ets b/ets2panda/test/ast/parser/ets/index_signature_error_1.ets index 1b35a8935c..567775e21d 100644 --- a/ets2panda/test/ast/parser/ets/index_signature_error_1.ets +++ b/ets2panda/test/ast/parser/ets/index_signature_error_1.ets @@ -22,6 +22,7 @@ function getStringArray(): StringArray { let myArray: StringArray = getStringArray() let secondItem = /* @@ label3 */myArray[1] -/* @@@ label1 Error TypeError: Indexed signatures are not allowed. Use arrays instead! */ -/* @@@ label2 Error TypeError: Type 'Array' is not compatible with the enclosing method's return type 'StringArray' */ -/* @@@ label3 Error TypeError: Object type doesn't have proper index access method. */ + +/* @@@ label1 Error Semantic error ESE0343: Indexed signatures are not allowed. Use arrays instead! */ +/* @@@ label2 Error Semantic error ESE0091: Type 'Array' is not compatible with the enclosing method's return type 'StringArray' */ +/* @@@ label3 Error Semantic error ESE0250: Object type doesn't have proper index access method. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/index_signature_error_2.ets b/ets2panda/test/ast/parser/ets/index_signature_error_2.ets index 8eee907561..80849badc9 100644 --- a/ets2panda/test/ast/parser/ets/index_signature_error_2.ets +++ b/ets2panda/test/ast/parser/ets/index_signature_error_2.ets @@ -22,6 +22,7 @@ function getStringArray(): StringArray { let myArray: StringArray = getStringArray() let secondItem = /* @@ label3 */myArray[1] -/* @@@ label1 Error TypeError: Indexed signatures are not allowed. Use arrays instead! */ -/* @@@ label2 Error TypeError: Type 'Array' is not compatible with the enclosing method's return type 'StringArray' */ -/* @@@ label3 Error TypeError: Object type doesn't have proper index access method. */ + +/* @@@ label1 Error Semantic error ESE0343: Indexed signatures are not allowed. Use arrays instead! */ +/* @@@ label2 Error Semantic error ESE0091: Type 'Array' is not compatible with the enclosing method's return type 'StringArray' */ +/* @@@ label3 Error Semantic error ESE0250: Object type doesn't have proper index access method. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/indexed_access_type_1.ets b/ets2panda/test/ast/parser/ets/indexed_access_type_1.ets index e61fe1d3fa..373062f16d 100644 --- a/ets2panda/test/ast/parser/ets/indexed_access_type_1.ets +++ b/ets2panda/test/ast/parser/ets/indexed_access_type_1.ets @@ -16,5 +16,6 @@ type Point = /* @@ label1 */{x: number = 0; y: number = 0} type N = Point/* @@ label2 */["x"] -/* @@@ label1 Error SyntaxError: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ -/* @@@ label2 Error SyntaxError: Indexed access types are not supported, use type name instead! */ + +/* @@@ label1 Error Syntax error ESY177354: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ +/* @@@ label2 Error Syntax error ESY49888: Indexed access types are not supported, use type name instead! */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/indexed_access_type_2.ets b/ets2panda/test/ast/parser/ets/indexed_access_type_2.ets index 479a44a0de..393273f356 100644 --- a/ets2panda/test/ast/parser/ets/indexed_access_type_2.ets +++ b/ets2panda/test/ast/parser/ets/indexed_access_type_2.ets @@ -16,4 +16,5 @@ class Point {x: number = 0; y: number = 0} type N = Point/* @@ label */["x"] -/* @@@ label Error SyntaxError: Indexed access types are not supported, use type name instead! */ + +/* @@@ label Error Syntax error ESY49888: Indexed access types are not supported, use type name instead! */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/inheritance-cyclic.ets b/ets2panda/test/ast/parser/ets/inheritance-cyclic.ets index ac7b4b0c7c..e0377c7b0c 100644 --- a/ets2panda/test/ast/parser/ets/inheritance-cyclic.ets +++ b/ets2panda/test/ast/parser/ets/inheritance-cyclic.ets @@ -18,4 +18,5 @@ class B extends A {} class C extends B {} class D extends C {} -/* @@@ label Error TypeError: Cyclic inheritance involving A. */ + +/* @@@ label Error Semantic error ESE0310: Cyclic inheritance involving A. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/instanceof_on_type.ets b/ets2panda/test/ast/parser/ets/instanceof_on_type.ets index cb4b9dcc7b..1569f816a0 100644 --- a/ets2panda/test/ast/parser/ets/instanceof_on_type.ets +++ b/ets2panda/test/ast/parser/ets/instanceof_on_type.ets @@ -22,6 +22,7 @@ let c = X instanceof Object let d = X instanceof X let f = B instanceof Object -/* @@? 21:9 Error SyntaxError: The left operand of 'instanceof' operator cannot be a type. */ -/* @@? 22:9 Error SyntaxError: The left operand of 'instanceof' operator cannot be a type. */ -/* @@? 23:9 Error SyntaxError: The left operand of 'instanceof' operator cannot be a type. */ + +/* @@? 21:9 Error Syntax error ESY0310: The left operand of 'instanceof' operator cannot be a type. */ +/* @@? 22:9 Error Syntax error ESY0310: The left operand of 'instanceof' operator cannot be a type. */ +/* @@? 23:9 Error Syntax error ESY0310: The left operand of 'instanceof' operator cannot be a type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/instanceof_with_not_object_type.ets b/ets2panda/test/ast/parser/ets/instanceof_with_not_object_type.ets index 3e2f65ca14..ce0396fd9d 100644 --- a/ets2panda/test/ast/parser/ets/instanceof_with_not_object_type.ets +++ b/ets2panda/test/ast/parser/ets/instanceof_with_not_object_type.ets @@ -24,4 +24,5 @@ function main() b instanceof /* @@ label */a } -/* @@@ label Error TypeError: Cannot find type 'a'. */ + +/* @@@ label Error Semantic error ESE0371: Cannot find type 'a'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/instantied_abstract_class_with_array_creation_expression.ets b/ets2panda/test/ast/parser/ets/instantied_abstract_class_with_array_creation_expression.ets index a9c83cba57..4ff4e28294 100644 --- a/ets2panda/test/ast/parser/ets/instantied_abstract_class_with_array_creation_expression.ets +++ b/ets2panda/test/ast/parser/ets/instantied_abstract_class_with_array_creation_expression.ets @@ -19,4 +19,5 @@ function main(): void { /* @@ label */new cls[10]; } -/* @@@ label Error TypeError: Cannot use array creation expression with abstract classes and interfaces. */ + +/* @@@ label Error Semantic error ESE0050: Cannot use array creation expression with abstract classes and interfaces. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/instantied_interface_with_array_creation_expression.ets b/ets2panda/test/ast/parser/ets/instantied_interface_with_array_creation_expression.ets index d933bf947b..f11f6a21c5 100644 --- a/ets2panda/test/ast/parser/ets/instantied_interface_with_array_creation_expression.ets +++ b/ets2panda/test/ast/parser/ets/instantied_interface_with_array_creation_expression.ets @@ -19,4 +19,5 @@ function main(): void { /* @@ label */new iface[5]; } -/* @@@ label Error TypeError: Cannot use array creation expression with abstract classes and interfaces. */ + +/* @@@ label Error Semantic error ESE0050: Cannot use array creation expression with abstract classes and interfaces. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/interface-override-function.ets b/ets2panda/test/ast/parser/ets/interface-override-function.ets index f874ad76b5..e8fa6b8135 100644 --- a/ets2panda/test/ast/parser/ets/interface-override-function.ets +++ b/ets2panda/test/ast/parser/ets/interface-override-function.ets @@ -26,4 +26,5 @@ interface J extends K { } -/* @@@ label Error SyntaxError: 'override' modifier cannot appear in interfaces. */ + +/* @@@ label Error Syntax error ESY0189: 'override' modifier cannot appear in interfaces. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/interface.ets b/ets2panda/test/ast/parser/ets/interface.ets index 2821c3c019..3c26a2a62e 100644 --- a/ets2panda/test/ast/parser/ets/interface.ets +++ b/ets2panda/test/ast/parser/ets/interface.ets @@ -17,4 +17,5 @@ interface G {} -/* @@@ label Error TypeError: Cannot find type 'FunctioN'. */ + +/* @@@ label Error Semantic error ESE0371: Cannot find type 'FunctioN'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/interfaceAbstract.ets b/ets2panda/test/ast/parser/ets/interfaceAbstract.ets index afd71e3dd2..739b356500 100644 --- a/ets2panda/test/ast/parser/ets/interfaceAbstract.ets +++ b/ets2panda/test/ast/parser/ets/interfaceAbstract.ets @@ -17,4 +17,5 @@ interface Vehicle { private getHorsePower/* @@ label */(rpm: int, torque: int): int } -/* @@@ label Error SyntaxError: Private interface methods must have body. */ + +/* @@@ label Error Syntax error ESY0032: Private interface methods must have body. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/interfaceExtendInterfaces1.ets b/ets2panda/test/ast/parser/ets/interfaceExtendInterfaces1.ets index cce7b4d638..17691139fe 100644 --- a/ets2panda/test/ast/parser/ets/interfaceExtendInterfaces1.ets +++ b/ets2panda/test/ast/parser/ets/interfaceExtendInterfaces1.ets @@ -28,4 +28,5 @@ interface B { interface C extends A, B { } -/* @@? 28:1 Error TypeError: Method 'foo' is declared in A and B interfaces. */ + +/* @@? 28:1 Error Semantic error ESE0187: Method 'foo' is declared in A and B interfaces. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/interfaceExtendInterfaces2.ets b/ets2panda/test/ast/parser/ets/interfaceExtendInterfaces2.ets index 2bbca592d6..f892cb136b 100644 --- a/ets2panda/test/ast/parser/ets/interfaceExtendInterfaces2.ets +++ b/ets2panda/test/ast/parser/ets/interfaceExtendInterfaces2.ets @@ -33,6 +33,7 @@ interface C { interface D extends A, B, C {} -/* @@? 34:1 Error TypeError: Method 'foo' is declared in A and B interfaces. */ -/* @@? 34:1 Error TypeError: Method 'foo' is declared in A and C interfaces. */ -/* @@? 34:1 Error TypeError: Method 'foo' is declared in B and C interfaces. */ + +/* @@? 34:1 Error Semantic error ESE0187: Method 'foo' is declared in A and B interfaces. */ +/* @@? 34:1 Error Semantic error ESE0187: Method 'foo' is declared in A and C interfaces. */ +/* @@? 34:1 Error Semantic error ESE0187: Method 'foo' is declared in B and C interfaces. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/interfaceMethodNativeModifier.ets b/ets2panda/test/ast/parser/ets/interfaceMethodNativeModifier.ets index f4e3a406f0..8fc0ec0180 100644 --- a/ets2panda/test/ast/parser/ets/interfaceMethodNativeModifier.ets +++ b/ets2panda/test/ast/parser/ets/interfaceMethodNativeModifier.ets @@ -17,4 +17,5 @@ interface I { /* @@ label */native foo() } -/* @@@ label Error SyntaxError: Identifier expected, got 'native'. */ + +/* @@@ label Error Syntax error ESY0224: Identifier expected, got 'native'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/interfaceMethodPrivatePrivate.ets b/ets2panda/test/ast/parser/ets/interfaceMethodPrivatePrivate.ets index ec065fd50e..69193bd664 100644 --- a/ets2panda/test/ast/parser/ets/interfaceMethodPrivatePrivate.ets +++ b/ets2panda/test/ast/parser/ets/interfaceMethodPrivatePrivate.ets @@ -17,6 +17,7 @@ interface I { private private foo() } -/* @@? 17:13 Error SyntaxError: Identifier expected. */ -/* @@? 17:13 Error SyntaxError: Unexpected token, expected ','. */ -/* @@? 17:24 Error SyntaxError: Private interface methods must have body. */ + +/* @@? 17:13 Error Syntax error ESY0122: Identifier expected. */ +/* @@? 17:13 Error Syntax error ESY0228: Unexpected token, expected ','. */ +/* @@? 17:24 Error Syntax error ESY0032: Private interface methods must have body. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/interfaceMethodPrivateStaticModifier.ets b/ets2panda/test/ast/parser/ets/interfaceMethodPrivateStaticModifier.ets index b2e896848a..b5efac0a6e 100644 --- a/ets2panda/test/ast/parser/ets/interfaceMethodPrivateStaticModifier.ets +++ b/ets2panda/test/ast/parser/ets/interfaceMethodPrivateStaticModifier.ets @@ -17,6 +17,7 @@ interface I { private static foo() } -/* @@? 17:13 Error SyntaxError: Identifier expected. */ -/* @@? 17:13 Error SyntaxError: Unexpected token, expected ','. */ -/* @@? 17:13 Error SyntaxError: Identifier expected, got 'static'. */ + +/* @@? 17:13 Error Syntax error ESY0122: Identifier expected. */ +/* @@? 17:13 Error Syntax error ESY0228: Unexpected token, expected ','. */ +/* @@? 17:13 Error Syntax error ESY0224: Identifier expected, got 'static'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/interfaceMethodReadonlyModifier.ets b/ets2panda/test/ast/parser/ets/interfaceMethodReadonlyModifier.ets index 9d4cf23b2b..f87a96ac3c 100644 --- a/ets2panda/test/ast/parser/ets/interfaceMethodReadonlyModifier.ets +++ b/ets2panda/test/ast/parser/ets/interfaceMethodReadonlyModifier.ets @@ -17,8 +17,8 @@ interface I { readonly foo() } -/* @@? 17:17 Error SyntaxError: Interface fields must have type annotation. */ -/* @@? 17:18 Error SyntaxError: Invalid Type. */ -/* @@? 17:18 Error SyntaxError: Unexpected token, expected ','. */ -/* @@? 17:18 Error SyntaxError: Identifier expected, got 'end of stream'. */ -/* @@? 18:1 Error SyntaxError: Identifier expected. */ \ No newline at end of file +/* @@? 17:17 Error Syntax error ESY0119: Interface fields must have type annotation. */ +/* @@? 17:18 Error Syntax error ESY0138: Invalid Type. */ +/* @@? 17:18 Error Syntax error ESY0228: Unexpected token, expected ','. */ +/* @@? 17:18 Error Syntax error ESY0224: Identifier expected, got 'end of stream'. */ +/* @@? 18:1 Error Syntax error ESY0122: Identifier expected. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/interfaceMethodStaticModifier.ets b/ets2panda/test/ast/parser/ets/interfaceMethodStaticModifier.ets index ec59242f2d..858c60a07e 100644 --- a/ets2panda/test/ast/parser/ets/interfaceMethodStaticModifier.ets +++ b/ets2panda/test/ast/parser/ets/interfaceMethodStaticModifier.ets @@ -17,4 +17,5 @@ interface I { /* @@ label */static foo() } -/* @@@ label Error SyntaxError: Identifier expected, got 'static'. */ + +/* @@@ label Error Syntax error ESY0224: Identifier expected, got 'static'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/interface_ambient_call_signature.ets b/ets2panda/test/ast/parser/ets/interface_ambient_call_signature.ets index 53111d02a4..59c3f4dd7c 100644 --- a/ets2panda/test/ast/parser/ets/interface_ambient_call_signature.ets +++ b/ets2panda/test/ast/parser/ets/interface_ambient_call_signature.ets @@ -17,4 +17,4 @@ declare interface A { (index :ee ): string } -/* @@? 17:13 Error TypeError: Cannot find type 'ee'. */ \ No newline at end of file +/* @@? 17:13 Error Semantic error ESE0371: Cannot find type 'ee'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/interface_ambient_call_signature_1.ets b/ets2panda/test/ast/parser/ets/interface_ambient_call_signature_1.ets index fc59862c29..9f2de5a1ed 100644 --- a/ets2panda/test/ast/parser/ets/interface_ambient_call_signature_1.ets +++ b/ets2panda/test/ast/parser/ets/interface_ambient_call_signature_1.ets @@ -16,4 +16,4 @@ declare interface A { (arg : string: string } - /* @@? 17:20 Error SyntaxError: Unexpected token, expected ',' or ')'. */ \ No newline at end of file + /* @@? 17:20 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/interface_ambient_indexer_1.ets b/ets2panda/test/ast/parser/ets/interface_ambient_indexer_1.ets index 60f624907e..165f6fe846 100644 --- a/ets2panda/test/ast/parser/ets/interface_ambient_indexer_1.ets +++ b/ets2panda/test/ast/parser/ets/interface_ambient_indexer_1.ets @@ -19,4 +19,5 @@ declare interface A { [index : number]: stringdd } -/* @@? 19:5 Error TypeError: Cannot find type 'stringdd'. */ + +/* @@? 19:5 Error Semantic error ESE0371: Cannot find type 'stringdd'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/interface_ambient_indexer_2.ets b/ets2panda/test/ast/parser/ets/interface_ambient_indexer_2.ets index 77e7f5b1ae..37b128f8ad 100644 --- a/ets2panda/test/ast/parser/ets/interface_ambient_indexer_2.ets +++ b/ets2panda/test/ast/parser/ets/interface_ambient_indexer_2.ets @@ -17,15 +17,16 @@ declare interface A { [index : string]: string } -/* @@? 17:14 Error SyntaxError: Index type must be number in index signature. */ -/* @@? 17:14 Error SyntaxError: ] expected in index signature. */ -/* @@? 17:20 Error SyntaxError: An index signature must have a type annotation. */ -/* @@? 17:20 Error SyntaxError: Expected ':', got ']'. */ -/* @@? 17:20 Error SyntaxError: Invalid Type. */ -/* @@? 17:20 Error SyntaxError: Return type of index signature from exported class or interface need to be identifier. */ -/* @@? 17:20 Error SyntaxError: Unexpected token, expected ','. */ -/* @@? 17:20 Error SyntaxError: Identifier expected, got 'end of stream'. */ -/* @@? 17:21 Error SyntaxError: Identifier expected. */ -/* @@? 17:21 Error SyntaxError: Unexpected token, expected ','. */ -/* @@? 17:21 Error SyntaxError: Identifier expected, got 'end of stream'. */ -/* @@? 18:1 Error SyntaxError: Invalid Type. */ + +/* @@? 17:14 Error Syntax error ESY0018: Index type must be number in index signature. */ +/* @@? 17:14 Error Syntax error ESY0019: ] expected in index signature. */ +/* @@? 17:20 Error Syntax error ESY0020: An index signature must have a type annotation. */ +/* @@? 17:20 Error Syntax error ESY0230: Expected ':', got ']'. */ +/* @@? 17:20 Error Syntax error ESY0138: Invalid Type. */ +/* @@? 17:20 Error Syntax error ESY0021: Return type of index signature from exported class or interface need to be identifier. */ +/* @@? 17:20 Error Syntax error ESY0228: Unexpected token, expected ','. */ +/* @@? 17:20 Error Syntax error ESY0224: Identifier expected, got 'end of stream'. */ +/* @@? 17:21 Error Syntax error ESY0122: Identifier expected. */ +/* @@? 17:21 Error Syntax error ESY0228: Unexpected token, expected ','. */ +/* @@? 17:21 Error Syntax error ESY0224: Identifier expected, got 'end of stream'. */ +/* @@? 18:1 Error Syntax error ESY0138: Invalid Type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/interface_ambient_iterable.ets b/ets2panda/test/ast/parser/ets/interface_ambient_iterable.ets index a186fd0f70..6b794022c8 100644 --- a/ets2panda/test/ast/parser/ets/interface_ambient_iterable.ets +++ b/ets2panda/test/ast/parser/ets/interface_ambient_iterable.ets @@ -16,4 +16,5 @@ declare interface IterableInterface { [Symbol.iterator]: Iterable } -/* @@? 17:22 Error TypeError: Type 'Iterable' is generic but type argument were not provided. */ + +/* @@? 17:22 Error Semantic error ESE0170: Type 'Iterable' is generic but type argument were not provided. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/interface_extends_class.ets b/ets2panda/test/ast/parser/ets/interface_extends_class.ets index 6e88716f0c..01da371e54 100644 --- a/ets2panda/test/ast/parser/ets/interface_extends_class.ets +++ b/ets2panda/test/ast/parser/ets/interface_extends_class.ets @@ -17,4 +17,5 @@ class A {} interface BInterface extends /* @@ label */A {} -/* @@@ label Error TypeError: Interfaces cannot extend classes, only other interfaces. */ + +/* @@@ label Error Semantic error ESE0378: Interfaces cannot extend classes, only other interfaces. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/interface_instantiation.ets b/ets2panda/test/ast/parser/ets/interface_instantiation.ets index baa3579c4d..6b5d55e898 100644 --- a/ets2panda/test/ast/parser/ets/interface_instantiation.ets +++ b/ets2panda/test/ast/parser/ets/interface_instantiation.ets @@ -16,4 +16,5 @@ interface Base {} let b = /* @@ label */new Base -/* @@@ label Error TypeError: Base is an interface therefore cannot be instantiated. */ + +/* @@@ label Error Semantic error ESE0275: Base is an interface therefore cannot be instantiated. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/interface_late_initialization_conflict_modifier.ets b/ets2panda/test/ast/parser/ets/interface_late_initialization_conflict_modifier.ets index af859301bf..0d96c11f34 100644 --- a/ets2panda/test/ast/parser/ets/interface_late_initialization_conflict_modifier.ets +++ b/ets2panda/test/ast/parser/ets/interface_late_initialization_conflict_modifier.ets @@ -18,5 +18,6 @@ interface A { f2!?:number } -/* @@? 17:7 Error SyntaxError: Conflicting modifiers '!' and '?' on field. */ -/* @@? 18:7 Error SyntaxError: Conflicting modifiers '!' and '?' on field. */ + +/* @@? 17:7 Error Syntax error ESY0127: Conflicting modifiers '!' and '?' on field. */ +/* @@? 18:7 Error Syntax error ESY0127: Conflicting modifiers '!' and '?' on field. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/interface_member_initialization.ets b/ets2panda/test/ast/parser/ets/interface_member_initialization.ets index 3af1b2d88d..804be3ae84 100644 --- a/ets2panda/test/ast/parser/ets/interface_member_initialization.ets +++ b/ets2panda/test/ast/parser/ets/interface_member_initialization.ets @@ -22,7 +22,8 @@ function main() } -/* @@? 17:14 Error SyntaxError: Interface member initialization is prohibited. */ -/* @@? 17:16 Error SyntaxError: Unexpected token, expected ','. */ -/* @@? 17:16 Error SyntaxError: Identifier expected, got 'number literal'. */ -/* @@? 17:17 Error SyntaxError: Identifier expected. */ + +/* @@? 17:14 Error Syntax error ESY0180: Interface member initialization is prohibited. */ +/* @@? 17:16 Error Syntax error ESY0228: Unexpected token, expected ','. */ +/* @@? 17:16 Error Syntax error ESY0224: Identifier expected, got 'number literal'. */ +/* @@? 17:17 Error Syntax error ESY0122: Identifier expected. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/interface_parser_error_1.ets b/ets2panda/test/ast/parser/ets/interface_parser_error_1.ets index 59b147e1cf..9b915a952d 100644 --- a/ets2panda/test/ast/parser/ets/interface_parser_error_1.ets +++ b/ets2panda/test/ast/parser/ets/interface_parser_error_1.ets @@ -32,32 +32,33 @@ class A implements I { function mdin() { let a = new A(); ass -/* @@? 16:4 Error SyntaxError: Label must be followed by a loop statement. */ -/* @@? 16:4 Error TypeError: Unresolved reference Geit */ -/* @@? 16:9 Error SyntaxError: Unexpected token '{'. */ -/* @@? 17:2 Error TypeError: Unresolved reference t */ -/* @@? 17:4 Error SyntaxError: Unexpected token '{'. */ -/* @@? 17:5 Error TypeError: Unresolved reference name */ -/* @@? 17:11 Error SyntaxError: Unexpected token ':'. */ -/* @@? 19:1 Error SyntaxError: Illegal start of INTERFACE expression. */ -/* @@? 20:5 Error SyntaxError: Identifier expected. */ -/* @@? 20:14 Error SyntaxError: Unexpected token, expected ','. */ -/* @@? 20:14 Error SyntaxError: Identifier expected, got 'end of stream'. */ -/* @@? 20:16 Error SyntaxError: Identifier expected. */ -/* @@? 20:16 Error SyntaxError: Unexpected token, expected ','. */ -/* @@? 20:16 Error SyntaxError: Identifier expected, got 'boolean'. */ -/* @@? 21:1 Error SyntaxError: Identifier expected. */ -/* @@? 22:1 Error TypeError: Unresolved reference inter */ -/* @@? 24:1 Error SyntaxError: Illegal start of CLASS expression. */ -/* @@? 26:19 Error SyntaxError: Unexpected token '�ls'. */ -/* @@? 26:19 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 27:5 Error SyntaxError: Unexpected token 'A'. */ -/* @@? 27:7 Error SyntaxError: Unexpected token '{'. */ -/* @@? 28:5 Error SyntaxError: Identifier expected, got 'constructor'. */ -/* @@? 28:5 Error SyntaxError: Hard keyword 'constructor' cannot be used as identifier */ -/* @@? 28:16 Error SyntaxError: Invalid annotation name. */ -/* @@? 28:19 Error SyntaxError: Annotations are not allowed on this type of declaration. */ -/* @@? 29:18 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 31:2 Error SyntaxError: Unexpected token '*'. */ -/* @@? 32:1 Error SyntaxError: Nested functions are not allowed. */ -/* @@? 64:1 Error SyntaxError: Expected '}', got 'end of stream'. */ + +/* @@? 16:4 Error Syntax error ESY0038: Label must be followed by a loop statement. */ +/* @@? 16:4 Error Semantic error ESE0143: Unresolved reference Geit */ +/* @@? 16:9 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 17:2 Error Semantic error ESE0143: Unresolved reference t */ +/* @@? 17:4 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 17:5 Error Semantic error ESE0143: Unresolved reference name */ +/* @@? 17:11 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 19:1 Error Syntax error ESY0040: Illegal start of INTERFACE expression. */ +/* @@? 20:5 Error Syntax error ESY0122: Identifier expected. */ +/* @@? 20:14 Error Syntax error ESY0228: Unexpected token, expected ','. */ +/* @@? 20:14 Error Syntax error ESY0224: Identifier expected, got 'end of stream'. */ +/* @@? 20:16 Error Syntax error ESY0122: Identifier expected. */ +/* @@? 20:16 Error Syntax error ESY0228: Unexpected token, expected ','. */ +/* @@? 20:16 Error Syntax error ESY0224: Identifier expected, got 'boolean'. */ +/* @@? 21:1 Error Syntax error ESY0122: Identifier expected. */ +/* @@? 22:1 Error Semantic error ESE0143: Unresolved reference inter */ +/* @@? 24:1 Error Syntax error ESY0040: Illegal start of CLASS expression. */ +/* @@? 26:19 Error Syntax error ESY0227: Unexpected token '�ls'. */ +/* @@? 26:19 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 27:5 Error Syntax error ESY0227: Unexpected token 'A'. */ +/* @@? 27:7 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 28:5 Error Syntax error ESY0224: Identifier expected, got 'constructor'. */ +/* @@? 28:5 Error Syntax error ESY0316: Hard keyword 'constructor' cannot be used as identifier */ +/* @@? 28:16 Error Syntax error ESY0329: Invalid annotation name. */ +/* @@? 28:19 Error Syntax error ESY0028: Annotations are not allowed on this type of declaration. */ +/* @@? 29:18 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 31:2 Error Syntax error ESY0227: Unexpected token '*'. */ +/* @@? 32:1 Error Syntax error ESY0135: Nested functions are not allowed. */ +/* @@? 64:79 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/interface_parser_error_2.ets b/ets2panda/test/ast/parser/ets/interface_parser_error_2.ets index b0d947afd4..dccc99320a 100644 --- a/ets2panda/test/ast/parser/ets/interface_parser_error_2.ets +++ b/ets2panda/test/ast/parser/ets/interface_parser_error_2.ets @@ -17,8 +17,9 @@ interface I { : boolean } -/* @@? 17:5 Error SyntaxError: Identifier expected, got 'end of stream'. */ -/* @@? 17:7 Error SyntaxError: Identifier expected. */ -/* @@? 17:7 Error SyntaxError: Unexpected token, expected ','. */ -/* @@? 17:7 Error SyntaxError: Identifier expected, got 'boolean'. */ -/* @@? 18:1 Error SyntaxError: Identifier expected. */ + +/* @@? 17:5 Error Syntax error ESY0224: Identifier expected, got 'end of stream'. */ +/* @@? 17:7 Error Syntax error ESY0122: Identifier expected. */ +/* @@? 17:7 Error Syntax error ESY0228: Unexpected token, expected ','. */ +/* @@? 17:7 Error Syntax error ESY0224: Identifier expected, got 'boolean'. */ +/* @@? 18:1 Error Syntax error ESY0122: Identifier expected. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/interface_private_function_1.ets b/ets2panda/test/ast/parser/ets/interface_private_function_1.ets index 237953a6ba..e353da8c96 100644 --- a/ets2panda/test/ast/parser/ets/interface_private_function_1.ets +++ b/ets2panda/test/ast/parser/ets/interface_private_function_1.ets @@ -34,5 +34,6 @@ function main(): void { i.xyz(); } -/* @@? 34:5 Error TypeError: Signature xyz(): Int is not visible here. */ -/* @@? 34:5 Error TypeError: No matching call signature */ + +/* @@? 34:5 Error Semantic error ESE0139: Signature xyz(): Int is not visible here. */ +/* @@? 34:5 Error Semantic error ESE0128: No matching call signature */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/interface_property_modifiers.ets b/ets2panda/test/ast/parser/ets/interface_property_modifiers.ets index b82e95fb28..873dece0ad 100644 --- a/ets2panda/test/ast/parser/ets/interface_property_modifiers.ets +++ b/ets2panda/test/ast/parser/ets/interface_property_modifiers.ets @@ -25,8 +25,9 @@ interface I { default f_def: number; } -/* @@? 21:5 Error SyntaxError: Identifier expected, got 'private'. */ -/* @@? 22:5 Error SyntaxError: Identifier expected, got 'protected'. */ -/* @@? 23:5 Error SyntaxError: Identifier expected, got 'public'. */ -/* @@? 24:5 Error SyntaxError: Identifier expected, got 'static'. */ -/* @@? 25:5 Error SyntaxError: Identifier expected, got 'default'. */ + +/* @@? 21:5 Error Syntax error ESY0224: Identifier expected, got 'private'. */ +/* @@? 22:5 Error Syntax error ESY0224: Identifier expected, got 'protected'. */ +/* @@? 23:5 Error Syntax error ESY0224: Identifier expected, got 'public'. */ +/* @@? 24:5 Error Syntax error ESY0224: Identifier expected, got 'static'. */ +/* @@? 25:5 Error Syntax error ESY0224: Identifier expected, got 'default'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/interface_static_late_initialization_assignment_error.ets b/ets2panda/test/ast/parser/ets/interface_static_late_initialization_assignment_error.ets index f85d1b3626..0dc51c9bcb 100644 --- a/ets2panda/test/ast/parser/ets/interface_static_late_initialization_assignment_error.ets +++ b/ets2panda/test/ast/parser/ets/interface_static_late_initialization_assignment_error.ets @@ -17,4 +17,5 @@ interface A{ static f!:string } -/* @@? 17:5 Error SyntaxError: Identifier expected, got 'static'. */ + +/* @@? 17:5 Error Syntax error ESY0224: Identifier expected, got 'static'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/interface_with_different_type.ets b/ets2panda/test/ast/parser/ets/interface_with_different_type.ets index 6280957694..955d052f7d 100644 --- a/ets2panda/test/ast/parser/ets/interface_with_different_type.ets +++ b/ets2panda/test/ast/parser/ets/interface_with_different_type.ets @@ -34,4 +34,5 @@ function main() { let d = new Derived } -/* @@@ label Error TypeError: Cannot inherit from interface Interface because field instance_field is inherited with a different declaration type */ + +/* @@@ label Error Semantic error ESE0215: Cannot inherit from interface Interface because field instance_field is inherited with a different declaration type */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/interfaces2.ets b/ets2panda/test/ast/parser/ets/interfaces2.ets index fe80085b64..693202545b 100644 --- a/ets2panda/test/ast/parser/ets/interfaces2.ets +++ b/ets2panda/test/ast/parser/ets/interfaces2.ets @@ -17,4 +17,5 @@ interface K {} interface J /* @@ label */implements K {} -/* @@@ label Error SyntaxError: Interface declaration cannot have 'implements' clause. */ + +/* @@@ label Error Syntax error ESY0177: Interface declaration cannot have 'implements' clause. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/interfaces3.ets b/ets2panda/test/ast/parser/ets/interfaces3.ets index c8fdf3fb55..3e1653a1a3 100644 --- a/ets2panda/test/ast/parser/ets/interfaces3.ets +++ b/ets2panda/test/ast/parser/ets/interfaces3.ets @@ -17,6 +17,7 @@ interface K {} interface J impleents K {} -/* @@? 18:13 Error SyntaxError: Unexpected token, expected '{'. */ -/* @@? 18:25 Error SyntaxError: Interface fields must have type annotation. */ -/* @@? 18:26 Error SyntaxError: Invalid Type. */ + +/* @@? 18:13 Error Syntax error ESY0228: Unexpected token, expected '{'. */ +/* @@? 18:25 Error Syntax error ESY0119: Interface fields must have type annotation. */ +/* @@? 18:26 Error Syntax error ESY0138: Invalid Type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/intersection_types.ets b/ets2panda/test/ast/parser/ets/intersection_types.ets index 8b7cdb919c..6eab786289 100644 --- a/ets2panda/test/ast/parser/ets/intersection_types.ets +++ b/ets2panda/test/ast/parser/ets/intersection_types.ets @@ -25,4 +25,4 @@ interface Contact { type Employee = Identity & Contact -/* @@? 26:28 Error SyntaxError: Intersection types are not supported, use inheritance instead! */ \ No newline at end of file +/* @@? 26:28 Error Syntax error ESY145527: Intersection types are not supported, use inheritance instead! */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/invalidEnums.ets b/ets2panda/test/ast/parser/ets/invalidEnums.ets index 82a8b21390..8a0f6c587b 100644 --- a/ets2panda/test/ast/parser/ets/invalidEnums.ets +++ b/ets2panda/test/ast/parser/ets/invalidEnums.ets @@ -58,19 +58,20 @@ enum MissingLeftBrace } -/* @@? 16:5 Error SyntaxError: Variable declaration expected. */ -/* @@? 22:22 Error SyntaxError: Unexpected token, expected '{'. */ -/* @@? 32:1 Error SyntaxError: Unexpected token, expected ',' or '}'. */ -/* @@? 32:1 Error SyntaxError: Unexpected token ']'. */ -/* @@? 37:10 Error TypeError: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ -/* @@? 38:1 Error SyntaxError: Unexpected token '}'. */ -/* @@? 40:1 Error SyntaxError: Unexpected token, expected ',' or '}'. */ -/* @@? 43:10 Error SyntaxError: Unexpected token '?'. */ -/* @@? 43:10 Error TypeError: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ -/* @@? 48:3 Error SyntaxError: Unexpected token, expected ',' or '}'. */ -/* @@? 48:3 Error TypeError: Unresolved reference Member2 */ -/* @@? 49:1 Error SyntaxError: Unexpected token '}'. */ -/* @@? 56:3 Error SyntaxError: Unexpected token, expected '{'. */ -/* @@? 56:10 Error SyntaxError: Identifier expected, got ','. */ -/* @@? 57:3 Error SyntaxError: Unexpected token, expected ',' or '}'. */ -/* @@? 58:1 Error SyntaxError: Unexpected token '}'. */ + +/* @@? 16:5 Error Syntax error ESY0126: Variable declaration expected. */ +/* @@? 22:22 Error Syntax error ESY0228: Unexpected token, expected '{'. */ +/* @@? 32:1 Error Syntax error ESY0229: Unexpected token, expected ',' or '}'. */ +/* @@? 32:1 Error Syntax error ESY0227: Unexpected token ']'. */ +/* @@? 37:10 Error Semantic error ESE0342: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ +/* @@? 38:1 Error Syntax error ESY0227: Unexpected token '}'. */ +/* @@? 40:1 Error Syntax error ESY0229: Unexpected token, expected ',' or '}'. */ +/* @@? 43:10 Error Syntax error ESY0227: Unexpected token '?'. */ +/* @@? 43:10 Error Semantic error ESE0342: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ +/* @@? 48:3 Error Syntax error ESY0229: Unexpected token, expected ',' or '}'. */ +/* @@? 48:3 Error Semantic error ESE0143: Unresolved reference Member2 */ +/* @@? 49:1 Error Syntax error ESY0227: Unexpected token '}'. */ +/* @@? 56:3 Error Syntax error ESY0228: Unexpected token, expected '{'. */ +/* @@? 56:10 Error Syntax error ESY0224: Identifier expected, got ','. */ +/* @@? 57:3 Error Syntax error ESY0229: Unexpected token, expected ',' or '}'. */ +/* @@? 58:1 Error Syntax error ESY0227: Unexpected token '}'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/invalidEnums1.ets b/ets2panda/test/ast/parser/ets/invalidEnums1.ets index 2021d1a65f..6e01312a3d 100644 --- a/ets2panda/test/ast/parser/ets/invalidEnums1.ets +++ b/ets2panda/test/ast/parser/ets/invalidEnums1.ets @@ -26,7 +26,8 @@ enum EStrNotInit { } -/* @@? 18:15 Error TypeError: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ -/* @@? 19:12 Error TypeError: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ -/* @@? 20:12 Error TypeError: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ -/* @@? 25:9 Error SyntaxError: All items of string-type enumeration should be explicitly initialized. */ + +/* @@? 18:15 Error Semantic error ESE0342: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ +/* @@? 19:12 Error Semantic error ESE0342: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ +/* @@? 20:12 Error Semantic error ESE0342: Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type. */ +/* @@? 25:9 Error Syntax error ESY0276: All items of string-type enumeration should be explicitly initialized. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/invalidTypes.ets b/ets2panda/test/ast/parser/ets/invalidTypes.ets index ebd93a9b39..39400c6b36 100644 --- a/ets2panda/test/ast/parser/ets/invalidTypes.ets +++ b/ets2panda/test/ast/parser/ets/invalidTypes.ets @@ -37,40 +37,42 @@ class Class2 { let var6: [a0: , a1: ]; -/* @@? 18:23 Error SyntaxError: Type annotation isn't allowed for constructor. */ -/* @@? 24:12 Error SyntaxError: Invalid Type. */ -/* @@? 24:12 Error SyntaxError: Unexpected token, expected ',' or ']'. */ -/* @@? 24:12 Error SyntaxError: Unexpected token '...'. */ -/* @@? 24:15 Error SyntaxError: Unexpected token 'number'. */ -/* @@? 24:23 Error SyntaxError: Unexpected token ','. */ -/* @@? 24:25 Error SyntaxError: Unexpected token '...'. */ -/* @@? 24:28 Error SyntaxError: Unexpected token 'string'. */ -/* @@? 24:36 Error SyntaxError: Unexpected token ']'. */ -/* @@? 26:12 Error SyntaxError: Unexpected token, expected ',' or ']'. */ -/* @@? 26:12 Error SyntaxError: Unexpected token '...'. */ -/* @@? 26:12 Error SyntaxError: Invalid Type. */ -/* @@? 26:15 Error SyntaxError: Unexpected token 'number'. */ -/* @@? 26:23 Error SyntaxError: Unexpected token ','. */ -/* @@? 26:25 Error SyntaxError: Unexpected token 'string'. */ -/* @@? 26:25 Error TypeError: Type name 'string' used in the wrong context */ -/* @@? 26:31 Error SyntaxError: Unexpected token ']'. */ -/* @@? 28:18 Error SyntaxError: Unexpected token, expected ',' or ']'. */ -/* @@? 28:18 Error SyntaxError: Unexpected token '?'. */ -/* @@? 28:19 Error SyntaxError: Unexpected token ']'. */ -/* @@? 30:18 Error SyntaxError: Unexpected token ':'. */ -/* @@? 30:18 Error SyntaxError: Unexpected token, expected ',' or ']'. */ -/* @@? 30:20 Error SyntaxError: Unexpected token '...'. */ -/* @@? 30:23 Error SyntaxError: Unexpected token 'int'. */ -/* @@? 30:26 Error SyntaxError: Unexpected token ']'. */ -/* @@? 32:19 Error SyntaxError: Unexpected token, expected ',' or ']'. */ -/* @@? 32:19 Error SyntaxError: Unexpected token 'number'. */ -/* @@? 32:19 Error TypeError: Type name 'number' used in the wrong context */ -/* @@? 32:25 Error SyntaxError: Unexpected token ']'. */ -/* @@? 35:21 Error SyntaxError: A 'this' type is available only as return type in a non-static method of a class or struct and extension functions. */ -/* @@? 38:12 Error TypeError: Cannot find type 'a0'. */ -/* @@? 38:14 Error SyntaxError: Unexpected token, expected ',' or ']'. */ -/* @@? 38:14 Error SyntaxError: Unexpected token ':'. */ -/* @@? 38:16 Error SyntaxError: Unexpected token ','. */ -/* @@? 38:18 Error SyntaxError: Unexpected token 'a1'. */ -/* @@? 38:22 Error SyntaxError: Label must be followed by a loop statement. */ -/* @@? 38:22 Error SyntaxError: Unexpected token ']'. */ + +/* @@? 18:23 Error Syntax error ESY0140: Type annotation isn't allowed for constructor. */ +/* @@? 24:12 Error Syntax error ESY0138: Invalid Type. */ +/* @@? 24:12 Error Syntax error ESY0227: Unexpected token '...'. */ +/* @@? 24:12 Error Syntax error ESY0229: Unexpected token, expected ',' or ']'. */ +/* @@? 24:12 Error Syntax error ESY0227: Unexpected token '...'. */ +/* @@? 24:15 Error Syntax error ESY0227: Unexpected token 'number'. */ +/* @@? 24:23 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 24:25 Error Syntax error ESY0227: Unexpected token '...'. */ +/* @@? 24:28 Error Syntax error ESY0227: Unexpected token 'string'. */ +/* @@? 24:36 Error Syntax error ESY0227: Unexpected token ']'. */ +/* @@? 26:12 Error Syntax error ESY0138: Invalid Type. */ +/* @@? 26:12 Error Syntax error ESY0227: Unexpected token '...'. */ +/* @@? 26:12 Error Syntax error ESY0229: Unexpected token, expected ',' or ']'. */ +/* @@? 26:15 Error Syntax error ESY0227: Unexpected token 'number'. */ +/* @@? 26:23 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 26:25 Error Syntax error ESY0227: Unexpected token 'string'. */ +/* @@? 26:25 Error Semantic error ESE0144: Type name 'string' used in the wrong context */ +/* @@? 26:31 Error Syntax error ESY0227: Unexpected token ']'. */ +/* @@? 28:18 Error Syntax error ESY0227: Unexpected token '?'. */ +/* @@? 28:18 Error Syntax error ESY0229: Unexpected token, expected ',' or ']'. */ +/* @@? 28:19 Error Syntax error ESY0227: Unexpected token ']'. */ +/* @@? 30:18 Error Syntax error ESY0229: Unexpected token, expected ',' or ']'. */ +/* @@? 30:18 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 30:20 Error Syntax error ESY0227: Unexpected token '...'. */ +/* @@? 30:23 Error Syntax error ESY0227: Unexpected token 'int'. */ +/* @@? 30:26 Error Syntax error ESY0227: Unexpected token ']'. */ +/* @@? 32:19 Error Syntax error ESY0229: Unexpected token, expected ',' or ']'. */ +/* @@? 32:19 Error Syntax error ESY0227: Unexpected token 'number'. */ +/* @@? 32:19 Error Semantic error ESE0144: Type name 'number' used in the wrong context */ +/* @@? 32:25 Error Syntax error ESY0227: Unexpected token ']'. */ +/* @@? 35:21 Error Syntax error ESY0044: A 'this' type is available only as return type in a non-static method of a class or struct and extension functions. */ +/* @@? 38:12 Error Semantic error ESE0371: Cannot find type 'a0'. */ +/* @@? 38:14 Error Syntax error ESY0229: Unexpected token, expected ',' or ']'. */ +/* @@? 38:14 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 38:16 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 38:18 Error Syntax error ESY0227: Unexpected token 'a1'. */ +/* @@? 38:22 Error Syntax error ESY0038: Label must be followed by a loop statement. */ +/* @@? 38:22 Error Syntax error ESY0227: Unexpected token ']'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/invalid_access_static.ets b/ets2panda/test/ast/parser/ets/invalid_access_static.ets index 906e6cc94c..c2274e62a9 100644 --- a/ets2panda/test/ast/parser/ets/invalid_access_static.ets +++ b/ets2panda/test/ast/parser/ets/invalid_access_static.ets @@ -20,4 +20,5 @@ class G { let a = new G(); a./* @@ label */y++; -/* @@@ label Error TypeError: 'y' is a static property of 'G' */ + +/* @@@ label Error Semantic error ESE0207: 'y' is a static property of 'G' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/invalid_access_static2.ets b/ets2panda/test/ast/parser/ets/invalid_access_static2.ets index 18ff34be45..21768bf700 100644 --- a/ets2panda/test/ast/parser/ets/invalid_access_static2.ets +++ b/ets2panda/test/ast/parser/ets/invalid_access_static2.ets @@ -22,4 +22,5 @@ class G { let a = new G(); a./* @@ label */y(); -/* @@@ label Error TypeError: 'y' is a static property of 'G' */ + +/* @@@ label Error Semantic error ESE0207: 'y' is a static property of 'G' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/invalid_decorator_usage.ets b/ets2panda/test/ast/parser/ets/invalid_decorator_usage.ets index b50d888aa8..b97756e9f2 100644 --- a/ets2panda/test/ast/parser/ets/invalid_decorator_usage.ets +++ b/ets2panda/test/ast/parser/ets/invalid_decorator_usage.ets @@ -15,20 +15,21 @@ @ q.M function i ( this : ( this : @ e ( ) [ ] ) => ( @ V ( ) "" ) ) { } -/* @@? 16:3 Error TypeError: Cannot find type 'q'. */ -/* @@? 16:5 Error TypeError: 'M' is not an annotation. */ -/* @@? 16:5 Error TypeError: 'M' type does not exist. */ -/* @@? 16:16 Error TypeError: Only abstract or native methods can't have body. */ -/* @@? 16:29 Error SyntaxError: Unexpected 'this' keyword in non-receiver context. */ -/* @@? 16:44 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 16:44 Error SyntaxError: Unexpected token, expected '=>'. */ -/* @@? 16:46 Error SyntaxError: Unexpected token ']'. */ -/* @@? 16:46 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 16:46 Error SyntaxError: Invalid Type. */ -/* @@? 16:48 Error SyntaxError: Unexpected token ')'. */ -/* @@? 16:50 Error SyntaxError: Unexpected token '=>'. */ -/* @@? 16:59 Error SyntaxError: Annotations are not allowed on this type of declaration. */ -/* @@? 16:61 Error SyntaxError: Unexpected token ')'. */ -/* @@? 16:63 Error SyntaxError: Unexpected token, expected ')'. */ -/* @@? 16:68 Error SyntaxError: Unexpected token ')'. */ -/* @@? 16:70 Error SyntaxError: Unexpected token '{'. */ + +/* @@? 16:3 Error Semantic error ESE0371: Cannot find type 'q'. */ +/* @@? 16:5 Error Semantic error ESE0067: 'M' is not an annotation. */ +/* @@? 16:5 Error Semantic error ESE0070: 'M' type does not exist. */ +/* @@? 16:16 Error Semantic error ESE0017: Only abstract or native methods can't have body. */ +/* @@? 16:29 Error Syntax error ESY0240: Unexpected 'this' keyword in non-receiver context. */ +/* @@? 16:44 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 16:44 Error Syntax error ESY0228: Unexpected token, expected '=>'. */ +/* @@? 16:46 Error Syntax error ESY0227: Unexpected token ']'. */ +/* @@? 16:46 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 16:46 Error Syntax error ESY0138: Invalid Type. */ +/* @@? 16:48 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 16:50 Error Syntax error ESY0227: Unexpected token '=>'. */ +/* @@? 16:59 Error Syntax error ESY0028: Annotations are not allowed on this type of declaration. */ +/* @@? 16:61 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 16:63 Error Syntax error ESY0228: Unexpected token, expected ')'. */ +/* @@? 16:68 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 16:70 Error Syntax error ESY0227: Unexpected token '{'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/invalid_destructing_target.ets b/ets2panda/test/ast/parser/ets/invalid_destructing_target.ets index 826c56c076..267b294478 100644 --- a/ets2panda/test/ast/parser/ets/invalid_destructing_target.ets +++ b/ets2panda/test/ast/parser/ets/invalid_destructing_target.ets @@ -15,5 +15,6 @@ const f = ({a: 1}) => {} -/* @@? 16:20 Error SyntaxError: Unexpected token '=>'. */ -/* @@? 16:20 Error SyntaxError: Invalid destructuring assignment target. */ + +/* @@? 16:20 Error Syntax error ESY0227: Unexpected token '=>'. */ +/* @@? 16:20 Error Syntax error ESY0049: Invalid destructuring assignment target. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/invalid_lambda_parameter.ets b/ets2panda/test/ast/parser/ets/invalid_lambda_parameter.ets index fc163f36e8..fda8fa49f7 100644 --- a/ets2panda/test/ast/parser/ets/invalid_lambda_parameter.ets +++ b/ets2panda/test/ast/parser/ets/invalid_lambda_parameter.ets @@ -23,5 +23,6 @@ function foo(entry: I) { }); } -/* @@@ label1 Error TypeError: Invalid lambda parameter. Expected: 'identifier(: type)?', 'identifier?(: type)?' or '...identifier(: type)?'. */ -/* @@@ label2 Error SyntaxError: Unexpected token '=>'. */ + +/* @@@ label1 Error Semantic error ESE0395: Invalid lambda parameter. Expected: 'identifier(: type)?', 'identifier?(: type)?' or '...identifier(: type)?'. */ +/* @@@ label2 Error Syntax error ESY0227: Unexpected token '=>'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/invalid_object_expression.ets b/ets2panda/test/ast/parser/ets/invalid_object_expression.ets index 16850eb682..3a574f9eae 100644 --- a/ets2panda/test/ast/parser/ets/invalid_object_expression.ets +++ b/ets2panda/test/ast/parser/ets/invalid_object_expression.ets @@ -18,11 +18,12 @@ let obj: Record = { [this.viewModel.ads] : 123 } -/* @@? 18:5 Error SyntaxError: Unexpected token. */ -/* @@? 18:6 Error SyntaxError: Unexpected token. */ -/* @@? 18:6 Error TypeError: 'this' cannot be referenced from a static context */ -/* @@? 18:11 Error TypeError: Property 'viewModel' does not exist on type 'ETSGLOBAL' */ -/* @@? 18:24 Error SyntaxError: Unexpected token. */ -/* @@? 18:26 Error SyntaxError: Unexpected token ':'. */ -/* @@? 18:28 Error SyntaxError: Unexpected token '123'. */ -/* @@? 19:1 Error SyntaxError: Unexpected token '}'. */ + +/* @@? 18:5 Error Syntax error ESY0016: Unexpected token. */ +/* @@? 18:6 Error Syntax error ESY0016: Unexpected token. */ +/* @@? 18:6 Error Semantic error ESE0202: 'this' cannot be referenced from a static context */ +/* @@? 18:11 Error Semantic error ESE0087: Property 'viewModel' does not exist on type 'ETSGLOBAL' */ +/* @@? 18:24 Error Syntax error ESY0016: Unexpected token. */ +/* @@? 18:26 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 18:28 Error Syntax error ESY0227: Unexpected token '123'. */ +/* @@? 19:1 Error Syntax error ESY0227: Unexpected token '}'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/invalid_object_literal.ets b/ets2panda/test/ast/parser/ets/invalid_object_literal.ets index 4929e16649..8220c31fbc 100644 --- a/ets2panda/test/ast/parser/ets/invalid_object_literal.ets +++ b/ets2panda/test/ast/parser/ets/invalid_object_literal.ets @@ -36,6 +36,7 @@ let a: A = /* @@ label1 */{ } } -/* @@@ label1 Error TypeError: The object literal properties must be key-value pairs */ -/* @@@ label2 Error SyntaxError: Object pattern can't contain methods. */ -/* @@@ label3 Error SyntaxError: Object pattern can't contain methods. */ + +/* @@@ label1 Error Semantic error ESE0064: The object literal properties must be key-value pairs */ +/* @@@ label2 Error Syntax error ESY0062: Object pattern can't contain methods. */ +/* @@@ label3 Error Syntax error ESY0062: Object pattern can't contain methods. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/invalid_punctuator_format.ets b/ets2panda/test/ast/parser/ets/invalid_punctuator_format.ets index 81f7135a04..cc9fcc45e1 100644 --- a/ets2panda/test/ast/parser/ets/invalid_punctuator_format.ets +++ b/ets2panda/test/ast/parser/ets/invalid_punctuator_format.ets @@ -17,11 +17,12 @@ interface I { J* @@? } -/* @@? 17:2 Error SyntaxError: Interface fields must have type annotation. */ -/* @@? 17:4 Error SyntaxError: Unexpected token '@@'. */ -/* @@? 17:4 Error SyntaxError: Unexpected token, expected ','. */ -/* @@? 17:4 Error SyntaxError: Identifier expected, got 'end of stream'. */ -/* @@? 17:6 Error SyntaxError: Identifier expected. */ -/* @@? 17:6 Error SyntaxError: Unexpected token, expected ','. */ -/* @@? 17:6 Error SyntaxError: Identifier expected, got 'end of stream'. */ -/* @@? 18:1 Error SyntaxError: Identifier expected. */ + +/* @@? 17:2 Error Syntax error ESY0119: Interface fields must have type annotation. */ +/* @@? 17:4 Error Syntax error ESY0227: Unexpected token '@@'. */ +/* @@? 17:4 Error Syntax error ESY0228: Unexpected token, expected ','. */ +/* @@? 17:4 Error Syntax error ESY0224: Identifier expected, got 'end of stream'. */ +/* @@? 17:6 Error Syntax error ESY0122: Identifier expected. */ +/* @@? 17:6 Error Syntax error ESY0228: Unexpected token, expected ','. */ +/* @@? 17:6 Error Syntax error ESY0224: Identifier expected, got 'end of stream'. */ +/* @@? 18:1 Error Syntax error ESY0122: Identifier expected. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/invalid_recursive_generic_union_type.ets b/ets2panda/test/ast/parser/ets/invalid_recursive_generic_union_type.ets index bbe7b44619..44a1497a36 100644 --- a/ets2panda/test/ast/parser/ets/invalid_recursive_generic_union_type.ets +++ b/ets2panda/test/ast/parser/ets/invalid_recursive_generic_union_type.ets @@ -23,8 +23,9 @@ type Container = T | { [i: string]: Container }; declare namespace Test1 { } -/* @@? 21:25 Error SyntaxError: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ -/* @@? 21:28 Error TypeError: Indexed signatures are not allowed. Use arrays instead! */ -/* @@? 21:49 Error SyntaxError: Unexpected token '<'. */ -/* @@? 21:51 Error SyntaxError: Field type annotation expected. */ -/* @@? 21:51 Error SyntaxError: Unexpected token '>'. */ + +/* @@? 21:25 Error Syntax error ESY177354: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ +/* @@? 21:28 Error Semantic error ESE0343: Indexed signatures are not allowed. Use arrays instead! */ +/* @@? 21:49 Error Syntax error ESY0227: Unexpected token '<'. */ +/* @@? 21:51 Error Syntax error ESY0121: Field type annotation expected. */ +/* @@? 21:51 Error Syntax error ESY0227: Unexpected token '>'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/invalid_syntax_in_object_literal.ets b/ets2panda/test/ast/parser/ets/invalid_syntax_in_object_literal.ets index 11b608f9bc..cd64f6d572 100644 --- a/ets2panda/test/ast/parser/ets/invalid_syntax_in_object_literal.ets +++ b/ets2panda/test/ast/parser/ets/invalid_syntax_in_object_literal.ets @@ -19,5 +19,6 @@ let a2: A2 = { } } -/* @@? 16:9 Error TypeError: Cannot find type 'A2'. */ -/* @@? 19:5 Error SyntaxError: Unexpected token, expected '>'. */ + +/* @@? 16:9 Error Semantic error ESE0371: Cannot find type 'A2'. */ +/* @@? 19:5 Error Syntax error ESY0228: Unexpected token, expected '>'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/invalid_type.ets b/ets2panda/test/ast/parser/ets/invalid_type.ets index 36b08c0491..8f0a9c6270 100644 --- a/ets2panda/test/ast/parser/ets/invalid_type.ets +++ b/ets2panda/test/ast/parser/ets/invalid_type.ets @@ -17,6 +17,7 @@ class Function extends Intl.DateTimeFormat{ let RegExp = Intl.PluralRules } -/* @@? 1:3 Error TypeError: Variable 'Function' is already defined with different type. */ -/* @@? 17:1 Error SyntaxError: Unexpected token 'let'. */ -/* @@? 17:19 Error TypeError: Property 'PluralRules' does not exist on type 'Intl' */ + +/* @@? 1:3 Error Semantic error ESE0350: Variable 'Function' is already defined with different type. */ +/* @@? 17:1 Error Syntax error ESY0227: Unexpected token 'let'. */ +/* @@? 17:19 Error Semantic error ESE0087: Property 'PluralRules' does not exist on type 'Intl' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/invalid_type_assignment.ets b/ets2panda/test/ast/parser/ets/invalid_type_assignment.ets index 814b8ad67d..67b519b060 100644 --- a/ets2panda/test/ast/parser/ets/invalid_type_assignment.ets +++ b/ets2panda/test/ast/parser/ets/invalid_type_assignment.ets @@ -20,5 +20,5 @@ flags: [dynamic-ast] type Point = { x: number; y: number }; type AxeX = Point['x']; -/* @@? 20:18 Error SyntaxError: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ -/* @@? 21:22 Error SyntaxError: Indexed access types are not supported, use type name instead! */ \ No newline at end of file +/* @@? 20:18 Error Syntax error ESY177354: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ +/* @@? 21:22 Error Syntax error ESY49888: Indexed access types are not supported, use type name instead! */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/iterator_override_next.ets b/ets2panda/test/ast/parser/ets/iterator_override_next.ets index c932e57e51..8a95c9a3bf 100644 --- a/ets2panda/test/ast/parser/ets/iterator_override_next.ets +++ b/ets2panda/test/ast/parser/ets/iterator_override_next.ets @@ -17,5 +17,8 @@ class CLterator implements Iterator /* @@ label */{ next(): Iterator {} } -/* @@@ label Error TypeError: CLterator is not abstract and does not override abstract method next(): IteratorResult in Iterator */ + +/* @@@ label Error Semantic error ESE0190: CLterator is not abstract and does not override abstract method next(): IteratorResult in Iterator */ +/* @@? 17:9 Error Semantic error ESE0141: next(): Iterator in CLterator cannot override next(): IteratorResult in Iterator because overriding return type is not compatible with the other return type. */ +/* @@? 17:9 Error Semantic error ESE0136: Method next(): Iterator in CLterator not overriding any method */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/keyof_annotation.ets b/ets2panda/test/ast/parser/ets/keyof_annotation.ets index 4e64a018dd..97ce32191f 100644 --- a/ets2panda/test/ast/parser/ets/keyof_annotation.ets +++ b/ets2panda/test/ast/parser/ets/keyof_annotation.ets @@ -41,9 +41,10 @@ function main():void{ let y6:keyof B = /* @@ label6 */100; } -/* @@@ label1 Error TypeError: Type '"other field"' cannot be assigned to type '"method1"|"field1"|"field2"' */ -/* @@@ label2 Error TypeError: Type '"other method"' cannot be assigned to type '"method1"|"field1"|"field2"' */ -/* @@@ label3 Error TypeError: Type 'Int' cannot be assigned to type '"method1"|"field1"|"field2"' */ -/* @@@ label4 Error TypeError: Type '"other field"' cannot be assigned to type '"bmethod1"|"bfield1"|"bfield2"|"method1"|"field1"|"field2"' */ -/* @@@ label5 Error TypeError: Type '"other method"' cannot be assigned to type '"bmethod1"|"bfield1"|"bfield2"|"method1"|"field1"|"field2"' */ -/* @@@ label6 Error TypeError: Type 'Int' cannot be assigned to type '"bmethod1"|"bfield1"|"bfield2"|"method1"|"field1"|"field2"' */ + +/* @@@ label1 Error Semantic error ESE0318: Type '"other field"' cannot be assigned to type '"method1"|"field1"|"field2"' */ +/* @@@ label2 Error Semantic error ESE0318: Type '"other method"' cannot be assigned to type '"method1"|"field1"|"field2"' */ +/* @@@ label3 Error Semantic error ESE0318: Type 'Int' cannot be assigned to type '"method1"|"field1"|"field2"' */ +/* @@@ label4 Error Semantic error ESE0318: Type '"other field"' cannot be assigned to type '"bmethod1"|"bfield1"|"bfield2"|"method1"|"field1"|"field2"' */ +/* @@@ label5 Error Semantic error ESE0318: Type '"other method"' cannot be assigned to type '"bmethod1"|"bfield1"|"bfield2"|"method1"|"field1"|"field2"' */ +/* @@@ label6 Error Semantic error ESE0318: Type 'Int' cannot be assigned to type '"bmethod1"|"bfield1"|"bfield2"|"method1"|"field1"|"field2"' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/keyof_applied_to_other.ets b/ets2panda/test/ast/parser/ets/keyof_applied_to_other.ets index d2585f5f7e..964cb92813 100644 --- a/ets2panda/test/ast/parser/ets/keyof_applied_to_other.ets +++ b/ets2panda/test/ast/parser/ets/keyof_applied_to_other.ets @@ -32,9 +32,10 @@ function main():void{ /* @@ label5 */ type keyofVoid = keyof void; } -/* @@@ label1 Error SyntaxError: Illegal start of Type Alias expression. */ -/* @@@ label2 Error SyntaxError: Illegal start of Type Alias expression. */ -/* @@@ label3 Error SyntaxError: Illegal start of Type Alias expression. */ -/* @@@ label4 Error SyntaxError: Illegal start of Type Alias expression. */ -/* @@@ label5 Error SyntaxError: Illegal start of Type Alias expression. */ + +/* @@@ label1 Error Syntax error ESY0040: Illegal start of Type Alias expression. */ +/* @@@ label2 Error Syntax error ESY0040: Illegal start of Type Alias expression. */ +/* @@@ label3 Error Syntax error ESY0040: Illegal start of Type Alias expression. */ +/* @@@ label4 Error Syntax error ESY0040: Illegal start of Type Alias expression. */ +/* @@? 32:20 Error Syntax error ESY0040: Illegal start of Type Alias expression. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/keyof_array_tuple.ets b/ets2panda/test/ast/parser/ets/keyof_array_tuple.ets index 682e4caa73..66328ba6b5 100644 --- a/ets2panda/test/ast/parser/ets/keyof_array_tuple.ets +++ b/ets2panda/test/ast/parser/ets/keyof_array_tuple.ets @@ -33,11 +33,12 @@ function main(): void { let x6: Array<"abcd" | keyofA | number | A> = new Array<"abcd" | keyofA | number | A>("abcd", "other field", "foo", 123, a); } -/* @@? 1:3 Error TypeError: Cannot find type 'keyofA'. */ -/* @@? 24:3 Error SyntaxError: Illegal start of Type Alias expression. */ -/* @@? 29:20 Error TypeError: Cannot find type 'keyofA'. */ -/* @@? 30:20 Error TypeError: Cannot find type 'keyofA'. */ -/* @@? 32:26 Error TypeError: Cannot find type 'keyofA'. */ -/* @@? 32:68 Error TypeError: Cannot find type 'keyofA'. */ -/* @@? 33:26 Error TypeError: Cannot find type 'keyofA'. */ -/* @@? 33:68 Error TypeError: Cannot find type 'keyofA'. */ + +/* @@? 1:3 Error Semantic error ESE0371: Cannot find type 'keyofA'. */ +/* @@? 24:3 Error Syntax error ESY0040: Illegal start of Type Alias expression. */ +/* @@? 29:20 Error Semantic error ESE0371: Cannot find type 'keyofA'. */ +/* @@? 30:20 Error Semantic error ESE0371: Cannot find type 'keyofA'. */ +/* @@? 32:26 Error Semantic error ESE0371: Cannot find type 'keyofA'. */ +/* @@? 32:68 Error Semantic error ESE0371: Cannot find type 'keyofA'. */ +/* @@? 33:26 Error Semantic error ESE0371: Cannot find type 'keyofA'. */ +/* @@? 33:68 Error Semantic error ESE0371: Cannot find type 'keyofA'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/keyof_constraint.ets b/ets2panda/test/ast/parser/ets/keyof_constraint.ets index ed208c3516..a75a3b66e0 100644 --- a/ets2panda/test/ast/parser/ets/keyof_constraint.ets +++ b/ets2panda/test/ast/parser/ets/keyof_constraint.ets @@ -30,6 +30,7 @@ function main():void{ /* @@ label2 */getProperty(/* @@ label3 */"field12345"); } -/* @@@ label1 Error TypeError: Type argument '"field12345"' should be a subtype of '"method1"|"field1"|"field2"'-constraint */ -/* @@@ label2 Error TypeError: No matching call signature for getProperty("field12345") */ -/* @@@ label3 Error TypeError: Type '"field12345"' is not compatible with type '"method1"|"field1"|"field2"' at index 1 */ + +/* @@@ label1 Error Semantic error ESE0228: Type argument '"field12345"' should be a subtype of '"method1"|"field1"|"field2"'-constraint */ +/* @@@ label2 Error Semantic error ESE0127: No matching call signature for getProperty("field12345") */ +/* @@@ label3 Error Semantic error ESE0046: Type '"field12345"' is not compatible with type '"method1"|"field1"|"field2"' at index 1 */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/keyof_never.ets b/ets2panda/test/ast/parser/ets/keyof_never.ets index c8b75b81c4..5dadd691a9 100644 --- a/ets2panda/test/ast/parser/ets/keyof_never.ets +++ b/ets2panda/test/ast/parser/ets/keyof_never.ets @@ -21,6 +21,7 @@ function main():void{ let a3:keyof A = /* @@ label3 */"method1" } -/* @@@ label1 Error TypeError: Type '""' cannot be assigned to type 'never' */ -/* @@@ label2 Error TypeError: Type '"field1"' cannot be assigned to type 'never' */ -/* @@@ label3 Error TypeError: Type '"method1"' cannot be assigned to type 'never' */ + +/* @@@ label1 Error Semantic error ESE0318: Type '""' cannot be assigned to type 'never' */ +/* @@@ label2 Error Semantic error ESE0318: Type '"field1"' cannot be assigned to type 'never' */ +/* @@@ label3 Error Semantic error ESE0318: Type '"method1"' cannot be assigned to type 'never' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/keyof_parameter.ets b/ets2panda/test/ast/parser/ets/keyof_parameter.ets index 5d3c9af641..c87c75509c 100644 --- a/ets2panda/test/ast/parser/ets/keyof_parameter.ets +++ b/ets2panda/test/ast/parser/ets/keyof_parameter.ets @@ -28,9 +28,10 @@ function main():void{ /* @@ label5 */getProperty(a, /* @@ label6 */1); } -/* @@@ label1 Error TypeError: No matching call signature for getProperty(A, "other field") */ -/* @@@ label2 Error TypeError: Type '"other field"' is not compatible with type '"method1"|"field1"|"field2"' at index 2 */ -/* @@@ label3 Error TypeError: No matching call signature for getProperty(A, "other method") */ -/* @@@ label4 Error TypeError: Type '"other method"' is not compatible with type '"method1"|"field1"|"field2"' at index 2 */ -/* @@@ label5 Error TypeError: No matching call signature for getProperty(A, Int) */ -/* @@@ label6 Error TypeError: Type 'Int' is not compatible with type '"method1"|"field1"|"field2"' at index 2 */ + +/* @@@ label1 Error Semantic error ESE0127: No matching call signature for getProperty(A, "other field") */ +/* @@@ label2 Error Semantic error ESE0046: Type '"other field"' is not compatible with type '"method1"|"field1"|"field2"' at index 2 */ +/* @@@ label3 Error Semantic error ESE0127: No matching call signature for getProperty(A, "other method") */ +/* @@@ label4 Error Semantic error ESE0046: Type '"other method"' is not compatible with type '"method1"|"field1"|"field2"' at index 2 */ +/* @@@ label5 Error Semantic error ESE0127: No matching call signature for getProperty(A, Int) */ +/* @@@ label6 Error Semantic error ESE0046: Type 'Int' is not compatible with type '"method1"|"field1"|"field2"' at index 2 */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/keyof_predefined_type.ets b/ets2panda/test/ast/parser/ets/keyof_predefined_type.ets index ceb6c26236..1177339718 100644 --- a/ets2panda/test/ast/parser/ets/keyof_predefined_type.ets +++ b/ets2panda/test/ast/parser/ets/keyof_predefined_type.ets @@ -18,5 +18,6 @@ function main():void{ let c2:keyof Int = /* @@ label2 */"field1" } -/* @@@ label1 Error TypeError: Type '"field1"' cannot be assigned to type '"toDouble"|"toLong"|"byteValue"|"doubleValue"|"longValue"|"equals"|"isGreaterEqualThan"|"intValue"|"toInt"|"div"|"shortValue"|"isLessThan"|"isLessEqualThan"|"mul"|"sub"|"toString"|"toFloat"|"compareTo"|"isGreaterThan"|"unboxed"|"add"|"toByte"|"floatValue"|"toShort"|"toChar"|"valueOf"|"MIN_VALUE"|"MAX_VALUE"|"BIT_SIZE"|"BYTE_SIZE"' */ -/* @@@ label2 Error TypeError: Type '"field1"' cannot be assigned to type '"toDouble"|"toLong"|"byteValue"|"doubleValue"|"longValue"|"equals"|"isGreaterEqualThan"|"intValue"|"toInt"|"div"|"shortValue"|"isLessThan"|"isLessEqualThan"|"mul"|"sub"|"toString"|"toFloat"|"compareTo"|"isGreaterThan"|"unboxed"|"add"|"toByte"|"floatValue"|"toShort"|"toChar"|"valueOf"|"MIN_VALUE"|"MAX_VALUE"|"BIT_SIZE"|"BYTE_SIZE"' */ + +/* @@@ label1 Error Semantic error ESE0318: Type '"field1"' cannot be assigned to type '"toDouble"|"toLong"|"byteValue"|"doubleValue"|"longValue"|"equals"|"isGreaterEqualThan"|"intValue"|"toInt"|"div"|"shortValue"|"isLessThan"|"isLessEqualThan"|"mul"|"sub"|"toString"|"toFloat"|"compareTo"|"isGreaterThan"|"unboxed"|"add"|"toByte"|"floatValue"|"toShort"|"toChar"|"valueOf"|"MIN_VALUE"|"MAX_VALUE"|"BIT_SIZE"|"BYTE_SIZE"' */ +/* @@@ label2 Error Semantic error ESE0318: Type '"field1"' cannot be assigned to type '"toDouble"|"toLong"|"byteValue"|"doubleValue"|"longValue"|"equals"|"isGreaterEqualThan"|"intValue"|"toInt"|"div"|"shortValue"|"isLessThan"|"isLessEqualThan"|"mul"|"sub"|"toString"|"toFloat"|"compareTo"|"isGreaterThan"|"unboxed"|"add"|"toByte"|"floatValue"|"toShort"|"toChar"|"valueOf"|"MIN_VALUE"|"MAX_VALUE"|"BIT_SIZE"|"BYTE_SIZE"' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/keyof_private_and_protected.ets b/ets2panda/test/ast/parser/ets/keyof_private_and_protected.ets index 62d297cb8d..a65ace2f75 100644 --- a/ets2panda/test/ast/parser/ets/keyof_private_and_protected.ets +++ b/ets2panda/test/ast/parser/ets/keyof_private_and_protected.ets @@ -46,11 +46,12 @@ function main():void{ let c12:keyof B = /* @@ label8 */"bfoo3" } -/* @@@ label1 Error TypeError: Type '"field2"' cannot be assigned to type '"bfoo"|"bfield1"|"foo"|"field1"' */ -/* @@@ label2 Error TypeError: Type '"foo2"' cannot be assigned to type '"bfoo"|"bfield1"|"foo"|"field1"' */ -/* @@@ label3 Error TypeError: Type '"field3"' cannot be assigned to type '"bfoo"|"bfield1"|"foo"|"field1"' */ -/* @@@ label4 Error TypeError: Type '"foo3"' cannot be assigned to type '"bfoo"|"bfield1"|"foo"|"field1"' */ -/* @@@ label5 Error TypeError: Type '"bfield2"' cannot be assigned to type '"bfoo"|"bfield1"|"foo"|"field1"' */ -/* @@@ label6 Error TypeError: Type '"bfoo2"' cannot be assigned to type '"bfoo"|"bfield1"|"foo"|"field1"' */ -/* @@@ label7 Error TypeError: Type '"bfield3"' cannot be assigned to type '"bfoo"|"bfield1"|"foo"|"field1"' */ -/* @@@ label8 Error TypeError: Type '"bfoo3"' cannot be assigned to type '"bfoo"|"bfield1"|"foo"|"field1"' */ + +/* @@@ label1 Error Semantic error ESE0318: Type '"field2"' cannot be assigned to type '"bfoo"|"bfield1"|"foo"|"field1"' */ +/* @@@ label2 Error Semantic error ESE0318: Type '"foo2"' cannot be assigned to type '"bfoo"|"bfield1"|"foo"|"field1"' */ +/* @@@ label3 Error Semantic error ESE0318: Type '"field3"' cannot be assigned to type '"bfoo"|"bfield1"|"foo"|"field1"' */ +/* @@@ label4 Error Semantic error ESE0318: Type '"foo3"' cannot be assigned to type '"bfoo"|"bfield1"|"foo"|"field1"' */ +/* @@@ label5 Error Semantic error ESE0318: Type '"bfield2"' cannot be assigned to type '"bfoo"|"bfield1"|"foo"|"field1"' */ +/* @@@ label6 Error Semantic error ESE0318: Type '"bfoo2"' cannot be assigned to type '"bfoo"|"bfield1"|"foo"|"field1"' */ +/* @@@ label7 Error Semantic error ESE0318: Type '"bfield3"' cannot be assigned to type '"bfoo"|"bfield1"|"foo"|"field1"' */ +/* @@@ label8 Error Semantic error ESE0318: Type '"bfoo3"' cannot be assigned to type '"bfoo"|"bfield1"|"foo"|"field1"' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/keyof_smartcast.ets b/ets2panda/test/ast/parser/ets/keyof_smartcast.ets index 22ef6be9d4..9f09d23a41 100644 --- a/ets2panda/test/ast/parser/ets/keyof_smartcast.ets +++ b/ets2panda/test/ast/parser/ets/keyof_smartcast.ets @@ -40,7 +40,8 @@ function main(): void { } -/* @@@ label1 Error TypeError: No matching call signature for foo("field2") */ -/* @@@ label2 Error TypeError: Type '"field2"' is not compatible with type '"abcd"|A|undefined|"foo"|"field1"' at index 1 */ -/* @@@ label3 Error TypeError: No matching call signature for foo("other field") */ -/* @@@ label4 Error TypeError: Type '"other field"' is not compatible with type '"abcd"|A|undefined|"foo"|"field1"' at index 1 */ + +/* @@@ label1 Error Semantic error ESE0127: No matching call signature for foo("field2") */ +/* @@@ label2 Error Semantic error ESE0046: Type '"field2"' is not compatible with type '"abcd"|A|undefined|"foo"|"field1"' at index 1 */ +/* @@@ label3 Error Semantic error ESE0127: No matching call signature for foo("other field") */ +/* @@@ label4 Error Semantic error ESE0046: Type '"other field"' is not compatible with type '"abcd"|A|undefined|"foo"|"field1"' at index 1 */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/keyof_type_parameter.ets b/ets2panda/test/ast/parser/ets/keyof_type_parameter.ets index e1b1f5fb3d..5375b55809 100644 --- a/ets2panda/test/ast/parser/ets/keyof_type_parameter.ets +++ b/ets2panda/test/ast/parser/ets/keyof_type_parameter.ets @@ -30,6 +30,7 @@ function main():void{ getProperty1(a,"method1") } -/* @@@ label1 Error TypeError: The `keyof` keyword can only be used for class or interface type. */ -/* @@@ label2 Error TypeError: The `keyof` keyword can only be used for class or interface type. */ -/* @@@ label3 Error TypeError: The `keyof` keyword can only be used for class or interface type. */ + +/* @@@ label1 Error Semantic error ESE0276: The `keyof` keyword can only be used for class or interface type. */ +/* @@@ label2 Error Semantic error ESE0276: The `keyof` keyword can only be used for class or interface type. */ +/* @@@ label3 Error Semantic error ESE0276: The `keyof` keyword can only be used for class or interface type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/keyof_union.ets b/ets2panda/test/ast/parser/ets/keyof_union.ets index fa9733238e..60f765739d 100644 --- a/ets2panda/test/ast/parser/ets/keyof_union.ets +++ b/ets2panda/test/ast/parser/ets/keyof_union.ets @@ -33,9 +33,10 @@ function main():void{ getProperty("other field") } -/* @@@ label1 Error SyntaxError: Illegal start of Type Alias expression. */ -/* @@@ label2 Error SyntaxError: Illegal start of Type Alias expression. */ -/* @@@ label3 Error TypeError: Cannot find type 'keyofUnion'. */ -/* @@@ label4 Error TypeError: Cannot find type 'keyofUnion'. */ -/* @@@ label5 Error TypeError: Cannot find type 'keyofA'. */ -/* @@@ label6 Error TypeError: Cannot find type 'keyofA'. */ + +/* @@@ label1 Error Syntax error ESY0040: Illegal start of Type Alias expression. */ +/* @@@ label2 Error Syntax error ESY0040: Illegal start of Type Alias expression. */ +/* @@@ label3 Error Semantic error ESE0371: Cannot find type 'keyofUnion'. */ +/* @@@ label4 Error Semantic error ESE0371: Cannot find type 'keyofUnion'. */ +/* @@@ label5 Error Semantic error ESE0371: Cannot find type 'keyofA'. */ +/* @@@ label6 Error Semantic error ESE0371: Cannot find type 'keyofA'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/keyword_after_readonly_interface.ets b/ets2panda/test/ast/parser/ets/keyword_after_readonly_interface.ets index 70f6ff2691..355b447363 100644 --- a/ets2panda/test/ast/parser/ets/keyword_after_readonly_interface.ets +++ b/ets2panda/test/ast/parser/ets/keyword_after_readonly_interface.ets @@ -17,11 +17,12 @@ interface A { readonly static a = 45; } -/* @@? 17:2 Error SyntaxError: Identifier expected. */ -/* @@? 17:11 Error SyntaxError: Unexpected token, expected ','. */ -/* @@? 17:11 Error SyntaxError: Identifier expected, got 'static'. */ -/* @@? 17:20 Error SyntaxError: Interface fields must have type annotation. */ -/* @@? 17:22 Error SyntaxError: Invalid Type. */ -/* @@? 17:22 Error SyntaxError: Unexpected token, expected ','. */ -/* @@? 17:22 Error SyntaxError: Identifier expected, got 'number literal'. */ -/* @@? 17:24 Error SyntaxError: Identifier expected. */ + +/* @@? 17:2 Error Syntax error ESY0122: Identifier expected. */ +/* @@? 17:11 Error Syntax error ESY0228: Unexpected token, expected ','. */ +/* @@? 17:11 Error Syntax error ESY0224: Identifier expected, got 'static'. */ +/* @@? 17:20 Error Syntax error ESY0119: Interface fields must have type annotation. */ +/* @@? 17:22 Error Syntax error ESY0138: Invalid Type. */ +/* @@? 17:22 Error Syntax error ESY0228: Unexpected token, expected ','. */ +/* @@? 17:22 Error Syntax error ESY0224: Identifier expected, got 'number literal'. */ +/* @@? 17:24 Error Syntax error ESY0122: Identifier expected. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/labeled.ets b/ets2panda/test/ast/parser/ets/labeled.ets index c6e742534f..2c4a450197 100644 --- a/ets2panda/test/ast/parser/ets/labeled.ets +++ b/ets2panda/test/ast/parser/ets/labeled.ets @@ -23,10 +23,11 @@ class LabeledTest { } } -/* @@@ label Error SyntaxError: Label must be followed by a loop statement. */ -/* @@@ label1 Error SyntaxError: Label must be followed by a loop statement. */ -/* @@@ label2 Error SyntaxError: Label must be followed by a loop statement. */ -/* @@@ label3 Error SyntaxError: Label must be followed by a loop statement. */ -/* @@@ label4 Error SyntaxError: Label must be followed by a loop statement. */ -/* @@@ label5 Error SyntaxError: Label must be followed by a loop statement. */ -/* @@@ label6 Error SyntaxError: Label must be followed by a loop statement. */ + +/* @@@ label Error Syntax error ESY0038: Label must be followed by a loop statement. */ +/* @@@ label1 Error Syntax error ESY0038: Label must be followed by a loop statement. */ +/* @@@ label2 Error Syntax error ESY0038: Label must be followed by a loop statement. */ +/* @@@ label3 Error Syntax error ESY0038: Label must be followed by a loop statement. */ +/* @@@ label4 Error Syntax error ESY0038: Label must be followed by a loop statement. */ +/* @@@ label5 Error Syntax error ESY0038: Label must be followed by a loop statement. */ +/* @@@ label6 Error Syntax error ESY0038: Label must be followed by a loop statement. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/labeledBlockStatement.ets b/ets2panda/test/ast/parser/ets/labeledBlockStatement.ets index 3847e046a2..cca9d294de 100644 --- a/ets2panda/test/ast/parser/ets/labeledBlockStatement.ets +++ b/ets2panda/test/ast/parser/ets/labeledBlockStatement.ets @@ -17,4 +17,5 @@ function labeledBlockTest01():void{ label1:/* @@ label */{} } -/* @@@ label Error SyntaxError: Label must be followed by a loop statement. */ + +/* @@@ label Error Syntax error ESY0038: Label must be followed by a loop statement. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/lambda-arrow-after-braces.ets b/ets2panda/test/ast/parser/ets/lambda-arrow-after-braces.ets index 03775c1d71..572a76191c 100644 --- a/ets2panda/test/ast/parser/ets/lambda-arrow-after-braces.ets +++ b/ets2panda/test/ast/parser/ets/lambda-arrow-after-braces.ets @@ -18,7 +18,7 @@ function main() : void{ ({}/* @@ label */=>z) /* @@ label1 */} -/* @@@ label Error SyntaxError: Unexpected token '=>'. */ -/* @@@ label1 Error SyntaxError: Unexpected token, expected ')'. */ -/* @@@ label2 Error SyntaxError: Expected '}', got 'end of stream'. */ -/* @@ label2 */ \ No newline at end of file + +/* @@ label2 *//* @@@ label Error Syntax error ESY0227: Unexpected token '=>'. */ +/* @@@ label1 Error Syntax error ESY0228: Unexpected token, expected ')'. */ +/* @@? 24:79 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/lambda-type-inference-bad-arrow.ets b/ets2panda/test/ast/parser/ets/lambda-type-inference-bad-arrow.ets index 98215468ee..2f2e0377fb 100644 --- a/ets2panda/test/ast/parser/ets/lambda-type-inference-bad-arrow.ets +++ b/ets2panda/test/ast/parser/ets/lambda-type-inference-bad-arrow.ets @@ -20,7 +20,9 @@ function main(): void { foo((x(() => { } -/* @@? 20:10 Error TypeError: Unresolved reference x */ -/* @@? 27:1 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 27:1 Error SyntaxError: Unexpected token, expected ')'. */ -/* @@? 27:1 Error SyntaxError: Expected '}', got 'end of stream'. */ + +/* @@? 20:10 Error Semantic error ESE0143: Unresolved reference x */ +/* @@? 28:79 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 28:79 Error Syntax error ESY0228: Unexpected token, expected ')'. */ +/* @@? 28:79 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 28:79 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/lambda-type-inference-neg.ets b/ets2panda/test/ast/parser/ets/lambda-type-inference-neg.ets index 75cc29a912..828e3212b4 100644 --- a/ets2panda/test/ast/parser/ets/lambda-type-inference-neg.ets +++ b/ets2panda/test/ast/parser/ets/lambda-type-inference-neg.ets @@ -25,4 +25,5 @@ function main(): void { } -/* @@@ label Error TypeError: Function foo with this assembly signature already declared. */ + +/* @@@ label Error Semantic error ESE0131: Function foo with this assembly signature already declared. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/lambda-type-inference-neg2.ets b/ets2panda/test/ast/parser/ets/lambda-type-inference-neg2.ets index b0b3ab8163..21cfe8fb92 100644 --- a/ets2panda/test/ast/parser/ets/lambda-type-inference-neg2.ets +++ b/ets2panda/test/ast/parser/ets/lambda-type-inference-neg2.ets @@ -22,4 +22,5 @@ function main(): void { } // This test should be negative because of the return type mismatch -/* @@@ label Error TypeError: placeholder */ + +/* @@? 21:30 Error Semantic error ESE0091: Type 'void' is not compatible with the enclosing method's return type 'Int' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/lambda-type-inference-overloaded-1.ets b/ets2panda/test/ast/parser/ets/lambda-type-inference-overloaded-1.ets index 59f291366d..f284bb629c 100644 --- a/ets2panda/test/ast/parser/ets/lambda-type-inference-overloaded-1.ets +++ b/ets2panda/test/ast/parser/ets/lambda-type-inference-overloaded-1.ets @@ -34,6 +34,6 @@ function main(): void { }); } -/* @@@ label Error TypeError: Function foo with this assembly signature already declared. */ -/* @@@ label1 Error TypeError: Type 'void' is not compatible with the enclosing method's return type 'Boolean' */ -/* @@? 28:9 Error TypeError: Type '(p1: Double, p2: String) => Boolean' is not compatible with type '(p1: Int, p2: String) => Boolean' at index 1 */ +/* @@@ label Error Semantic error ESE0131: Function foo with this assembly signature already declared. */ +/* @@? 28:9 Error Semantic error ESE0046: Type '(p1: Double, p2: String) => Boolean' is not compatible with type '(p1: Int, p2: String) => Boolean' at index 1 */ +/* @@@ label1 Error Semantic error ESE0091: Type 'void' is not compatible with the enclosing method's return type 'Boolean' */ diff --git a/ets2panda/test/ast/parser/ets/lambdaWithWrongOptionalParameter.ets b/ets2panda/test/ast/parser/ets/lambdaWithWrongOptionalParameter.ets index aa61413645..be5bdd4c8d 100644 --- a/ets2panda/test/ast/parser/ets/lambdaWithWrongOptionalParameter.ets +++ b/ets2panda/test/ast/parser/ets/lambdaWithWrongOptionalParameter.ets @@ -21,5 +21,5 @@ function main() { foo(2,3); } -/* @@? 17:25 Error TypeError: Expected initializer for parameter b. */ -/* @@? 1:1 Error SyntaxError: Required parameter follows default parameter(s). */ + +/* @@? 17:25 Error Syntax error ESY0219: A required parameter cannot follow an optional parameter. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/lambda_function_index_access_neg.ets b/ets2panda/test/ast/parser/ets/lambda_function_index_access_neg.ets index ef855e4383..8981c718b1 100644 --- a/ets2panda/test/ast/parser/ets/lambda_function_index_access_neg.ets +++ b/ets2panda/test/ast/parser/ets/lambda_function_index_access_neg.ets @@ -19,19 +19,20 @@ let a = (... ( () => { } [] -/* @@? 16:9 Error TypeError: Invalid left-hand side of assignment expression */ -/* @@? 16:10 Error SyntaxError: Unexpected token '...'. */ -/* @@? 16:10 Error TypeError: This expression is not callable. */ -/* @@? 18:5 Error SyntaxError: Invalid left-hand side in assignment expression. */ -/* @@? 18:7 Error SyntaxError: Unexpected token ':'. */ -/* @@? 18:9 Error SyntaxError: Unexpected token 'async'. */ -/* @@? 18:15 Error SyntaxError: 'async' flags must be used for functions only at top-level. */ -/* @@? 18:16 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 18:16 Error SyntaxError: Unexpected token, expected '('. */ -/* @@? 18:16 Error TypeError: Only abstract or native methods can't have body. */ -/* @@? 18:18 Error SyntaxError: Unexpected token '=>'. */ -/* @@? 18:18 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 18:18 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ -/* @@? 18:18 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 18:21 Error SyntaxError: Unexpected token '{'. */ -/* @@? 20:3 Error TypeError: Can't resolve array type */ + +/* @@? 16:9 Error Semantic error ESE0025: Invalid left-hand side of assignment expression */ +/* @@? 16:10 Error Syntax error ESY0227: Unexpected token '...'. */ +/* @@? 16:10 Error Semantic error ESE0289: This expression is not callable. */ +/* @@? 18:5 Error Syntax error ESY0072: Invalid left-hand side in assignment expression. */ +/* @@? 18:7 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 18:9 Error Syntax error ESY0227: Unexpected token 'async'. */ +/* @@? 18:15 Error Syntax error ESY0202: 'async' flags must be used for functions only at top-level. */ +/* @@? 18:16 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 18:16 Error Syntax error ESY0228: Unexpected token, expected '('. */ +/* @@? 18:16 Error Semantic error ESE0017: Only abstract or native methods can't have body. */ +/* @@? 18:18 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 18:18 Error Syntax error ESY0227: Unexpected token '=>'. */ +/* @@? 18:18 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ +/* @@? 18:18 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 18:21 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 20:3 Error Semantic error ESE0301: Can't resolve array type */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/lambda_infer_type_neg_1.ets b/ets2panda/test/ast/parser/ets/lambda_infer_type_neg_1.ets index 8e962a727f..4abd0998c6 100644 --- a/ets2panda/test/ast/parser/ets/lambda_infer_type_neg_1.ets +++ b/ets2panda/test/ast/parser/ets/lambda_infer_type_neg_1.ets @@ -16,5 +16,6 @@ let lam :(x:string, y:int) => void = (a,b) =>{} lam(2, 3) -/* @@? 17:1 Error TypeError: No matching call signature for (Int, Int) */ -/* @@? 17:5 Error TypeError: Type 'Int' is not compatible with type 'String' at index 1 */ + +/* @@? 17:1 Error Semantic error ESE0127: No matching call signature for (Int, Int) */ +/* @@? 17:5 Error Semantic error ESE0046: Type 'Int' is not compatible with type 'String' at index 1 */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/lambda_infer_type_neg_2.ets b/ets2panda/test/ast/parser/ets/lambda_infer_type_neg_2.ets index 2ccb389e1e..99e7bb1f30 100644 --- a/ets2panda/test/ast/parser/ets/lambda_infer_type_neg_2.ets +++ b/ets2panda/test/ast/parser/ets/lambda_infer_type_neg_2.ets @@ -17,4 +17,4 @@ function foo(func: (arg1:T, args2:U)=>U){} foo((arg1, args2:number)=>{return new Object()}) -/* @@? 17:35 Error TypeError: Type 'Object' is not compatible with the enclosing method's return type 'Double' */ \ No newline at end of file +/* @@? 17:35 Error Semantic error ESE0091: Type 'Object' is not compatible with the enclosing method's return type 'Double' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/lambda_n/lambda_n_too_many_arg_neg_1.ets b/ets2panda/test/ast/parser/ets/lambda_n/lambda_n_too_many_arg_neg_1.ets index e61d3b64e1..6fe9cc6261 100644 --- a/ets2panda/test/ast/parser/ets/lambda_n/lambda_n_too_many_arg_neg_1.ets +++ b/ets2panda/test/ast/parser/ets/lambda_n/lambda_n_too_many_arg_neg_1.ets @@ -39,5 +39,6 @@ function main(): void { fn("hello", "world", "!", "!", "!", "!", "!", "!", "!"); } -/* @@? 39:4 Error TypeError: Expected 18 arguments, got 9. */ -/* @@? 39:4 Error TypeError: No matching call signature for ("hello", "world", "!", "!", "!", "!", "!", "!", "!") */ + +/* @@? 39:4 Error Semantic error ESE0124: Expected 18 arguments, got 9. */ +/* @@? 39:4 Error Semantic error ESE0127: No matching call signature for ("hello", "world", "!", "!", "!", "!", "!", "!", "!") */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/lambda_n/lambda_n_too_many_arg_neg_2.ets b/ets2panda/test/ast/parser/ets/lambda_n/lambda_n_too_many_arg_neg_2.ets index 74e21ab03d..c93311c7bb 100644 --- a/ets2panda/test/ast/parser/ets/lambda_n/lambda_n_too_many_arg_neg_2.ets +++ b/ets2panda/test/ast/parser/ets/lambda_n/lambda_n_too_many_arg_neg_2.ets @@ -39,5 +39,6 @@ function main(): void { fn("hello", "world", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!"); } -/* @@? 39:4 Error TypeError: Expected 18 arguments, got 23. */ -/* @@? 39:4 Error TypeError: No matching call signature for ("hello", "world", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!") */ + +/* @@? 39:4 Error Semantic error ESE0124: Expected 18 arguments, got 23. */ +/* @@? 39:4 Error Semantic error ESE0127: No matching call signature for ("hello", "world", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!") */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/lambda_n/lambda_n_too_many_arg_neg_3.ets b/ets2panda/test/ast/parser/ets/lambda_n/lambda_n_too_many_arg_neg_3.ets index 20dbdd8818..c21b877560 100644 --- a/ets2panda/test/ast/parser/ets/lambda_n/lambda_n_too_many_arg_neg_3.ets +++ b/ets2panda/test/ast/parser/ets/lambda_n/lambda_n_too_many_arg_neg_3.ets @@ -38,5 +38,6 @@ function main(): void { fn("hello", "world", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!"); } -/* @@? 38:4 Error TypeError: Expected 16 arguments, got 18. */ -/* @@? 38:4 Error TypeError: No matching call signature for ("hello", "world", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!") */ + +/* @@? 38:4 Error Semantic error ESE0124: Expected 16 arguments, got 18. */ +/* @@? 38:4 Error Semantic error ESE0127: No matching call signature for ("hello", "world", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!") */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/lambda_n/lambda_n_too_many_arg_neg_4.ets b/ets2panda/test/ast/parser/ets/lambda_n/lambda_n_too_many_arg_neg_4.ets index 57d60ac879..b14b8a14d2 100644 --- a/ets2panda/test/ast/parser/ets/lambda_n/lambda_n_too_many_arg_neg_4.ets +++ b/ets2panda/test/ast/parser/ets/lambda_n/lambda_n_too_many_arg_neg_4.ets @@ -38,5 +38,6 @@ function main(): void { fn("hello", "world", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!"); } -/* @@? 38:4 Error TypeError: Expected 16 arguments, got 15. */ -/* @@? 38:4 Error TypeError: No matching call signature for ("hello", "world", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!") */ + +/* @@? 38:4 Error Semantic error ESE0124: Expected 16 arguments, got 15. */ +/* @@? 38:4 Error Semantic error ESE0127: No matching call signature for ("hello", "world", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!") */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/lambda_n/lambda_n_too_many_arg_neg_5.ets b/ets2panda/test/ast/parser/ets/lambda_n/lambda_n_too_many_arg_neg_5.ets index 3c97a6f8c3..3b09e45589 100644 --- a/ets2panda/test/ast/parser/ets/lambda_n/lambda_n_too_many_arg_neg_5.ets +++ b/ets2panda/test/ast/parser/ets/lambda_n/lambda_n_too_many_arg_neg_5.ets @@ -38,5 +38,6 @@ function main(): void { fn("hello", "world", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!"); } -/* @@? 38:4 Error TypeError: Expected 17 arguments, got 15. */ -/* @@? 38:4 Error TypeError: No matching call signature for ("hello", "world", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!") */ + +/* @@? 38:4 Error Semantic error ESE0124: Expected 17 arguments, got 15. */ +/* @@? 38:4 Error Semantic error ESE0127: No matching call signature for ("hello", "world", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!", "!") */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/lambda_omit_parentheses_parameter_neg_1.ets b/ets2panda/test/ast/parser/ets/lambda_omit_parentheses_parameter_neg_1.ets index bf482d1aee..48b4a83e3a 100644 --- a/ets2panda/test/ast/parser/ets/lambda_omit_parentheses_parameter_neg_1.ets +++ b/ets2panda/test/ast/parser/ets/lambda_omit_parentheses_parameter_neg_1.ets @@ -18,6 +18,7 @@ function func(fn:(x:int)=>void) { } func(x)=>console.log(1)) -/* @@? 19:8 Error SyntaxError: Unexpected token '=>'. */ -/* @@? 19:8 Error SyntaxError: Unexpected token. */ -/* @@? 19:24 Error SyntaxError: Unexpected token ')'. */ + +/* @@? 19:8 Error Syntax error ESY0227: Unexpected token '=>'. */ +/* @@? 19:8 Error Syntax error ESY0016: Unexpected token. */ +/* @@? 19:24 Error Syntax error ESY0227: Unexpected token ')'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/lambda_omit_parentheses_parameter_neg_3.ets b/ets2panda/test/ast/parser/ets/lambda_omit_parentheses_parameter_neg_3.ets index eac89534ee..5d3116d392 100644 --- a/ets2panda/test/ast/parser/ets/lambda_omit_parentheses_parameter_neg_3.ets +++ b/ets2panda/test/ast/parser/ets/lambda_omit_parentheses_parameter_neg_3.ets @@ -16,4 +16,5 @@ function func(fn:(x:int)=>string){} func((x)=>1) -/* @@? 17:11 Error TypeError: Type 'Int' is not compatible with the enclosing method's return type 'String' */ + +/* @@? 17:11 Error Semantic error ESE0091: Type 'Int' is not compatible with the enclosing method's return type 'String' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/lambda_omit_parentheses_type_alias_neg_1.ets b/ets2panda/test/ast/parser/ets/lambda_omit_parentheses_type_alias_neg_1.ets index 2ced944999..66550be48f 100644 --- a/ets2panda/test/ast/parser/ets/lambda_omit_parentheses_type_alias_neg_1.ets +++ b/ets2panda/test/ast/parser/ets/lambda_omit_parentheses_type_alias_neg_1.ets @@ -15,5 +15,6 @@ let a: int => void -/* @@? 16:12 Error SyntaxError: Unexpected token '=>'. */ -/* @@? 16:15 Error SyntaxError: Unexpected token 'void'. */ + +/* @@? 16:12 Error Syntax error ESY0227: Unexpected token '=>'. */ +/* @@? 16:15 Error Syntax error ESY0227: Unexpected token 'void'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/lambda_optional_param_2.ets b/ets2panda/test/ast/parser/ets/lambda_optional_param_2.ets index 240eb7c202..5c5231f36e 100644 --- a/ets2panda/test/ast/parser/ets/lambda_optional_param_2.ets +++ b/ets2panda/test/ast/parser/ets/lambda_optional_param_2.ets @@ -21,4 +21,4 @@ function main(): void { gf("abc" as String, /* @@ label */(x: String): Int => { return x=="TEST"?0:1}) } -/* @@@ label Error TypeError: Type '(p1: String) => Int' is not compatible with type '(p1: String|undefined) => Int' at index 2 */ +/* @@@ label Error Semantic error ESE0046: Type '(p1: String) => Int' is not compatible with type '(p1: String|undefined) => Int' at index 2 */ diff --git a/ets2panda/test/ast/parser/ets/lambda_optional_param_3.ets b/ets2panda/test/ast/parser/ets/lambda_optional_param_3.ets index 98f67c9681..c1ac325f66 100644 --- a/ets2panda/test/ast/parser/ets/lambda_optional_param_3.ets +++ b/ets2panda/test/ast/parser/ets/lambda_optional_param_3.ets @@ -21,5 +21,5 @@ function main(): void { gf("abc" as String, (x: String): Int => { return x=="TEST"?0:1}) } -/* @@@ label Error SyntaxError: Default value is allowed only for optional parameters. */ -/* @@? 21:24 Error TypeError: Type '(p1: String) => Int' is not compatible with type '(p1: String|undefined) => Int' at index 2 */ +/* @@@ label Error Syntax error ESY0133: Default value is allowed only for optional parameters. */ +/* @@? 21:24 Error Semantic error ESE0046: Type '(p1: String) => Int' is not compatible with type '(p1: String|undefined) => Int' at index 2 */ diff --git a/ets2panda/test/ast/parser/ets/lambda_type_parameter_neg.ets b/ets2panda/test/ast/parser/ets/lambda_type_parameter_neg.ets index 27a6cc326f..8b563046c7 100644 --- a/ets2panda/test/ast/parser/ets/lambda_type_parameter_neg.ets +++ b/ets2panda/test/ast/parser/ets/lambda_type_parameter_neg.ets @@ -15,8 +15,9 @@ let a = Int>(reader); -/* @@? 16:14 Error SyntaxError: Identifier expected, got '('. */ -/* @@? 16:15 Error SyntaxError: Unexpected token, expected '>'. */ -/* @@? 16:15 Error SyntaxError: Variable must be initialized or it's type must be declared. */ -/* @@? 16:15 Error SyntaxError: Unexpected token ')'. */ -/* @@? 16:17 Error SyntaxError: Unexpected token '=>'. */ + +/* @@? 16:14 Error Syntax error ESY0224: Identifier expected, got '('. */ +/* @@? 16:15 Error Syntax error ESY0228: Unexpected token, expected '>'. */ +/* @@? 16:15 Error Syntax error ESY0105: Variable must be initialized or it's type must be declared. */ +/* @@? 16:15 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 16:17 Error Syntax error ESY0227: Unexpected token '=>'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/lexer001.ets b/ets2panda/test/ast/parser/ets/lexer001.ets index cae3c47061..c23910bf55 100644 --- a/ets2panda/test/ast/parser/ets/lexer001.ets +++ b/ets2panda/test/ast/parser/ets/lexer001.ets @@ -14,4 +14,4 @@ */ /* @@ label */1 -/* @@@ label Error SyntaxError: Unexpected token 'number literal'. */ + diff --git a/ets2panda/test/ast/parser/ets/lexer002.ets b/ets2panda/test/ast/parser/ets/lexer002.ets index 788806465a..fe046150a9 100644 --- a/ets2panda/test/ast/parser/ets/lexer002.ets +++ b/ets2panda/test/ast/parser/ets/lexer002.ets @@ -16,4 +16,4 @@ /* @@ label */1 -/* @@@ label Error SyntaxError: Unexpected token 'number literal'. */ + diff --git a/ets2panda/test/ast/parser/ets/lexer003.ets b/ets2panda/test/ast/parser/ets/lexer003.ets index 6e9900937b..d0ee068a8b 100644 --- a/ets2panda/test/ast/parser/ets/lexer003.ets +++ b/ets2panda/test/ast/parser/ets/lexer003.ets @@ -13,12 +13,11 @@ * limitations under the License. */ -/* @@? 24:1 Error SyntaxError: Unexpected token, expected '`'. */ -/* @@? 24:4 Error TypeError: Unresolved reference message */ -/* @@? 24:15 Error SyntaxError: Unterminated string. */ -/* @@? 24:19 Error SyntaxError: Unterminated string. */ -/* @@? 24:19 Error SyntaxError: Unexpected token, expected '${' or '`' */ -/* @@? 24:19 Error SyntaxError: Unexpected token, expected '`'. */ -/* @@? 24:19 Error SyntaxError: Expected '}', got 'end of stream'. */ -`${message ?? 'ver \ No newline at end of file + +`${message ?? 'ver/* @@? 18:4 Error Semantic error ESE0143: Unresolved reference message */ +/* @@? 18:15 Error Syntax error ESY0265: Newline is not allowed in strings */ +/* @@? 22:83 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ +/* @@? 22:83 Error Syntax error ESY0253: Unterminated string. */ +/* @@? 22:83 Error Syntax error ESY0259: Unexpected token, expected '${' or '`' */ +/* @@? 22:83 Error Syntax error ESY0228: Unexpected token, expected '`'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/lexical_dec_not_allowed.ets b/ets2panda/test/ast/parser/ets/lexical_dec_not_allowed.ets index afbd9e8ed3..7d1066b1a2 100644 --- a/ets2panda/test/ast/parser/ets/lexical_dec_not_allowed.ets +++ b/ets2panda/test/ast/parser/ets/lexical_dec_not_allowed.ets @@ -15,6 +15,7 @@ while(true) function a (){}; -/* @@? 16:13 Error SyntaxError: Nested functions are not allowed. */ -/* @@? 16:13 Error SyntaxError: Lexical declaration is not allowed in single statement context. */ -/* @@? 16:28 Error SyntaxError: Missing body in while statement */ + +/* @@? 16:13 Error Syntax error ESY0135: Nested functions are not allowed. */ +/* @@? 16:13 Error Syntax error ESY0175: Lexical declaration is not allowed in single statement context. */ +/* @@? 16:28 Error Syntax error ESY0300: Missing body in while statement */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/literals/float-literal_neg.ets b/ets2panda/test/ast/parser/ets/literals/float-literal_neg.ets index 3d43515b3f..8638330ef3 100644 --- a/ets2panda/test/ast/parser/ets/literals/float-literal_neg.ets +++ b/ets2panda/test/ast/parser/ets/literals/float-literal_neg.ets @@ -18,6 +18,7 @@ let decimalPointMissing2 = -/* @@ label2 */100f let floatMAX = 3.4028235e+38f let moreThanFloatMAX = /*@@ label3 */3.4028236e+38f -/* @@@ label1 Error SyntaxError: Invalid number. */ -/* @@@ label2 Error SyntaxError: Invalid number. */ -/* @@@ label3 Error SyntaxError: Invalid number. */ + +/* @@@ label1 Error Syntax error ESY0249: Invalid number. */ +/* @@@ label2 Error Syntax error ESY0249: Invalid number. */ +/* @@@ label3 Error Syntax error ESY0249: Invalid number. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/local-class-access-modifier-private.ets b/ets2panda/test/ast/parser/ets/local-class-access-modifier-private.ets index c5e563e92d..4059e084e3 100644 --- a/ets2panda/test/ast/parser/ets/local-class-access-modifier-private.ets +++ b/ets2panda/test/ast/parser/ets/local-class-access-modifier-private.ets @@ -20,4 +20,5 @@ function foo() { } } -/* @@@ label Error SyntaxError: Local class or interface declaration members can not have access modifies. */ + +/* @@@ label Error Syntax error ESY0030: Local class or interface declaration members can not have access modifies. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/local-class-access-modifier-protected.ets b/ets2panda/test/ast/parser/ets/local-class-access-modifier-protected.ets index 3bb4c4d899..07e68b2fca 100644 --- a/ets2panda/test/ast/parser/ets/local-class-access-modifier-protected.ets +++ b/ets2panda/test/ast/parser/ets/local-class-access-modifier-protected.ets @@ -19,4 +19,5 @@ function foo() { } } -/* @@@ label Error SyntaxError: Local class or interface declaration members can not have access modifies. */ + +/* @@@ label Error Syntax error ESY0030: Local class or interface declaration members can not have access modifies. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/local-class-access-modifier-public.ets b/ets2panda/test/ast/parser/ets/local-class-access-modifier-public.ets index 6a84944ebc..87b6522943 100644 --- a/ets2panda/test/ast/parser/ets/local-class-access-modifier-public.ets +++ b/ets2panda/test/ast/parser/ets/local-class-access-modifier-public.ets @@ -19,4 +19,5 @@ function foo() { } } -/* @@@ label Error SyntaxError: Local class or interface declaration members can not have access modifies. */ + +/* @@@ label Error Syntax error ESY0030: Local class or interface declaration members can not have access modifies. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/local-class-member-access-modifier-private1.ets b/ets2panda/test/ast/parser/ets/local-class-member-access-modifier-private1.ets index 2e523713b2..dd1b752673 100644 --- a/ets2panda/test/ast/parser/ets/local-class-member-access-modifier-private1.ets +++ b/ets2panda/test/ast/parser/ets/local-class-member-access-modifier-private1.ets @@ -20,5 +20,6 @@ function foo() private property : int; } } -/* @@? 18:5 Error SyntaxError: Illegal start of CLASS expression. */ -/* @@? 20:9 Error SyntaxError: Local class or interface declaration members can not have access modifies. */ + +/* @@? 18:5 Error Syntax error ESY0040: Illegal start of CLASS expression. */ +/* @@? 20:9 Error Syntax error ESY0030: Local class or interface declaration members can not have access modifies. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/local-class-member-access-modifier-private2.ets b/ets2panda/test/ast/parser/ets/local-class-member-access-modifier-private2.ets index 85dd9b2df4..4a5f4017e2 100644 --- a/ets2panda/test/ast/parser/ets/local-class-member-access-modifier-private2.ets +++ b/ets2panda/test/ast/parser/ets/local-class-member-access-modifier-private2.ets @@ -20,5 +20,6 @@ function foo() private method() : void; } } -/* @@? 18:5 Error SyntaxError: Illegal start of CLASS expression. */ -/* @@? 20:9 Error SyntaxError: Local class or interface declaration members can not have access modifies. */ + +/* @@? 18:5 Error Syntax error ESY0040: Illegal start of CLASS expression. */ +/* @@? 20:9 Error Syntax error ESY0030: Local class or interface declaration members can not have access modifies. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/local-class-member-access-modifier-protected1.ets b/ets2panda/test/ast/parser/ets/local-class-member-access-modifier-protected1.ets index 2e7a15b760..2b23261910 100644 --- a/ets2panda/test/ast/parser/ets/local-class-member-access-modifier-protected1.ets +++ b/ets2panda/test/ast/parser/ets/local-class-member-access-modifier-protected1.ets @@ -21,5 +21,6 @@ function foo() } } -/* @@? 18:5 Error SyntaxError: Illegal start of CLASS expression. */ -/* @@? 20:9 Error SyntaxError: Local class or interface declaration members can not have access modifies. */ + +/* @@? 18:5 Error Syntax error ESY0040: Illegal start of CLASS expression. */ +/* @@? 20:9 Error Syntax error ESY0030: Local class or interface declaration members can not have access modifies. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/local-class-member-access-modifier-protected2.ets b/ets2panda/test/ast/parser/ets/local-class-member-access-modifier-protected2.ets index a320b25eb8..89cb53a986 100644 --- a/ets2panda/test/ast/parser/ets/local-class-member-access-modifier-protected2.ets +++ b/ets2panda/test/ast/parser/ets/local-class-member-access-modifier-protected2.ets @@ -21,5 +21,6 @@ function foo() } } -/* @@? 18:5 Error SyntaxError: Illegal start of CLASS expression. */ -/* @@? 20:9 Error SyntaxError: Local class or interface declaration members can not have access modifies. */ + +/* @@? 18:5 Error Syntax error ESY0040: Illegal start of CLASS expression. */ +/* @@? 20:9 Error Syntax error ESY0030: Local class or interface declaration members can not have access modifies. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/local-class-member-access-modifier-public1.ets b/ets2panda/test/ast/parser/ets/local-class-member-access-modifier-public1.ets index 3b55135eb7..e9461da6e8 100644 --- a/ets2panda/test/ast/parser/ets/local-class-member-access-modifier-public1.ets +++ b/ets2panda/test/ast/parser/ets/local-class-member-access-modifier-public1.ets @@ -20,5 +20,6 @@ function foo() public property : int; } } -/* @@? 18:5 Error SyntaxError: Illegal start of CLASS expression. */ -/* @@? 20:9 Error SyntaxError: Local class or interface declaration members can not have access modifies. */ + +/* @@? 18:5 Error Syntax error ESY0040: Illegal start of CLASS expression. */ +/* @@? 20:9 Error Syntax error ESY0030: Local class or interface declaration members can not have access modifies. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/local-class-member-access-modifier-public2.ets b/ets2panda/test/ast/parser/ets/local-class-member-access-modifier-public2.ets index 5bf531cf9f..60b4f4d880 100644 --- a/ets2panda/test/ast/parser/ets/local-class-member-access-modifier-public2.ets +++ b/ets2panda/test/ast/parser/ets/local-class-member-access-modifier-public2.ets @@ -21,5 +21,6 @@ function foo() } } -/* @@? 18:5 Error SyntaxError: Illegal start of CLASS expression. */ -/* @@? 20:9 Error SyntaxError: Local class or interface declaration members can not have access modifies. */ + +/* @@? 18:5 Error Syntax error ESY0040: Illegal start of CLASS expression. */ +/* @@? 20:9 Error Syntax error ESY0030: Local class or interface declaration members can not have access modifies. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/local-enum.ets b/ets2panda/test/ast/parser/ets/local-enum.ets index 2e3a21b49c..4f07a3ad49 100644 --- a/ets2panda/test/ast/parser/ets/local-enum.ets +++ b/ets2panda/test/ast/parser/ets/local-enum.ets @@ -19,4 +19,5 @@ class A { } } -/* @@@ label Error SyntaxError: Unexpected token. A constructor, method, accessor, or property was expected. */ + +/* @@@ label Error Syntax error ESY0233: Unexpected token. A constructor, method, accessor, or property was expected. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/local-interface-access-modifier-private.ets b/ets2panda/test/ast/parser/ets/local-interface-access-modifier-private.ets index bc73b32371..9f69771008 100644 --- a/ets2panda/test/ast/parser/ets/local-interface-access-modifier-private.ets +++ b/ets2panda/test/ast/parser/ets/local-interface-access-modifier-private.ets @@ -19,4 +19,5 @@ function foo() { } } -/* @@@ label Error SyntaxError: Local class or interface declaration members can not have access modifies. */ + +/* @@@ label Error Syntax error ESY0030: Local class or interface declaration members can not have access modifies. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/local-interface-access-modifier-protected.ets b/ets2panda/test/ast/parser/ets/local-interface-access-modifier-protected.ets index 83cbdb3256..369f0e5fd4 100644 --- a/ets2panda/test/ast/parser/ets/local-interface-access-modifier-protected.ets +++ b/ets2panda/test/ast/parser/ets/local-interface-access-modifier-protected.ets @@ -19,4 +19,5 @@ function foo() { } } -/* @@@ label Error SyntaxError: Local class or interface declaration members can not have access modifies. */ + +/* @@@ label Error Syntax error ESY0030: Local class or interface declaration members can not have access modifies. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/local-interface-access-modifier-public.ets b/ets2panda/test/ast/parser/ets/local-interface-access-modifier-public.ets index 5fb4868303..f12fd9620a 100644 --- a/ets2panda/test/ast/parser/ets/local-interface-access-modifier-public.ets +++ b/ets2panda/test/ast/parser/ets/local-interface-access-modifier-public.ets @@ -19,4 +19,5 @@ function foo() { } } -/* @@@ label Error SyntaxError: Local class or interface declaration members can not have access modifies. */ + +/* @@@ label Error Syntax error ESY0030: Local class or interface declaration members can not have access modifies. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/local-interface-member-access-modifier-private1.ets b/ets2panda/test/ast/parser/ets/local-interface-member-access-modifier-private1.ets index f8c9594a0c..5213548ac1 100644 --- a/ets2panda/test/ast/parser/ets/local-interface-member-access-modifier-private1.ets +++ b/ets2panda/test/ast/parser/ets/local-interface-member-access-modifier-private1.ets @@ -21,6 +21,7 @@ function foo() } } -/* @@@ label1 Error SyntaxError: Illegal start of INTERFACE expression. */ -/* @@@ label2 Error SyntaxError: Local class or interface declaration members can not have access modifies. */ -/* @@@ label2 Error SyntaxError: Identifier expected, got 'private'. */ + +/* @@@ label1 Error Syntax error ESY0040: Illegal start of INTERFACE expression. */ +/* @@@ label2 Error Syntax error ESY0030: Local class or interface declaration members can not have access modifies. */ +/* @@@ label2 Error Syntax error ESY0224: Identifier expected, got 'private'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/local-interface-member-access-modifier-private2.ets b/ets2panda/test/ast/parser/ets/local-interface-member-access-modifier-private2.ets index 160115d07b..74ddd3f311 100644 --- a/ets2panda/test/ast/parser/ets/local-interface-member-access-modifier-private2.ets +++ b/ets2panda/test/ast/parser/ets/local-interface-member-access-modifier-private2.ets @@ -21,6 +21,7 @@ function foo() } } -/* @@@ label1 Error SyntaxError: Illegal start of INTERFACE expression. */ -/* @@@ label2 Error SyntaxError: Local class or interface declaration members can not have access modifies. */ -/* @@@ label3 Error SyntaxError: Private interface methods must have body. */ + +/* @@@ label1 Error Syntax error ESY0040: Illegal start of INTERFACE expression. */ +/* @@@ label2 Error Syntax error ESY0030: Local class or interface declaration members can not have access modifies. */ +/* @@@ label3 Error Syntax error ESY0032: Private interface methods must have body. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/local-interface-member-access-modifier-protected1.ets b/ets2panda/test/ast/parser/ets/local-interface-member-access-modifier-protected1.ets index 1444898726..94b71e6700 100644 --- a/ets2panda/test/ast/parser/ets/local-interface-member-access-modifier-protected1.ets +++ b/ets2panda/test/ast/parser/ets/local-interface-member-access-modifier-protected1.ets @@ -21,5 +21,6 @@ function foo() } } -/* @@@ label1 Error SyntaxError: Illegal start of INTERFACE expression. */ -/* @@@ label2 Error SyntaxError: Identifier expected, got 'protected'. */ + +/* @@@ label1 Error Syntax error ESY0040: Illegal start of INTERFACE expression. */ +/* @@@ label2 Error Syntax error ESY0224: Identifier expected, got 'protected'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/localTypeAlias_n.ets b/ets2panda/test/ast/parser/ets/localTypeAlias_n.ets index fb98c611cf..7c6feb6ffb 100644 --- a/ets2panda/test/ast/parser/ets/localTypeAlias_n.ets +++ b/ets2panda/test/ast/parser/ets/localTypeAlias_n.ets @@ -19,5 +19,6 @@ function main(): void { let outA : /* @@ label2 */a; -/* @@@ label1 Error SyntaxError: Illegal start of Type Alias expression. */ -/* @@@ label2 Error TypeError: Cannot find type 'a'. */ + +/* @@@ label1 Error Syntax error ESY0040: Illegal start of Type Alias expression. */ +/* @@@ label2 Error Semantic error ESE0371: Cannot find type 'a'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/local_class_already_class.ets b/ets2panda/test/ast/parser/ets/local_class_already_class.ets index 3bfff8e7d3..10bb56815d 100644 --- a/ets2panda/test/ast/parser/ets/local_class_already_class.ets +++ b/ets2panda/test/ast/parser/ets/local_class_already_class.ets @@ -22,5 +22,6 @@ function bar(): void { } } -/* @@? 17:3 Error SyntaxError: Illegal start of CLASS expression. */ -/* @@? 20:3 Error SyntaxError: Illegal start of CLASS expression. */ + +/* @@? 17:3 Error Syntax error ESY0040: Illegal start of CLASS expression. */ +/* @@? 20:3 Error Syntax error ESY0040: Illegal start of CLASS expression. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/local_class_already_interface.ets b/ets2panda/test/ast/parser/ets/local_class_already_interface.ets index 64e86ea35f..98146a6e86 100644 --- a/ets2panda/test/ast/parser/ets/local_class_already_interface.ets +++ b/ets2panda/test/ast/parser/ets/local_class_already_interface.ets @@ -22,5 +22,6 @@ function bar(): void { } } -/* @@? 17:3 Error SyntaxError: Illegal start of INTERFACE expression. */ -/* @@? 20:3 Error SyntaxError: Illegal start of CLASS expression. */ + +/* @@? 17:3 Error Syntax error ESY0040: Illegal start of INTERFACE expression. */ +/* @@? 20:3 Error Syntax error ESY0040: Illegal start of CLASS expression. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/local_class_already_variable.ets b/ets2panda/test/ast/parser/ets/local_class_already_variable.ets index c784418b2c..1e55f68bcf 100644 --- a/ets2panda/test/ast/parser/ets/local_class_already_variable.ets +++ b/ets2panda/test/ast/parser/ets/local_class_already_variable.ets @@ -20,4 +20,5 @@ function bar(): void { } } -/* @@? 18:3 Error SyntaxError: Illegal start of CLASS expression. */ + +/* @@? 18:3 Error Syntax error ESY0040: Illegal start of CLASS expression. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/local_class_in_classfunction.ets b/ets2panda/test/ast/parser/ets/local_class_in_classfunction.ets index 7ae5c158df..7c92956fd9 100644 --- a/ets2panda/test/ast/parser/ets/local_class_in_classfunction.ets +++ b/ets2panda/test/ast/parser/ets/local_class_in_classfunction.ets @@ -49,13 +49,14 @@ class A_class{ } } -/* @@? 18:18 Error SyntaxError: Illegal start of CLASS expression. */ -/* @@? 19:9 Error SyntaxError: Illegal start of CLASS expression. */ -/* @@? 24:15 Error SyntaxError: Illegal start of CLASS expression. */ -/* @@? 30:9 Error SyntaxError: Illegal start of CLASS expression. */ -/* @@? 31:24 Error SyntaxError: Illegal start of CLASS expression. */ -/* @@? 33:18 Error SyntaxError: Illegal start of CLASS expression. */ -/* @@? 36:15 Error TypeError: Cannot find type 'AbstractLocalClass2'. */ -/* @@? 36:41 Error TypeError: Cannot find type 'AbstractLocalClass2'. */ -/* @@? 38:18 Error SyntaxError: Illegal start of CLASS expression. */ -/* @@? 43:15 Error SyntaxError: Illegal start of CLASS expression. */ + +/* @@? 18:18 Error Syntax error ESY0040: Illegal start of CLASS expression. */ +/* @@? 19:9 Error Syntax error ESY0040: Illegal start of CLASS expression. */ +/* @@? 24:15 Error Syntax error ESY0040: Illegal start of CLASS expression. */ +/* @@? 30:9 Error Syntax error ESY0040: Illegal start of CLASS expression. */ +/* @@? 31:24 Error Syntax error ESY0040: Illegal start of CLASS expression. */ +/* @@? 33:18 Error Syntax error ESY0040: Illegal start of CLASS expression. */ +/* @@? 36:15 Error Semantic error ESE0371: Cannot find type 'AbstractLocalClass2'. */ +/* @@? 36:41 Error Semantic error ESE0371: Cannot find type 'AbstractLocalClass2'. */ +/* @@? 38:18 Error Syntax error ESY0040: Illegal start of CLASS expression. */ +/* @@? 43:15 Error Syntax error ESY0040: Illegal start of CLASS expression. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/local_enum.ets b/ets2panda/test/ast/parser/ets/local_enum.ets index d39f52acf4..9a52895aa3 100644 --- a/ets2panda/test/ast/parser/ets/local_enum.ets +++ b/ets2panda/test/ast/parser/ets/local_enum.ets @@ -37,12 +37,13 @@ interface I{ enum E {E1} } -/* @@? 17:3 Error SyntaxError: Illegal start of ENUM expression. */ -/* @@? 21:3 Error SyntaxError: Illegal start of ENUM expression. */ -/* @@? 24:5 Error SyntaxError: Illegal start of ENUM expression. */ -/* @@? 29:3 Error SyntaxError: Unexpected token. A constructor, method, accessor, or property was expected. */ -/* @@? 32:5 Error SyntaxError: Illegal start of ENUM expression. */ -/* @@? 37:4 Error SyntaxError: Identifier expected, got 'enum'. */ -/* @@? 37:11 Error SyntaxError: Interface fields must have type annotation. */ -/* @@? 37:12 Error TypeError: Cannot find type 'E1'. */ -/* @@? 38:1 Error SyntaxError: Unexpected token '}'. */ + +/* @@? 17:3 Error Syntax error ESY0040: Illegal start of ENUM expression. */ +/* @@? 21:3 Error Syntax error ESY0040: Illegal start of ENUM expression. */ +/* @@? 24:5 Error Syntax error ESY0040: Illegal start of ENUM expression. */ +/* @@? 29:3 Error Syntax error ESY0233: Unexpected token. A constructor, method, accessor, or property was expected. */ +/* @@? 32:5 Error Syntax error ESY0040: Illegal start of ENUM expression. */ +/* @@? 37:4 Error Syntax error ESY0224: Identifier expected, got 'enum'. */ +/* @@? 37:11 Error Syntax error ESY0119: Interface fields must have type annotation. */ +/* @@? 37:12 Error Semantic error ESE0371: Cannot find type 'E1'. */ +/* @@? 38:1 Error Syntax error ESY0227: Unexpected token '}'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/local_interface.ets b/ets2panda/test/ast/parser/ets/local_interface.ets index e645260fca..01b2797cd2 100644 --- a/ets2panda/test/ast/parser/ets/local_interface.ets +++ b/ets2panda/test/ast/parser/ets/local_interface.ets @@ -69,13 +69,13 @@ class C { } } -/* @@@ label1 Error SyntaxError: Illegal start of INTERFACE expression. */ -/* @@@ label2 Error SyntaxError: Illegal start of CLASS expression. */ -/* @@@ label3 Error SyntaxError: Illegal start of INTERFACE expression. */ -/* @@@ label4 Error SyntaxError: Illegal start of CLASS expression. */ -/* @@@ label5 Error SyntaxError: Illegal start of INTERFACE expression. */ -/* @@@ label6 Error SyntaxError: Illegal start of CLASS expression. */ -/* @@@ label7 Error SyntaxError: Unexpected token. A constructor, method, accessor, or property was expected. */ -/* @@@ label8 Error SyntaxError: Unexpected token. A constructor, method, accessor, or property was expected. */ -/* @@@ label9 Error SyntaxError: Illegal start of INTERFACE expression. */ -/* @@@ label10 Error SyntaxError: Illegal start of CLASS expression. */ \ No newline at end of file +/* @@@ label1 Error Syntax error ESY0040: Illegal start of INTERFACE expression. */ +/* @@@ label2 Error Syntax error ESY0040: Illegal start of CLASS expression. */ +/* @@@ label3 Error Syntax error ESY0040: Illegal start of INTERFACE expression. */ +/* @@@ label4 Error Syntax error ESY0040: Illegal start of CLASS expression. */ +/* @@@ label5 Error Syntax error ESY0040: Illegal start of INTERFACE expression. */ +/* @@@ label6 Error Syntax error ESY0040: Illegal start of CLASS expression. */ +/* @@@ label7 Error Syntax error ESY0233: Unexpected token. A constructor, method, accessor, or property was expected. */ +/* @@@ label8 Error Syntax error ESY0233: Unexpected token. A constructor, method, accessor, or property was expected. */ +/* @@@ label9 Error Syntax error ESY0040: Illegal start of INTERFACE expression. */ +/* @@@ label10 Error Syntax error ESY0040: Illegal start of CLASS expression. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/local_interface_already_class.ets b/ets2panda/test/ast/parser/ets/local_interface_already_class.ets index df8b96452f..7a72eb7f5c 100644 --- a/ets2panda/test/ast/parser/ets/local_interface_already_class.ets +++ b/ets2panda/test/ast/parser/ets/local_interface_already_class.ets @@ -22,5 +22,5 @@ function bar(): void { } } -/* @@? 17:3 Error SyntaxError: Illegal start of CLASS expression. */ -/* @@? 20:3 Error SyntaxError: Illegal start of INTERFACE expression. */ \ No newline at end of file +/* @@? 17:3 Error Syntax error ESY0040: Illegal start of CLASS expression. */ +/* @@? 20:3 Error Syntax error ESY0040: Illegal start of INTERFACE expression. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/local_interface_already_interface.ets b/ets2panda/test/ast/parser/ets/local_interface_already_interface.ets index 67952a2acf..96949f9705 100644 --- a/ets2panda/test/ast/parser/ets/local_interface_already_interface.ets +++ b/ets2panda/test/ast/parser/ets/local_interface_already_interface.ets @@ -22,5 +22,6 @@ function bar(): void { } } -/* @@? 17:3 Error SyntaxError: Illegal start of INTERFACE expression. */ -/* @@? 20:3 Error SyntaxError: Illegal start of INTERFACE expression. */ + +/* @@? 17:3 Error Syntax error ESY0040: Illegal start of INTERFACE expression. */ +/* @@? 20:3 Error Syntax error ESY0040: Illegal start of INTERFACE expression. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/local_interface_already_variable..ets b/ets2panda/test/ast/parser/ets/local_interface_already_variable..ets index 0660c505d4..aae46e40f4 100644 --- a/ets2panda/test/ast/parser/ets/local_interface_already_variable..ets +++ b/ets2panda/test/ast/parser/ets/local_interface_already_variable..ets @@ -20,4 +20,5 @@ function bar(): void { } } -/* @@? 18:3 Error SyntaxError: Illegal start of INTERFACE expression. */ + +/* @@? 18:3 Error Syntax error ESY0040: Illegal start of INTERFACE expression. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/local_type_alias.ets b/ets2panda/test/ast/parser/ets/local_type_alias.ets index 9c22106c8c..1deeb68cfb 100644 --- a/ets2panda/test/ast/parser/ets/local_type_alias.ets +++ b/ets2panda/test/ast/parser/ets/local_type_alias.ets @@ -39,14 +39,15 @@ interface I{ type a = A; } -/* @@? 19:3 Error SyntaxError: Illegal start of Type Alias expression. */ -/* @@? 23:3 Error SyntaxError: Illegal start of Type Alias expression. */ -/* @@? 26:5 Error SyntaxError: Illegal start of Type Alias expression. */ -/* @@? 31:7 Error SyntaxError: Field type annotation expected. */ -/* @@? 31:12 Error SyntaxError: Class cannot be used as object. */ -/* @@? 34:5 Error SyntaxError: Illegal start of Type Alias expression. */ -/* @@? 39:9 Error TypeError: Cannot find type 'a'. */ -/* @@? 39:11 Error SyntaxError: Interface member initialization is prohibited. */ -/* @@? 39:13 Error SyntaxError: Unexpected token, expected ','. */ -/* @@? 39:13 Error SyntaxError: Identifier expected, got 'identification literal'. */ -/* @@? 39:14 Error SyntaxError: Identifier expected. */ + +/* @@? 19:3 Error Syntax error ESY0040: Illegal start of Type Alias expression. */ +/* @@? 23:3 Error Syntax error ESY0040: Illegal start of Type Alias expression. */ +/* @@? 26:5 Error Syntax error ESY0040: Illegal start of Type Alias expression. */ +/* @@? 31:7 Error Syntax error ESY0121: Field type annotation expected. */ +/* @@? 31:12 Error Syntax error ESY0318: Class cannot be used as object. */ +/* @@? 34:5 Error Syntax error ESY0040: Illegal start of Type Alias expression. */ +/* @@? 39:9 Error Semantic error ESE0371: Cannot find type 'a'. */ +/* @@? 39:11 Error Syntax error ESY0180: Interface member initialization is prohibited. */ +/* @@? 39:13 Error Syntax error ESY0228: Unexpected token, expected ','. */ +/* @@? 39:13 Error Syntax error ESY0224: Identifier expected, got 'identification literal'. */ +/* @@? 39:14 Error Syntax error ESY0122: Identifier expected. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/loops.ets b/ets2panda/test/ast/parser/ets/loops.ets index b615b0ecd6..b753c0682a 100644 --- a/ets2panda/test/ast/parser/ets/loops.ets +++ b/ets2panda/test/ast/parser/ets/loops.ets @@ -64,4 +64,5 @@ function labeledcontinue(): void { } } -/* @@? 19:15 Error TypeError: Unresolved reference i */ + +/* @@? 19:15 Error Semantic error ESE0143: Unresolved reference i */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/main_entry_point_2.ets b/ets2panda/test/ast/parser/ets/main_entry_point_2.ets index c980858747..4c3739e39a 100644 --- a/ets2panda/test/ast/parser/ets/main_entry_point_2.ets +++ b/ets2panda/test/ast/parser/ets/main_entry_point_2.ets @@ -17,4 +17,5 @@ function main(): char { /* @@ label */return c'a'; } -/* @@@ label Error TypeError: Bad return type, main enable only void or int type. */ + +/* @@@ label Error Semantic error ESE0088: Bad return type, main enable only void or int type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/main_entry_point_3.ets b/ets2panda/test/ast/parser/ets/main_entry_point_3.ets index 12aeee1168..2f395f0846 100644 --- a/ets2panda/test/ast/parser/ets/main_entry_point_3.ets +++ b/ets2panda/test/ast/parser/ets/main_entry_point_3.ets @@ -17,4 +17,5 @@ function main(/* @@ label */i : int[]): void { return; } -/* @@@ label Error TypeError: Only 'FixedArray' type argument is allowed. */ + +/* @@@ label Error Semantic error ESE0135: Only 'FixedArray' type argument is allowed. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/main_entry_point_4.ets b/ets2panda/test/ast/parser/ets/main_entry_point_4.ets index 79e4b004ee..63be34bace 100644 --- a/ets2panda/test/ast/parser/ets/main_entry_point_4.ets +++ b/ets2panda/test/ast/parser/ets/main_entry_point_4.ets @@ -17,4 +17,5 @@ function main(i : int[], ii : int): void { return; } -/* @@? 16:10 Error TypeError: 0 or 1 argument are allowed */ + +/* @@? 16:10 Error Semantic error ESE0133: 0 or 1 argument are allowed */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/main_entry_point_5.ets b/ets2panda/test/ast/parser/ets/main_entry_point_5.ets index fdca0d522c..53b6d6df70 100644 --- a/ets2panda/test/ast/parser/ets/main_entry_point_5.ets +++ b/ets2panda/test/ast/parser/ets/main_entry_point_5.ets @@ -21,5 +21,6 @@ function /* @@ label */main(i : string[]): void { return; } -/* @@? 20:24 Error TypeError: Main overload is not enabled */ -/* @@? 20:29 Error TypeError: Only 'FixedArray' type argument is allowed. */ + +/* @@@ label Error Semantic error ESE0373: Main overload is not enabled */ +/* @@? 20:29 Error Semantic error ESE0135: Only 'FixedArray' type argument is allowed. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/method_full.ets b/ets2panda/test/ast/parser/ets/method_full.ets index 37360616d7..a86d080b85 100644 --- a/ets2panda/test/ast/parser/ets/method_full.ets +++ b/ets2panda/test/ast/parser/ets/method_full.ets @@ -30,8 +30,9 @@ abstract class method_full { private native foo_native(): int ; } -/* @@@ label Error TypeError: Function with a non void return type must return a value. */ -/* @@@ label1 Error TypeError: Function with a non void return type must return a value. */ -/* @@@ label2 Error TypeError: Function with a non void return type must return a value. */ -/* @@@ label3 Error TypeError: Function with a non void return type must return a value. */ -/* @@@ label4 Error TypeError: Function with a non void return type must return a value. */ + +/* @@@ label Error Semantic error ESE0103: Function with a non void return type must return a value. */ +/* @@@ label1 Error Semantic error ESE0103: Function with a non void return type must return a value. */ +/* @@@ label2 Error Semantic error ESE0103: Function with a non void return type must return a value. */ +/* @@@ label3 Error Semantic error ESE0103: Function with a non void return type must return a value. */ +/* @@@ label4 Error Semantic error ESE0103: Function with a non void return type must return a value. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/method_modifier_check_1.ets b/ets2panda/test/ast/parser/ets/method_modifier_check_1.ets index b7dc7a4833..722ebcbb31 100644 --- a/ets2panda/test/ast/parser/ets/method_modifier_check_1.ets +++ b/ets2panda/test/ast/parser/ets/method_modifier_check_1.ets @@ -17,5 +17,6 @@ abstract class A { abstract static /* @@ label */foo(): void /* @@ label1 */{} } -/* @@@ label Error TypeError: Invalid method modifier(s): an abstract method can't have private, override, static, final or native modifier. */ -/* @@@ label1 Error TypeError: Native, Abstract and Declare methods cannot have body. */ + +/* @@@ label Error Semantic error ESE0047: Invalid method modifier(s): an abstract method can't have private, override, static, final or native modifier. */ +/* @@@ label1 Error Semantic error ESE0083: Native, Abstract and Declare methods cannot have body. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/method_modifier_check_10.ets b/ets2panda/test/ast/parser/ets/method_modifier_check_10.ets index 213f10bfdb..70b7130852 100644 --- a/ets2panda/test/ast/parser/ets/method_modifier_check_10.ets +++ b/ets2panda/test/ast/parser/ets/method_modifier_check_10.ets @@ -17,5 +17,6 @@ class A { final static /* @@ label */foo() : void {} } -/* @@@ label Error TypeError: Invalid method modifier(s): a final method can't have abstract or static modifier. */ -/* @@@ label Error TypeError: Invalid method modifier(s): a static method can't have abstract, final or override modifier. */ + +/* @@@ label Error Semantic error ESE0048: Invalid method modifier(s): a final method can't have abstract or static modifier. */ +/* @@@ label Error Semantic error ESE0077: Invalid method modifier(s): a static method can't have abstract, final or override modifier. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/method_modifier_check_11.ets b/ets2panda/test/ast/parser/ets/method_modifier_check_11.ets index f61c43667d..98ff8bfe5d 100644 --- a/ets2panda/test/ast/parser/ets/method_modifier_check_11.ets +++ b/ets2panda/test/ast/parser/ets/method_modifier_check_11.ets @@ -17,4 +17,5 @@ class A { final override foo/* @@ label */() : void {} } -/* @@@ label Error TypeError: Method foo(): void in A not overriding any method */ + +/* @@@ label Error Semantic error ESE0136: Method foo(): void in A not overriding any method */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/method_modifier_check_12.ets b/ets2panda/test/ast/parser/ets/method_modifier_check_12.ets index 4f9ecbcc86..1c44b05326 100644 --- a/ets2panda/test/ast/parser/ets/method_modifier_check_12.ets +++ b/ets2panda/test/ast/parser/ets/method_modifier_check_12.ets @@ -17,4 +17,5 @@ class A { final native foo() : void /* @@ label */{} } -/* @@@ label Error TypeError: Native, Abstract and Declare methods cannot have body. */ + +/* @@@ label Error Semantic error ESE0083: Native, Abstract and Declare methods cannot have body. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/method_modifier_check_13.ets b/ets2panda/test/ast/parser/ets/method_modifier_check_13.ets index 8d596511c7..298e2b0bb4 100644 --- a/ets2panda/test/ast/parser/ets/method_modifier_check_13.ets +++ b/ets2panda/test/ast/parser/ets/method_modifier_check_13.ets @@ -17,4 +17,5 @@ abstract class A { native abstract /* @@ label */foo() : void; } -/* @@@ label Error TypeError: Invalid method modifier(s): an abstract method can't have private, override, static, final or native modifier. */ + +/* @@@ label Error Semantic error ESE0047: Invalid method modifier(s): an abstract method can't have private, override, static, final or native modifier. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/method_modifier_check_15.ets b/ets2panda/test/ast/parser/ets/method_modifier_check_15.ets index 2ce06b448a..641ae326c3 100644 --- a/ets2panda/test/ast/parser/ets/method_modifier_check_15.ets +++ b/ets2panda/test/ast/parser/ets/method_modifier_check_15.ets @@ -18,5 +18,5 @@ class A { static final /* @@ label */foo2() : void {}; } -/* @@@ label Error TypeError: Invalid method modifier(s): a final method can't have abstract or static modifier. */ -/* @@@ label Error TypeError: Invalid method modifier(s): a static method can't have abstract, final or override modifier. */ \ No newline at end of file +/* @@@ label Error Semantic error ESE0048: Invalid method modifier(s): a final method can't have abstract or static modifier. */ +/* @@@ label Error Semantic error ESE0077: Invalid method modifier(s): a static method can't have abstract, final or override modifier. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/method_modifier_check_16.ets b/ets2panda/test/ast/parser/ets/method_modifier_check_16.ets index beb38160f4..c54c5f4a0b 100644 --- a/ets2panda/test/ast/parser/ets/method_modifier_check_16.ets +++ b/ets2panda/test/ast/parser/ets/method_modifier_check_16.ets @@ -17,4 +17,5 @@ class A { native override foo/* @@ label */() : void; } -/* @@@ label Error TypeError: Method foo(): void in A not overriding any method */ + +/* @@@ label Error Semantic error ESE0136: Method foo(): void in A not overriding any method */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/method_modifier_check_17.ets b/ets2panda/test/ast/parser/ets/method_modifier_check_17.ets index 0d44625fb3..ce653a9216 100644 --- a/ets2panda/test/ast/parser/ets/method_modifier_check_17.ets +++ b/ets2panda/test/ast/parser/ets/method_modifier_check_17.ets @@ -30,4 +30,5 @@ a.instance_method () function main() {} -/* @@@ label Error TypeError: Cannot call abstract method! */ + +/* @@@ label Error Semantic error ESE0026: Cannot call abstract method! */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/method_modifier_check_2.ets b/ets2panda/test/ast/parser/ets/method_modifier_check_2.ets index 2f3b401762..393eac5181 100644 --- a/ets2panda/test/ast/parser/ets/method_modifier_check_2.ets +++ b/ets2panda/test/ast/parser/ets/method_modifier_check_2.ets @@ -17,5 +17,6 @@ abstract class A { abstract final /* @@ label */foo(): void /* @@ label1 */{} } -/* @@@ label Error TypeError: Invalid method modifier(s): an abstract method can't have private, override, static, final or native modifier. */ -/* @@@ label1 Error TypeError: Native, Abstract and Declare methods cannot have body. */ + +/* @@@ label Error Semantic error ESE0047: Invalid method modifier(s): an abstract method can't have private, override, static, final or native modifier. */ +/* @@@ label1 Error Semantic error ESE0083: Native, Abstract and Declare methods cannot have body. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/method_modifier_check_3.ets b/ets2panda/test/ast/parser/ets/method_modifier_check_3.ets index 477dbe2f37..6b169be659 100644 --- a/ets2panda/test/ast/parser/ets/method_modifier_check_3.ets +++ b/ets2panda/test/ast/parser/ets/method_modifier_check_3.ets @@ -17,5 +17,6 @@ abstract class A { abstract override /* @@ label */foo(): void /* @@ label1 */{} } -/* @@@ label Error TypeError: Invalid method modifier(s): an abstract method can't have private, override, static, final or native modifier. */ -/* @@@ label1 Error TypeError: Native, Abstract and Declare methods cannot have body. */ + +/* @@@ label Error Semantic error ESE0047: Invalid method modifier(s): an abstract method can't have private, override, static, final or native modifier. */ +/* @@@ label1 Error Semantic error ESE0083: Native, Abstract and Declare methods cannot have body. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/method_modifier_check_4.ets b/ets2panda/test/ast/parser/ets/method_modifier_check_4.ets index a2c56ede00..b5ae205b4b 100644 --- a/ets2panda/test/ast/parser/ets/method_modifier_check_4.ets +++ b/ets2panda/test/ast/parser/ets/method_modifier_check_4.ets @@ -17,5 +17,6 @@ abstract class A { abstract native /* @@ label */foo(): void /* @@ label1 */{} } -/* @@@ label Error TypeError: Invalid method modifier(s): an abstract method can't have private, override, static, final or native modifier. */ -/* @@@ label1 Error TypeError: Native, Abstract and Declare methods cannot have body. */ + +/* @@@ label Error Semantic error ESE0047: Invalid method modifier(s): an abstract method can't have private, override, static, final or native modifier. */ +/* @@@ label1 Error Semantic error ESE0083: Native, Abstract and Declare methods cannot have body. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/method_modifier_check_5.ets b/ets2panda/test/ast/parser/ets/method_modifier_check_5.ets index cc9f684ee9..d088537247 100644 --- a/ets2panda/test/ast/parser/ets/method_modifier_check_5.ets +++ b/ets2panda/test/ast/parser/ets/method_modifier_check_5.ets @@ -17,5 +17,6 @@ abstract class A { static abstract /* @@ label */foo(): void /* @@ label1 */{} } -/* @@@ label Error TypeError: Invalid method modifier(s): an abstract method can't have private, override, static, final or native modifier. */ -/* @@@ label1 Error TypeError: Native, Abstract and Declare methods cannot have body. */ + +/* @@@ label Error Semantic error ESE0047: Invalid method modifier(s): an abstract method can't have private, override, static, final or native modifier. */ +/* @@@ label1 Error Semantic error ESE0083: Native, Abstract and Declare methods cannot have body. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/method_modifier_check_6.ets b/ets2panda/test/ast/parser/ets/method_modifier_check_6.ets index 8b927eca6b..47f27695fc 100644 --- a/ets2panda/test/ast/parser/ets/method_modifier_check_6.ets +++ b/ets2panda/test/ast/parser/ets/method_modifier_check_6.ets @@ -17,5 +17,6 @@ class A { static final /* @@ label */foo(): void {} } -/* @@@ label Error TypeError: Invalid method modifier(s): a final method can't have abstract or static modifier. */ -/* @@@ label Error TypeError: Invalid method modifier(s): a static method can't have abstract, final or override modifier. */ + +/* @@@ label Error Semantic error ESE0048: Invalid method modifier(s): a final method can't have abstract or static modifier. */ +/* @@@ label Error Semantic error ESE0077: Invalid method modifier(s): a static method can't have abstract, final or override modifier. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/method_modifier_check_7.ets b/ets2panda/test/ast/parser/ets/method_modifier_check_7.ets index 8ade465440..f01c2f2b97 100644 --- a/ets2panda/test/ast/parser/ets/method_modifier_check_7.ets +++ b/ets2panda/test/ast/parser/ets/method_modifier_check_7.ets @@ -17,4 +17,5 @@ class A { static override /* @@ label */foo(): void {} } -/* @@@ label Error TypeError: Invalid method modifier(s): a static method can't have abstract, final or override modifier. */ + +/* @@@ label Error Semantic error ESE0077: Invalid method modifier(s): a static method can't have abstract, final or override modifier. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/method_modifier_check_9.ets b/ets2panda/test/ast/parser/ets/method_modifier_check_9.ets index b820366759..be25234b3a 100644 --- a/ets2panda/test/ast/parser/ets/method_modifier_check_9.ets +++ b/ets2panda/test/ast/parser/ets/method_modifier_check_9.ets @@ -17,4 +17,5 @@ abstract class A { final abstract /* @@ label */foo() : void; } -/* @@@ label Error TypeError: Invalid method modifier(s): an abstract method can't have private, override, static, final or native modifier. */ + +/* @@@ label Error Semantic error ESE0047: Invalid method modifier(s): an abstract method can't have private, override, static, final or native modifier. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/methods.ets b/ets2panda/test/ast/parser/ets/methods.ets index de66f5d661..7780067b3d 100644 --- a/ets2panda/test/ast/parser/ets/methods.ets +++ b/ets2panda/test/ast/parser/ets/methods.ets @@ -40,4 +40,5 @@ final class C4 extends C3 { override a(): void {}; } -/* @@@ label Error TypeError: Only abstract or native methods can't have body. */ + +/* @@@ label Error Semantic error ESE0017: Only abstract or native methods can't have body. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/minus_sign_as_index_1.ets b/ets2panda/test/ast/parser/ets/minus_sign_as_index_1.ets index 64b36ca550..c460e49e23 100644 --- a/ets2panda/test/ast/parser/ets/minus_sign_as_index_1.ets +++ b/ets2panda/test/ast/parser/ets/minus_sign_as_index_1.ets @@ -15,10 +15,10 @@ class URIError extends WebAssembly {WebAssembly : WeakMap [-6]} -/* @@? 1:3 Error TypeError: Class 'URIError' is already defined. */ -/* @@? 16:24 Error TypeError: Cannot find type 'WebAssembly'. */ -/* @@? 16:24 Error TypeError: The super type of 'URIError' class is not extensible. */ -/* @@? 16:60 Error SyntaxError: Unexpected token, expected ']'. */ -/* @@? 16:60 Error SyntaxError: Unexpected token ']'. */ -/* @@? 16:61 Error SyntaxError: Unexpected token '6'. */ -/* @@? 16:62 Error SyntaxError: Unexpected token ']'. */ \ No newline at end of file +/* @@? 1:3 Error Semantic error ESE0349: Class 'URIError' is already defined. */ +/* @@? 16:24 Error Semantic error ESE0371: Cannot find type 'WebAssembly'. */ +/* @@? 16:24 Error Semantic error ESE0176: The super type of 'URIError' class is not extensible. */ +/* @@? 16:60 Error Syntax error ESY0228: Unexpected token, expected ']'. */ +/* @@? 16:60 Error Syntax error ESY0227: Unexpected token ']'. */ +/* @@? 16:61 Error Syntax error ESY0227: Unexpected token '6'. */ +/* @@? 16:62 Error Syntax error ESY0227: Unexpected token ']'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/missing_implementation_1.ets b/ets2panda/test/ast/parser/ets/missing_implementation_1.ets index 2e7d7ff93f..1885c12349 100644 --- a/ets2panda/test/ast/parser/ets/missing_implementation_1.ets +++ b/ets2panda/test/ast/parser/ets/missing_implementation_1.ets @@ -27,4 +27,5 @@ class Derived implements Interface /* @@ label */{ } -/* @@@ label Error TypeError: Derived is not abstract and does not implement setter for instance_field property in Interface */ + +/* @@@ label Error Semantic error ESE0189: Derived is not abstract and does not implement setter for instance_field property in Interface */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/missing_implementation_2.ets b/ets2panda/test/ast/parser/ets/missing_implementation_2.ets index 2b1080c3b7..522d5e4bdf 100644 --- a/ets2panda/test/ast/parser/ets/missing_implementation_2.ets +++ b/ets2panda/test/ast/parser/ets/missing_implementation_2.ets @@ -28,4 +28,5 @@ class Derived implements Interface /* @@ label */{ } -/* @@@ label Error TypeError: Derived is not abstract and does not implement getter for instance_field property in Interface */ + +/* @@@ label Error Semantic error ESE0188: Derived is not abstract and does not implement getter for instance_field property in Interface */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/missing_in_for_statement_1.ets b/ets2panda/test/ast/parser/ets/missing_in_for_statement_1.ets index 88b0f45e72..1e4051efc6 100644 --- a/ets2panda/test/ast/parser/ets/missing_in_for_statement_1.ets +++ b/ets2panda/test/ast/parser/ets/missing_in_for_statement_1.ets @@ -17,10 +17,11 @@ for /* @@ label */let i = 0; i < count; ++i) { result = result + p[i]!.awaitResolution() * /* @@ label1 */a[i]; } -/* @@@ label Error SyntaxError: Expected '(', got 'let'. */ -/* @@? 16:34 Error TypeError: Unresolved reference count */ -/* @@? 17:5 Error TypeError: Unresolved reference result */ -/* @@? 17:23 Error TypeError: Unresolved reference p */ -/* @@? 17:23 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@@ label1 Error TypeError: Unresolved reference a */ -/* @@@ label1 Error TypeError: Indexed access is not supported for such expression type. */ + +/* @@@ label Error Syntax error ESY0230: Expected '(', got 'let'. */ +/* @@? 16:34 Error Semantic error ESE0143: Unresolved reference count */ +/* @@? 17:5 Error Semantic error ESE0143: Unresolved reference result */ +/* @@? 17:23 Error Semantic error ESE0143: Unresolved reference p */ +/* @@? 17:23 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@@ label1 Error Semantic error ESE0143: Unresolved reference a */ +/* @@@ label1 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/missing_in_for_statement_2.ets b/ets2panda/test/ast/parser/ets/missing_in_for_statement_2.ets index a290ef8d7d..542b952327 100644 --- a/ets2panda/test/ast/parser/ets/missing_in_for_statement_2.ets +++ b/ets2panda/test/ast/parser/ets/missing_in_for_statement_2.ets @@ -17,10 +17,11 @@ for (let i = 0; i < count; ++i /* @@ label */{ result = result + p[i]!.awaitResolution() * /* @@label1 */a[i]; } -/* @@? 16:21 Error TypeError: Unresolved reference count */ -/* @@@ label Error SyntaxError: Expected ')', got '{'. */ -/* @@? 17:5 Error TypeError: Unresolved reference result */ -/* @@? 17:23 Error TypeError: Unresolved reference p */ -/* @@? 17:23 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@@ label1 Error TypeError: Unresolved reference a */ -/* @@@ label1 Error TypeError: Indexed access is not supported for such expression type. */ + +/* @@? 16:21 Error Semantic error ESE0143: Unresolved reference count */ +/* @@@ label Error Syntax error ESY0230: Expected ')', got '{'. */ +/* @@? 17:5 Error Semantic error ESE0143: Unresolved reference result */ +/* @@? 17:23 Error Semantic error ESE0143: Unresolved reference p */ +/* @@? 17:23 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@@ label1 Error Semantic error ESE0143: Unresolved reference a */ +/* @@@ label1 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/missing_in_if_statement_1.ets b/ets2panda/test/ast/parser/ets/missing_in_if_statement_1.ets index b436d64715..c5926730e9 100644 --- a/ets2panda/test/ast/parser/ets/missing_in_if_statement_1.ets +++ b/ets2panda/test/ast/parser/ets/missing_in_if_statement_1.ets @@ -15,4 +15,5 @@ if (true /* @@ label */{ console.log("hello!") } -/* @@@ label Error SyntaxError: Expected ')', got '{'. */ + +/* @@@ label Error Syntax error ESY0230: Expected ')', got '{'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/missing_in_if_statement_2.ets b/ets2panda/test/ast/parser/ets/missing_in_if_statement_2.ets index 88f429a626..65aa178fc7 100644 --- a/ets2panda/test/ast/parser/ets/missing_in_if_statement_2.ets +++ b/ets2panda/test/ast/parser/ets/missing_in_if_statement_2.ets @@ -15,5 +15,6 @@ if /* @@ label */true /* @@ label1 */{ console.log("hello!") } -/* @@@ label Error SyntaxError: Expected '(', got 'true'. */ -/* @@@ label1 Error SyntaxError: Expected ')', got '{'. */ + +/* @@@ label Error Syntax error ESY0230: Expected '(', got 'true'. */ +/* @@@ label1 Error Syntax error ESY0230: Expected ')', got '{'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/multi_typeerror_function_implicit_return_value.ets b/ets2panda/test/ast/parser/ets/multi_typeerror_function_implicit_return_value.ets index 3f63fe8177..feee3ac604 100644 --- a/ets2panda/test/ast/parser/ets/multi_typeerror_function_implicit_return_value.ets +++ b/ets2panda/test/ast/parser/ets/multi_typeerror_function_implicit_return_value.ets @@ -27,5 +27,5 @@ function main() { } -/* @@@ label Error TypeError: Function cannot have different primitive return types, require 'boolean', found 'int' */ -/* @@@ label1 Error TypeError: Function cannot have different primitive return types, require 'boolean', found 'double' */ + +/* @@? 22:3 Warning Warning W0026: Unreachable statement. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/multiple_fields.ets b/ets2panda/test/ast/parser/ets/multiple_fields.ets index 06b9aeef41..f56baacb0a 100644 --- a/ets2panda/test/ast/parser/ets/multiple_fields.ets +++ b/ets2panda/test/ast/parser/ets/multiple_fields.ets @@ -17,4 +17,5 @@ class C { x: int/* @@ label1 */, y: int; } -/* @@@ label1 Error SyntaxError: Unexpected token ','. */ + +/* @@@ label1 Error Syntax error ESY0227: Unexpected token ','. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/n_arrayHoldingNullValue.ets b/ets2panda/test/ast/parser/ets/n_arrayHoldingNullValue.ets index 33ed150ffb..3898ca05ba 100644 --- a/ets2panda/test/ast/parser/ets/n_arrayHoldingNullValue.ets +++ b/ets2panda/test/ast/parser/ets/n_arrayHoldingNullValue.ets @@ -18,5 +18,6 @@ function main(): void { let d: char[] = /* @@ label1 */null; } -/* @@? 17:38 Error TypeError: Type 'null' cannot be assigned to type 'Array' */ -/* @@? 18:36 Error TypeError: Type 'null' cannot be assigned to type 'Array' */ + +/* @@@ label Error Semantic error ESE0318: Type 'null' cannot be assigned to type 'Array' */ +/* @@@ label1 Error Semantic error ESE0318: Type 'null' cannot be assigned to type 'Array' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/n_assignNullableFromFunctionToNonNullable.ets b/ets2panda/test/ast/parser/ets/n_assignNullableFromFunctionToNonNullable.ets index 85238afe01..39fdee06fa 100644 --- a/ets2panda/test/ast/parser/ets/n_assignNullableFromFunctionToNonNullable.ets +++ b/ets2panda/test/ast/parser/ets/n_assignNullableFromFunctionToNonNullable.ets @@ -23,4 +23,5 @@ function main(): void { let x : Object = /* @@ label */foo(); } -/* @@@ label Error TypeError: Type 'A|null' cannot be assigned to type 'Object' */ + +/* @@@ label Error Semantic error ESE0318: Type 'A|null' cannot be assigned to type 'Object' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/n_nullableTypeMissingNull.ets b/ets2panda/test/ast/parser/ets/n_nullableTypeMissingNull.ets index 3e9b32aba2..b1aadd29f3 100644 --- a/ets2panda/test/ast/parser/ets/n_nullableTypeMissingNull.ets +++ b/ets2panda/test/ast/parser/ets/n_nullableTypeMissingNull.ets @@ -17,4 +17,5 @@ function main(): void { let a : int |/* @@ label */; } -/* @@@ label Error SyntaxError: Invalid Type. */ + +/* @@@ label Error Syntax error ESY0138: Invalid Type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/n_returnNullFromFunction.ets b/ets2panda/test/ast/parser/ets/n_returnNullFromFunction.ets index 62bc60bdda..e11c4c164d 100644 --- a/ets2panda/test/ast/parser/ets/n_returnNullFromFunction.ets +++ b/ets2panda/test/ast/parser/ets/n_returnNullFromFunction.ets @@ -19,4 +19,5 @@ function foo() : A { return /* @@ label */null; } -/* @@@ label Error TypeError: Type 'null' is not compatible with the enclosing method's return type 'A' */ + +/* @@@ label Error Semantic error ESE0091: Type 'null' is not compatible with the enclosing method's return type 'A' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/n_returnNullFromMethod.ets b/ets2panda/test/ast/parser/ets/n_returnNullFromMethod.ets index 29e7f68e26..2614fc43bd 100644 --- a/ets2panda/test/ast/parser/ets/n_returnNullFromMethod.ets +++ b/ets2panda/test/ast/parser/ets/n_returnNullFromMethod.ets @@ -19,4 +19,5 @@ class A { } } -/* @@@ label Error TypeError: Type 'null' is not compatible with the enclosing method's return type 'A' */ + +/* @@@ label Error Semantic error ESE0091: Type 'null' is not compatible with the enclosing method's return type 'A' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/named_types.ets b/ets2panda/test/ast/parser/ets/named_types.ets index f782419a4b..9bb15a4f14 100644 --- a/ets2panda/test/ast/parser/ets/named_types.ets +++ b/ets2panda/test/ast/parser/ets/named_types.ets @@ -30,9 +30,10 @@ class auxilliary { } } -/* @@@ label Error SyntaxError: Unexpected token. A constructor, method, accessor, or property was expected. */ -/* @@@ label1 Error SyntaxError: Unexpected token. A constructor, method, accessor, or property was expected. */ -/* @@? 19:12 Error TypeError: Cannot find type 'ets'. */ -/* @@? 19:16 Error TypeError: 'lang' type does not exist. */ -/* @@? 19:21 Error TypeError: 'String' type does not exist. */ -/* @@? 29:20 Error TypeError: Type 'inner' is generic but type argument were not provided. */ + +/* @@? 19:12 Error Semantic error ESE0371: Cannot find type 'ets'. */ +/* @@? 19:16 Error Semantic error ESE0070: 'lang' type does not exist. */ +/* @@? 19:21 Error Semantic error ESE0070: 'String' type does not exist. */ +/* @@@ label Error Syntax error ESY0233: Unexpected token. A constructor, method, accessor, or property was expected. */ +/* @@@ label1 Error Syntax error ESY0233: Unexpected token. A constructor, method, accessor, or property was expected. */ +/* @@? 29:20 Error Semantic error ESE0170: Type 'inner' is generic but type argument were not provided. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/named_types_1.ets b/ets2panda/test/ast/parser/ets/named_types_1.ets index 675be901c5..604e282450 100644 --- a/ets2panda/test/ast/parser/ets/named_types_1.ets +++ b/ets2panda/test/ast/parser/ets/named_types_1.ets @@ -18,4 +18,4 @@ class named_types { } } -/* @@@ label Error SyntaxError: Unexpected token. A constructor, method, accessor, or property was expected. */ \ No newline at end of file +/* @@? 17:34 Error Syntax error ESY0233: Unexpected token. A constructor, method, accessor, or property was expected. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/named_types_2.ets b/ets2panda/test/ast/parser/ets/named_types_2.ets index a7db49cd23..dda40c99d9 100644 --- a/ets2panda/test/ast/parser/ets/named_types_2.ets +++ b/ets2panda/test/ast/parser/ets/named_types_2.ets @@ -18,5 +18,6 @@ /* @@ label1 */ " -/* @@@ label Error SyntaxError: Newline is not allowed in strings */ -/* @@@ label1 Error SyntaxError: Newline is not allowed in strings */ + +/* @@? 16:1 Error Syntax error ESY0265: Newline is not allowed in strings */ +/* @@@ label1 Error Syntax error ESY0265: Newline is not allowed in strings */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/namespace_bad_token.ets b/ets2panda/test/ast/parser/ets/namespace_bad_token.ets index 5576913d33..bc49485dfd 100644 --- a/ets2panda/test/ast/parser/ets/namespace_bad_token.ets +++ b/ets2panda/test/ast/parser/ets/namespace_bad_token.ets @@ -17,5 +17,5 @@ declare namespace uiObserver { function on(options: { a: number }, callback: ): void; } -/* @@? 17:26 Error SyntaxError: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ -/* @@? 17:51 Error SyntaxError: Invalid Type. */ \ No newline at end of file +/* @@? 17:26 Error Syntax error ESY177354: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ +/* @@? 17:51 Error Syntax error ESY0138: Invalid Type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/namespace_badtoken01.ets b/ets2panda/test/ast/parser/ets/namespace_badtoken01.ets index 77283eddc7..173258738d 100644 --- a/ets2panda/test/ast/parser/ets/namespace_badtoken01.ets +++ b/ets2panda/test/ast/parser/ets/namespace_badtoken01.ets @@ -17,4 +17,5 @@ namespace MySpace{ ... } -/* @@? 17:5 Error SyntaxError: Unexpected token '...'. */ + +/* @@? 17:5 Error Syntax error ESY0227: Unexpected token '...'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/namespace_badtoken02.ets b/ets2panda/test/ast/parser/ets/namespace_badtoken02.ets index 5d0d663fc1..d63b26c3c1 100644 --- a/ets2panda/test/ast/parser/ets/namespace_badtoken02.ets +++ b/ets2panda/test/ast/parser/ets/namespace_badtoken02.ets @@ -15,4 +15,5 @@ namespace MySpace{ -/* @@? 19:1 Error SyntaxError: Unexpected token. */ + +/* @@? 19:62 Error Syntax error ESY0016: Unexpected token. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/namespace_badtoken03.ets b/ets2panda/test/ast/parser/ets/namespace_badtoken03.ets index 62b721754e..7341504d64 100644 --- a/ets2panda/test/ast/parser/ets/namespace_badtoken03.ets +++ b/ets2panda/test/ast/parser/ets/namespace_badtoken03.ets @@ -15,4 +15,5 @@ namespace MySpace{ }} -/* @@? 17:2 Error SyntaxError: Unexpected token '}'. */ + +/* @@? 17:2 Error Syntax error ESY0227: Unexpected token '}'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/namespace_badtoken04.ets b/ets2panda/test/ast/parser/ets/namespace_badtoken04.ets index f5dd2523aa..c706e84cf6 100644 --- a/ets2panda/test/ast/parser/ets/namespace_badtoken04.ets +++ b/ets2panda/test/ast/parser/ets/namespace_badtoken04.ets @@ -16,5 +16,6 @@ declare namespace MySpace{ foo():void } -/* @@? 17:10 Error SyntaxError: Unexpected token ':'. */ -/* @@? 17:11 Error SyntaxError: Unexpected token 'void'. */ + +/* @@? 17:10 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 17:11 Error Syntax error ESY0227: Unexpected token 'void'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/native_constructor_empty_body.ets b/ets2panda/test/ast/parser/ets/native_constructor_empty_body.ets index 4de8ee4d0a..e138af3196 100644 --- a/ets2panda/test/ast/parser/ets/native_constructor_empty_body.ets +++ b/ets2panda/test/ast/parser/ets/native_constructor_empty_body.ets @@ -30,6 +30,6 @@ class Apple{ } -/* @@@ label Error TypeError: Native constructor declaration cannot have a body. */ -/* @@@ label1 Error TypeError: Native constructor declaration cannot have a body. */ -/* @@@ label2 Error TypeError: Native constructor declaration cannot have a body. */ \ No newline at end of file +/* @@@ label Error Semantic error ESE0084: Native constructor declaration cannot have a body. */ +/* @@@ label1 Error Semantic error ESE0084: Native constructor declaration cannot have a body. */ +/* @@@ label2 Error Semantic error ESE0084: Native constructor declaration cannot have a body. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/native_constructor_non_empty_body.ets b/ets2panda/test/ast/parser/ets/native_constructor_non_empty_body.ets index 1cb519270d..75fa4edc26 100644 --- a/ets2panda/test/ast/parser/ets/native_constructor_non_empty_body.ets +++ b/ets2panda/test/ast/parser/ets/native_constructor_non_empty_body.ets @@ -26,5 +26,5 @@ class Apple{ this.y=y } } -/* @@@ label Error TypeError: Native constructor declaration cannot have a body. */ -/* @@@ label1 Error TypeError: Native constructor declaration cannot have a body. */ \ No newline at end of file +/* @@@ label Error Semantic error ESE0084: Native constructor declaration cannot have a body. */ +/* @@@ label1 Error Semantic error ESE0084: Native constructor declaration cannot have a body. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/native_function_without_return_type.ets b/ets2panda/test/ast/parser/ets/native_function_without_return_type.ets index 5c61f1e38a..2d0bb9628c 100644 --- a/ets2panda/test/ast/parser/ets/native_function_without_return_type.ets +++ b/ets2panda/test/ast/parser/ets/native_function_without_return_type.ets @@ -19,4 +19,5 @@ function main(): void { foo(); } -/* @@? 16:17 Error TypeError: Native and Declare methods should have explicit return type. */ + +/* @@? 16:17 Error Semantic error ESE0018: Native and Declare methods should have explicit return type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/nested_function.ets b/ets2panda/test/ast/parser/ets/nested_function.ets index 881d82ec03..89ff27e79d 100644 --- a/ets2panda/test/ast/parser/ets/nested_function.ets +++ b/ets2panda/test/ast/parser/ets/nested_function.ets @@ -18,5 +18,6 @@ function main() /* @@ label */function b() /* @@ label1 */} -/* @@@ label Error SyntaxError: Nested functions are not allowed. */ -/* @@@ label1 Error SyntaxError: Expected '{', got '}'. */ + +/* @@@ label Error Syntax error ESY0135: Nested functions are not allowed. */ +/* @@@ label1 Error Syntax error ESY0230: Expected '{', got '}'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/nested_function_1.ets b/ets2panda/test/ast/parser/ets/nested_function_1.ets index 9325e91cb2..0303a779be 100644 --- a/ets2panda/test/ast/parser/ets/nested_function_1.ets +++ b/ets2panda/test/ast/parser/ets/nested_function_1.ets @@ -25,5 +25,6 @@ function main() b() } -/* @@@ label Error SyntaxError: Nested functions are not allowed. */ -/* @@@ label1 Error SyntaxError: Expected '{', got '}'. */ + +/* @@@ label Error Syntax error ESY0135: Nested functions are not allowed. */ +/* @@@ label1 Error Syntax error ESY0230: Expected '{', got '}'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/nested_function_in_method.ets b/ets2panda/test/ast/parser/ets/nested_function_in_method.ets index 02f7746552..f567320cea 100644 --- a/ets2panda/test/ast/parser/ets/nested_function_in_method.ets +++ b/ets2panda/test/ast/parser/ets/nested_function_in_method.ets @@ -28,5 +28,6 @@ function main() a.foo() } -/* @@@ label Error SyntaxError: Nested functions are not allowed. */ -/* @@@ label1 Error SyntaxError: Expected '{', got '}'. */ + +/* @@@ label Error Syntax error ESY0135: Nested functions are not allowed. */ +/* @@@ label1 Error Syntax error ESY0230: Expected '{', got '}'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/new_object_undefined.ets b/ets2panda/test/ast/parser/ets/new_object_undefined.ets index c18f4c8778..9dd438f1e1 100644 --- a/ets2panda/test/ast/parser/ets/new_object_undefined.ets +++ b/ets2panda/test/ast/parser/ets/new_object_undefined.ets @@ -19,5 +19,6 @@ function main() new null(); } -/* @@? 18:5 Error TypeError: Type 'undefined' is not constructible. */ -/* @@? 19:5 Error TypeError: Type 'null' is not constructible. */ + +/* @@? 18:5 Error Semantic error ESE0290: Type 'undefined' is not constructible. */ +/* @@? 19:5 Error Semantic error ESE0290: Type 'null' is not constructible. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/no-call-signatures.ets b/ets2panda/test/ast/parser/ets/no-call-signatures.ets index e2758cb7fc..8ad4650b96 100644 --- a/ets2panda/test/ast/parser/ets/no-call-signatures.ets +++ b/ets2panda/test/ast/parser/ets/no-call-signatures.ets @@ -23,6 +23,6 @@ function doSomething(fn: DescribableFunction) { fn(6) } -/* @@@ label Error SyntaxError: Call signatures in object types are not supported. Use '$_invoke' method instead. */ -/* @@? 23:5 Error TypeError: No static $_invoke method and static $_instantiate method in fn. fn() is not allowed. */ -/* @@? 23:5 Error TypeError: Type 'DescribableFunction' has no call signatures. */ \ No newline at end of file +/* @@@ label Error Syntax error ESY103145: Call signatures in object types are not supported. Use '$_invoke' method instead. */ +/* @@? 23:5 Error Semantic error ESE0172: No static $_invoke method and static $_instantiate method in fn. fn() is not allowed. */ +/* @@? 23:5 Error Semantic error ESE0002: Type 'DescribableFunction' has no call signatures. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/no-constructor-signatures.ets b/ets2panda/test/ast/parser/ets/no-constructor-signatures.ets index d0f5d9193a..e8b448eb89 100644 --- a/ets2panda/test/ast/parser/ets/no-constructor-signatures.ets +++ b/ets2panda/test/ast/parser/ets/no-constructor-signatures.ets @@ -21,5 +21,5 @@ function fn(ctor: SomeConstructor) { return new ctor("hello") } -/* @@? 18:7 Error SyntaxError: Constructor signatures in object types are not supported. Use '$_invoke' method instead. */ -/* @@? 21:14 Error TypeError: Cannot find type 'ctor'. */ \ No newline at end of file +/* @@? 18:7 Error Syntax error ESY103145: Constructor signatures in object types are not supported. Use '$_invoke' method instead. */ +/* @@? 21:14 Error Semantic error ESE0371: Cannot find type 'ctor'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/no-generic-lambda.ets b/ets2panda/test/ast/parser/ets/no-generic-lambda.ets index 3f19f5974a..ed4c36d3b6 100644 --- a/ets2panda/test/ast/parser/ets/no-generic-lambda.ets +++ b/ets2panda/test/ast/parser/ets/no-generic-lambda.ets @@ -19,7 +19,8 @@ let bar = () => { } foo(1.0); bar(); -/* @@? 16:11 Error SyntaxError: Generic lambda expressions are not supported. */ -/* @@? 17:11 Error SyntaxError: Generic lambda expressions are not supported. */ -/* @@? 19:1 Error TypeError: This expression is not callable. */ -/* @@? 20:1 Error TypeError: This expression is not callable. */ + +/* @@? 16:11 Error Syntax error ESY12842: Generic lambda expressions are not supported. */ +/* @@? 17:11 Error Syntax error ESY12842: Generic lambda expressions are not supported. */ +/* @@? 19:1 Error Semantic error ESE0289: This expression is not callable. */ +/* @@? 20:1 Error Semantic error ESE0289: This expression is not callable. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/no_prototype.ets b/ets2panda/test/ast/parser/ets/no_prototype.ets index 2f70cb7112..25fcf9b8ee 100644 --- a/ets2panda/test/ast/parser/ets/no_prototype.ets +++ b/ets2panda/test/ast/parser/ets/no_prototype.ets @@ -23,14 +23,15 @@ C.prototype = { } } -/* @@? 18:3 Error TypeError: Property 'prototype' does not exist on type 'C' */ -/* @@? 18:13 Error SyntaxError: Runtime prototype assignment is not supported because of static typing */ -/* @@? 18:22 Error TypeError: Property 'prototype' does not exist on type 'Object' */ -/* @@? 20:1 Error SyntaxError: Runtime prototype assignment is not supported because of static typing */ -/* @@? 20:3 Error TypeError: Property 'prototype' does not exist on type 'C' */ -/* @@? 20:13 Error SyntaxError: Runtime prototype assignment is not supported because of static typing */ -/* @@? 21:4 Error SyntaxError: Unexpected token, expected ':'. */ -/* @@? 21:5 Error SyntaxError: Unexpected token ')'. */ -/* @@? 21:7 Error SyntaxError: Unexpected token. */ -/* @@? 22:12 Error SyntaxError: Unexpected token, expected ':'. */ -/* @@? 24:1 Error SyntaxError: Unexpected token '}'. */ + +/* @@? 18:3 Error Semantic error ESE0087: Property 'prototype' does not exist on type 'C' */ +/* @@? 18:13 Error Syntax error ESY30818: Runtime prototype assignment is not supported because of static typing */ +/* @@? 18:22 Error Semantic error ESE0087: Property 'prototype' does not exist on type 'Object' */ +/* @@? 20:1 Error Syntax error ESY30818: Runtime prototype assignment is not supported because of static typing */ +/* @@? 20:3 Error Semantic error ESE0087: Property 'prototype' does not exist on type 'C' */ +/* @@? 20:13 Error Syntax error ESY30818: Runtime prototype assignment is not supported because of static typing */ +/* @@? 21:4 Error Syntax error ESY0228: Unexpected token, expected ':'. */ +/* @@? 21:5 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 21:7 Error Syntax error ESY0016: Unexpected token. */ +/* @@? 22:12 Error Syntax error ESY0228: Unexpected token, expected ':'. */ +/* @@? 24:1 Error Syntax error ESY0227: Unexpected token '}'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/nolint_bad.ets b/ets2panda/test/ast/parser/ets/nolint_bad.ets index b4aa54d097..c0cbf9b094 100644 --- a/ets2panda/test/ast/parser/ets/nolint_bad.ets +++ b/ets2panda/test/ast/parser/ets/nolint_bad.ets @@ -17,6 +17,7 @@ // ETSNOLINT(definitely-not-a-real-etsnolint-argument) // ETSNOLINT(@) function main() {} -/* @@? 1:3 Error SyntaxError: Invalid argument for ETSNOLINT! */ -/* @@? 1:3 Error SyntaxError: Unexpected character for ETSNOLINT argument! [VALID ONLY: a-z, '-']. */ -/* @@? 1:3 Error SyntaxError: Invalid argument for ETSNOLINT! */ + +/* @@? 1:3 Error Syntax error ESY0278: Invalid argument for ETSNOLINT! */ +/* @@? 1:3 Error Syntax error ESY0277: Unexpected character for ETSNOLINT argument! [VALID ONLY: a-z, '-']. */ +/* @@? 1:3 Error Syntax error ESY0278: Invalid argument for ETSNOLINT! */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/non-ambient_call_signature.ets b/ets2panda/test/ast/parser/ets/non-ambient_call_signature.ets index ede2ed654f..9cdd274aa3 100644 --- a/ets2panda/test/ast/parser/ets/non-ambient_call_signature.ets +++ b/ets2panda/test/ast/parser/ets/non-ambient_call_signature.ets @@ -17,4 +17,5 @@ class A{ /* @@ label */(a:number) :number } -/* @@@ label Error SyntaxError: Call signatures in object types are not supported. Use '$_invoke' method instead. */ + +/* @@@ label Error Syntax error ESY103145: Call signatures in object types are not supported. Use '$_invoke' method instead. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/nonPublicInterfaceProp.ets b/ets2panda/test/ast/parser/ets/nonPublicInterfaceProp.ets index 7ff657c8b2..641ea6de8b 100644 --- a/ets2panda/test/ast/parser/ets/nonPublicInterfaceProp.ets +++ b/ets2panda/test/ast/parser/ets/nonPublicInterfaceProp.ets @@ -22,4 +22,5 @@ class szeretettek implements ősz { private /* @@ label */field: int; } -/* @@@ label Error TypeError: Interface property implementation cannot be generated as non-public */ + +/* @@@ label Error Semantic error ESE0217: Interface property implementation cannot be generated as non-public */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/non_constant_expression.ets b/ets2panda/test/ast/parser/ets/non_constant_expression.ets index edb49055eb..76513ae560 100644 --- a/ets2panda/test/ast/parser/ets/non_constant_expression.ets +++ b/ets2panda/test/ast/parser/ets/non_constant_expression.ets @@ -22,4 +22,5 @@ let cc = 1 function foo() {} -/* @@? 21:14 Error TypeError: Invalid value for annotation field, expected a constant literal. */ + +/* @@? 21:14 Error Semantic error ESE0012: Invalid value for annotation field, expected a constant literal. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/non_proper_index_method.ets b/ets2panda/test/ast/parser/ets/non_proper_index_method.ets index 49fbed1717..7269fe5ec4 100644 --- a/ets2panda/test/ast/parser/ets/non_proper_index_method.ets +++ b/ets2panda/test/ast/parser/ets/non_proper_index_method.ets @@ -22,12 +22,13 @@ function main() { console.log(/* @@ label */a["a"]) } -/* @@? 22:5 Error TypeError: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Boolean): void` */ -/* @@? 22:5 Error TypeError: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Byte): void` */ -/* @@? 22:5 Error TypeError: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Short): void` */ -/* @@? 22:5 Error TypeError: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Char): void` */ -/* @@? 22:5 Error TypeError: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Int): void` */ -/* @@? 22:5 Error TypeError: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Long): void` */ -/* @@? 22:5 Error TypeError: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Float): void` */ -/* @@? 22:5 Error TypeError: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Double): void` */ -/* @@@ label Error TypeError: Object type doesn't have proper index access method. */ + +/* @@? 22:5 Error Semantic error ESE0142: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Boolean): void` */ +/* @@? 22:5 Error Semantic error ESE0142: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Byte): void` */ +/* @@? 22:5 Error Semantic error ESE0142: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Short): void` */ +/* @@? 22:5 Error Semantic error ESE0142: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Char): void` */ +/* @@? 22:5 Error Semantic error ESE0142: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Int): void` */ +/* @@? 22:5 Error Semantic error ESE0142: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Long): void` */ +/* @@? 22:5 Error Semantic error ESE0142: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Float): void` */ +/* @@? 22:5 Error Semantic error ESE0142: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Double): void` */ +/* @@@ label Error Semantic error ESE0250: Object type doesn't have proper index access method. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/non_proper_iterator_method.ets b/ets2panda/test/ast/parser/ets/non_proper_iterator_method.ets index 097eb8d19c..8592a3414d 100644 --- a/ets2panda/test/ast/parser/ets/non_proper_iterator_method.ets +++ b/ets2panda/test/ast/parser/ets/non_proper_iterator_method.ets @@ -23,5 +23,6 @@ function main(): void { } } -/* @@? 22:20 Error TypeError: Object type doesn't have proper iterator method. */ -/* @@? 22:20 Error TypeError: 'For-of' statement source expression is not of iterable type. */ + +/* @@? 22:20 Error Semantic error ESE0258: Object type doesn't have proper iterator method. */ +/* @@? 22:20 Error Semantic error ESE0076: 'For-of' statement source expression is not of iterable type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/notnullable_neg.ets b/ets2panda/test/ast/parser/ets/notnullable_neg.ets index b48602f1bb..9ad9d15fc2 100644 --- a/ets2panda/test/ast/parser/ets/notnullable_neg.ets +++ b/ets2panda/test/ast/parser/ets/notnullable_neg.ets @@ -17,25 +17,26 @@ function main() { let foo = (p: T): NonNullable<<<<<<<<<<<<<<<<<<<<<<<<<< =>p; } -/* @@? 17:15 Error SyntaxError: Type cast syntax '' is not supported, please use 'as' keyword instead */ -/* @@? 17:20 Error SyntaxError: Unexpected token, expected ')'. */ -/* @@? 17:22 Error SyntaxError: Unexpected token 'T'. */ -/* @@? 17:22 Error TypeError: Unresolved reference T */ -/* @@? 17:23 Error SyntaxError: Unexpected token ')'. */ -/* @@? 17:24 Error SyntaxError: Unexpected token ':'. */ -/* @@? 17:26 Error SyntaxError: Unexpected token 'NonNullable'. */ -/* @@? 17:26 Error TypeError: Unresolved reference NonNullable */ -/* @@? 17:37 Error SyntaxError: Expected '>', got '<<'. */ -/* @@? 17:37 Error SyntaxError: Expected '<', got '<<'. */ -/* @@? 17:37 Error SyntaxError: Expected '>', got '<<'. */ -/* @@? 17:37 Error SyntaxError: Expected '<', got '<<'. */ -/* @@? 17:39 Error SyntaxError: Unexpected token '<<'. */ -/* @@? 17:43 Error SyntaxError: Unexpected token '<<'. */ -/* @@? 17:47 Error SyntaxError: Unexpected token '<<'. */ -/* @@? 17:51 Error SyntaxError: Unexpected token '<<'. */ -/* @@? 17:55 Error SyntaxError: Unexpected token '<<'. */ -/* @@? 17:59 Error SyntaxError: Unexpected token '<<'. */ -/* @@? 17:63 Error SyntaxError: Type cast syntax '' is not supported, please use 'as' keyword instead */ -/* @@? 17:67 Error SyntaxError: Unexpected token '=>'. */ -/* @@? 17:69 Error SyntaxError: Unexpected token 'p'. */ -/* @@? 17:69 Error TypeError: Unresolved reference p */ + +/* @@? 17:15 Error Syntax error ESY178094: Type cast syntax '' is not supported, please use 'as' keyword instead */ +/* @@? 17:20 Error Syntax error ESY0228: Unexpected token, expected ')'. */ +/* @@? 17:22 Error Syntax error ESY0227: Unexpected token 'T'. */ +/* @@? 17:22 Error Semantic error ESE0143: Unresolved reference T */ +/* @@? 17:23 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 17:24 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 17:26 Error Syntax error ESY0227: Unexpected token 'NonNullable'. */ +/* @@? 17:26 Error Semantic error ESE0143: Unresolved reference NonNullable */ +/* @@? 17:37 Error Syntax error ESY0230: Expected '>', got '<<'. */ +/* @@? 17:37 Error Syntax error ESY0230: Expected '<', got '<<'. */ +/* @@? 17:37 Error Syntax error ESY0230: Expected '>', got '<<'. */ +/* @@? 17:37 Error Syntax error ESY0230: Expected '<', got '<<'. */ +/* @@? 17:39 Error Syntax error ESY0227: Unexpected token '<<'. */ +/* @@? 17:43 Error Syntax error ESY0227: Unexpected token '<<'. */ +/* @@? 17:47 Error Syntax error ESY0227: Unexpected token '<<'. */ +/* @@? 17:51 Error Syntax error ESY0227: Unexpected token '<<'. */ +/* @@? 17:55 Error Syntax error ESY0227: Unexpected token '<<'. */ +/* @@? 17:59 Error Syntax error ESY0227: Unexpected token '<<'. */ +/* @@? 17:63 Error Syntax error ESY178094: Type cast syntax '' is not supported, please use 'as' keyword instead */ +/* @@? 17:67 Error Syntax error ESY0227: Unexpected token '=>'. */ +/* @@? 17:69 Error Syntax error ESY0227: Unexpected token 'p'. */ +/* @@? 17:69 Error Semantic error ESE0143: Unresolved reference p */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/null-coalesc-negative.ets b/ets2panda/test/ast/parser/ets/null-coalesc-negative.ets index 1b99782dc6..95d5cdf08c 100644 --- a/ets2panda/test/ast/parser/ets/null-coalesc-negative.ets +++ b/ets2panda/test/ast/parser/ets/null-coalesc-negative.ets @@ -37,5 +37,6 @@ function main(): void { /* @@ label */a./* @@ label1 */increment(); } -/* @@@ label1 Error TypeError: Property 'increment' does not exist on type 'C' */ -/* @@@ label Error TypeError: Member type must be the same for all union objects. */ + +/* @@@ label Error Semantic error ESE0244: Member type must be the same for all union objects. */ +/* @@@ label1 Error Semantic error ESE0087: Property 'increment' does not exist on type 'C' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/null_invalid.ets b/ets2panda/test/ast/parser/ets/null_invalid.ets index 809f968929..fed322239b 100644 --- a/ets2panda/test/ast/parser/ets/null_invalid.ets +++ b/ets2panda/test/ast/parser/ets/null_invalid.ets @@ -16,4 +16,5 @@ const n = null; let o : Object = /* @@ label */n; -/* @@@ label Error TypeError: Type 'null' cannot be assigned to type 'Object' */ + +/* @@@ label Error Semantic error ESE0318: Type 'null' cannot be assigned to type 'Object' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/object_literal_dup_keys_0.ets b/ets2panda/test/ast/parser/ets/object_literal_dup_keys_0.ets index 41fde61d26..781e4c1190 100644 --- a/ets2panda/test/ast/parser/ets/object_literal_dup_keys_0.ets +++ b/ets2panda/test/ast/parser/ets/object_literal_dup_keys_0.ets @@ -22,4 +22,4 @@ function main(){ let a : A = {name : "John", age : 11, /* @@ label */age : 12} } -/* @@@ label Error TypeError: An object literal cannot have multiple properties with the same name. */ \ No newline at end of file +/* @@@ label Error Semantic error ESE0100: An object literal cannot have multiple properties with the same name. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/object_literal_dup_keys_2.ets b/ets2panda/test/ast/parser/ets/object_literal_dup_keys_2.ets index 0ebda6e85b..192ccb2c0a 100644 --- a/ets2panda/test/ast/parser/ets/object_literal_dup_keys_2.ets +++ b/ets2panda/test/ast/parser/ets/object_literal_dup_keys_2.ets @@ -22,4 +22,4 @@ function main(){ let a : A = {name : "John", age : 11, /* @@ label */age : 12} } -/* @@@ label Error TypeError: An object literal cannot have multiple properties with the same name. */ \ No newline at end of file +/* @@@ label Error Semantic error ESE0100: An object literal cannot have multiple properties with the same name. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/object_literal_withfunc.ets b/ets2panda/test/ast/parser/ets/object_literal_withfunc.ets index 12ccf8b28d..24febaaf8c 100644 --- a/ets2panda/test/ast/parser/ets/object_literal_withfunc.ets +++ b/ets2panda/test/ast/parser/ets/object_literal_withfunc.ets @@ -16,9 +16,10 @@ interface A { foo(): void} const x: A = {foo() {}} -/* @@? 17:15 Error TypeError: Class or interface methods cannot be initialized within an object literal. */ -/* @@? 17:18 Error SyntaxError: Unexpected token, expected ':'. */ -/* @@? 17:19 Error SyntaxError: Unexpected token ')'. */ -/* @@? 17:21 Error SyntaxError: Unexpected token. */ -/* @@? 17:22 Error SyntaxError: Unexpected token '}'. */ -/* @@? 17:23 Error SyntaxError: Unexpected token '}'. */ + +/* @@? 17:15 Error Semantic error ESE0074: Class or interface methods cannot be initialized within an object literal. */ +/* @@? 17:18 Error Syntax error ESY0228: Unexpected token, expected ':'. */ +/* @@? 17:19 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 17:21 Error Syntax error ESY0016: Unexpected token. */ +/* @@? 17:22 Error Syntax error ESY0227: Unexpected token '}'. */ +/* @@? 17:23 Error Syntax error ESY0227: Unexpected token '}'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/operator_logical_and_euqal.ets b/ets2panda/test/ast/parser/ets/operator_logical_and_euqal.ets index fc1f9e3a76..84f4bc678e 100644 --- a/ets2panda/test/ast/parser/ets/operator_logical_and_euqal.ets +++ b/ets2panda/test/ast/parser/ets/operator_logical_and_euqal.ets @@ -19,4 +19,5 @@ function main() : void{ console.log(x) } -/* @@@ label Error SyntaxError: Unexpected token '&&='. */ + +/* @@@ label Error Syntax error ESY0227: Unexpected token '&&='. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/operator_logical_nullish_equal.ets b/ets2panda/test/ast/parser/ets/operator_logical_nullish_equal.ets index bd896f54bd..87679dc509 100644 --- a/ets2panda/test/ast/parser/ets/operator_logical_nullish_equal.ets +++ b/ets2panda/test/ast/parser/ets/operator_logical_nullish_equal.ets @@ -19,4 +19,5 @@ function main() : void{ console.log(x) } -/* @@@ label Error SyntaxError: Unexpected token '??='. */ + +/* @@@ label Error Syntax error ESY0227: Unexpected token '??='. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/operator_logical_or_equal.ets b/ets2panda/test/ast/parser/ets/operator_logical_or_equal.ets index 6d7a13b8e3..33a92caf4b 100644 --- a/ets2panda/test/ast/parser/ets/operator_logical_or_equal.ets +++ b/ets2panda/test/ast/parser/ets/operator_logical_or_equal.ets @@ -19,4 +19,5 @@ function main() : void{ console.log(x) } -/* @@@ label Error SyntaxError: Unexpected token '||='. */ + +/* @@@ label Error Syntax error ESY0227: Unexpected token '||='. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/optional-chaining-array.ets b/ets2panda/test/ast/parser/ets/optional-chaining-array.ets index fd1f441713..f87833dc31 100644 --- a/ets2panda/test/ast/parser/ets/optional-chaining-array.ets +++ b/ets2panda/test/ast/parser/ets/optional-chaining-array.ets @@ -19,4 +19,5 @@ let test = arr?.[1] ?? "unknown"; let arr2: String[] | null; let test2 = arr2?.[100] ?? "unknown2"; -/* @@? 20:13 Error TypeError: Variable 'arr2' is used before being assigned. */ + +/* @@? 20:13 Error Semantic error ESE0375: Variable 'arr2' is used before being assigned. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/optional_chaining_invalid_property.ets b/ets2panda/test/ast/parser/ets/optional_chaining_invalid_property.ets index 70b3e51012..b89a6d6426 100644 --- a/ets2panda/test/ast/parser/ets/optional_chaining_invalid_property.ets +++ b/ets2panda/test/ast/parser/ets/optional_chaining_invalid_property.ets @@ -25,4 +25,5 @@ let dog: Dog = { let hasSting = dog?.hasSting; -/* @@? 26:21 Error TypeError: Property 'hasSting' does not exist on type 'Dog' */ + +/* @@? 26:21 Error Semantic error ESE0087: Property 'hasSting' does not exist on type 'Dog' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/optional_field.ets b/ets2panda/test/ast/parser/ets/optional_field.ets index de1c1e5af0..a3ed81a34a 100644 --- a/ets2panda/test/ast/parser/ets/optional_field.ets +++ b/ets2panda/test/ast/parser/ets/optional_field.ets @@ -54,5 +54,5 @@ function main() : int return 0; } -/* @@? 27:4 Error TypeError: Function method with this assembly signature already declared. */ -/* @@? 41:14 Error SyntaxError: Optional variable is deprecated and no longer supported. */ \ No newline at end of file +/* @@? 27:4 Error Semantic error ESE0131: Function method with this assembly signature already declared. */ +/* @@? 41:14 Error Syntax error ESY0306: Optional variable is deprecated and no longer supported. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/optional_field_interfaceUnionNotCompatible.ets b/ets2panda/test/ast/parser/ets/optional_field_interfaceUnionNotCompatible.ets index 5399071528..0d4083b345 100644 --- a/ets2panda/test/ast/parser/ets/optional_field_interfaceUnionNotCompatible.ets +++ b/ets2panda/test/ast/parser/ets/optional_field_interfaceUnionNotCompatible.ets @@ -31,5 +31,6 @@ abstract class C implements I } } -/* @@? 25:13 Error TypeError: field(): Object|undefined in C cannot override field(): undefined|String|Double in I because overriding return type is not compatible with the other return type. */ -/* @@? 25:13 Error TypeError: Method field(): Object|undefined in C not overriding any method */ + +/* @@? 25:13 Error Semantic error ESE0141: field(): Object|undefined in C cannot override field(): undefined|String|Double in I because overriding return type is not compatible with the other return type. */ +/* @@? 25:13 Error Semantic error ESE0136: Method field(): Object|undefined in C not overriding any method */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/optional_field_variable.ets b/ets2panda/test/ast/parser/ets/optional_field_variable.ets index 36a1540c41..02a4558e63 100644 --- a/ets2panda/test/ast/parser/ets/optional_field_variable.ets +++ b/ets2panda/test/ast/parser/ets/optional_field_variable.ets @@ -26,5 +26,5 @@ function foo(param? : Object) for (let i? : Number = 1;;) { break; } } -/* @@? 23:14 Error SyntaxError: Optional variable is deprecated and no longer supported. */ -/* @@? 26:16 Error SyntaxError: Optional variable is deprecated and no longer supported. */ \ No newline at end of file +/* @@? 23:14 Error Syntax error ESY0306: Optional variable is deprecated and no longer supported. */ +/* @@? 26:16 Error Syntax error ESY0306: Optional variable is deprecated and no longer supported. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/optional_field_variable_forof.ets b/ets2panda/test/ast/parser/ets/optional_field_variable_forof.ets index ae6a03c309..01a7962654 100644 --- a/ets2panda/test/ast/parser/ets/optional_field_variable_forof.ets +++ b/ets2panda/test/ast/parser/ets/optional_field_variable_forof.ets @@ -18,4 +18,5 @@ function foo(param? : Object) for (let i/* @@ label */? of "blablabla") { } } -/* @@@ label Error SyntaxError: Optional variable is not allowed in for of statements. */ + +/* @@@ label Error Syntax error ESY0096: Optional variable is not allowed in for of statements. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/overload_function_match_neg.ets b/ets2panda/test/ast/parser/ets/overload_function_match_neg.ets index 2a8f71cfc4..fd5fde7d6c 100644 --- a/ets2panda/test/ast/parser/ets/overload_function_match_neg.ets +++ b/ets2panda/test/ast/parser/ets/overload_function_match_neg.ets @@ -33,6 +33,7 @@ let props: DummyArray = new DummyArray() }) ) -/* @@@ label1 Error TypeError: No matching call signature for push(...) */ -/* @@@ label2 Error TypeError: No matching construct signature for A("eaw1", () => void) */ -/* @@@ label3 Error TypeError: Type 'Int' cannot be assigned to type 'String' */ + +/* @@@ label1 Error Semantic error ESE0127: No matching call signature for push(...) */ +/* @@@ label2 Error Semantic error ESE0127: No matching construct signature for A("eaw1", () => void) */ +/* @@@ label3 Error Semantic error ESE0318: Type 'Int' cannot be assigned to type 'String' */ \ No newline at end of file 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 e13784c78f..c50523fb6d 100644 --- a/ets2panda/test/ast/parser/ets/overloaded_method_as_value_neg.ets +++ b/ets2panda/test/ast/parser/ets/overloaded_method_as_value_neg.ets @@ -15,15 +15,16 @@ interface"actual : " + actual.result[i] -/* @@? 16:10 Error SyntaxError: Number, string or computed value property name 'actual : ' is not allowed, use classes to access data by property names that are identifiers */ -/* @@? 16:10 Error SyntaxError: Identifier expected, got 'string literal'. */ -/* @@? 16:22 Error SyntaxError: Unexpected token, expected '{'. */ -/* @@? 16:30 Error SyntaxError: Interface fields must have type annotation. */ -/* @@? 16:38 Error SyntaxError: Unexpected token, expected ']'. */ -/* @@? 16:38 Error SyntaxError: Unexpected token, expected ','. */ -/* @@? 16:38 Error SyntaxError: Identifier expected, got 'identification literal'. */ -/* @@? 16:39 Error SyntaxError: Identifier expected. */ -/* @@? 16:39 Error SyntaxError: Unexpected token, expected ','. */ -/* @@? 16:39 Error SyntaxError: Identifier expected, got 'end of stream'. */ -/* @@? 30:1 Error SyntaxError: Identifier expected. */ -/* @@? 30:1 Error SyntaxError: Unexpected token, expected '}'. */ + +/* @@? 16:10 Error Syntax error ESY0315: Number, string or computed value property name 'actual : ' is not allowed, use classes to access data by property names that are identifiers */ +/* @@? 16:10 Error Syntax error ESY0224: Identifier expected, got 'string literal'. */ +/* @@? 16:22 Error Syntax error ESY0228: Unexpected token, expected '{'. */ +/* @@? 16:30 Error Syntax error ESY0119: Interface fields must have type annotation. */ +/* @@? 16:38 Error Syntax error ESY0228: Unexpected token, expected ']'. */ +/* @@? 16:38 Error Syntax error ESY0228: Unexpected token, expected ','. */ +/* @@? 16:38 Error Syntax error ESY0224: Identifier expected, got 'identification literal'. */ +/* @@? 16:39 Error Syntax error ESY0122: Identifier expected. */ +/* @@? 16:39 Error Syntax error ESY0228: Unexpected token, expected ','. */ +/* @@? 16:39 Error Syntax error ESY0224: Identifier expected, got 'end of stream'. */ +/* @@? 30:76 Error Syntax error ESY0122: Identifier expected. */ +/* @@? 30:76 Error Syntax error ESY0228: Unexpected token, expected '}'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/overrideFuncWithGetter_n.ets b/ets2panda/test/ast/parser/ets/overrideFuncWithGetter_n.ets index 30982b269a..47a13d5092 100644 --- a/ets2panda/test/ast/parser/ets/overrideFuncWithGetter_n.ets +++ b/ets2panda/test/ast/parser/ets/overrideFuncWithGetter_n.ets @@ -23,6 +23,7 @@ class C implements A /* @@ label1 */{ } } -/* @@@ label Error TypeError: Cannot inherit from interface A because method length is inherited with a different declaration type */ -/* @@@ label1 Error TypeError: C is not abstract and does not override abstract method length(): Double in A */ -/* @@@ label2 Error TypeError: Method length(): Double in C not overriding any method */ + +/* @@@ label Error Semantic error ESE0215: Cannot inherit from interface A because method length is inherited with a different declaration type */ +/* @@@ label1 Error Semantic error ESE0190: C is not abstract and does not override abstract method length(): Double in A */ +/* @@@ label2 Error Semantic error ESE0136: Method length(): Double in C not overriding any method */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/override_method.ets b/ets2panda/test/ast/parser/ets/override_method.ets index e13c36a416..f00b75af69 100644 --- a/ets2panda/test/ast/parser/ets/override_method.ets +++ b/ets2panda/test/ast/parser/ets/override_method.ets @@ -25,6 +25,7 @@ final class T extends P { } } -/* @@? 22:23 Error TypeError: Cannot inherit with 'final' modifier. */ -/* @@? 23:24 Error TypeError: foo(): Int in T cannot override foo(): Int in P because overridden method is final. */ -/* @@? 23:24 Error TypeError: Method foo(): Int in T not overriding any method */ + +/* @@? 22:23 Error Semantic error ESE0178: Cannot inherit with 'final' modifier. */ +/* @@? 23:24 Error Semantic error ESE0141: foo(): Int in T cannot override foo(): Int in P because overridden method is final. */ +/* @@? 23:24 Error Semantic error ESE0136: Method foo(): Int in T not overriding any method */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/partialGenericInterface_2.ets b/ets2panda/test/ast/parser/ets/partialGenericInterface_2.ets index 622f2e74d6..3db7ea62b0 100644 --- a/ets2panda/test/ast/parser/ets/partialGenericInterface_2.ets +++ b/ets2panda/test/ast/parser/ets/partialGenericInterface_2.ets @@ -35,5 +35,6 @@ function foa(b: Partial>): void { /* @@ label */foo(/* @@ label1 */b); } -/* @@? 35:16 Error TypeError: No matching call signature for foo(Partial) */ -/* @@? 35:35 Error TypeError: Type 'Partial' is not compatible with type 'Partial' at index 1 */ + +/* @@@ label Error Semantic error ESE0127: No matching call signature for foo(Partial) */ +/* @@@ label1 Error Semantic error ESE0046: Type 'Partial' is not compatible with type 'Partial' at index 1 */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/partialGenericInterface_n.ets b/ets2panda/test/ast/parser/ets/partialGenericInterface_n.ets index 10af09be9e..a7f1980498 100644 --- a/ets2panda/test/ast/parser/ets/partialGenericInterface_n.ets +++ b/ets2panda/test/ast/parser/ets/partialGenericInterface_n.ets @@ -35,5 +35,4 @@ function foa(b: Partial>): void { /* @@ label */foo(/* @@ label1 */b, b); } -/* @@@ label1 Error TypeError: Type 'Partial>' is not compatible with type 'Partial>' at index 1 */ -/* @@@ label Error TypeError: No matching call signature for foo(Partial>, Partial>) */ + diff --git a/ets2panda/test/ast/parser/ets/partialInterface_n0.ets b/ets2panda/test/ast/parser/ets/partialInterface_n0.ets index 6097e8bfb6..78d55d5b3b 100644 --- a/ets2panda/test/ast/parser/ets/partialInterface_n0.ets +++ b/ets2panda/test/ast/parser/ets/partialInterface_n0.ets @@ -31,5 +31,6 @@ function foa(b: B): void { /* @@ label */foo(/* @@ label1 */b); } -/* @@@ label1 Error TypeError: Type 'B' is not compatible with type 'Partial' at index 1 */ -/* @@@ label Error TypeError: No matching call signature for foo(B) */ + +/* @@@ label Error Semantic error ESE0127: No matching call signature for foo(B) */ +/* @@@ label1 Error Semantic error ESE0046: Type 'B' is not compatible with type 'Partial' at index 1 */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/partialInterface_n1.ets b/ets2panda/test/ast/parser/ets/partialInterface_n1.ets index fcf39370fc..3fa0a38f9d 100644 --- a/ets2panda/test/ast/parser/ets/partialInterface_n1.ets +++ b/ets2panda/test/ast/parser/ets/partialInterface_n1.ets @@ -31,5 +31,6 @@ function foa(b: B): void { /* @@ label */foo(/* @@ label1 */b); } -/* @@@ label1 Error TypeError: Type 'B' is not compatible with type 'Partial' at index 1 */ -/* @@@ label Error TypeError: No matching call signature for foo(B) */ + +/* @@@ label Error Semantic error ESE0127: No matching call signature for foo(B) */ +/* @@@ label1 Error Semantic error ESE0046: Type 'B' is not compatible with type 'Partial' at index 1 */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/partialType_4.ets b/ets2panda/test/ast/parser/ets/partialType_4.ets index 138a81089d..5bce13a46d 100644 --- a/ets2panda/test/ast/parser/ets/partialType_4.ets +++ b/ets2panda/test/ast/parser/ets/partialType_4.ets @@ -79,9 +79,10 @@ class A>{ bar(initializers: Partial): void {} } -/* @@? 39:142 Error TypeError: T in Partial must be a class or an interface type. */ -/* @@? 49:55 Error TypeError: T in Partial must be a class or an interface type. */ -/* @@? 51:51 Error TypeError: T in Partial must be a class or an interface type. */ -/* @@? 53:86 Error TypeError: T in Partial must be a class or an interface type. */ -/* @@? 75:55 Error TypeError: T in Partial must be a class or an interface type. */ -/* @@? 79:30 Error TypeError: T in Partial must be a class or an interface type. */ + +/* @@? 39:142 Error Semantic error ESE124644: T in Partial must be a class or an interface type. */ +/* @@? 49:55 Error Semantic error ESE124644: T in Partial must be a class or an interface type. */ +/* @@? 51:51 Error Semantic error ESE124644: T in Partial must be a class or an interface type. */ +/* @@? 53:86 Error Semantic error ESE124644: T in Partial must be a class or an interface type. */ +/* @@? 75:55 Error Semantic error ESE124644: T in Partial must be a class or an interface type. */ +/* @@? 79:30 Error Semantic error ESE124644: T in Partial must be a class or an interface type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/partial_interface.ets b/ets2panda/test/ast/parser/ets/partial_interface.ets index f0d6fddb59..2355fad83b 100644 --- a/ets2panda/test/ast/parser/ets/partial_interface.ets +++ b/ets2panda/test/ast/parser/ets/partial_interface.ets @@ -32,6 +32,7 @@ function main(){ partial4.i = 100; } -/* @@? 28:32 Error TypeError: type I$partial has no property named a */ -/* @@? 29:34 Error TypeError: Type '"abcd"' is not compatible with type 'Int|undefined' at property 'i' */ -/* @@? 32:14 Error TypeError: Cannot assign to this property because it is readonly. */ + +/* @@? 28:32 Error Semantic error ESE0065: type I$partial has no property named a */ +/* @@? 29:34 Error Semantic error ESE0319: Type '"abcd"' is not compatible with type 'Int|undefined' at property 'i' */ +/* @@? 32:14 Error Semantic error ESE0209: Cannot assign to this property because it is readonly. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/partial_type_param1.ets b/ets2panda/test/ast/parser/ets/partial_type_param1.ets index 0ff07bf635..160b64e1bc 100644 --- a/ets2panda/test/ast/parser/ets/partial_type_param1.ets +++ b/ets2panda/test/ast/parser/ets/partial_type_param1.ets @@ -36,6 +36,7 @@ function generic(t: Partial): boolean { function main() { // Test that {i: 1} is accepted as Partial generic({i: 1}); -}/* @@? 32:41 Error TypeError: T in Partial must be a class or an interface type. */ -/* @@? 38:5 Error TypeError: No matching call signature for generic(...) */ -/* @@? 38:17 Error TypeError: need to specify target type for class composite */ +} +/* @@? 32:41 Error Semantic error ESE124644: T in Partial must be a class or an interface type. */ +/* @@? 38:5 Error Semantic error ESE0127: No matching call signature for generic(...) */ +/* @@? 38:17 Error Semantic error ESE0062: need to specify target type for class composite */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/partial_type_param2.ets b/ets2panda/test/ast/parser/ets/partial_type_param2.ets index 7dbb5c559d..3c940ef1f7 100644 --- a/ets2panda/test/ast/parser/ets/partial_type_param2.ets +++ b/ets2panda/test/ast/parser/ets/partial_type_param2.ets @@ -34,6 +34,7 @@ function foo(i: Partial): number { function main() { // Test case: only 'i' is provided, 'j' is omitted foo({ i: 5 }); -}/* @@? 21:37 Error TypeError: T in Partial must be a class or an interface type. */ -/* @@? 36:3 Error TypeError: No matching call signature for foo(...) */ -/* @@? 36:10 Error TypeError: need to specify target type for class composite */ +} +/* @@? 21:37 Error Semantic error ESE124644: T in Partial must be a class or an interface type. */ +/* @@? 36:3 Error Semantic error ESE0127: No matching call signature for foo(...) */ +/* @@? 36:10 Error Semantic error ESE0062: need to specify target type for class composite */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/predefined_non_primitive_types.ets b/ets2panda/test/ast/parser/ets/predefined_non_primitive_types.ets index 5c7ce150be..372e7576c8 100644 --- a/ets2panda/test/ast/parser/ets/predefined_non_primitive_types.ets +++ b/ets2panda/test/ast/parser/ets/predefined_non_primitive_types.ets @@ -35,7 +35,8 @@ let s: String = "abc"; // see 3.2.2 Array types let a: int[] = new int[5]; -/* @@? 23:25 Error TypeError: Type 'Double' cannot be assigned to type 'Float' */ -/* @@@ label Error TypeError: Variable 'non_prim_b' has already been declared. */ -/* @@? 27:31 Error TypeError: Cannot find type 'Bool'. */ -/* @@? 27:38 Error TypeError: Type 'Boolean' cannot be assigned to type 'Byte' */ + +/* @@? 23:25 Error Semantic error ESE0318: Type 'Double' cannot be assigned to type 'Float' */ +/* @@@ label Error Semantic error ESE0351: Variable 'non_prim_b' has already been declared. */ +/* @@? 27:31 Error Semantic error ESE0371: Cannot find type 'Bool'. */ +/* @@? 27:38 Error Semantic error ESE0318: Type 'Boolean' cannot be assigned to type 'Byte' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/privateSuperConstructorCall.ets b/ets2panda/test/ast/parser/ets/privateSuperConstructorCall.ets index fcf1050921..34fd69920b 100644 --- a/ets2panda/test/ast/parser/ets/privateSuperConstructorCall.ets +++ b/ets2panda/test/ast/parser/ets/privateSuperConstructorCall.ets @@ -31,5 +31,6 @@ function main(): void { arktest.assertEQ(instance.x, 5); } -/* @@? 25:5 Error TypeError: Signature constructor(alma: Int): void is not visible here. */ -/* @@? 25:5 Error TypeError: No matching call signature for privateSuperConstructorCall.Alma(Int) */ + +/* @@? 25:5 Error Semantic error ESE0139: Signature constructor(alma: Int): void is not visible here. */ +/* @@? 25:5 Error Semantic error ESE0127: No matching call signature for privateSuperConstructorCall.Alma(Int) */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/property-access-field-1.ets b/ets2panda/test/ast/parser/ets/property-access-field-1.ets index d3357fdf84..bc04e19a34 100644 --- a/ets2panda/test/ast/parser/ets/property-access-field-1.ets +++ b/ets2panda/test/ast/parser/ets/property-access-field-1.ets @@ -21,4 +21,5 @@ class A { } } -/* @@@ label Error TypeError: 'classVal' is a static property of 'A' */ + +/* @@@ label Error Semantic error ESE0207: 'classVal' is a static property of 'A' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/property-access-field-2.ets b/ets2panda/test/ast/parser/ets/property-access-field-2.ets index 5e1bb2acff..24c02e5460 100644 --- a/ets2panda/test/ast/parser/ets/property-access-field-2.ets +++ b/ets2panda/test/ast/parser/ets/property-access-field-2.ets @@ -21,4 +21,5 @@ class A { } } -/* @@@ label Error TypeError: 'instanceVal' is an instance property of 'A' */ + +/* @@@ label Error Semantic error ESE0208: 'instanceVal' is an instance property of 'A' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/property-access-method-1.ets b/ets2panda/test/ast/parser/ets/property-access-method-1.ets index fdd5660b48..e731ddd2d9 100644 --- a/ets2panda/test/ast/parser/ets/property-access-method-1.ets +++ b/ets2panda/test/ast/parser/ets/property-access-method-1.ets @@ -21,4 +21,5 @@ class A { } } -/* @@@ label Error TypeError: 'foo' is a static property of 'A' */ + +/* @@@ label Error Semantic error ESE0207: 'foo' is a static property of 'A' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/property-access-method-2.ets b/ets2panda/test/ast/parser/ets/property-access-method-2.ets index 1c19044a83..19791d7c19 100644 --- a/ets2panda/test/ast/parser/ets/property-access-method-2.ets +++ b/ets2panda/test/ast/parser/ets/property-access-method-2.ets @@ -22,4 +22,5 @@ class A { } } -/* @@@ label Error TypeError: 'foo' is an instance property of 'A' */ + +/* @@@ label Error Semantic error ESE0208: 'foo' is an instance property of 'A' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/re_export/import_16.ets b/ets2panda/test/ast/parser/ets/re_export/import_16.ets index 738fc70c2a..1c28a5acc8 100644 --- a/ets2panda/test/ast/parser/ets/re_export/import_16.ets +++ b/ets2panda/test/ast/parser/ets/re_export/import_16.ets @@ -20,4 +20,5 @@ function main() : void /* @@ label */A.foo(); } -/* @@@ label Error TypeError: Ambiguous reference to 'foo' */ + +/* @@@ label Error Semantic error ESE0061: Ambiguous reference to 'foo' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/re_export/import_17.ets b/ets2panda/test/ast/parser/ets/re_export/import_17.ets index c886b937cf..9fb59e40a0 100644 --- a/ets2panda/test/ast/parser/ets/re_export/import_17.ets +++ b/ets2panda/test/ast/parser/ets/re_export/import_17.ets @@ -20,4 +20,5 @@ function main() : void /* @@ label */A.foo(); } -/* @@@ label Error TypeError: Ambiguous reference to 'foo' */ + +/* @@@ label Error Semantic error ESE0061: Ambiguous reference to 'foo' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/re_export/import_20.ets b/ets2panda/test/ast/parser/ets/re_export/import_20.ets index cdad50d23b..6ccfc09f53 100644 --- a/ets2panda/test/ast/parser/ets/re_export/import_20.ets +++ b/ets2panda/test/ast/parser/ets/re_export/import_20.ets @@ -20,4 +20,5 @@ function main() { name./* @@ label */bar(); } -/* @@@ label Error TypeError: Property 'bar' does not exist on type 'export' */ + +/* @@@ label Error Semantic error ESE0087: Property 'bar' does not exist on type 'export' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/re_export/import_5.ets b/ets2panda/test/ast/parser/ets/re_export/import_5.ets index c3371e9141..5213567c67 100644 --- a/ets2panda/test/ast/parser/ets/re_export/import_5.ets +++ b/ets2panda/test/ast/parser/ets/re_export/import_5.ets @@ -20,4 +20,5 @@ function main() : void /* @@ label */all.foo(); } -/* @@@ label Error TypeError: Ambiguous reference to 'foo' */ + +/* @@@ label Error Semantic error ESE0061: Ambiguous reference to 'foo' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/re_export/re_export_4.ets b/ets2panda/test/ast/parser/ets/re_export/re_export_4.ets index 399324e4b7..8adc315b83 100644 --- a/ets2panda/test/ast/parser/ets/re_export/re_export_4.ets +++ b/ets2panda/test/ast/parser/ets/re_export/re_export_4.ets @@ -16,4 +16,5 @@ export /* @@ label */{foo} from "./export" export {foo} from "./export_2" -/* @@@ label Error TypeError: Ambiguous export 'foo' */ + +/* @@@ label Error Semantic error ESE0362: Ambiguous export 'foo' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/re_export/re_export_circular.ets b/ets2panda/test/ast/parser/ets/re_export/re_export_circular.ets index bfc5c191e6..4ee9940f70 100644 --- a/ets2panda/test/ast/parser/ets/re_export/re_export_circular.ets +++ b/ets2panda/test/ast/parser/ets/re_export/re_export_circular.ets @@ -15,4 +15,5 @@ export {foo} from "./re_export_circular.ets" -/* @@? 16:8 Error SyntaxError: Re-exporting local bindings is not allowed */ + +/* @@? 16:8 Error Syntax error ESY138237: Re-exporting local bindings is not allowed */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/readonly-array/readonly-array-arg.ets b/ets2panda/test/ast/parser/ets/readonly-array/readonly-array-arg.ets index 2f8f222ce1..8bbecddac7 100644 --- a/ets2panda/test/ast/parser/ets/readonly-array/readonly-array-arg.ets +++ b/ets2panda/test/ast/parser/ets/readonly-array/readonly-array-arg.ets @@ -30,17 +30,18 @@ function foo(arr: readonly int[]) { arr./* @@ with */with(0, 5); } -/* @@@ extendTo Error TypeError: Property 'extendTo' does not exist on type 'ReadonlyArray' */ -/* @@@ shrinkTo Error TypeError: Property 'shrinkTo' does not exist on type 'ReadonlyArray' */ -/* @@@ sort Error TypeError: Property 'sort' does not exist on type 'ReadonlyArray' */ -/* @@@ shift Error TypeError: Property 'shift' does not exist on type 'ReadonlyArray' */ -/* @@@ pop Error TypeError: Property 'pop' does not exist on type 'ReadonlyArray' */ -/* @@@ push Error TypeError: Property 'push' does not exist on type 'ReadonlyArray' */ -/* @@@ pushECMA Error TypeError: Property 'pushECMA' does not exist on type 'ReadonlyArray' */ -/* @@@ splice Error TypeError: Property 'splice' does not exist on type 'ReadonlyArray' */ -/* @@@ unshift Error TypeError: Property 'unshift' does not exist on type 'ReadonlyArray' */ -/* @@@ copyWithin Error TypeError: Property 'copyWithin' does not exist on type 'ReadonlyArray' */ -/* @@@ fill Error TypeError: Property 'fill' does not exist on type 'ReadonlyArray' */ -/* @@@ toSpliced Error TypeError: Property 'toSpliced' does not exist on type 'ReadonlyArray' */ -/* @@@ reverse Error TypeError: Property 'reverse' does not exist on type 'ReadonlyArray' */ -/* @@@ with Error TypeError: Property 'with' does not exist on type 'ReadonlyArray' */ + +/* @@@ extendTo Error Semantic error ESE0087: Property 'extendTo' does not exist on type 'ReadonlyArray' */ +/* @@@ shrinkTo Error Semantic error ESE0087: Property 'shrinkTo' does not exist on type 'ReadonlyArray' */ +/* @@@ sort Error Semantic error ESE0087: Property 'sort' does not exist on type 'ReadonlyArray' */ +/* @@@ shift Error Semantic error ESE0087: Property 'shift' does not exist on type 'ReadonlyArray' */ +/* @@@ pop Error Semantic error ESE0087: Property 'pop' does not exist on type 'ReadonlyArray' */ +/* @@@ push Error Semantic error ESE0087: Property 'push' does not exist on type 'ReadonlyArray' */ +/* @@@ pushECMA Error Semantic error ESE0087: Property 'pushECMA' does not exist on type 'ReadonlyArray' */ +/* @@@ splice Error Semantic error ESE0087: Property 'splice' does not exist on type 'ReadonlyArray' */ +/* @@@ unshift Error Semantic error ESE0087: Property 'unshift' does not exist on type 'ReadonlyArray' */ +/* @@@ copyWithin Error Semantic error ESE0087: Property 'copyWithin' does not exist on type 'ReadonlyArray' */ +/* @@@ fill Error Semantic error ESE0087: Property 'fill' does not exist on type 'ReadonlyArray' */ +/* @@@ toSpliced Error Semantic error ESE0087: Property 'toSpliced' does not exist on type 'ReadonlyArray' */ +/* @@@ reverse Error Semantic error ESE0087: Property 'reverse' does not exist on type 'ReadonlyArray' */ +/* @@@ with Error Semantic error ESE0087: Property 'with' does not exist on type 'ReadonlyArray' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/readonly-array/readonly-array-field.ets b/ets2panda/test/ast/parser/ets/readonly-array/readonly-array-field.ets index 49c10b6b19..49a717af48 100644 --- a/ets2panda/test/ast/parser/ets/readonly-array/readonly-array-field.ets +++ b/ets2panda/test/ast/parser/ets/readonly-array/readonly-array-field.ets @@ -33,17 +33,18 @@ class A { } } -/* @@@ extendTo Error TypeError: Property 'extendTo' does not exist on type 'ReadonlyArray' */ -/* @@@ shrinkTo Error TypeError: Property 'shrinkTo' does not exist on type 'ReadonlyArray' */ -/* @@@ sort Error TypeError: Property 'sort' does not exist on type 'ReadonlyArray' */ -/* @@@ shift Error TypeError: Property 'shift' does not exist on type 'ReadonlyArray' */ -/* @@@ pop Error TypeError: Property 'pop' does not exist on type 'ReadonlyArray' */ -/* @@@ push Error TypeError: Property 'push' does not exist on type 'ReadonlyArray' */ -/* @@@ pushECMA Error TypeError: Property 'pushECMA' does not exist on type 'ReadonlyArray' */ -/* @@@ splice Error TypeError: Property 'splice' does not exist on type 'ReadonlyArray' */ -/* @@@ unshift Error TypeError: Property 'unshift' does not exist on type 'ReadonlyArray' */ -/* @@@ copyWithin Error TypeError: Property 'copyWithin' does not exist on type 'ReadonlyArray' */ -/* @@@ fill Error TypeError: Property 'fill' does not exist on type 'ReadonlyArray' */ -/* @@@ toSpliced Error TypeError: Property 'toSpliced' does not exist on type 'ReadonlyArray' */ -/* @@@ reverse Error TypeError: Property 'reverse' does not exist on type 'ReadonlyArray' */ -/* @@@ with Error TypeError: Property 'with' does not exist on type 'ReadonlyArray' */ + +/* @@@ extendTo Error Semantic error ESE0087: Property 'extendTo' does not exist on type 'ReadonlyArray' */ +/* @@@ shrinkTo Error Semantic error ESE0087: Property 'shrinkTo' does not exist on type 'ReadonlyArray' */ +/* @@@ sort Error Semantic error ESE0087: Property 'sort' does not exist on type 'ReadonlyArray' */ +/* @@@ shift Error Semantic error ESE0087: Property 'shift' does not exist on type 'ReadonlyArray' */ +/* @@@ pop Error Semantic error ESE0087: Property 'pop' does not exist on type 'ReadonlyArray' */ +/* @@@ push Error Semantic error ESE0087: Property 'push' does not exist on type 'ReadonlyArray' */ +/* @@@ pushECMA Error Semantic error ESE0087: Property 'pushECMA' does not exist on type 'ReadonlyArray' */ +/* @@@ splice Error Semantic error ESE0087: Property 'splice' does not exist on type 'ReadonlyArray' */ +/* @@@ unshift Error Semantic error ESE0087: Property 'unshift' does not exist on type 'ReadonlyArray' */ +/* @@@ copyWithin Error Semantic error ESE0087: Property 'copyWithin' does not exist on type 'ReadonlyArray' */ +/* @@@ fill Error Semantic error ESE0087: Property 'fill' does not exist on type 'ReadonlyArray' */ +/* @@@ toSpliced Error Semantic error ESE0087: Property 'toSpliced' does not exist on type 'ReadonlyArray' */ +/* @@@ reverse Error Semantic error ESE0087: Property 'reverse' does not exist on type 'ReadonlyArray' */ +/* @@@ with Error Semantic error ESE0087: Property 'with' does not exist on type 'ReadonlyArray' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/readonly-array/readonly-array-var.ets b/ets2panda/test/ast/parser/ets/readonly-array/readonly-array-var.ets index bf24504eaa..bca78711e5 100644 --- a/ets2panda/test/ast/parser/ets/readonly-array/readonly-array-var.ets +++ b/ets2panda/test/ast/parser/ets/readonly-array/readonly-array-var.ets @@ -30,17 +30,18 @@ arr./* @@ toSpliced */toSpliced(); arr./* @@ reverse */reverse(); arr./* @@ with */with(0, 5); -/* @@@ extendTo Error TypeError: Property 'extendTo' does not exist on type 'ReadonlyArray' */ -/* @@@ shrinkTo Error TypeError: Property 'shrinkTo' does not exist on type 'ReadonlyArray' */ -/* @@@ sort Error TypeError: Property 'sort' does not exist on type 'ReadonlyArray' */ -/* @@@ shift Error TypeError: Property 'shift' does not exist on type 'ReadonlyArray' */ -/* @@@ pop Error TypeError: Property 'pop' does not exist on type 'ReadonlyArray' */ -/* @@@ push Error TypeError: Property 'push' does not exist on type 'ReadonlyArray' */ -/* @@@ pushECMA Error TypeError: Property 'pushECMA' does not exist on type 'ReadonlyArray' */ -/* @@@ splice Error TypeError: Property 'splice' does not exist on type 'ReadonlyArray' */ -/* @@@ unshift Error TypeError: Property 'unshift' does not exist on type 'ReadonlyArray' */ -/* @@@ copyWithin Error TypeError: Property 'copyWithin' does not exist on type 'ReadonlyArray' */ -/* @@@ fill Error TypeError: Property 'fill' does not exist on type 'ReadonlyArray' */ -/* @@@ toSpliced Error TypeError: Property 'toSpliced' does not exist on type 'ReadonlyArray' */ -/* @@@ reverse Error TypeError: Property 'reverse' does not exist on type 'ReadonlyArray' */ -/* @@@ with Error TypeError: Property 'with' does not exist on type 'ReadonlyArray' */ + +/* @@@ extendTo Error Semantic error ESE0087: Property 'extendTo' does not exist on type 'ReadonlyArray' */ +/* @@@ shrinkTo Error Semantic error ESE0087: Property 'shrinkTo' does not exist on type 'ReadonlyArray' */ +/* @@@ sort Error Semantic error ESE0087: Property 'sort' does not exist on type 'ReadonlyArray' */ +/* @@@ shift Error Semantic error ESE0087: Property 'shift' does not exist on type 'ReadonlyArray' */ +/* @@@ pop Error Semantic error ESE0087: Property 'pop' does not exist on type 'ReadonlyArray' */ +/* @@@ push Error Semantic error ESE0087: Property 'push' does not exist on type 'ReadonlyArray' */ +/* @@@ pushECMA Error Semantic error ESE0087: Property 'pushECMA' does not exist on type 'ReadonlyArray' */ +/* @@@ splice Error Semantic error ESE0087: Property 'splice' does not exist on type 'ReadonlyArray' */ +/* @@@ unshift Error Semantic error ESE0087: Property 'unshift' does not exist on type 'ReadonlyArray' */ +/* @@@ copyWithin Error Semantic error ESE0087: Property 'copyWithin' does not exist on type 'ReadonlyArray' */ +/* @@@ fill Error Semantic error ESE0087: Property 'fill' does not exist on type 'ReadonlyArray' */ +/* @@@ toSpliced Error Semantic error ESE0087: Property 'toSpliced' does not exist on type 'ReadonlyArray' */ +/* @@@ reverse Error Semantic error ESE0087: Property 'reverse' does not exist on type 'ReadonlyArray' */ +/* @@@ with Error Semantic error ESE0087: Property 'with' does not exist on type 'ReadonlyArray' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/readonly-parameter-test/Readonly-Array-test1.ets b/ets2panda/test/ast/parser/ets/readonly-parameter-test/Readonly-Array-test1.ets index a4cba4c0ae..d41f18ba45 100644 --- a/ets2panda/test/ast/parser/ets/readonly-parameter-test/Readonly-Array-test1.ets +++ b/ets2panda/test/ast/parser/ets/readonly-parameter-test/Readonly-Array-test1.ets @@ -19,4 +19,5 @@ function foo(x : readonly Array) let x1 : Array x1 = /* @@ label */x } -/* @@@ label Error TypeError: Type 'readonly Array' cannot be assigned to type 'Array' */ + +/* @@@ label Error Semantic error ESE0318: Type 'readonly Array' cannot be assigned to type 'Array' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/readonly-parameter-test/Readonly-Array-test2.ets b/ets2panda/test/ast/parser/ets/readonly-parameter-test/Readonly-Array-test2.ets index 3874a331b2..f664a4648f 100644 --- a/ets2panda/test/ast/parser/ets/readonly-parameter-test/Readonly-Array-test2.ets +++ b/ets2panda/test/ast/parser/ets/readonly-parameter-test/Readonly-Array-test2.ets @@ -18,4 +18,5 @@ function foo (x: readonly Array) { /* @@ label */x[0] = 1 } -/* @@@ label Error TypeError: Cannot modify an array or tuple content that has the readonly parameter */ + +/* @@@ label Error Semantic error ESE0058: Cannot modify an array or tuple content that has the readonly parameter */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/readonly-parameter-test/Readonly-Array-test3.ets b/ets2panda/test/ast/parser/ets/readonly-parameter-test/Readonly-Array-test3.ets index 2d5de9a3df..acffed8b2c 100644 --- a/ets2panda/test/ast/parser/ets/readonly-parameter-test/Readonly-Array-test3.ets +++ b/ets2panda/test/ast/parser/ets/readonly-parameter-test/Readonly-Array-test3.ets @@ -19,5 +19,6 @@ function foo (p: Array) { let x: readonly Array /* @@ label */foo(/* @@ label1 */x) -/* @@@ label Error TypeError: No matching call signature for foo(readonly Array) */ -/* @@@ label1 Error TypeError: Type 'readonly Array' is not compatible with type 'Array' at index 1 */ + +/* @@@ label Error Semantic error ESE0127: No matching call signature for foo(readonly Array) */ +/* @@@ label1 Error Semantic error ESE0046: Type 'readonly Array' is not compatible with type 'Array' at index 1 */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/readonly-parameter-test/Readonly-with-ArrayType-test1.ets b/ets2panda/test/ast/parser/ets/readonly-parameter-test/Readonly-with-ArrayType-test1.ets index 5865989d84..2a43516741 100644 --- a/ets2panda/test/ast/parser/ets/readonly-parameter-test/Readonly-with-ArrayType-test1.ets +++ b/ets2panda/test/ast/parser/ets/readonly-parameter-test/Readonly-with-ArrayType-test1.ets @@ -19,5 +19,6 @@ function foo (p: int[]) { let x: Readonly = [] /* @@ label */foo(/* @@ label1 */x) -/* @@@ label Error TypeError: No matching call signature for foo(readonly Array) */ -/* @@@ label1 Error TypeError: Type 'readonly Array' is not compatible with type 'Array' at index 1 */ + +/* @@@ label Error Semantic error ESE0127: No matching call signature for foo(readonly Array) */ +/* @@@ label1 Error Semantic error ESE0046: Type 'readonly Array' is not compatible with type 'Array' at index 1 */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/readonly-parameter-test/Readonly-with-ArrayType-test2.ets b/ets2panda/test/ast/parser/ets/readonly-parameter-test/Readonly-with-ArrayType-test2.ets index e6e6e1759a..cd73ad52dc 100644 --- a/ets2panda/test/ast/parser/ets/readonly-parameter-test/Readonly-with-ArrayType-test2.ets +++ b/ets2panda/test/ast/parser/ets/readonly-parameter-test/Readonly-with-ArrayType-test2.ets @@ -19,6 +19,7 @@ function foo (p: [int, string]) { let x: Readonly<[int, string]> = /* @@ label2 */[] /* @@ label */foo(/* @@ label1 */x) -/* @@@ label1 Error TypeError: Type 'readonly [Int, String]' is not compatible with type '[Int, String]' at index 1 */ -/* @@@ label Error TypeError: No matching call signature for foo(readonly [Int, String]) */ -/* @@@ label2 Error TypeError: Initializer has 0 elements, but tuple requires 2 */ + +/* @@@ label2 Error Semantic error ESE0231: Initializer has 0 elements, but tuple requires 2 */ +/* @@@ label Error Semantic error ESE0127: No matching call signature for foo(readonly [Int, String]) */ +/* @@@ label1 Error Semantic error ESE0046: Type 'readonly [Int, String]' is not compatible with type '[Int, String]' at index 1 */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/readonly-parameter-test/Readonly-with-ArrayType-test3.ets b/ets2panda/test/ast/parser/ets/readonly-parameter-test/Readonly-with-ArrayType-test3.ets index 1d321b90e4..fadfaef367 100644 --- a/ets2panda/test/ast/parser/ets/readonly-parameter-test/Readonly-with-ArrayType-test3.ets +++ b/ets2panda/test/ast/parser/ets/readonly-parameter-test/Readonly-with-ArrayType-test3.ets @@ -17,4 +17,5 @@ function foo (x: Readonly<[int, string]>) { let y: [int, string] = /* @@ label */x } -/* @@@ label Error TypeError: Type 'readonly [Int, String]' cannot be assigned to type '[Int, String]' */ + +/* @@@ label Error Semantic error ESE0318: Type 'readonly [Int, String]' cannot be assigned to type '[Int, String]' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/readonly-parameter-test/Readonly-with-ArrayType-test4.ets b/ets2panda/test/ast/parser/ets/readonly-parameter-test/Readonly-with-ArrayType-test4.ets index 1f44493fba..5f03a45c76 100644 --- a/ets2panda/test/ast/parser/ets/readonly-parameter-test/Readonly-with-ArrayType-test4.ets +++ b/ets2panda/test/ast/parser/ets/readonly-parameter-test/Readonly-with-ArrayType-test4.ets @@ -18,4 +18,5 @@ function foo (x: Readonly) { let x1 : int[] x1 = /* @@ label */x } -/* @@@ label Error TypeError: Type 'readonly Array' cannot be assigned to type 'Array' */ + +/* @@@ label Error Semantic error ESE0318: Type 'readonly Array' cannot be assigned to type 'Array' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/readonly-parameter-test/readonly-parameter-and-Readonly-test1.ets b/ets2panda/test/ast/parser/ets/readonly-parameter-test/readonly-parameter-and-Readonly-test1.ets index 9004027881..1e4b3717ba 100644 --- a/ets2panda/test/ast/parser/ets/readonly-parameter-test/readonly-parameter-and-Readonly-test1.ets +++ b/ets2panda/test/ast/parser/ets/readonly-parameter-test/readonly-parameter-and-Readonly-test1.ets @@ -21,4 +21,5 @@ function foo (tuple: Readonly<[number, string, boolean]>, arr: ReadonlyArray = [0] let y2 : Readonly<[int, string]> /* @@ label9 */y2[1] = "b" -/* @@@ label Error TypeError: Object type doesn't have proper index access method. */ -/* @@@ label1 Error TypeError: Cannot modify an array or tuple content that has the readonly parameter */ -/* @@@ label2 Error TypeError: Cannot modify an array or tuple content that has the readonly parameter */ -/* @@@ label3 Error TypeError: Cannot modify an array or tuple content that has the readonly parameter */ -/* @@@ label4 Error TypeError: Cannot modify an array or tuple content that has the readonly parameter */ -/* @@@ label5 Error TypeError: Cannot modify an array or tuple content that has the readonly parameter */ -/* @@@ label6 Error TypeError: Object type doesn't have proper index access method. */ -/* @@@ label7 Error TypeError: Cannot modify an array or tuple content that has the readonly parameter */ -/* @@@ label8 Error TypeError: Cannot modify an array or tuple content that has the readonly parameter */ -/* @@@ label9 Error TypeError: Cannot modify an array or tuple content that has the readonly parameter */ + +/* @@@ label Error Semantic error ESE0250: Object type doesn't have proper index access method. */ +/* @@@ label1 Error Semantic error ESE0058: Cannot modify an array or tuple content that has the readonly parameter */ +/* @@@ label2 Error Semantic error ESE0058: Cannot modify an array or tuple content that has the readonly parameter */ +/* @@@ label3 Error Semantic error ESE0058: Cannot modify an array or tuple content that has the readonly parameter */ +/* @@@ label4 Error Semantic error ESE0058: Cannot modify an array or tuple content that has the readonly parameter */ +/* @@@ label5 Error Semantic error ESE0058: Cannot modify an array or tuple content that has the readonly parameter */ +/* @@@ label6 Error Semantic error ESE0250: Object type doesn't have proper index access method. */ +/* @@@ label7 Error Semantic error ESE0058: Cannot modify an array or tuple content that has the readonly parameter */ +/* @@@ label8 Error Semantic error ESE0058: Cannot modify an array or tuple content that has the readonly parameter */ +/* @@@ label9 Error Semantic error ESE0058: Cannot modify an array or tuple content that has the readonly parameter */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/readonly-parameter-test/readonly-parameter-test1.ets b/ets2panda/test/ast/parser/ets/readonly-parameter-test/readonly-parameter-test1.ets index 4af0252714..5cf91aff94 100644 --- a/ets2panda/test/ast/parser/ets/readonly-parameter-test/readonly-parameter-test1.ets +++ b/ets2panda/test/ast/parser/ets/readonly-parameter-test/readonly-parameter-test1.ets @@ -17,4 +17,5 @@ function foo (x: readonly int/* @@ label */) { } -/* @@@ label Error SyntaxError: 'readonly' type modifier is only permitted on resizable array and tuple types. */ + +/* @@@ label Error Syntax error ESY0141: 'readonly' type modifier is only permitted on resizable array and tuple types. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/readonly-parameter-test/readonly-parameter-test2.ets b/ets2panda/test/ast/parser/ets/readonly-parameter-test/readonly-parameter-test2.ets index 12e4c37fed..c5e2300f17 100644 --- a/ets2panda/test/ast/parser/ets/readonly-parameter-test/readonly-parameter-test2.ets +++ b/ets2panda/test/ast/parser/ets/readonly-parameter-test/readonly-parameter-test2.ets @@ -18,4 +18,5 @@ function foo (x: readonly [int, string]) { let y: [int, string] = /* @@ label */x } -/* @@@ label Error TypeError: Type 'readonly [Int, String]' cannot be assigned to type '[Int, String]' */ + +/* @@@ label Error Semantic error ESE0318: Type 'readonly [Int, String]' cannot be assigned to type '[Int, String]' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/readonly-parameter-test/readonly-parameter-test3.ets b/ets2panda/test/ast/parser/ets/readonly-parameter-test/readonly-parameter-test3.ets index c19b5d8a13..2d91730243 100644 --- a/ets2panda/test/ast/parser/ets/readonly-parameter-test/readonly-parameter-test3.ets +++ b/ets2panda/test/ast/parser/ets/readonly-parameter-test/readonly-parameter-test3.ets @@ -18,4 +18,5 @@ function foo (x: readonly int[]) { let x1 : int[] x1 = /* @@ label */x } -/* @@@ label Error TypeError: Type 'ReadonlyArray' cannot be assigned to type 'Array' */ + +/* @@@ label Error Semantic error ESE0318: Type 'ReadonlyArray' cannot be assigned to type 'Array' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/readonly-parameter-test/readonly-parameter-test4.ets b/ets2panda/test/ast/parser/ets/readonly-parameter-test/readonly-parameter-test4.ets index d65a0c683f..89ed00bda7 100644 --- a/ets2panda/test/ast/parser/ets/readonly-parameter-test/readonly-parameter-test4.ets +++ b/ets2panda/test/ast/parser/ets/readonly-parameter-test/readonly-parameter-test4.ets @@ -19,5 +19,6 @@ function foo (p: int[]) { let x: readonly int[] = [] /* @@ label */foo(/* @@ label1 */x) -/* @@@ label Error TypeError: No matching call signature for foo(ReadonlyArray) */ -/* @@@ label1 Error TypeError: Type 'ReadonlyArray' is not compatible with type 'Array' at index 1 */ + +/* @@@ label Error Semantic error ESE0127: No matching call signature for foo(ReadonlyArray) */ +/* @@@ label1 Error Semantic error ESE0046: Type 'ReadonlyArray' is not compatible with type 'Array' at index 1 */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/readonly-parameter-test/readonly-parameter-test5.ets b/ets2panda/test/ast/parser/ets/readonly-parameter-test/readonly-parameter-test5.ets index 1434abd641..0a696184e4 100644 --- a/ets2panda/test/ast/parser/ets/readonly-parameter-test/readonly-parameter-test5.ets +++ b/ets2panda/test/ast/parser/ets/readonly-parameter-test/readonly-parameter-test5.ets @@ -19,6 +19,7 @@ function foo (p: [int, string]) { let x: readonly [int, string] = /* @@ label2 */[] /* @@ label */foo(/* @@ label1 */x) -/* @@@ label Error TypeError: No matching call signature for foo(readonly [Int, String]) */ -/* @@@ label1 Error TypeError: Type 'readonly [Int, String]' is not compatible with type '[Int, String]' at index 1 */ -/* @@@ label2 Error TypeError: Initializer has 0 elements, but tuple requires 2 */ + +/* @@@ label2 Error Semantic error ESE0231: Initializer has 0 elements, but tuple requires 2 */ +/* @@@ label Error Semantic error ESE0127: No matching call signature for foo(readonly [Int, String]) */ +/* @@@ label1 Error Semantic error ESE0046: Type 'readonly [Int, String]' is not compatible with type '[Int, String]' at index 1 */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/readonly-parameter-test/readonly-parameter-test6.ets b/ets2panda/test/ast/parser/ets/readonly-parameter-test/readonly-parameter-test6.ets index a792cb4bdd..37a1c6f07d 100644 --- a/ets2panda/test/ast/parser/ets/readonly-parameter-test/readonly-parameter-test6.ets +++ b/ets2panda/test/ast/parser/ets/readonly-parameter-test/readonly-parameter-test6.ets @@ -27,5 +27,6 @@ let arr = foo1() let tuple = foo2() /* @@ label1 */tuple[1] = "c" -/* @@@ label Error TypeError: Object type doesn't have proper index access method. */ -/* @@@ label1 Error TypeError: Cannot modify an array or tuple content that has the readonly parameter */ + +/* @@@ label Error Semantic error ESE0250: Object type doesn't have proper index access method. */ +/* @@@ label1 Error Semantic error ESE0058: Cannot modify an array or tuple content that has the readonly parameter */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/readonlyFunctionTypeAnnotation.ets b/ets2panda/test/ast/parser/ets/readonlyFunctionTypeAnnotation.ets index 5b7703cef0..483bf4a2d4 100644 --- a/ets2panda/test/ast/parser/ets/readonlyFunctionTypeAnnotation.ets +++ b/ets2panda/test/ast/parser/ets/readonlyFunctionTypeAnnotation.ets @@ -16,12 +16,12 @@ func: readonly (Y : object | long [] ) => [ ] -/* @@? 17:7 Error SyntaxError: Label must be followed by a loop statement. */ -/* @@? 17:7 Error TypeError: Unresolved reference readonly */ -/* @@? 17:20 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 17:20 Error SyntaxError: Unexpected token ':'. */ -/* @@? 17:22 Error SyntaxError: Unexpected token 'object'. */ -/* @@? 17:22 Error TypeError: Type name 'object' used in the wrong context */ -/* @@? 17:31 Error SyntaxError: Unexpected token 'long'. */ -/* @@? 17:39 Error SyntaxError: Unexpected token ')'. */ -/* @@? 17:42 Error SyntaxError: Unexpected token '=>'. */ \ No newline at end of file +/* @@? 17:7 Error Syntax error ESY0038: Label must be followed by a loop statement. */ +/* @@? 17:7 Error Semantic error ESE0143: Unresolved reference readonly */ +/* @@? 17:20 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 17:20 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 17:22 Error Syntax error ESY0227: Unexpected token 'object'. */ +/* @@? 17:22 Error Semantic error ESE0144: Type name 'object' used in the wrong context */ +/* @@? 17:31 Error Syntax error ESY0227: Unexpected token 'long'. */ +/* @@? 17:39 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 17:42 Error Syntax error ESY0227: Unexpected token '=>'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/readonlyGetterSetterReassignment1.ets b/ets2panda/test/ast/parser/ets/readonlyGetterSetterReassignment1.ets index 9576c6e5dc..5eaa1ae294 100644 --- a/ets2panda/test/ast/parser/ets/readonlyGetterSetterReassignment1.ets +++ b/ets2panda/test/ast/parser/ets/readonlyGetterSetterReassignment1.ets @@ -35,4 +35,5 @@ function main() { arktest.assertEQ(a.a, false); } -/* @@@ label Error TypeError: Cannot assign to this property because it is readonly. */ + +/* @@@ label Error Semantic error ESE0209: Cannot assign to this property because it is readonly. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/readonlyGetterSetterReassignment2.ets b/ets2panda/test/ast/parser/ets/readonlyGetterSetterReassignment2.ets index f97561d5aa..0171158712 100644 --- a/ets2panda/test/ast/parser/ets/readonlyGetterSetterReassignment2.ets +++ b/ets2panda/test/ast/parser/ets/readonlyGetterSetterReassignment2.ets @@ -30,5 +30,6 @@ function main() { arktest.assertEQ(a.a, false); } -/* @@@ warn Warning Warning: The instance field initializer expression cannot use the this. */ -/* @@@ label Error TypeError: Readonly field already initialized at declaration. */ + +/* @@@ warn Warning Warning W0010: The instance field initializer expression cannot use the this. */ +/* @@@ label Error Semantic error ESE0210: Readonly field already initialized at declaration. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/readonly_interface_method.ets b/ets2panda/test/ast/parser/ets/readonly_interface_method.ets index 418b6c6ef1..aea59c446d 100644 --- a/ets2panda/test/ast/parser/ets/readonly_interface_method.ets +++ b/ets2panda/test/ast/parser/ets/readonly_interface_method.ets @@ -17,5 +17,6 @@ interface A { readonly(): void {} } -/* @@? 17:5 Error SyntaxError: Modifier 'readonly' cannot be applied to an interface method. */ -/* @@? 17:13 Error SyntaxError: Expected 'method name', got '('. */ + +/* @@? 17:5 Error Syntax error ESY0033: Modifier 'readonly' cannot be applied to an interface method. */ +/* @@? 17:13 Error Syntax error ESY0230: Expected 'method name', got '('. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/readonly_reference_CTE_err_elimilate.ets b/ets2panda/test/ast/parser/ets/readonly_reference_CTE_err_elimilate.ets index bc30adc771..c86bebd5b7 100644 --- a/ets2panda/test/ast/parser/ets/readonly_reference_CTE_err_elimilate.ets +++ b/ets2panda/test/ast/parser/ets/readonly_reference_CTE_err_elimilate.ets @@ -29,5 +29,6 @@ function bar(a:Readonly){ bar(changeAbleVar) -/* @@@ label Error TypeError: Cannot assign to a readonly field x */ -/* @@@ label Error TypeError: The 'Readonly' property cannot be reassigned. */ + +/* @@@ label Error Semantic error ESE0338: The 'Readonly' property cannot be reassigned. */ +/* @@@ label Error Semantic error ESE4002: Cannot assign to a readonly field x */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/readonly_union_negative.ets b/ets2panda/test/ast/parser/ets/readonly_union_negative.ets index e260f1e32d..a307c585bc 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") */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/recordIndexing.ets b/ets2panda/test/ast/parser/ets/recordIndexing.ets index 082f69e7b7..4974180803 100644 --- a/ets2panda/test/ast/parser/ets/recordIndexing.ets +++ b/ets2panda/test/ast/parser/ets/recordIndexing.ets @@ -22,14 +22,15 @@ console.log(x[/* @@ label */0]) } -/* @@? 23:5 Error TypeError: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Boolean): void` */ -/* @@? 23:5 Error TypeError: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Byte): void` */ -/* @@? 23:5 Error TypeError: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Short): void` */ -/* @@? 23:5 Error TypeError: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Char): void` */ -/* @@? 23:5 Error TypeError: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Int): void` */ -/* @@? 23:5 Error TypeError: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Long): void` */ -/* @@? 23:5 Error TypeError: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Float): void` */ -/* @@? 23:5 Error TypeError: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Double): void` */ -/* @@? 23:17 Error TypeError: No matching indexing signature for $_get(Int) */ -/* @@@ label Error TypeError: Type 'Int' is not compatible with type 'String' at index 1 */ -/* @@@ label Error TypeError: Cannot find index access method with the required signature. */ + +/* @@? 23:5 Error Semantic error ESE0142: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Boolean): void` */ +/* @@? 23:5 Error Semantic error ESE0142: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Byte): void` */ +/* @@? 23:5 Error Semantic error ESE0142: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Short): void` */ +/* @@? 23:5 Error Semantic error ESE0142: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Char): void` */ +/* @@? 23:5 Error Semantic error ESE0142: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Int): void` */ +/* @@? 23:5 Error Semantic error ESE0142: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Long): void` */ +/* @@? 23:5 Error Semantic error ESE0142: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Float): void` */ +/* @@? 23:5 Error Semantic error ESE0142: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Double): void` */ +/* @@? 23:17 Error Semantic error ESE0127: No matching indexing signature for $_get(Int) */ +/* @@@ label Error Semantic error ESE0046: Type 'Int' is not compatible with type 'String' at index 1 */ +/* @@@ label Error Semantic error ESE0251: Cannot find index access method with the required signature. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/recordKeyTypeCheck01.ets b/ets2panda/test/ast/parser/ets/recordKeyTypeCheck01.ets index aa08c98e22..f94bae06d8 100644 --- a/ets2panda/test/ast/parser/ets/recordKeyTypeCheck01.ets +++ b/ets2panda/test/ast/parser/ets/recordKeyTypeCheck01.ets @@ -19,4 +19,5 @@ function main(){ "key2": 2 } } -/* @@@ label Error TypeError: Type argument 'Char|String' should be a subtype of 'Numeric|String|BaseEnum|BaseEnum|BaseEnum'-constraint */ + +/* @@@ label Error Semantic error ESE0228: Type argument 'Char|String' should be a subtype of 'Numeric|String|BaseEnum|BaseEnum|BaseEnum'-constraint */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/recordKeyTypeCheck02.ets b/ets2panda/test/ast/parser/ets/recordKeyTypeCheck02.ets index d65646705f..9ca8239ad1 100644 --- a/ets2panda/test/ast/parser/ets/recordKeyTypeCheck02.ets +++ b/ets2panda/test/ast/parser/ets/recordKeyTypeCheck02.ets @@ -21,4 +21,5 @@ function main(){ 2: 2 } } -/* @@@ label Error TypeError: Type argument 'A|Double' should be a subtype of 'Numeric|String|BaseEnum|BaseEnum|BaseEnum'-constraint */ + +/* @@@ label Error Semantic error ESE0228: Type argument 'A|Double' should be a subtype of 'Numeric|String|BaseEnum|BaseEnum|BaseEnum'-constraint */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/recordKeyTypeCheck03.ets b/ets2panda/test/ast/parser/ets/recordKeyTypeCheck03.ets index 5d863c0d03..58e44a80f4 100644 --- a/ets2panda/test/ast/parser/ets/recordKeyTypeCheck03.ets +++ b/ets2panda/test/ast/parser/ets/recordKeyTypeCheck03.ets @@ -18,4 +18,5 @@ class A{} function main(){ let a: Record/* @@ label */ } -/* @@@ label Error TypeError: Type argument 'BigInt' should be a subtype of 'Numeric|String|BaseEnum|BaseEnum|BaseEnum'-constraint */ + +/* @@@ label Error Semantic error ESE0228: Type argument 'BigInt' should be a subtype of 'Numeric|String|BaseEnum|BaseEnum|BaseEnum'-constraint */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/recordKeyTypeCheck04.ets b/ets2panda/test/ast/parser/ets/recordKeyTypeCheck04.ets index eeee8b412b..4d3bd869c6 100644 --- a/ets2panda/test/ast/parser/ets/recordKeyTypeCheck04.ets +++ b/ets2panda/test/ast/parser/ets/recordKeyTypeCheck04.ets @@ -18,4 +18,5 @@ function main(){ "hello": 1, } } -/* @@? 18:9 Error TypeError: Type '"hello"' is not compatible with type 'Double' at index 1 */ + +/* @@? 18:9 Error Semantic error ESE0046: Type '"hello"' is not compatible with type 'Double' at index 1 */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/record_dup_key_01.ets b/ets2panda/test/ast/parser/ets/record_dup_key_01.ets index 1a7a3bf605..9576aa3a9d 100644 --- a/ets2panda/test/ast/parser/ets/record_dup_key_01.ets +++ b/ets2panda/test/ast/parser/ets/record_dup_key_01.ets @@ -20,4 +20,5 @@ function main(){ 2: 3 } } -/* @@@ label Error TypeError: An object literal cannot multiple properties with same name */ + +/* @@@ label Error Semantic error ESE0263: An object literal cannot multiple properties with same name */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/record_dup_key_02.ets b/ets2panda/test/ast/parser/ets/record_dup_key_02.ets index ef67909555..652a4bf236 100644 --- a/ets2panda/test/ast/parser/ets/record_dup_key_02.ets +++ b/ets2panda/test/ast/parser/ets/record_dup_key_02.ets @@ -20,4 +20,5 @@ function main(){ "key2": 3 } } -/* @@@ label Error TypeError: An object literal cannot multiple properties with same name */ + +/* @@@ label Error Semantic error ESE0263: An object literal cannot multiple properties with same name */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/record_init_check.ets b/ets2panda/test/ast/parser/ets/record_init_check.ets index 4c4eaffb81..7e379c2a86 100644 --- a/ets2panda/test/ast/parser/ets/record_init_check.ets +++ b/ets2panda/test/ast/parser/ets/record_init_check.ets @@ -20,4 +20,5 @@ function main(){ 2: 2 } } -/* @@@ label Error TypeError: Object literal may only specify known properties */ + +/* @@@ label Error Semantic error ESE0264: Object literal may only specify known properties */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/record_object_value.ets b/ets2panda/test/ast/parser/ets/record_object_value.ets index 387f895fc8..f126593d67 100644 --- a/ets2panda/test/ast/parser/ets/record_object_value.ets +++ b/ets2panda/test/ast/parser/ets/record_object_value.ets @@ -57,9 +57,9 @@ function main(){ "Mary":["20", "30"] }; } -/* @@@ label Error TypeError: Type '"10"' is not compatible with type 'Double' at property 'age' */ -/* @@@ label1 Error TypeError: Type '"100"' is not compatible with type 'Double' at property 'salary' */ -/* @@@ label2 Error TypeError: Non-optional property 'salary' in type 'PersonInfoInterface' is missing in object literal. */ -/* @@@ label2 Error TypeError: Non-optional property 'age' in type 'PersonInfoInterface' is missing in object literal. */ -/* @@@ label3 Error TypeError: type PersonInfoInterface has no property named agee */ -/* @@@ label4 Error TypeError: type PersonInfoInterface has no property named other */ \ No newline at end of file +/* @@@ label Error Semantic error ESE0319: Type '"10"' is not compatible with type 'Double' at property 'age' */ +/* @@@ label1 Error Semantic error ESE0319: Type '"100"' is not compatible with type 'Double' at property 'salary' */ +/* @@@ label2 Error Semantic error ESE0400: Non-optional property 'salary' in type 'PersonInfoInterface' is missing in object literal. */ +/* @@@ label2 Error Semantic error ESE0400: Non-optional property 'age' in type 'PersonInfoInterface' is missing in object literal. */ +/* @@@ label3 Error Semantic error ESE0065: type PersonInfoInterface has no property named agee */ +/* @@@ label4 Error Semantic error ESE0065: type PersonInfoInterface has no property named other */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/recursive_clousre_reference_error.ets b/ets2panda/test/ast/parser/ets/recursive_clousre_reference_error.ets index 5f86308441..ee08f5763a 100644 --- a/ets2panda/test/ast/parser/ets/recursive_clousre_reference_error.ets +++ b/ets2panda/test/ast/parser/ets/recursive_clousre_reference_error.ets @@ -19,5 +19,6 @@ function foo() { x(); } -/* @@? 17:19 Error TypeError: Variable 'y' is accessed before it's initialization. */ -/* @@? 18:9 Error TypeError: Circular dependency detected for identifier: y */ + +/* @@? 17:19 Error Semantic error ESE0365: Variable 'y' is accessed before it's initialization. */ +/* @@? 18:9 Error Semantic error ESE0308: Circular dependency detected for identifier: y */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/recursive_exported_structure.ets b/ets2panda/test/ast/parser/ets/recursive_exported_structure.ets index 20a5b6416f..f933b75be6 100644 --- a/ets2panda/test/ast/parser/ets/recursive_exported_structure.ets +++ b/ets2panda/test/ast/parser/ets/recursive_exported_structure.ets @@ -88,14 +88,15 @@ const _exported: ExportedType = _exportedStructure; export default _exported; -/* @@? 26:26 Error SyntaxError: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ -/* @@? 41:12 Error TypeError: No matching call signature for (...) */ -/* @@? 41:23 Error TypeError: need to specify target type for class composite */ -/* @@? 54:20 Error TypeError: No matching call signature for (...) */ -/* @@? 54:31 Error TypeError: need to specify target type for class composite */ -/* @@? 61:66 Error SyntaxError: Intersection types are not supported, use inheritance instead! */ -/* @@? 62:12 Error SyntaxError: Label must be followed by a loop statement. */ -/* @@? 62:12 Error TypeError: Type name 'IndexableType' used in the wrong context */ -/* @@? 66:36 Error TypeError: Interface expected here. */ -/* @@? 73:6 Error TypeError: Indexed signatures are not allowed. Use arrays instead! */ -/* @@? 85:1 Error TypeError: Indexed access is not supported for such expression type. */ + +/* @@? 26:26 Error Syntax error ESY177354: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ +/* @@? 41:12 Error Semantic error ESE0127: No matching call signature for (...) */ +/* @@? 41:23 Error Semantic error ESE0062: need to specify target type for class composite */ +/* @@? 54:20 Error Semantic error ESE0127: No matching call signature for (...) */ +/* @@? 54:31 Error Semantic error ESE0062: need to specify target type for class composite */ +/* @@? 61:66 Error Syntax error ESY145527: Intersection types are not supported, use inheritance instead! */ +/* @@? 62:12 Error Syntax error ESY0038: Label must be followed by a loop statement. */ +/* @@? 62:12 Error Semantic error ESE0144: Type name 'IndexableType' used in the wrong context */ +/* @@? 66:36 Error Semantic error ESE0179: Interface expected here. */ +/* @@? 73:6 Error Semantic error ESE0343: Indexed signatures are not allowed. Use arrays instead! */ +/* @@? 85:1 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/required_multiple_fields.ets b/ets2panda/test/ast/parser/ets/required_multiple_fields.ets index 4b509c3fc1..84c641fb02 100644 --- a/ets2panda/test/ast/parser/ets/required_multiple_fields.ets +++ b/ets2panda/test/ast/parser/ets/required_multiple_fields.ets @@ -32,12 +32,13 @@ function main() { let x4: Required = /* @@ label4 */{i: 1.9}; } -/* @@@ label1 Error TypeError: Class property 'k' needs to be initialized for Required. */ -/* @@@ label2 Error TypeError: Class property 'j' needs to be initialized for Required. */ -/* @@@ label2 Error TypeError: Class property 'k' needs to be initialized for Required. */ -/* @@@ label3 Error TypeError: Non-optional property 'k' in type 'Required' is missing in object literal. */ -/* @@@ label3 Error TypeError: Class property 'k' needs to be initialized for Required. */ -/* @@@ label4 Error TypeError: Non-optional property 'j' in type 'Required' is missing in object literal. */ -/* @@@ label4 Error TypeError: Non-optional property 'k' in type 'Required' is missing in object literal. */ -/* @@@ label4 Error TypeError: Class property 'j' needs to be initialized for Required. */ -/* @@@ label4 Error TypeError: Class property 'k' needs to be initialized for Required. */ + +/* @@@ label1 Error Semantic error ESE0226: Class property 'k' needs to be initialized for Required. */ +/* @@@ label2 Error Semantic error ESE0226: Class property 'j' needs to be initialized for Required. */ +/* @@@ label2 Error Semantic error ESE0226: Class property 'k' needs to be initialized for Required. */ +/* @@@ label3 Error Semantic error ESE0400: Non-optional property 'k' in type 'Required' is missing in object literal. */ +/* @@@ label3 Error Semantic error ESE0226: Class property 'k' needs to be initialized for Required. */ +/* @@@ label4 Error Semantic error ESE0400: Non-optional property 'j' in type 'Required' is missing in object literal. */ +/* @@@ label4 Error Semantic error ESE0400: Non-optional property 'k' in type 'Required' is missing in object literal. */ +/* @@@ label4 Error Semantic error ESE0226: Class property 'j' needs to be initialized for Required. */ +/* @@@ label4 Error Semantic error ESE0226: Class property 'k' needs to be initialized for Required. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/required_multiple_fields_2.ets b/ets2panda/test/ast/parser/ets/required_multiple_fields_2.ets index 0243622ca6..abff091b50 100644 --- a/ets2panda/test/ast/parser/ets/required_multiple_fields_2.ets +++ b/ets2panda/test/ast/parser/ets/required_multiple_fields_2.ets @@ -25,5 +25,6 @@ function main() { let x3: Required = /* @@ label2 */{j :"somestr", j :"somestr"}; } -/* @@@ label1 Error TypeError: type A has no property named K */ -/* @@@ label2 Error TypeError: Class property 'i' needs to be initialized for Required. */ + +/* @@@ label1 Error Semantic error ESE0065: type A has no property named K */ +/* @@@ label2 Error Semantic error ESE0226: Class property 'i' needs to be initialized for Required. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/reserved_type.ets b/ets2panda/test/ast/parser/ets/reserved_type.ets index 91edf9e145..571caf95df 100644 --- a/ets2panda/test/ast/parser/ets/reserved_type.ets +++ b/ets2panda/test/ast/parser/ets/reserved_type.ets @@ -34,12 +34,13 @@ function main() { let n = new Partial() } -/* @@? 16:16 Error SyntaxError: 'Required' is reserved and cannot be used as a variable/type name */ -/* @@? 20:16 Error SyntaxError: 'Readonly' is reserved and cannot be used as a variable/type name */ -/* @@? 24:15 Error SyntaxError: 'Partial' is reserved and cannot be used as a variable/type name */ -/* @@? 29:13 Error SyntaxError: 'Required' is reserved and cannot be used as a variable/type name */ -/* @@? 30:13 Error SyntaxError: 'Readonly' is reserved and cannot be used as a variable/type name */ -/* @@? 31:13 Error SyntaxError: 'Partial' is reserved and cannot be used as a variable/type name */ -/* @@? 32:26 Error SyntaxError: 'Required' is reserved and cannot be used as a variable/type name */ -/* @@? 33:26 Error SyntaxError: 'Readonly' is reserved and cannot be used as a variable/type name */ -/* @@? 34:25 Error SyntaxError: 'Partial' is reserved and cannot be used as a variable/type name */ + +/* @@? 16:16 Error Syntax error ESY0242: 'Required' is reserved and cannot be used as a variable/type name */ +/* @@? 20:16 Error Syntax error ESY0242: 'Readonly' is reserved and cannot be used as a variable/type name */ +/* @@? 24:15 Error Syntax error ESY0242: 'Partial' is reserved and cannot be used as a variable/type name */ +/* @@? 29:13 Error Syntax error ESY0242: 'Required' is reserved and cannot be used as a variable/type name */ +/* @@? 30:13 Error Syntax error ESY0242: 'Readonly' is reserved and cannot be used as a variable/type name */ +/* @@? 31:13 Error Syntax error ESY0242: 'Partial' is reserved and cannot be used as a variable/type name */ +/* @@? 32:26 Error Syntax error ESY0242: 'Required' is reserved and cannot be used as a variable/type name */ +/* @@? 33:26 Error Syntax error ESY0242: 'Readonly' is reserved and cannot be used as a variable/type name */ +/* @@? 34:25 Error Syntax error ESY0242: 'Partial' is reserved and cannot be used as a variable/type name */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/rest_never.ets b/ets2panda/test/ast/parser/ets/rest_never.ets index dd17382ea1..c78cde8df9 100644 --- a/ets2panda/test/ast/parser/ets/rest_never.ets +++ b/ets2panda/test/ast/parser/ets/rest_never.ets @@ -20,5 +20,5 @@ function main() { sum(...null!) } -/* @@? 20:9 Error TypeError: Spread expression can be applied only to array or tuple type, but 'never' is provided */ -/* @@? 20:12 Warning Warning: Bad operand type, the operand of the non-nullish expression is 'null' or 'undefined'. */ \ No newline at end of file +/* @@? 20:9 Error Semantic error ESE0049: Spread expression can be applied only to array or tuple type, but 'never' is provided */ +/* @@? 20:12 Warning Warning W0014: Bad operand type, the operand of the non-nullish expression is 'null' or 'undefined'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/rest_no_default.ets b/ets2panda/test/ast/parser/ets/rest_no_default.ets index 2964b29db0..83f9c10d97 100644 --- a/ets2panda/test/ast/parser/ets/rest_no_default.ets +++ b/ets2panda/test/ast/parser/ets/rest_no_default.ets @@ -15,5 +15,6 @@ function sum(...numbers: number = 0): number {} -/* @@? 16:35 Error SyntaxError: Rest parameter cannot have the default value. */ -/* @@? 16:36 Error SyntaxError: Identifier is needed here. */ + +/* @@? 16:35 Error Syntax error ESY0192: Rest parameter cannot have the default value. */ +/* @@? 16:36 Error Syntax error ESY0131: Identifier is needed here. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/rest_no_optional.ets b/ets2panda/test/ast/parser/ets/rest_no_optional.ets index 2fe5e0e584..843a71bf04 100644 --- a/ets2panda/test/ast/parser/ets/rest_no_optional.ets +++ b/ets2panda/test/ast/parser/ets/rest_no_optional.ets @@ -16,4 +16,5 @@ function sum(...numbers?: number[]): number {} -/* @@? 17:24 Error SyntaxError: Rest parameter cannot have the default value. */ + +/* @@? 17:24 Error Syntax error ESY0192: Rest parameter cannot have the default value. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/rest_parameter_03.ets b/ets2panda/test/ast/parser/ets/rest_parameter_03.ets index 798205d166..5bfd2a78bd 100644 --- a/ets2panda/test/ast/parser/ets/rest_parameter_03.ets +++ b/ets2panda/test/ast/parser/ets/rest_parameter_03.ets @@ -17,4 +17,4 @@ function foo (x: int, y: int = 0, ...r: int[]): int { return 4; } -/* @@? 16:10 Error SyntaxError: Both optional and rest parameters are not allowed in function's parameter list. */ + diff --git a/ets2panda/test/ast/parser/ets/rest_parameter_04.ets b/ets2panda/test/ast/parser/ets/rest_parameter_04.ets index b175b93357..7805cf8336 100644 --- a/ets2panda/test/ast/parser/ets/rest_parameter_04.ets +++ b/ets2panda/test/ast/parser/ets/rest_parameter_04.ets @@ -17,7 +17,8 @@ function hehe(...items: number[]/* @@ label */: void /* @@ label1 */{ console.log("aaaaaaaa") } -/* @@? 16:10 Error TypeError: Only abstract or native methods can't have body. */ -/* @@@ label Error SyntaxError: Rest parameter must be the last formal parameter. */ -/* @@? 16:49 Error SyntaxError: Unexpected token 'void'. */ -/* @@@ label1 Error SyntaxError: Unexpected token '{'. */ + +/* @@? 16:10 Error Semantic error ESE0017: Only abstract or native methods can't have body. */ +/* @@@ label Error Syntax error ESY0067: Rest parameter must be the last formal parameter. */ +/* @@? 16:49 Error Syntax error ESY0227: Unexpected token 'void'. */ +/* @@@ label1 Error Syntax error ESY0227: Unexpected token '{'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/rest_parameter_05.ets b/ets2panda/test/ast/parser/ets/rest_parameter_05.ets index 53d71208a0..f83a951d57 100644 --- a/ets2panda/test/ast/parser/ets/rest_parameter_05.ets +++ b/ets2panda/test/ast/parser/ets/rest_parameter_05.ets @@ -19,5 +19,6 @@ function sum(...numbers: [number, number, number]): number { /* @@ label */sum() -/* @@@ label Error TypeError: Expected 3 arguments, got 0. */ -/* @@@ label Error TypeError: No matching call signature */ + +/* @@@ label Error Semantic error ESE0124: Expected 3 arguments, got 0. */ +/* @@@ label Error Semantic error ESE0128: No matching call signature */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/rest_parameter_06.ets b/ets2panda/test/ast/parser/ets/rest_parameter_06.ets index 2d75bc7518..74b96d2bf8 100644 --- a/ets2panda/test/ast/parser/ets/rest_parameter_06.ets +++ b/ets2panda/test/ast/parser/ets/rest_parameter_06.ets @@ -19,5 +19,6 @@ function sum(...numbers: [number, number, number]): number { /* @@ label */sum(10, 20, 30, 40) -/* @@@ label Error TypeError: Expected 3 arguments, got 4. */ -/* @@@ label Error TypeError: No matching call signature for sum(Int, Int, Int, Int) */ + +/* @@@ label Error Semantic error ESE0124: Expected 3 arguments, got 4. */ +/* @@@ label Error Semantic error ESE0127: No matching call signature for sum(Int, Int, Int, Int) */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/rest_parameter_07.ets b/ets2panda/test/ast/parser/ets/rest_parameter_07.ets index ac4c0fed73..8efda19d5d 100644 --- a/ets2panda/test/ast/parser/ets/rest_parameter_07.ets +++ b/ets2panda/test/ast/parser/ets/rest_parameter_07.ets @@ -19,5 +19,6 @@ function sum(...numbers: [number, number, number]): number { /* @@ label1 */sum(10, 20, /* @@ label2 */"one") -/* @@@ label1 Error TypeError: No matching call signature for sum(Double, Double, "one") */ -/* @@@ label2 Error TypeError: Type '"one"' is not compatible with type 'Double' at index 3 */ + +/* @@@ label1 Error Semantic error ESE0127: No matching call signature for sum(Double, Double, "one") */ +/* @@@ label2 Error Semantic error ESE0046: Type '"one"' is not compatible with type 'Double' at index 3 */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/rest_parameter_08.ets b/ets2panda/test/ast/parser/ets/rest_parameter_08.ets index b81323e196..e338ed50a0 100644 --- a/ets2panda/test/ast/parser/ets/rest_parameter_08.ets +++ b/ets2panda/test/ast/parser/ets/rest_parameter_08.ets @@ -22,12 +22,13 @@ function sum(a: int, ...numbers: [number, number, number]): number { /* @@ label3 */sum(11,12,13) /* @@ label4 */sum(11,12,13,15,16) -/* @@@ label1 Error TypeError: Expected 1 arguments, got 0. */ -/* @@@ label1 Error TypeError: Expected 4 arguments, got 0. */ -/* @@@ label1 Error TypeError: No matching call signature */ -/* @@@ label2 Error TypeError: Expected 4 arguments, got 1. */ -/* @@@ label2 Error TypeError: No matching call signature for sum(Int) */ -/* @@@ label3 Error TypeError: Expected 4 arguments, got 3. */ -/* @@@ label3 Error TypeError: No matching call signature for sum(Int, Int, Int) */ -/* @@@ label4 Error TypeError: Expected 4 arguments, got 5. */ -/* @@@ label4 Error TypeError: No matching call signature for sum(Int, Int, Int, Int, Int) */ + +/* @@@ label1 Error Semantic error ESE0124: Expected 1 arguments, got 0. */ +/* @@@ label1 Error Semantic error ESE0124: Expected 4 arguments, got 0. */ +/* @@@ label1 Error Semantic error ESE0128: No matching call signature */ +/* @@@ label2 Error Semantic error ESE0124: Expected 4 arguments, got 1. */ +/* @@@ label2 Error Semantic error ESE0127: No matching call signature for sum(Int) */ +/* @@@ label3 Error Semantic error ESE0124: Expected 4 arguments, got 3. */ +/* @@@ label3 Error Semantic error ESE0127: No matching call signature for sum(Int, Int, Int) */ +/* @@@ label4 Error Semantic error ESE0124: Expected 4 arguments, got 5. */ +/* @@@ label4 Error Semantic error ESE0127: No matching call signature for sum(Int, Int, Int, Int, Int) */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/rest_parameter_09.ets b/ets2panda/test/ast/parser/ets/rest_parameter_09.ets index c958b2efe1..acd52aeebe 100644 --- a/ets2panda/test/ast/parser/ets/rest_parameter_09.ets +++ b/ets2panda/test/ast/parser/ets/rest_parameter_09.ets @@ -22,5 +22,6 @@ class C { /* @@ label */(new C()).foo() -/* @@@ label Error TypeError: Expected 2 arguments, got 0. */ -/* @@@ label Error TypeError: No matching call signature */ + +/* @@@ label Error Semantic error ESE0124: Expected 2 arguments, got 0. */ +/* @@@ label Error Semantic error ESE0128: No matching call signature */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/rest_parameter_10.ets b/ets2panda/test/ast/parser/ets/rest_parameter_10.ets index db95f4b9b0..ca10d90941 100644 --- a/ets2panda/test/ast/parser/ets/rest_parameter_10.ets +++ b/ets2panda/test/ast/parser/ets/rest_parameter_10.ets @@ -22,5 +22,6 @@ class C { /* @@ label */(new C()).foo(new A) -/* @@@ label Error TypeError: Expected 2 arguments, got 1. */ -/* @@@ label Error TypeError: No matching call signature for foo(A) */ + +/* @@@ label Error Semantic error ESE0124: Expected 2 arguments, got 1. */ +/* @@@ label Error Semantic error ESE0127: No matching call signature for foo(A) */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/rest_parameter_11.ets b/ets2panda/test/ast/parser/ets/rest_parameter_11.ets index 5750476b45..6d57474f2d 100644 --- a/ets2panda/test/ast/parser/ets/rest_parameter_11.ets +++ b/ets2panda/test/ast/parser/ets/rest_parameter_11.ets @@ -22,5 +22,6 @@ class C { /* @@ label */(new C()).foo(new A, new B, new B) -/* @@@ label Error TypeError: Expected 2 arguments, got 3. */ -/* @@@ label Error TypeError: No matching call signature for foo(A, B, B) */ + +/* @@@ label Error Semantic error ESE0124: Expected 2 arguments, got 3. */ +/* @@@ label Error Semantic error ESE0127: No matching call signature for foo(A, B, B) */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/rest_parameter_12.ets b/ets2panda/test/ast/parser/ets/rest_parameter_12.ets index 5b51900596..d4e8a5adfd 100644 --- a/ets2panda/test/ast/parser/ets/rest_parameter_12.ets +++ b/ets2panda/test/ast/parser/ets/rest_parameter_12.ets @@ -24,9 +24,10 @@ class C { /* @@ label2 */C.foo(new A) /* @@ label3 */C.foo(new A, new B, new B) -/* @@@ label1 Error TypeError: Expected 2 arguments, got 0. */ -/* @@@ label1 Error TypeError: No matching call signature */ -/* @@@ label2 Error TypeError: Expected 2 arguments, got 1. */ -/* @@@ label2 Error TypeError: No matching call signature for foo(A) */ -/* @@@ label3 Error TypeError: Expected 2 arguments, got 3. */ -/* @@@ label3 Error TypeError: No matching call signature for foo(A, B, B) */ + +/* @@@ label1 Error Semantic error ESE0124: Expected 2 arguments, got 0. */ +/* @@@ label1 Error Semantic error ESE0128: No matching call signature */ +/* @@@ label2 Error Semantic error ESE0124: Expected 2 arguments, got 1. */ +/* @@@ label2 Error Semantic error ESE0127: No matching call signature for foo(A) */ +/* @@@ label3 Error Semantic error ESE0124: Expected 2 arguments, got 3. */ +/* @@@ label3 Error Semantic error ESE0127: No matching call signature for foo(A, B, B) */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/rest_parameter_13.ets b/ets2panda/test/ast/parser/ets/rest_parameter_13.ets index 46f794926f..0a6b462899 100644 --- a/ets2panda/test/ast/parser/ets/rest_parameter_13.ets +++ b/ets2panda/test/ast/parser/ets/rest_parameter_13.ets @@ -34,14 +34,15 @@ function main() { /* @@ label3 */new C(new A, new B, new B) } -/* @@@ label1 Error TypeError: Expected 1 arguments, got 0. */ -/* @@@ label1 Error TypeError: Expected 2 arguments, got 0. */ -/* @@@ label1 Error TypeError: Expected 3 arguments, got 0. */ -/* @@@ label1 Error TypeError: No matching construct signature */ -/* @@@ label2 Error TypeError: Expected 2 arguments, got 1. */ -/* @@@ label2 Error TypeError: Expected 3 arguments, got 1. */ -/* @@@ label2 Error TypeError: No matching construct signature for rest_parameter_13.C(A) */ -/* @@? 33:37 Error TypeError: Type 'A' is not compatible with type 'Int' at index 1 */ -/* @@@ label3 Error TypeError: Expected 2 arguments, got 3. */ -/* @@@ label3 Error TypeError: No matching construct signature for rest_parameter_13.C(A, B, B) */ -/* @@? 34:37 Error TypeError: Type 'A' is not compatible with type 'Int' at index 1 */ + +/* @@@ label1 Error Semantic error ESE0124: Expected 1 arguments, got 0. */ +/* @@@ label1 Error Semantic error ESE0124: Expected 2 arguments, got 0. */ +/* @@@ label1 Error Semantic error ESE0124: Expected 3 arguments, got 0. */ +/* @@@ label1 Error Semantic error ESE0128: No matching construct signature */ +/* @@@ label2 Error Semantic error ESE0124: Expected 2 arguments, got 1. */ +/* @@@ label2 Error Semantic error ESE0124: Expected 3 arguments, got 1. */ +/* @@@ label2 Error Semantic error ESE0127: No matching construct signature for rest_parameter_13.C(A) */ +/* @@? 33:37 Error Semantic error ESE0046: Type 'A' is not compatible with type 'Int' at index 1 */ +/* @@@ label3 Error Semantic error ESE0124: Expected 2 arguments, got 3. */ +/* @@@ label3 Error Semantic error ESE0127: No matching construct signature for rest_parameter_13.C(A, B, B) */ +/* @@? 34:37 Error Semantic error ESE0046: Type 'A' is not compatible with type 'Int' at index 1 */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/rest_parameter_14.ets b/ets2panda/test/ast/parser/ets/rest_parameter_14.ets index 73bbbb9eb0..222b050781 100644 --- a/ets2panda/test/ast/parser/ets/rest_parameter_14.ets +++ b/ets2panda/test/ast/parser/ets/rest_parameter_14.ets @@ -21,5 +21,6 @@ class B { moo(/* @@ label2 */...i: A) {} } -/* @@@ label1 Error SyntaxError: Rest parameter should be either array or tuple type. */ -/* @@@ label2 Error SyntaxError: Rest parameter should be either array or tuple type. */ + +/* @@@ label1 Error Syntax error ESY0193: Rest parameter should be either array or tuple type. */ +/* @@@ label2 Error Syntax error ESY0193: Rest parameter should be either array or tuple type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/return_null_and_type_not_match.ets b/ets2panda/test/ast/parser/ets/return_null_and_type_not_match.ets index f67d3dbe0d..9c186f96f2 100644 --- a/ets2panda/test/ast/parser/ets/return_null_and_type_not_match.ets +++ b/ets2panda/test/ast/parser/ets/return_null_and_type_not_match.ets @@ -22,5 +22,6 @@ function main(): int { function test():string { /* @@ label1 */return; } -/* @@@ label Error TypeError: Type 'String' is not compatible with the enclosing method's return type 'Int' */ -/* @@@ label1 Error TypeError: Missing return value. */ + +/* @@@ label Error Semantic error ESE0091: Type 'String' is not compatible with the enclosing method's return type 'Int' */ +/* @@@ label1 Error Semantic error ESE0032: Missing return value. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/return_type_non_match.ets b/ets2panda/test/ast/parser/ets/return_type_non_match.ets index 5a8539550b..e98fa29458 100644 --- a/ets2panda/test/ast/parser/ets/return_type_non_match.ets +++ b/ets2panda/test/ast/parser/ets/return_type_non_match.ets @@ -15,5 +15,6 @@ function main():undefined { return false; } - /* @@? 16:4 Error TypeError: Bad return type, main enable only void or int type. */ -/* @@? 16:11 Error TypeError: Type 'Boolean' is not compatible with the enclosing method's return type 'undefined' */ + +/* @@? 16:4 Error Semantic error ESE0088: Bad return type, main enable only void or int type. */ +/* @@? 16:11 Error Semantic error ESE0091: Type 'Boolean' is not compatible with the enclosing method's return type 'undefined' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/return_while_warning.ets b/ets2panda/test/ast/parser/ets/return_while_warning.ets index 08ae4d2f3a..c2136289b6 100644 --- a/ets2panda/test/ast/parser/ets/return_while_warning.ets +++ b/ets2panda/test/ast/parser/ets/return_while_warning.ets @@ -19,4 +19,4 @@ function main(): void { } } -/* @@? 17:19 Warning Warning: Unreachable statement. */ \ No newline at end of file +/* @@? 17:19 Warning Warning W0026: Unreachable statement. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/returntype_override_object.ets b/ets2panda/test/ast/parser/ets/returntype_override_object.ets index be73db7d84..320eb331e2 100644 --- a/ets2panda/test/ast/parser/ets/returntype_override_object.ets +++ b/ets2panda/test/ast/parser/ets/returntype_override_object.ets @@ -25,5 +25,5 @@ class Derived extends Base { } } -/* @@? 23:17 Error TypeError: foo(): Object in Derived cannot override foo(): Base in Base because overriding return type is not compatible with the other return type. */ -/* @@? 23:17 Error TypeError: Method foo(): Object in Derived not overriding any method */ \ No newline at end of file +/* @@? 23:17 Error Semantic error ESE0141: foo(): Object in Derived cannot override foo(): Base in Base because overriding return type is not compatible with the other return type. */ +/* @@? 23:17 Error Semantic error ESE0136: Method foo(): Object in Derived not overriding any method */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/returntype_override_primitive.ets b/ets2panda/test/ast/parser/ets/returntype_override_primitive.ets index bf844a84d3..1d1e28a19a 100644 --- a/ets2panda/test/ast/parser/ets/returntype_override_primitive.ets +++ b/ets2panda/test/ast/parser/ets/returntype_override_primitive.ets @@ -25,5 +25,3 @@ class Derived extends Base { } } -/* @@? 23:17 Error TypeError: foo(i: double): Double in Derived cannot override foo(i: double): double in Base because overriding return type is not compatible with the other return type. */ -/* @@? 23:17 Error TypeError: Method foo(i: double): Double in Derived not overriding any method */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/segmentation_fault_test1.ets b/ets2panda/test/ast/parser/ets/segmentation_fault_test1.ets index c5e9ad05f3..9bf76acfa8 100644 --- a/ets2panda/test/ast/parser/ets/segmentation_fault_test1.ets +++ b/ets2panda/test/ast/parser/ets/segmentation_fault_test1.ets @@ -21,4 +21,4 @@ function A(a: string) { } } -/* @@@ label Error TypeError: Unresolved reference c */ \ No newline at end of file +/* @@@ label Error Semantic error ESE0143: Unresolved reference c */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/selective_export/selective_export_bad.ets b/ets2panda/test/ast/parser/ets/selective_export/selective_export_bad.ets index bb493f22fa..a828677426 100644 --- a/ets2panda/test/ast/parser/ets/selective_export/selective_export_bad.ets +++ b/ets2panda/test/ast/parser/ets/selective_export/selective_export_bad.ets @@ -19,4 +19,5 @@ function bar(): int { return 1; } -/* @@@ label Error SyntaxError: Cannot find name 'foo' to export. */ + +/* @@@ label Error Syntax error ESY0279: Cannot find name 'foo' to export. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/set_unexpected_nonvoid.ets b/ets2panda/test/ast/parser/ets/set_unexpected_nonvoid.ets index f7e6f36d16..24d4fea03e 100644 --- a/ets2panda/test/ast/parser/ets/set_unexpected_nonvoid.ets +++ b/ets2panda/test/ast/parser/ets/set_unexpected_nonvoid.ets @@ -17,5 +17,6 @@ class SomeClass { $_set (index: string): SomeClass { return this } } -/* @@? 17:5 Error SyntaxError: The special predefined method '$_set' should have exactly two required parameter. */ -/* @@? 17:11 Error TypeError: 'The special predefined method '$_set' should have void return type. */ + +/* @@? 17:5 Error Syntax error ESY0222: The special predefined method '$_set' should have exactly two required parameter. */ +/* @@? 17:11 Error Semantic error ESE0094: 'The special predefined method '$_set' should have void return type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/setter_native.ets b/ets2panda/test/ast/parser/ets/setter_native.ets index 1c9aa8b145..b1c075978d 100644 --- a/ets2panda/test/ast/parser/ets/setter_native.ets +++ b/ets2panda/test/ast/parser/ets/setter_native.ets @@ -20,4 +20,5 @@ class Door { } } -/* @@@ label1 Error TypeError: Native, Abstract and Declare methods cannot have body. */ + +/* @@@ label1 Error Semantic error ESE0083: Native, Abstract and Declare methods cannot have body. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/setter_with_more_than_one_formal_parameter.ets b/ets2panda/test/ast/parser/ets/setter_with_more_than_one_formal_parameter.ets index a7f211b961..a5e6bd2e05 100644 --- a/ets2panda/test/ast/parser/ets/setter_with_more_than_one_formal_parameter.ets +++ b/ets2panda/test/ast/parser/ets/setter_with_more_than_one_formal_parameter.ets @@ -17,5 +17,6 @@ set value(a: int, b: int, c : int)/* @@ label */; } - /* @@@ label Error SyntaxError: Setter must have exactly one formal parameter. */ -/* @@? 1:3 Error TypeError: Class 'Set' is already defined with different type. */ + +/* @@? 1:3 Error Semantic error ESE0350: Class 'Set' is already defined with different type. */ +/* @@@ label Error Syntax error ESY0063: Setter must have exactly one formal parameter. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/setter_with_non_void.ets b/ets2panda/test/ast/parser/ets/setter_with_non_void.ets index e42ce4c094..cca6962ae7 100644 --- a/ets2panda/test/ast/parser/ets/setter_with_non_void.ets +++ b/ets2panda/test/ast/parser/ets/setter_with_non_void.ets @@ -26,4 +26,5 @@ function main(): void { apple.color = 10; } -/* @@@ label Error SyntaxError: Setter must not have return type even if it is void. */ + +/* @@@ label Error Syntax error ESY0241: Setter must not have return type even if it is void. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/setter_with_return_type.ets b/ets2panda/test/ast/parser/ets/setter_with_return_type.ets index f0423da780..22b11831b0 100644 --- a/ets2panda/test/ast/parser/ets/setter_with_return_type.ets +++ b/ets2panda/test/ast/parser/ets/setter_with_return_type.ets @@ -25,4 +25,5 @@ interface I{ class D extends C implements I{ } -/* @@? 22:9 Error SyntaxError: Setter must not have return type even if it is void. */ + +/* @@? 22:9 Error Syntax error ESY0241: Setter must not have return type even if it is void. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/single_export/single_export_as_n.ets b/ets2panda/test/ast/parser/ets/single_export/single_export_as_n.ets index 29a7abba36..a34b439007 100644 --- a/ets2panda/test/ast/parser/ets/single_export/single_export_as_n.ets +++ b/ets2panda/test/ast/parser/ets/single_export/single_export_as_n.ets @@ -17,6 +17,7 @@ export a as A let a = 2; -/* @@? 16:10 Error SyntaxError: Unexpected token 'as'. */ -/* @@? 16:13 Error SyntaxError: Unexpected token 'A'. */ -/* @@? 16:13 Error TypeError: Unresolved reference A */ + +/* @@? 16:10 Error Syntax error ESY0227: Unexpected token 'as'. */ +/* @@? 16:13 Error Syntax error ESY0227: Unexpected token 'A'. */ +/* @@? 16:13 Error Semantic error ESE0143: Unresolved reference A */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/single_export/single_export_expression.ets b/ets2panda/test/ast/parser/ets/single_export/single_export_expression.ets index 18b046b725..3ae3e5284e 100644 --- a/ets2panda/test/ast/parser/ets/single_export/single_export_expression.ets +++ b/ets2panda/test/ast/parser/ets/single_export/single_export_expression.ets @@ -15,4 +15,5 @@ export /* @@ label */(5442 + 41 * 39 - 10) -/* @@@ label Error SyntaxError: Export is allowed only for declarations. */ + +/* @@@ label Error Syntax error ESY0043: Export is allowed only for declarations. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/single_export/single_export_from_n.ets b/ets2panda/test/ast/parser/ets/single_export/single_export_from_n.ets index 6b49070609..181769dd30 100644 --- a/ets2panda/test/ast/parser/ets/single_export/single_export_from_n.ets +++ b/ets2panda/test/ast/parser/ets/single_export/single_export_from_n.ets @@ -12,7 +12,8 @@ export a /* @@ label */from /* @@ label1 */"./type" -/* @@? 13:8 Error SyntaxError: Cannot find name 'a' to export. */ -/* @@? 13:24 Error SyntaxError: Unexpected token 'from'. */ -/* @@? 13:24 Error TypeError: Unresolved reference from */ -/* @@? 13:44 Error SyntaxError: Unexpected token './type'. */ + +/* @@? 13:8 Error Syntax error ESY0279: Cannot find name 'a' to export. */ +/* @@@ label Error Syntax error ESY0227: Unexpected token 'from'. */ +/* @@@ label Error Semantic error ESE0143: Unresolved reference from */ +/* @@@ label1 Error Syntax error ESY0227: Unexpected token './type'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/single_export/single_export_lambda.ets b/ets2panda/test/ast/parser/ets/single_export/single_export_lambda.ets index d56bfbcfc7..fbd0a34862 100644 --- a/ets2panda/test/ast/parser/ets/single_export/single_export_lambda.ets +++ b/ets2panda/test/ast/parser/ets/single_export/single_export_lambda.ets @@ -15,4 +15,5 @@ export /* @@ label */(a: int) => { return a } -/* @@@ label Error SyntaxError: Export is allowed only for declarations. */ + +/* @@@ label Error Syntax error ESY0043: Export is allowed only for declarations. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/single_export/single_export_n.ets b/ets2panda/test/ast/parser/ets/single_export/single_export_n.ets index e25119a540..292de43db6 100644 --- a/ets2panda/test/ast/parser/ets/single_export/single_export_n.ets +++ b/ets2panda/test/ast/parser/ets/single_export/single_export_n.ets @@ -18,5 +18,6 @@ export v,m let v = 1 let m = 2 -/* @@? 16:9 Error SyntaxError: Unexpected token ','. */ -/* @@? 16:10 Error SyntaxError: Unexpected token 'm'. */ + +/* @@? 16:9 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 16:10 Error Syntax error ESY0227: Unexpected token 'm'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/single_statement_1.ets b/ets2panda/test/ast/parser/ets/single_statement_1.ets index 64d355e22c..6b85cc05d5 100644 --- a/ets2panda/test/ast/parser/ets/single_statement_1.ets +++ b/ets2panda/test/ast/parser/ets/single_statement_1.ets @@ -20,14 +20,15 @@ function main(): int { let hehe: int = 10 } -/* @@@ label1 Error SyntaxError: Lexical declaration is not allowed in single statement context. */ -/* @@? 18:5 Error TypeError: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Boolean): void` */ -/* @@? 18:5 Error TypeError: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Byte): void` */ -/* @@? 18:5 Error TypeError: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Short): void` */ -/* @@? 18:5 Error TypeError: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Char): void` */ -/* @@? 18:5 Error TypeError: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Int): void` */ -/* @@? 18:5 Error TypeError: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Long): void` */ -/* @@? 18:5 Error TypeError: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Float): void` */ -/* @@? 18:5 Error TypeError: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Double): void` */ -/* @@? 18:17 Error TypeError: Unresolved reference aaaa */ -/* @@@ label2 Error SyntaxError: Unexpected token ')'. */ + +/* @@@ label1 Error Syntax error ESY0175: Lexical declaration is not allowed in single statement context. */ +/* @@? 18:5 Error Semantic error ESE0142: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Boolean): void` */ +/* @@? 18:5 Error Semantic error ESE0142: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Byte): void` */ +/* @@? 18:5 Error Semantic error ESE0142: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Short): void` */ +/* @@? 18:5 Error Semantic error ESE0142: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Char): void` */ +/* @@? 18:5 Error Semantic error ESE0142: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Int): void` */ +/* @@? 18:5 Error Semantic error ESE0142: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Long): void` */ +/* @@? 18:5 Error Semantic error ESE0142: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Float): void` */ +/* @@? 18:5 Error Semantic error ESE0142: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Double): void` */ +/* @@? 18:17 Error Semantic error ESE0143: Unresolved reference aaaa */ +/* @@@ label2 Error Syntax error ESY0227: Unexpected token ')'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/single_statement_2.ets b/ets2panda/test/ast/parser/ets/single_statement_2.ets index 996fdd7fd4..8e91859f00 100644 --- a/ets2panda/test/ast/parser/ets/single_statement_2.ets +++ b/ets2panda/test/ast/parser/ets/single_statement_2.ets @@ -20,14 +20,15 @@ function main(): int { let hehe: int = 10 } -/* @@@ label1 Error SyntaxError: Lexical declaration is not allowed in single statement context. */ -/* @@? 18:5 Error TypeError: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Boolean): void` */ -/* @@? 18:5 Error TypeError: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Byte): void` */ -/* @@? 18:5 Error TypeError: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Short): void` */ -/* @@? 18:5 Error TypeError: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Char): void` */ -/* @@? 18:5 Error TypeError: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Int): void` */ -/* @@? 18:5 Error TypeError: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Long): void` */ -/* @@? 18:5 Error TypeError: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Float): void` */ -/* @@? 18:5 Error TypeError: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Double): void` */ -/* @@? 18:17 Error TypeError: Unresolved reference aaaa */ -/* @@@ label2 Error SyntaxError: Unexpected token ')'. */ + +/* @@@ label1 Error Syntax error ESY0175: Lexical declaration is not allowed in single statement context. */ +/* @@? 18:5 Error Semantic error ESE0142: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Boolean): void` */ +/* @@? 18:5 Error Semantic error ESE0142: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Byte): void` */ +/* @@? 18:5 Error Semantic error ESE0142: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Short): void` */ +/* @@? 18:5 Error Semantic error ESE0142: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Char): void` */ +/* @@? 18:5 Error Semantic error ESE0142: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Int): void` */ +/* @@? 18:5 Error Semantic error ESE0142: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Long): void` */ +/* @@? 18:5 Error Semantic error ESE0142: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Float): void` */ +/* @@? 18:5 Error Semantic error ESE0142: Call to `log` is ambiguous as `2` versions of `log` are available: `log(i: String): void` and `log(i: Double): void` */ +/* @@? 18:17 Error Semantic error ESE0143: Unresolved reference aaaa */ +/* @@@ label2 Error Syntax error ESY0227: Unexpected token ')'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/special_signatures.ets b/ets2panda/test/ast/parser/ets/special_signatures.ets index 811f62bf38..19a614ba2f 100644 --- a/ets2panda/test/ast/parser/ets/special_signatures.ets +++ b/ets2panda/test/ast/parser/ets/special_signatures.ets @@ -17,6 +17,7 @@ interface Document { createElement(tagName: "div"): /* @@ label */HTMLDivElement; createElement(tagName: "span"): HTMLSpanElement; } -/* @@@ label Error TypeError: Cannot find type 'HTMLDivElement'. */ -/* @@? 18:35 Error TypeError: Cannot find type 'HTMLSpanElement'. */ -/* @@? 18:3 Error TypeError: Function createElement with this assembly signature already declared. */ + +/* @@@ label Error Semantic error ESE0371: Cannot find type 'HTMLDivElement'. */ +/* @@? 18:3 Error Semantic error ESE0131: Function createElement with this assembly signature already declared. */ +/* @@? 18:35 Error Semantic error ESE0371: Cannot find type 'HTMLSpanElement'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/spreadArrayInTuple.ets b/ets2panda/test/ast/parser/ets/spreadArrayInTuple.ets index 597d40da24..51f26f851d 100644 --- a/ets2panda/test/ast/parser/ets/spreadArrayInTuple.ets +++ b/ets2panda/test/ast/parser/ets/spreadArrayInTuple.ets @@ -20,7 +20,8 @@ function main() { let y2: [boolean, int, string] = /* @@ label2 */[true, /* @@ label3 */...x2] } -/* @@? 18:43 Error TypeError: Initializer has 1 elements, but tuple requires 2 */ -/* @@? 18:59 Error TypeError: 'Array' cannot be spread in tuple. */ -/* @@? 20:53 Error TypeError: Initializer has 2 elements, but tuple requires 3 */ -/* @@? 20:75 Error TypeError: 'Array' cannot be spread in tuple. */ + +/* @@@ label Error Semantic error ESE0231: Initializer has 1 elements, but tuple requires 2 */ +/* @@@ label1 Error Semantic error ESE0055: 'Array' cannot be spread in tuple. */ +/* @@@ label2 Error Semantic error ESE0231: Initializer has 2 elements, but tuple requires 3 */ +/* @@@ label3 Error Semantic error ESE0055: 'Array' cannot be spread in tuple. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/spreadExpressionNotArrayType.ets b/ets2panda/test/ast/parser/ets/spreadExpressionNotArrayType.ets index 2259dc4920..c913560ff9 100644 --- a/ets2panda/test/ast/parser/ets/spreadExpressionNotArrayType.ets +++ b/ets2panda/test/ast/parser/ets/spreadExpressionNotArrayType.ets @@ -20,4 +20,5 @@ function main() { } -/* @@? 19:23 Error TypeError: Spread expression can be applied only to array or tuple type, but 'Object|null|undefined' is provided */ + +/* @@? 19:23 Error Semantic error ESE0049: Spread expression can be applied only to array or tuple type, but 'Object|null|undefined' is provided */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/spread_parameter_only_with_rest_1.ets b/ets2panda/test/ast/parser/ets/spread_parameter_only_with_rest_1.ets index 26483b2780..0b7941b135 100644 --- a/ets2panda/test/ast/parser/ets/spread_parameter_only_with_rest_1.ets +++ b/ets2panda/test/ast/parser/ets/spread_parameter_only_with_rest_1.ets @@ -21,7 +21,8 @@ let args_tuple: [number, number] = [0, 1] let args_array: number[] = [2, 3] /* @@ label2 */foo(4, ...args_array) -/* @@@ label1 Error TypeError: The function or method being called needs a rest parameter to accept arguments passed via the spread operator. */ -/* @@@ label1 Error TypeError: No matching call signature for foo(Int, [Double, Double]) */ -/* @@@ label2 Error TypeError: The function or method being called needs a rest parameter to accept arguments passed via the spread operator. */ -/* @@@ label2 Error TypeError: No matching call signature for foo(Int, Double) */ + +/* @@@ label1 Error Semantic error ESE44192: The function or method being called needs a rest parameter to accept arguments passed via the spread operator. */ +/* @@@ label1 Error Semantic error ESE0127: No matching call signature for foo(Int, [Double, Double]) */ +/* @@@ label2 Error Semantic error ESE44192: The function or method being called needs a rest parameter to accept arguments passed via the spread operator. */ +/* @@@ label2 Error Semantic error ESE0127: No matching call signature for foo(Int, Double) */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/spread_parameter_only_with_rest_2.ets b/ets2panda/test/ast/parser/ets/spread_parameter_only_with_rest_2.ets index a5407b76f9..834494d5e8 100644 --- a/ets2panda/test/ast/parser/ets/spread_parameter_only_with_rest_2.ets +++ b/ets2panda/test/ast/parser/ets/spread_parameter_only_with_rest_2.ets @@ -29,11 +29,12 @@ args_tuple = [0, 1] args_array = [2, 3] /* @@ label4 */moo(2, ...args_array) -/* @@@ label1 Error TypeError: The function or method being called needs a rest parameter to accept arguments passed via the spread operator. */ -/* @@@ label1 Error TypeError: No matching call signature for foo([Double, Double]) */ -/* @@@ label2 Error TypeError: The function or method being called needs a rest parameter to accept arguments passed via the spread operator. */ -/* @@@ label2 Error TypeError: No matching call signature for foo(Double) */ -/* @@@ label3 Error TypeError: The function or method being called needs a rest parameter to accept arguments passed via the spread operator. */ -/* @@@ label3 Error TypeError: No matching call signature for moo(Int, [Double, Double]) */ -/* @@@ label4 Error TypeError: The function or method being called needs a rest parameter to accept arguments passed via the spread operator. */ -/* @@@ label4 Error TypeError: No matching call signature for moo(Int, Double) */ + +/* @@@ label1 Error Semantic error ESE44192: The function or method being called needs a rest parameter to accept arguments passed via the spread operator. */ +/* @@@ label1 Error Semantic error ESE0127: No matching call signature for foo([Double, Double]) */ +/* @@@ label2 Error Semantic error ESE44192: The function or method being called needs a rest parameter to accept arguments passed via the spread operator. */ +/* @@@ label2 Error Semantic error ESE0127: No matching call signature for foo(Double) */ +/* @@@ label3 Error Semantic error ESE44192: The function or method being called needs a rest parameter to accept arguments passed via the spread operator. */ +/* @@@ label3 Error Semantic error ESE0127: No matching call signature for moo(Int, [Double, Double]) */ +/* @@@ label4 Error Semantic error ESE44192: The function or method being called needs a rest parameter to accept arguments passed via the spread operator. */ +/* @@@ label4 Error Semantic error ESE0127: No matching call signature for moo(Int, Double) */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/spread_parameter_only_with_rest_3.ets b/ets2panda/test/ast/parser/ets/spread_parameter_only_with_rest_3.ets index 89d5215fd1..24c35e3aaf 100644 --- a/ets2panda/test/ast/parser/ets/spread_parameter_only_with_rest_3.ets +++ b/ets2panda/test/ast/parser/ets/spread_parameter_only_with_rest_3.ets @@ -29,11 +29,12 @@ args_tuple = [0, 1] args_array = [2, 3] /* @@ label4 */moo(2, ...args_array) -/* @@@ label1 Error TypeError: The function or method being called needs a rest parameter to accept arguments passed via the spread operator. */ -/* @@@ label1 Error TypeError: No matching call signature for foo([Double, Double]) */ -/* @@@ label2 Error TypeError: The function or method being called needs a rest parameter to accept arguments passed via the spread operator. */ -/* @@@ label2 Error TypeError: No matching call signature for foo(Double) */ -/* @@@ label3 Error TypeError: The function or method being called needs a rest parameter to accept arguments passed via the spread operator. */ -/* @@@ label3 Error TypeError: No matching call signature for moo(Int, [Double, Double]) */ -/* @@@ label4 Error TypeError: The function or method being called needs a rest parameter to accept arguments passed via the spread operator. */ -/* @@@ label4 Error TypeError: No matching call signature for moo(Int, Double) */ + +/* @@@ label1 Error Semantic error ESE44192: The function or method being called needs a rest parameter to accept arguments passed via the spread operator. */ +/* @@@ label1 Error Semantic error ESE0127: No matching call signature for foo([Double, Double]) */ +/* @@@ label2 Error Semantic error ESE44192: The function or method being called needs a rest parameter to accept arguments passed via the spread operator. */ +/* @@@ label2 Error Semantic error ESE0127: No matching call signature for foo(Double) */ +/* @@@ label3 Error Semantic error ESE44192: The function or method being called needs a rest parameter to accept arguments passed via the spread operator. */ +/* @@@ label3 Error Semantic error ESE0127: No matching call signature for moo(Int, [Double, Double]) */ +/* @@@ label4 Error Semantic error ESE44192: The function or method being called needs a rest parameter to accept arguments passed via the spread operator. */ +/* @@@ label4 Error Semantic error ESE0127: No matching call signature for moo(Int, Double) */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/spreadexpr_in_newexpr_neg01.ets b/ets2panda/test/ast/parser/ets/spreadexpr_in_newexpr_neg01.ets index 346e038a11..6161cad95c 100644 --- a/ets2panda/test/ast/parser/ets/spreadexpr_in_newexpr_neg01.ets +++ b/ets2panda/test/ast/parser/ets/spreadexpr_in_newexpr_neg01.ets @@ -26,12 +26,12 @@ function main() { let a2 = new A(...nums); } -/* @@? 18:16 Error TypeError: Only abstract or native methods can't have body. */ -/* @@? 18:31 Error SyntaxError: Rest parameter must be the last formal parameter. */ -/* @@? 18:39 Error SyntaxError: Unexpected token ')'. */ -/* @@? 18:41 Error SyntaxError: Unexpected token '{'. */ -/* @@? 19:9 Error SyntaxError: Unexpected token 'this'. */ -/* @@? 19:13 Error SyntaxError: Unexpected token '.'. */ -/* @@? 19:14 Error TypeError: Variable 'fld' has already been declared. */ -/* @@? 19:20 Error TypeError: Unresolved reference p */ -/* @@? 21:1 Error SyntaxError: Unexpected token '}'. */ \ No newline at end of file +/* @@? 18:16 Error Semantic error ESE0017: Only abstract or native methods can't have body. */ +/* @@? 18:31 Error Syntax error ESY0067: Rest parameter must be the last formal parameter. */ +/* @@? 18:39 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 18:41 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 19:9 Error Syntax error ESY0227: Unexpected token 'this'. */ +/* @@? 19:13 Error Syntax error ESY0227: Unexpected token '.'. */ +/* @@? 19:14 Error Semantic error ESE0351: Variable 'fld' has already been declared. */ +/* @@? 19:20 Error Semantic error ESE0143: Unresolved reference p */ +/* @@? 21:1 Error Syntax error ESY0227: Unexpected token '}'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/spreadexpr_in_newexpr_neg02.ets b/ets2panda/test/ast/parser/ets/spreadexpr_in_newexpr_neg02.ets index 6c37863a77..5d9a87e969 100644 --- a/ets2panda/test/ast/parser/ets/spreadexpr_in_newexpr_neg02.ets +++ b/ets2panda/test/ast/parser/ets/spreadexpr_in_newexpr_neg02.ets @@ -26,4 +26,5 @@ function main() { let a2 = new A(1, 1.0, ...nums); } -/* @@@ label Error SyntaxError: Both optional and rest parameters are not allowed in function's parameter list. */ + +/* @@@ label Error Syntax error ESY0015: Both optional and rest parameters are not allowed in function's parameter list. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/static_block.ets b/ets2panda/test/ast/parser/ets/static_block.ets index 0543023636..920cf27425 100644 --- a/ets2panda/test/ast/parser/ets/static_block.ets +++ b/ets2panda/test/ast/parser/ets/static_block.ets @@ -21,5 +21,6 @@ class A { } } -/* @@? 20:12 Error SyntaxError: Unexpected return value. */ -/* @@? 20:12 Error TypeError: All return statements in the function should be empty or have a value. */ + +/* @@? 20:12 Error Syntax error ESY0287: Unexpected return value. */ +/* @@? 20:12 Error Semantic error ESE0092: All return statements in the function should be empty or have a value. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/static_field_1.ets b/ets2panda/test/ast/parser/ets/static_field_1.ets index a711e41245..cc786afa7d 100644 --- a/ets2panda/test/ast/parser/ets/static_field_1.ets +++ b/ets2panda/test/ast/parser/ets/static_field_1.ets @@ -18,4 +18,4 @@ class A { } new A()./* @@ label */bar -/* @@@ label Error TypeError: 'bar' is a static property of 'A' */ \ No newline at end of file +/* @@@ label Error Semantic error ESE0207: 'bar' is a static property of 'A' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/static_field_2.ets b/ets2panda/test/ast/parser/ets/static_field_2.ets index e0457f45a5..179251ab59 100644 --- a/ets2panda/test/ast/parser/ets/static_field_2.ets +++ b/ets2panda/test/ast/parser/ets/static_field_2.ets @@ -18,4 +18,4 @@ class A { } (new A() as A)./* @@ label */bar -/* @@@ label Error TypeError: 'bar' is a static property of 'A' */ \ No newline at end of file +/* @@@ label Error Semantic error ESE0207: 'bar' is a static property of 'A' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/static_field_3.ets b/ets2panda/test/ast/parser/ets/static_field_3.ets index 2d3fd4b3a3..697f0cafe4 100644 --- a/ets2panda/test/ast/parser/ets/static_field_3.ets +++ b/ets2panda/test/ast/parser/ets/static_field_3.ets @@ -22,4 +22,5 @@ function main() { arr[0]./* @@ label */foo; } -/* @@@ label Error TypeError: 'foo' is a static property of 'A' */ + +/* @@@ label Error Semantic error ESE0207: 'foo' is a static property of 'A' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/static_field_4.ets b/ets2panda/test/ast/parser/ets/static_field_4.ets index f012dcab61..f81c8d93fb 100644 --- a/ets2panda/test/ast/parser/ets/static_field_4.ets +++ b/ets2panda/test/ast/parser/ets/static_field_4.ets @@ -26,5 +26,6 @@ function main() { f()!./* @@ label2 */foo } -/* @@@ label1 Error TypeError: 'foo' is a static property of 'A' */ -/* @@@ label2 Error TypeError: 'foo' is a static property of 'A' */ + +/* @@@ label1 Error Semantic error ESE0207: 'foo' is a static property of 'A' */ +/* @@@ label2 Error Semantic error ESE0207: 'foo' is a static property of 'A' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/static_field_5.ets b/ets2panda/test/ast/parser/ets/static_field_5.ets index aabed3382f..ad18a7fa79 100644 --- a/ets2panda/test/ast/parser/ets/static_field_5.ets +++ b/ets2panda/test/ast/parser/ets/static_field_5.ets @@ -47,4 +47,5 @@ function main() { d.c.b.a./* @@ label */boo } -/* @@@ label Error TypeError: 'boo' is a static property of 'A' */ + +/* @@@ label Error Semantic error ESE0207: 'boo' is a static property of 'A' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/static_func_call_1.ets b/ets2panda/test/ast/parser/ets/static_func_call_1.ets index a05228f554..05d92b6039 100644 --- a/ets2panda/test/ast/parser/ets/static_func_call_1.ets +++ b/ets2panda/test/ast/parser/ets/static_func_call_1.ets @@ -18,4 +18,5 @@ class A { foo() { /* @@ label */bar(); } } -/* @@@ label Error TypeError: Static property 'bar' must be accessed through it's class 'A' */ + +/* @@@ label Error Semantic error ESE0173: Static property 'bar' must be accessed through it's class 'A' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/static_func_call_10.ets b/ets2panda/test/ast/parser/ets/static_func_call_10.ets index 0ece7d40e9..650f773874 100644 --- a/ets2panda/test/ast/parser/ets/static_func_call_10.ets +++ b/ets2panda/test/ast/parser/ets/static_func_call_10.ets @@ -47,4 +47,5 @@ function main() { d.c.b.a./* @@ label */foo() } -/* @@@ label Error TypeError: 'foo' is a static property of 'A' */ + +/* @@@ label Error Semantic error ESE0207: 'foo' is a static property of 'A' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/static_func_call_2.ets b/ets2panda/test/ast/parser/ets/static_func_call_2.ets index 775353d917..315b1f0d45 100644 --- a/ets2panda/test/ast/parser/ets/static_func_call_2.ets +++ b/ets2panda/test/ast/parser/ets/static_func_call_2.ets @@ -18,4 +18,5 @@ class A { foo() { this./* @@ label */bar(); } } -/* @@@ label Error TypeError: 'bar' is a static property of 'A' */ + +/* @@@ label Error Semantic error ESE0207: 'bar' is a static property of 'A' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/static_func_call_3.ets b/ets2panda/test/ast/parser/ets/static_func_call_3.ets index 6a017aa3a8..b3530633fd 100644 --- a/ets2panda/test/ast/parser/ets/static_func_call_3.ets +++ b/ets2panda/test/ast/parser/ets/static_func_call_3.ets @@ -20,4 +20,5 @@ class A { let a = new A() a./* @@ label */bar() -/* @@@ label Error TypeError: 'bar' is a static property of 'A' */ + +/* @@@ label Error Semantic error ESE0207: 'bar' is a static property of 'A' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/static_func_call_4.ets b/ets2panda/test/ast/parser/ets/static_func_call_4.ets index c6ed5fb46d..c54cc1c4c6 100644 --- a/ets2panda/test/ast/parser/ets/static_func_call_4.ets +++ b/ets2panda/test/ast/parser/ets/static_func_call_4.ets @@ -19,4 +19,5 @@ class A { new A()./* @@ label */bar() -/* @@@ label Error TypeError: 'bar' is a static property of 'A' */ + +/* @@@ label Error Semantic error ESE0207: 'bar' is a static property of 'A' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/static_func_call_5.ets b/ets2panda/test/ast/parser/ets/static_func_call_5.ets index b9b671f2df..12c37846cf 100644 --- a/ets2panda/test/ast/parser/ets/static_func_call_5.ets +++ b/ets2panda/test/ast/parser/ets/static_func_call_5.ets @@ -24,4 +24,5 @@ function main() { bb./* @@ label */foo() } -/* @@@ label Error TypeError: 'foo' is a static property of 'B' */ + +/* @@@ label Error Semantic error ESE0207: 'foo' is a static property of 'B' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/static_func_call_6.ets b/ets2panda/test/ast/parser/ets/static_func_call_6.ets index b0e31af436..2d28ed50c9 100644 --- a/ets2panda/test/ast/parser/ets/static_func_call_6.ets +++ b/ets2panda/test/ast/parser/ets/static_func_call_6.ets @@ -23,4 +23,5 @@ class B extends A { } } -/* @@@ label Error TypeError: 'foo' is a static property of 'B' */ + +/* @@@ label Error Semantic error ESE0207: 'foo' is a static property of 'B' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/static_func_call_7.ets b/ets2panda/test/ast/parser/ets/static_func_call_7.ets index 70acfe1cd0..f4cc6062d2 100644 --- a/ets2panda/test/ast/parser/ets/static_func_call_7.ets +++ b/ets2panda/test/ast/parser/ets/static_func_call_7.ets @@ -23,4 +23,5 @@ class B extends A { } } -/* @@@ label Error TypeError: 'foo' is a static property of 'A' */ + +/* @@@ label Error Semantic error ESE0207: 'foo' is a static property of 'A' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/static_func_call_8.ets b/ets2panda/test/ast/parser/ets/static_func_call_8.ets index 0511949959..b7992c6491 100644 --- a/ets2panda/test/ast/parser/ets/static_func_call_8.ets +++ b/ets2panda/test/ast/parser/ets/static_func_call_8.ets @@ -22,4 +22,5 @@ function main() { arr[0]./* @@ label */foo(); } -/* @@@ label Error TypeError: 'foo' is a static property of 'A' */ + +/* @@@ label Error Semantic error ESE0207: 'foo' is a static property of 'A' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/static_func_call_9.ets b/ets2panda/test/ast/parser/ets/static_func_call_9.ets index edd4d973c6..61d353ef1c 100644 --- a/ets2panda/test/ast/parser/ets/static_func_call_9.ets +++ b/ets2panda/test/ast/parser/ets/static_func_call_9.ets @@ -26,5 +26,6 @@ function main() { f()!./* @@ label2 */foo() } -/* @@@ label1 Error TypeError: 'foo' is a static property of 'A' */ -/* @@@ label2 Error TypeError: 'foo' is a static property of 'A' */ + +/* @@@ label1 Error Semantic error ESE0207: 'foo' is a static property of 'A' */ +/* @@@ label2 Error Semantic error ESE0207: 'foo' is a static property of 'A' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/static_function_override_4.ets b/ets2panda/test/ast/parser/ets/static_function_override_4.ets index 65cbbbc108..5bfef206a8 100644 --- a/ets2panda/test/ast/parser/ets/static_function_override_4.ets +++ b/ets2panda/test/ast/parser/ets/static_function_override_4.ets @@ -21,4 +21,5 @@ class BClass extends AClass { override bar/* @@ label */(): void {} } -/* @@@ label Error TypeError: Method bar(): void in BClass not overriding any method */ + +/* @@@ label Error Semantic error ESE0136: Method bar(): void in BClass not overriding any method */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/static_invoke_tests/static_invoke_coexist_invoke_method.ets b/ets2panda/test/ast/parser/ets/static_invoke_tests/static_invoke_coexist_invoke_method.ets index fb2f82596a..e386dd63f2 100644 --- a/ets2panda/test/ast/parser/ets/static_invoke_tests/static_invoke_coexist_invoke_method.ets +++ b/ets2panda/test/ast/parser/ets/static_invoke_tests/static_invoke_coexist_invoke_method.ets @@ -23,4 +23,5 @@ class A /* @@ label */{ } } -/* @@@ label Error TypeError: Static $_invoke method and static $_instantiate method both exist in class/interface A is not allowed. */ + +/* @@@ label Error Semantic error ESE0221: Static $_invoke method and static $_instantiate method both exist in class/interface A is not allowed. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/static_invoke_tests/static_invoke_coexist_invoke_method_1.ets b/ets2panda/test/ast/parser/ets/static_invoke_tests/static_invoke_coexist_invoke_method_1.ets index 75f6e923d8..6ae8092f8e 100644 --- a/ets2panda/test/ast/parser/ets/static_invoke_tests/static_invoke_coexist_invoke_method_1.ets +++ b/ets2panda/test/ast/parser/ets/static_invoke_tests/static_invoke_coexist_invoke_method_1.ets @@ -25,4 +25,5 @@ class B extends A /* @@ label */{ } } -/* @@@ label Error TypeError: Static $_invoke method and static $_instantiate method both exist in class/interface B is not allowed. */ + +/* @@@ label Error Semantic error ESE0221: Static $_invoke method and static $_instantiate method both exist in class/interface B is not allowed. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/static_invoke_tests/static_invoke_mismatch_signature.ets b/ets2panda/test/ast/parser/ets/static_invoke_tests/static_invoke_mismatch_signature.ets index 094ce9a2ce..886cfa946b 100644 --- a/ets2panda/test/ast/parser/ets/static_invoke_tests/static_invoke_mismatch_signature.ets +++ b/ets2panda/test/ast/parser/ets/static_invoke_tests/static_invoke_mismatch_signature.ets @@ -23,5 +23,6 @@ function main() { A() } -/* @@? 23:5 Error TypeError: Expected 1 arguments, got 0. */ -/* @@? 23:5 Error TypeError: No matching call signature */ + +/* @@? 23:5 Error Semantic error ESE0124: Expected 1 arguments, got 0. */ +/* @@? 23:5 Error Semantic error ESE0128: No matching call signature */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/static_invoke_tests/static_invoke_mismatch_signature_1.ets b/ets2panda/test/ast/parser/ets/static_invoke_tests/static_invoke_mismatch_signature_1.ets index 3956680e07..71f0b62127 100644 --- a/ets2panda/test/ast/parser/ets/static_invoke_tests/static_invoke_mismatch_signature_1.ets +++ b/ets2panda/test/ast/parser/ets/static_invoke_tests/static_invoke_mismatch_signature_1.ets @@ -21,5 +21,6 @@ function main() { A() } -/* @@? 21:5 Error TypeError: No static $_invoke method and static $_instantiate method in A. A() is not allowed. */ -/* @@? 21:5 Error TypeError: Type 'A' has no call signatures. */ + +/* @@? 21:5 Error Semantic error ESE0172: No static $_invoke method and static $_instantiate method in A. A() is not allowed. */ +/* @@? 21:5 Error Semantic error ESE0002: Type 'A' has no call signatures. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/static_invoke_tests/static_invoke_mismatch_signature_2.ets b/ets2panda/test/ast/parser/ets/static_invoke_tests/static_invoke_mismatch_signature_2.ets index 825c8316ad..f2c38ef6a6 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,6 @@ 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) */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/string_literal_01.ets b/ets2panda/test/ast/parser/ets/string_literal_01.ets index 6703e37295..d92a9134a9 100644 --- a/ets2panda/test/ast/parser/ets/string_literal_01.ets +++ b/ets2panda/test/ast/parser/ets/string_literal_01.ets @@ -15,6 +15,7 @@ let x = "\u{}"; -/* @@? 16:9 Error SyntaxError: Hexadecimal digit expected. */ -/* @@? 16:9 Error SyntaxError: Invalid Unicode escape. */ -/* @@? 16:9 Error SyntaxError: Newline is not allowed in strings */ + +/* @@? 16:9 Error Syntax error ESY0248: Hexadecimal digit expected. */ +/* @@? 16:9 Error Syntax error ESY0091: Invalid Unicode escape. */ +/* @@? 16:9 Error Syntax error ESY0265: Newline is not allowed in strings */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/string_literal_const_cast.ets b/ets2panda/test/ast/parser/ets/string_literal_const_cast.ets index d265e85557..aef5dea538 100644 --- a/ets2panda/test/ast/parser/ets/string_literal_const_cast.ets +++ b/ets2panda/test/ast/parser/ets/string_literal_const_cast.ets @@ -15,8 +15,9 @@ let x = "literal str" as const -/* @@? 16:26 Error SyntaxError: 'as const' assertion is not supported. */ -/* @@? 16:26 Error SyntaxError: Unexpected token 'const'. */ -/* @@? 23:1 Error SyntaxError: Identifier expected, got 'end of stream'. */ -/* @@? 23:1 Error SyntaxError: Variable must be initialized or it's type must be declared. */ -/* @@? 23:1 Error TypeError: Missing initializer in const declaration */ + +/* @@? 16:26 Error Syntax error ESY0311: 'as const' assertion is not supported. */ +/* @@? 16:26 Error Syntax error ESY0227: Unexpected token 'const'. */ +/* @@? 23:87 Error Syntax error ESY0224: Identifier expected, got 'end of stream'. */ +/* @@? 23:87 Error Syntax error ESY0105: Variable must be initialized or it's type must be declared. */ +/* @@? 23:87 Error Semantic error ESE0363: Missing initializer in const declaration */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/struct_export1.ets b/ets2panda/test/ast/parser/ets/struct_export1.ets index 6fa897ef35..cf8ed2a009 100644 --- a/ets2panda/test/ast/parser/ets/struct_export1.ets +++ b/ets2panda/test/ast/parser/ets/struct_export1.ets @@ -18,4 +18,5 @@ export struct A { } -/* @@? 16:8 Error TypeError: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ + +/* @@? 16:8 Error Semantic error ESE0364: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/struct_extends_class.ets b/ets2panda/test/ast/parser/ets/struct_extends_class.ets index 42709eee1d..baf5d1c566 100644 --- a/ets2panda/test/ast/parser/ets/struct_extends_class.ets +++ b/ets2panda/test/ast/parser/ets/struct_extends_class.ets @@ -22,4 +22,5 @@ struct B extends A { } -/* @@? 20:1 Error TypeError: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ + +/* @@? 20:1 Error Semantic error ESE0364: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/struct_extends_interface.ets b/ets2panda/test/ast/parser/ets/struct_extends_interface.ets index 719f558829..0e2f2cf3b0 100644 --- a/ets2panda/test/ast/parser/ets/struct_extends_interface.ets +++ b/ets2panda/test/ast/parser/ets/struct_extends_interface.ets @@ -22,5 +22,6 @@ struct B extends A { } -/* @@? 20:1 Error TypeError: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ -/* @@? 20:18 Error TypeError: The super type of 'B' class is not extensible. */ + +/* @@? 20:1 Error Semantic error ESE0364: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ +/* @@? 20:18 Error Semantic error ESE0176: The super type of 'B' class is not extensible. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/struct_extends_struct.ets b/ets2panda/test/ast/parser/ets/struct_extends_struct.ets index af090a527e..0f27c97e53 100644 --- a/ets2panda/test/ast/parser/ets/struct_extends_struct.ets +++ b/ets2panda/test/ast/parser/ets/struct_extends_struct.ets @@ -22,6 +22,7 @@ struct B extends A { } -/* @@? 16:1 Error TypeError: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ -/* @@? 20:1 Error TypeError: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ -/* @@? 20:18 Error TypeError: struct B is not extensible. */ + +/* @@? 16:1 Error Semantic error ESE0364: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ +/* @@? 20:1 Error Semantic error ESE0364: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ +/* @@? 20:18 Error Semantic error ESE0177: struct B is not extensible. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/struct_implements_interface.ets b/ets2panda/test/ast/parser/ets/struct_implements_interface.ets index 31481d72fa..d2883a29eb 100644 --- a/ets2panda/test/ast/parser/ets/struct_implements_interface.ets +++ b/ets2panda/test/ast/parser/ets/struct_implements_interface.ets @@ -22,4 +22,5 @@ struct B implements A { } -/* @@? 20:1 Error TypeError: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ + +/* @@? 20:1 Error Semantic error ESE0364: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/struct_in_class.ets b/ets2panda/test/ast/parser/ets/struct_in_class.ets index 275cf87934..670b0db65e 100644 --- a/ets2panda/test/ast/parser/ets/struct_in_class.ets +++ b/ets2panda/test/ast/parser/ets/struct_in_class.ets @@ -21,5 +21,6 @@ class A { } -/* @@? 18:5 Error SyntaxError: Unexpected token. A constructor, method, accessor, or property was expected. */ -/* @@? 18:5 Error TypeError: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ + +/* @@? 18:5 Error Syntax error ESY0233: Unexpected token. A constructor, method, accessor, or property was expected. */ +/* @@? 18:5 Error Semantic error ESE0364: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/struct_in_interface.ets b/ets2panda/test/ast/parser/ets/struct_in_interface.ets index 60f3efa82e..75abcdcad4 100644 --- a/ets2panda/test/ast/parser/ets/struct_in_interface.ets +++ b/ets2panda/test/ast/parser/ets/struct_in_interface.ets @@ -20,14 +20,15 @@ interface A { } } -/* @@? 17:16 Error SyntaxError: Interface member initialization is prohibited. */ -/* @@? 17:18 Error SyntaxError: Unexpected token, expected ','. */ -/* @@? 17:18 Error SyntaxError: Identifier expected, got 'string literal'. */ -/* @@? 18:12 Error TypeError: Cannot find type 'B'. */ -/* @@? 18:14 Error SyntaxError: Unexpected token, expected ','. */ -/* @@? 18:14 Error SyntaxError: Identifier expected, got 'end of stream'. */ -/* @@? 19:20 Error SyntaxError: Interface member initialization is prohibited. */ -/* @@? 19:22 Error SyntaxError: Unexpected token, expected ','. */ -/* @@? 19:22 Error SyntaxError: Identifier expected, got 'string literal'. */ -/* @@? 20:5 Error SyntaxError: Identifier expected. */ -/* @@? 21:1 Error SyntaxError: Unexpected token '}'. */ + +/* @@? 17:16 Error Syntax error ESY0180: Interface member initialization is prohibited. */ +/* @@? 17:18 Error Syntax error ESY0228: Unexpected token, expected ','. */ +/* @@? 17:18 Error Syntax error ESY0224: Identifier expected, got 'string literal'. */ +/* @@? 18:12 Error Semantic error ESE0371: Cannot find type 'B'. */ +/* @@? 18:14 Error Syntax error ESY0228: Unexpected token, expected ','. */ +/* @@? 18:14 Error Syntax error ESY0224: Identifier expected, got 'end of stream'. */ +/* @@? 19:20 Error Syntax error ESY0180: Interface member initialization is prohibited. */ +/* @@? 19:22 Error Syntax error ESY0228: Unexpected token, expected ','. */ +/* @@? 19:22 Error Syntax error ESY0224: Identifier expected, got 'string literal'. */ +/* @@? 20:5 Error Syntax error ESY0122: Identifier expected. */ +/* @@? 21:1 Error Syntax error ESY0227: Unexpected token '}'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/struct_in_struct.ets b/ets2panda/test/ast/parser/ets/struct_in_struct.ets index 96406ac56d..e0df9352f4 100644 --- a/ets2panda/test/ast/parser/ets/struct_in_struct.ets +++ b/ets2panda/test/ast/parser/ets/struct_in_struct.ets @@ -21,6 +21,7 @@ struct A { } -/* @@? 18:5 Error SyntaxError: Unexpected token. A constructor, method, accessor, or property was expected. */ -/* @@? 16:1 Error TypeError: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ -/* @@? 18:5 Error TypeError: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ + +/* @@? 16:1 Error Semantic error ESE0364: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ +/* @@? 18:5 Error Syntax error ESY0233: Unexpected token. A constructor, method, accessor, or property was expected. */ +/* @@? 18:5 Error Semantic error ESE0364: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/struct_invalid_abstract.ets b/ets2panda/test/ast/parser/ets/struct_invalid_abstract.ets index cdc157dbd5..f1922107b0 100644 --- a/ets2panda/test/ast/parser/ets/struct_invalid_abstract.ets +++ b/ets2panda/test/ast/parser/ets/struct_invalid_abstract.ets @@ -20,4 +20,5 @@ abstract struct A { } } -/* @@? 16:10 Error TypeError: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ + +/* @@? 16:10 Error Semantic error ESE0364: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/struct_invalid_local.ets b/ets2panda/test/ast/parser/ets/struct_invalid_local.ets index eae483b3e3..a2db81a8b2 100644 --- a/ets2panda/test/ast/parser/ets/struct_invalid_local.ets +++ b/ets2panda/test/ast/parser/ets/struct_invalid_local.ets @@ -19,4 +19,5 @@ function main(): void { } } -/* @@@ label Error SyntaxError: Illegal start of STRUCT expression. */ + +/* @@@ label Error Syntax error ESY0040: Illegal start of STRUCT expression. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/struct_invalid_nested2.ets b/ets2panda/test/ast/parser/ets/struct_invalid_nested2.ets index 4ef929e9e6..c84d9044d5 100644 --- a/ets2panda/test/ast/parser/ets/struct_invalid_nested2.ets +++ b/ets2panda/test/ast/parser/ets/struct_invalid_nested2.ets @@ -19,5 +19,6 @@ struct A { } } -/* @@? 17:5 Error SyntaxError: Unexpected token. A constructor, method, accessor, or property was expected. */ -/* @@? 16:1 Error TypeError: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ + +/* @@? 16:1 Error Semantic error ESE0364: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ +/* @@? 17:5 Error Syntax error ESY0233: Unexpected token. A constructor, method, accessor, or property was expected. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/struct_keywords1.ets b/ets2panda/test/ast/parser/ets/struct_keywords1.ets index 7dcd3f5ee4..dd6ce7e6ab 100644 --- a/ets2panda/test/ast/parser/ets/struct_keywords1.ets +++ b/ets2panda/test/ast/parser/ets/struct_keywords1.ets @@ -54,4 +54,5 @@ struct AA { } } -/* @@? 42:1 Error TypeError: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ + +/* @@? 42:1 Error Semantic error ESE0364: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/struct_keywords2.ets b/ets2panda/test/ast/parser/ets/struct_keywords2.ets index 01c146278e..2ceecb52a2 100644 --- a/ets2panda/test/ast/parser/ets/struct_keywords2.ets +++ b/ets2panda/test/ast/parser/ets/struct_keywords2.ets @@ -54,4 +54,5 @@ struct B { } } -/* @@? 41:1 Error TypeError: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ + +/* @@? 41:1 Error Semantic error ESE0364: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/struct_keywords3.ets b/ets2panda/test/ast/parser/ets/struct_keywords3.ets index 93de56a5c0..277f095c0b 100644 --- a/ets2panda/test/ast/parser/ets/struct_keywords3.ets +++ b/ets2panda/test/ast/parser/ets/struct_keywords3.ets @@ -83,5 +83,6 @@ struct Second { } -/* @@? 58:1 Error TypeError: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ -/* @@? 71:1 Error TypeError: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ + +/* @@? 58:1 Error Semantic error ESE0364: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ +/* @@? 71:1 Error Semantic error ESE0364: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/struct_with_annotations.ets b/ets2panda/test/ast/parser/ets/struct_with_annotations.ets index 8f03d67f10..c02349c308 100644 --- a/ets2panda/test/ast/parser/ets/struct_with_annotations.ets +++ b/ets2panda/test/ast/parser/ets/struct_with_annotations.ets @@ -31,4 +31,5 @@ struct A { } -/* @@? 28:1 Error TypeError: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ + +/* @@? 28:1 Error Semantic error ESE0364: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/struct_with_component_annotation.ets b/ets2panda/test/ast/parser/ets/struct_with_component_annotation.ets index dadfaf733a..a86871647e 100644 --- a/ets2panda/test/ast/parser/ets/struct_with_component_annotation.ets +++ b/ets2panda/test/ast/parser/ets/struct_with_component_annotation.ets @@ -25,5 +25,6 @@ struct A { } -/* @@? 22:1 Error TypeError: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ -/* @@? 20:2 Error TypeError: Cannot find type 'Component'. */ + +/* @@? 20:2 Error Semantic error ESE0371: Cannot find type 'Component'. */ +/* @@? 22:1 Error Semantic error ESE0364: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/superInConstructor1.ets b/ets2panda/test/ast/parser/ets/superInConstructor1.ets index e1666bd872..da22b21300 100644 --- a/ets2panda/test/ast/parser/ets/superInConstructor1.ets +++ b/ets2panda/test/ast/parser/ets/superInConstructor1.ets @@ -34,4 +34,5 @@ class B extends A { } } -/* @@@ label Error TypeError: Using super is not allowed in constructor */ + +/* @@@ label Error Semantic error ESE0235: Using super is not allowed in constructor */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/superInConstructor2.ets b/ets2panda/test/ast/parser/ets/superInConstructor2.ets index 6afa6f5182..2c287d7ae6 100644 --- a/ets2panda/test/ast/parser/ets/superInConstructor2.ets +++ b/ets2panda/test/ast/parser/ets/superInConstructor2.ets @@ -38,4 +38,5 @@ function alma(param: int) : int { return param; } -/* @@@ label Error TypeError: Using super is not allowed in constructor */ + +/* @@@ label Error Semantic error ESE0235: Using super is not allowed in constructor */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/superInConstructor3.ets b/ets2panda/test/ast/parser/ets/superInConstructor3.ets index 2cbd62e5c4..26ac194816 100644 --- a/ets2panda/test/ast/parser/ets/superInConstructor3.ets +++ b/ets2panda/test/ast/parser/ets/superInConstructor3.ets @@ -44,4 +44,5 @@ function foo(arg : A) { return arg; } -/* @@@ label Error TypeError: Using super is not allowed in constructor */ + +/* @@@ label Error Semantic error ESE0235: Using super is not allowed in constructor */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/superStaticCall.ets b/ets2panda/test/ast/parser/ets/superStaticCall.ets index 119114d65c..282ee995ea 100644 --- a/ets2panda/test/ast/parser/ets/superStaticCall.ets +++ b/ets2panda/test/ast/parser/ets/superStaticCall.ets @@ -30,4 +30,5 @@ function main() : void { x.alma(); } -/* @@@ label Error TypeError: 'korte' is a static property of 'A' */ + +/* @@@ label Error Semantic error ESE0207: 'korte' is a static property of 'A' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/super_field.ets b/ets2panda/test/ast/parser/ets/super_field.ets index 680e8dcaf7..d75834e65a 100644 --- a/ets2panda/test/ast/parser/ets/super_field.ets +++ b/ets2panda/test/ast/parser/ets/super_field.ets @@ -23,4 +23,5 @@ class B extends A { } } -/* @@@ label Error TypeError: Class field 'value' defined by the parent class is not accessible in the child class via super. */ + +/* @@@ label Error Semantic error ESE0377: Class field 'value' defined by the parent class is not accessible in the child class via super. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/switch_alive_2.ets b/ets2panda/test/ast/parser/ets/switch_alive_2.ets index 59a09de8ca..5f4d0c5c17 100644 --- a/ets2panda/test/ast/parser/ets/switch_alive_2.ets +++ b/ets2panda/test/ast/parser/ets/switch_alive_2.ets @@ -24,4 +24,5 @@ function /* @@ label */main(): int { } } -/* @@@ label Error TypeError: Not all code paths return a value. */ + +/* @@@ label Error Semantic error ESE0104: Not all code paths return a value. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/switch_alive_3.ets b/ets2panda/test/ast/parser/ets/switch_alive_3.ets index 8dd956bacc..b356ae1484 100644 --- a/ets2panda/test/ast/parser/ets/switch_alive_3.ets +++ b/ets2panda/test/ast/parser/ets/switch_alive_3.ets @@ -26,4 +26,5 @@ function main(): int { return 0; } -/* @@@ label Warning Warning: Possible fall-through into case */ + +/* @@@ label Warning Warning W0020: Possible fall-through into case */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/switch_const_int_compare_char_duplicate.ets b/ets2panda/test/ast/parser/ets/switch_const_int_compare_char_duplicate.ets index 9cee2e2015..afcccfef13 100644 --- a/ets2panda/test/ast/parser/ets/switch_const_int_compare_char_duplicate.ets +++ b/ets2panda/test/ast/parser/ets/switch_const_int_compare_char_duplicate.ets @@ -26,4 +26,5 @@ function main() { } } -/* @@? 20:28 Error TypeError: Switch case type 'int' is not comparable to discriminant type 'char' */ + +/* @@? 20:28 Error Semantic error ESE0262: Switch case type 'int' is not comparable to discriminant type 'char' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/switch_enum.ets b/ets2panda/test/ast/parser/ets/switch_enum.ets index ecccc8cdae..d541b8f4bc 100644 --- a/ets2panda/test/ast/parser/ets/switch_enum.ets +++ b/ets2panda/test/ast/parser/ets/switch_enum.ets @@ -24,4 +24,5 @@ function main(): void { } } -/* @@@ label Error TypeError: Case duplicate */ + +/* @@@ label Error Semantic error ESE0165: Case duplicate */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/switch_enum2.ets b/ets2panda/test/ast/parser/ets/switch_enum2.ets index 3bb5002d1d..5aa7dd3e7f 100644 --- a/ets2panda/test/ast/parser/ets/switch_enum2.ets +++ b/ets2panda/test/ast/parser/ets/switch_enum2.ets @@ -23,4 +23,5 @@ function main(): void { } } -/* @@@ label Error TypeError: Switch case type 'int' is not comparable to discriminant type 'Color' */ + +/* @@@ label Error Semantic error ESE0262: Switch case type 'int' is not comparable to discriminant type 'Color' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/switch_enum_case_duplicate.ets b/ets2panda/test/ast/parser/ets/switch_enum_case_duplicate.ets index d1638ba35d..5286263081 100644 --- a/ets2panda/test/ast/parser/ets/switch_enum_case_duplicate.ets +++ b/ets2panda/test/ast/parser/ets/switch_enum_case_duplicate.ets @@ -29,4 +29,5 @@ function main() { } } -/* @@@ label Error TypeError: Case duplicate */ + +/* @@@ label Error Semantic error ESE0165: Case duplicate */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/switch_enum_string_case_duplicate.ets b/ets2panda/test/ast/parser/ets/switch_enum_string_case_duplicate.ets index 1c4623761c..e368a11560 100644 --- a/ets2panda/test/ast/parser/ets/switch_enum_string_case_duplicate.ets +++ b/ets2panda/test/ast/parser/ets/switch_enum_string_case_duplicate.ets @@ -24,4 +24,5 @@ function main() { } } -/* @@@ label Error TypeError: Case duplicate */ + +/* @@@ label Error Semantic error ESE0165: Case duplicate */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/switch_invalid.ets b/ets2panda/test/ast/parser/ets/switch_invalid.ets index 7c72bea595..462a240de9 100644 --- a/ets2panda/test/ast/parser/ets/switch_invalid.ets +++ b/ets2panda/test/ast/parser/ets/switch_invalid.ets @@ -16,52 +16,53 @@ switch:[11](q): [12]{: [13]case: [14]1:: [15]{: [16]q: [17] +=: [18]2;: [38]try: [39]{: [40]s: [41] +=: [42]"cba";: [43]q: [44] +=: [45]5;: [46]throw: [98] -/* @@? 16:7 Error SyntaxError: Unexpected token ':'. */ -/* @@? 16:7 Error SyntaxError: Expected '(', got ':'. */ -/* @@? 16:7 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@? 16:7 Error TypeError: Incompatible types. Found: *ERROR_TYPE*, required: char , byte , short , int, long , Char , Byte , Short , Int, Long , String or an enum type */ -/* @@? 16:15 Error SyntaxError: Expected '{', got ':'. */ -/* @@? 16:15 Error SyntaxError: Expected ')', got ':'. */ -/* @@? 16:15 Error SyntaxError: Unexpected token ':', expected 'case' or 'default'. */ -/* @@? 16:21 Error SyntaxError: Unexpected token '{'. */ -/* @@? 16:22 Error SyntaxError: Unexpected token ':'. */ -/* @@? 16:22 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@? 16:28 Error SyntaxError: Unexpected token 'case'. */ -/* @@? 16:32 Error SyntaxError: Unexpected token ':'. */ -/* @@? 16:32 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@? 16:38 Error SyntaxError: Unexpected token '1'. */ -/* @@? 16:39 Error SyntaxError: Unexpected token ':'. */ -/* @@? 16:40 Error SyntaxError: Unexpected token ':'. */ -/* @@? 16:40 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@? 16:46 Error SyntaxError: Unexpected token '{'. */ -/* @@? 16:47 Error SyntaxError: Unexpected token ':'. */ -/* @@? 16:47 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@? 16:53 Error SyntaxError: Unexpected token 'q'. */ -/* @@? 16:56 Error SyntaxError: Label must be followed by a loop statement. */ -/* @@? 16:56 Error TypeError: Invalid left-hand side of assignment expression */ -/* @@? 16:61 Error SyntaxError: Invalid left-hand side in assignment expression. */ -/* @@? 16:63 Error SyntaxError: Unexpected token ':'. */ -/* @@? 16:69 Error SyntaxError: Unexpected token '2'. */ -/* @@? 16:71 Error SyntaxError: Unexpected token ':'. */ -/* @@? 16:71 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@? 17:5 Error SyntaxError: Unexpected token 'try'. */ -/* @@? 17:5 Error SyntaxError: A try statement should contain either finally clause or at least one catch clause. */ -/* @@? 17:8 Error SyntaxError: Expected '{', got ':'. */ -/* @@? 17:8 Error SyntaxError: Unexpected token ':'. */ -/* @@? 17:14 Error SyntaxError: Unexpected token '{'. */ -/* @@? 17:15 Error SyntaxError: Unexpected token ':'. */ -/* @@? 17:21 Error SyntaxError: Unexpected token 's'. */ -/* @@? 17:24 Error SyntaxError: Label must be followed by a loop statement. */ -/* @@? 17:29 Error SyntaxError: Invalid left-hand side in assignment expression. */ -/* @@? 17:31 Error SyntaxError: Unexpected token ':'. */ -/* @@? 17:37 Error SyntaxError: Unexpected token 'cba'. */ -/* @@? 17:43 Error SyntaxError: Unexpected token ':'. */ -/* @@? 17:49 Error SyntaxError: Unexpected token 'q'. */ -/* @@? 17:52 Error SyntaxError: Label must be followed by a loop statement. */ -/* @@? 17:57 Error SyntaxError: Invalid left-hand side in assignment expression. */ -/* @@? 17:59 Error SyntaxError: Unexpected token ':'. */ -/* @@? 17:65 Error SyntaxError: Unexpected token '5'. */ -/* @@? 17:67 Error SyntaxError: Unexpected token ':'. */ -/* @@? 17:73 Error SyntaxError: Unexpected token 'throw'. */ -/* @@? 17:78 Error SyntaxError: Unexpected token ':'. */ -/* @@? 68:1 Error SyntaxError: Expected '}', got 'end of stream'. */ + +/* @@? 16:7 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 16:7 Error Syntax error ESY0230: Expected '(', got ':'. */ +/* @@? 16:7 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 16:7 Error Semantic error ESE0162: Incompatible types. Found: *ERROR_TYPE*, required: char , byte , short , int, long , Char , Byte , Short , Int, Long , String or an enum type */ +/* @@? 16:15 Error Syntax error ESY0230: Expected '{', got ':'. */ +/* @@? 16:15 Error Syntax error ESY0230: Expected ')', got ':'. */ +/* @@? 16:15 Error Syntax error ESY0231: Unexpected token ':', expected 'case' or 'default'. */ +/* @@? 16:21 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 16:22 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 16:22 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 16:28 Error Syntax error ESY0227: Unexpected token 'case'. */ +/* @@? 16:32 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 16:32 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 16:38 Error Syntax error ESY0227: Unexpected token '1'. */ +/* @@? 16:39 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 16:40 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 16:40 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 16:46 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 16:47 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 16:47 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 16:53 Error Syntax error ESY0227: Unexpected token 'q'. */ +/* @@? 16:56 Error Syntax error ESY0038: Label must be followed by a loop statement. */ +/* @@? 16:56 Error Semantic error ESE0025: Invalid left-hand side of assignment expression */ +/* @@? 16:61 Error Syntax error ESY0072: Invalid left-hand side in assignment expression. */ +/* @@? 16:63 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 16:69 Error Syntax error ESY0227: Unexpected token '2'. */ +/* @@? 16:71 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 16:71 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 17:5 Error Syntax error ESY0227: Unexpected token 'try'. */ +/* @@? 17:5 Error Syntax error ESY0039: A try statement should contain either finally clause or at least one catch clause. */ +/* @@? 17:8 Error Syntax error ESY0230: Expected '{', got ':'. */ +/* @@? 17:8 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 17:14 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 17:15 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 17:21 Error Syntax error ESY0227: Unexpected token 's'. */ +/* @@? 17:24 Error Syntax error ESY0038: Label must be followed by a loop statement. */ +/* @@? 17:29 Error Syntax error ESY0072: Invalid left-hand side in assignment expression. */ +/* @@? 17:31 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 17:37 Error Syntax error ESY0227: Unexpected token 'cba'. */ +/* @@? 17:43 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 17:49 Error Syntax error ESY0227: Unexpected token 'q'. */ +/* @@? 17:52 Error Syntax error ESY0038: Label must be followed by a loop statement. */ +/* @@? 17:57 Error Syntax error ESY0072: Invalid left-hand side in assignment expression. */ +/* @@? 17:59 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 17:65 Error Syntax error ESY0227: Unexpected token '5'. */ +/* @@? 17:67 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 17:73 Error Syntax error ESY0227: Unexpected token 'throw'. */ +/* @@? 17:78 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 68:79 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/switch_num_compare_char_duplicate.ets b/ets2panda/test/ast/parser/ets/switch_num_compare_char_duplicate.ets index ddfc786ecb..643ea3a951 100644 --- a/ets2panda/test/ast/parser/ets/switch_num_compare_char_duplicate.ets +++ b/ets2panda/test/ast/parser/ets/switch_num_compare_char_duplicate.ets @@ -23,4 +23,4 @@ function main() { } } -/* @@@ label Error TypeError: Case duplicate */ + diff --git a/ets2panda/test/ast/parser/ets/switch_readonly_member_different_enum.ets b/ets2panda/test/ast/parser/ets/switch_readonly_member_different_enum.ets index 7cc78ce5c9..c7a7327bf4 100644 --- a/ets2panda/test/ast/parser/ets/switch_readonly_member_different_enum.ets +++ b/ets2panda/test/ast/parser/ets/switch_readonly_member_different_enum.ets @@ -40,7 +40,8 @@ function main() { } } -/* @@@ label Error TypeError: Switch case type 'A' is not comparable to discriminant type 'E' */ -/* @@@ label Error TypeError: Enum switch case must be unqualified name of an enum constant */ -/* @@@ label1 Error TypeError: Switch case type 'A' is not comparable to discriminant type 'E' */ -/* @@@ label1 Error TypeError: Enum switch case must be unqualified name of an enum constant */ + +/* @@@ label Error Semantic error ESE0262: Switch case type 'A' is not comparable to discriminant type 'E' */ +/* @@@ label Error Semantic error ESE0334: Enum switch case must be unqualified name of an enum constant */ +/* @@@ label1 Error Semantic error ESE0262: Switch case type 'A' is not comparable to discriminant type 'E' */ +/* @@@ label1 Error Semantic error ESE0334: Enum switch case must be unqualified name of an enum constant */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/switch_readonly_member_different_enum_2.ets b/ets2panda/test/ast/parser/ets/switch_readonly_member_different_enum_2.ets index 8c9b63d463..3d01174876 100644 --- a/ets2panda/test/ast/parser/ets/switch_readonly_member_different_enum_2.ets +++ b/ets2panda/test/ast/parser/ets/switch_readonly_member_different_enum_2.ets @@ -39,4 +39,7 @@ function main() { } } -/* @@@ label Error TypeError: Switch case type 'A' is not comparable to discriminant type 'E' */ + +/* @@@ label Error Semantic error ESE0262: Switch case type 'A' is not comparable to discriminant type 'E' */ +/* @@@ label Error Semantic error ESE0334: Enum switch case must be unqualified name of an enum constant */ +/* @@? 36:14 Error Semantic error ESE0334: Enum switch case must be unqualified name of an enum constant */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/switch_readonly_member_enum.ets b/ets2panda/test/ast/parser/ets/switch_readonly_member_enum.ets index e39201f362..8e88d3892b 100644 --- a/ets2panda/test/ast/parser/ets/switch_readonly_member_enum.ets +++ b/ets2panda/test/ast/parser/ets/switch_readonly_member_enum.ets @@ -41,5 +41,6 @@ function main() { } -/* @@@ label Error TypeError: Enum switch case must be unqualified name of an enum constant */ -/* @@@ label1 Error TypeError: Enum switch case must be unqualified name of an enum constant */ + +/* @@@ label Error Semantic error ESE0334: Enum switch case must be unqualified name of an enum constant */ +/* @@@ label1 Error Semantic error ESE0334: Enum switch case must be unqualified name of an enum constant */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/switch_readonly_member_enum_duplicate.ets b/ets2panda/test/ast/parser/ets/switch_readonly_member_enum_duplicate.ets index 7ca94b555b..5e0acac324 100644 --- a/ets2panda/test/ast/parser/ets/switch_readonly_member_enum_duplicate.ets +++ b/ets2panda/test/ast/parser/ets/switch_readonly_member_enum_duplicate.ets @@ -40,5 +40,6 @@ function main() { } } -/* @@@ label Error TypeError: Enum switch case must be unqualified name of an enum constant */ -/* @@@ label1 Error TypeError: Enum switch case must be unqualified name of an enum constant */ + +/* @@@ label Error Semantic error ESE0334: Enum switch case must be unqualified name of an enum constant */ +/* @@@ label1 Error Semantic error ESE0334: Enum switch case must be unqualified name of an enum constant */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/switch_readonly_member_number_duplicate.ets b/ets2panda/test/ast/parser/ets/switch_readonly_member_number_duplicate.ets index 74b1b4f4a6..600a1d34fd 100644 --- a/ets2panda/test/ast/parser/ets/switch_readonly_member_number_duplicate.ets +++ b/ets2panda/test/ast/parser/ets/switch_readonly_member_number_duplicate.ets @@ -32,4 +32,5 @@ function main() { } } -/* @@? 27:28 Error TypeError: Switch case type 'int' is not comparable to discriminant type 'char' */ + +/* @@? 27:28 Error Semantic error ESE0262: Switch case type 'int' is not comparable to discriminant type 'char' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/swtich_not_const.ets b/ets2panda/test/ast/parser/ets/swtich_not_const.ets index e01c4e2474..5f2c58281a 100644 --- a/ets2panda/test/ast/parser/ets/swtich_not_const.ets +++ b/ets2panda/test/ast/parser/ets/swtich_not_const.ets @@ -24,4 +24,5 @@ function main() { } } -/* @@@ label Error TypeError: Constant expression required */ + +/* @@@ label Error Semantic error ESE0163: Constant expression required */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/test_type_alias1.ets b/ets2panda/test/ast/parser/ets/test_type_alias1.ets index e1f3d4cf4f..e731491476 100644 --- a/ets2panda/test/ast/parser/ets/test_type_alias1.ets +++ b/ets2panda/test/ast/parser/ets/test_type_alias1.ets @@ -15,7 +15,8 @@ type 5 = number; -/* @@? 16:1 Error TypeError: Unresolved reference type */ -/* @@? 16:6 Error SyntaxError: Unexpected token '5'. */ -/* @@? 16:6 Error TypeError: Invalid left-hand side of assignment expression */ -/* @@? 16:8 Error SyntaxError: Invalid left-hand side in assignment expression. */ + +/* @@? 16:1 Error Semantic error ESE0143: Unresolved reference type */ +/* @@? 16:6 Error Syntax error ESY0227: Unexpected token '5'. */ +/* @@? 16:6 Error Semantic error ESE0025: Invalid left-hand side of assignment expression */ +/* @@? 16:8 Error Syntax error ESY0072: Invalid left-hand side in assignment expression. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/test_type_alias10.ets b/ets2panda/test/ast/parser/ets/test_type_alias10.ets index 79ed9bd2d0..47934fdd8d 100644 --- a/ets2panda/test/ast/parser/ets/test_type_alias10.ets +++ b/ets2panda/test/ast/parser/ets/test_type_alias10.ets @@ -16,4 +16,5 @@ type firstType = secondType; /* @@ label */type secondType = firstType; -/* @@@ label Error TypeError: Circular type alias reference */ + +/* @@@ label Error Semantic error ESE0311: Circular type alias reference */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/test_type_alias2.ets b/ets2panda/test/ast/parser/ets/test_type_alias2.ets index 7a71e94ce3..0d360f600c 100644 --- a/ets2panda/test/ast/parser/ets/test_type_alias2.ets +++ b/ets2panda/test/ast/parser/ets/test_type_alias2.ets @@ -15,4 +15,5 @@ type bar /* @@ label */number; -/* @@@ label Error SyntaxError: Expected '=', got 'identification literal'. */ + +/* @@@ label Error Syntax error ESY0230: Expected '=', got 'identification literal'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/test_type_alias3.ets b/ets2panda/test/ast/parser/ets/test_type_alias3.ets index 3ff4cbb38c..7673a293a1 100644 --- a/ets2panda/test/ast/parser/ets/test_type_alias3.ets +++ b/ets2panda/test/ast/parser/ets/test_type_alias3.ets @@ -15,4 +15,5 @@ type foo = /* @@ label */; -/* @@@ label Error SyntaxError: Invalid Type. */ + +/* @@@ label Error Syntax error ESY0138: Invalid Type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/test_type_alias4.ets b/ets2panda/test/ast/parser/ets/test_type_alias4.ets index d7fc3f50d8..8b41fddf55 100644 --- a/ets2panda/test/ast/parser/ets/test_type_alias4.ets +++ b/ets2panda/test/ast/parser/ets/test_type_alias4.ets @@ -16,4 +16,5 @@ type x = int; type /* @@ label */x = double; -/* @@@ label Error TypeError: Variable 'x' has already been declared. */ + +/* @@@ label Error Semantic error ESE0351: Variable 'x' has already been declared. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/thisInConstructor.ets b/ets2panda/test/ast/parser/ets/thisInConstructor.ets index 652a510e20..7c4cf81a43 100644 --- a/ets2panda/test/ast/parser/ets/thisInConstructor.ets +++ b/ets2panda/test/ast/parser/ets/thisInConstructor.ets @@ -30,4 +30,5 @@ class B extends A { } } -/* @@@ label Error TypeError: Using this is not allowed in constructor */ + +/* @@@ label Error Semantic error ESE0235: Using this is not allowed in constructor */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/this_type_class_field_invalid.ets b/ets2panda/test/ast/parser/ets/this_type_class_field_invalid.ets index 6561a2551f..61feecced1 100644 --- a/ets2panda/test/ast/parser/ets/this_type_class_field_invalid.ets +++ b/ets2panda/test/ast/parser/ets/this_type_class_field_invalid.ets @@ -18,4 +18,5 @@ class A { attr_a: /* @@ label */this; } -/* @@@ label Error SyntaxError: A 'this' type is available only as return type in a non-static method of a class or struct and extension functions. */ + +/* @@@ label Error Syntax error ESY0044: A 'this' type is available only as return type in a non-static method of a class or struct and extension functions. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/this_type_class_method_parameter_invalid.ets b/ets2panda/test/ast/parser/ets/this_type_class_method_parameter_invalid.ets index ed587076e6..ed9512bcbf 100644 --- a/ets2panda/test/ast/parser/ets/this_type_class_method_parameter_invalid.ets +++ b/ets2panda/test/ast/parser/ets/this_type_class_method_parameter_invalid.ets @@ -17,4 +17,5 @@ class A { foo(arg1: int, arg2: /* @@ label */this) {} } -/* @@@ label Error SyntaxError: A 'this' type is available only as return type in a non-static method of a class or struct and extension functions. */ + +/* @@@ label Error Syntax error ESY0044: A 'this' type is available only as return type in a non-static method of a class or struct and extension functions. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/this_type_class_static_method_parameter_invalid.ets b/ets2panda/test/ast/parser/ets/this_type_class_static_method_parameter_invalid.ets index 8eed4266ad..445ad1b31e 100644 --- a/ets2panda/test/ast/parser/ets/this_type_class_static_method_parameter_invalid.ets +++ b/ets2panda/test/ast/parser/ets/this_type_class_static_method_parameter_invalid.ets @@ -17,4 +17,5 @@ class A { static foo(arg1: int, arg2: /* @@ label */this) {} } -/* @@@ label Error SyntaxError: A 'this' type is available only as return type in a non-static method of a class or struct and extension functions. */ + +/* @@@ label Error Syntax error ESY0044: A 'this' type is available only as return type in a non-static method of a class or struct and extension functions. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/this_type_class_static_method_return_invalid.ets b/ets2panda/test/ast/parser/ets/this_type_class_static_method_return_invalid.ets index 0dceb8d82a..f8026ddb81 100644 --- a/ets2panda/test/ast/parser/ets/this_type_class_static_method_return_invalid.ets +++ b/ets2panda/test/ast/parser/ets/this_type_class_static_method_return_invalid.ets @@ -17,5 +17,6 @@ class A { static foo(arg1: int, arg2: /* @@ label */this) { return this; } } -/* @@@ label Error SyntaxError: A 'this' type is available only as return type in a non-static method of a class or struct and extension functions. */ -/* @@? 17:62 Error TypeError: 'this' cannot be referenced from a static context */ + +/* @@@ label Error Syntax error ESY0044: A 'this' type is available only as return type in a non-static method of a class or struct and extension functions. */ +/* @@? 17:62 Error Semantic error ESE0202: 'this' cannot be referenced from a static context */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/this_type_function_parameter_invalid.ets b/ets2panda/test/ast/parser/ets/this_type_function_parameter_invalid.ets index 5333744910..f6c56f9c30 100644 --- a/ets2panda/test/ast/parser/ets/this_type_function_parameter_invalid.ets +++ b/ets2panda/test/ast/parser/ets/this_type_function_parameter_invalid.ets @@ -15,4 +15,5 @@ function foo(arg1: int, arg2: /* @@ label */this) {} -/* @@@ label Error SyntaxError: A 'this' type is available only as return type in a non-static method of a class or struct and extension functions. */ + +/* @@@ label Error Syntax error ESY0044: A 'this' type is available only as return type in a non-static method of a class or struct and extension functions. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/this_type_function_return_invalid.ets b/ets2panda/test/ast/parser/ets/this_type_function_return_invalid.ets index 549cfdf8be..2e7ba01ddf 100644 --- a/ets2panda/test/ast/parser/ets/this_type_function_return_invalid.ets +++ b/ets2panda/test/ast/parser/ets/this_type_function_return_invalid.ets @@ -15,6 +15,7 @@ function foo(arg1: int): /* @@ label */this { return this; } -/* @@@ label Error SyntaxError: A 'this' type is available only as return type in a non-static method of a class or struct and extension functions. */ -/* @@? 16:54 Error TypeError: Cannot reference 'this' in this context. */ -/* @@? 16:54 Error TypeError: Type 'Error' is not compatible with the enclosing method's return type 'ETSGLOBAL' */ + +/* @@@ label Error Syntax error ESY0044: A 'this' type is available only as return type in a non-static method of a class or struct and extension functions. */ +/* @@? 16:54 Error Semantic error ESE0203: Cannot reference 'this' in this context. */ +/* @@? 16:54 Error Semantic error ESE0091: Type 'Error' is not compatible with the enclosing method's return type 'ETSGLOBAL' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/this_type_instanceof_invalid.ets b/ets2panda/test/ast/parser/ets/this_type_instanceof_invalid.ets index 0b96d94e59..edad9e5e90 100644 --- a/ets2panda/test/ast/parser/ets/this_type_instanceof_invalid.ets +++ b/ets2panda/test/ast/parser/ets/this_type_instanceof_invalid.ets @@ -61,14 +61,15 @@ class C { } } -/* @@? 20:28 Error SyntaxError: Invalid right-hand side in 'instanceof' expression. */ -/* @@? 36:22 Error SyntaxError: Invalid right-hand side in 'instanceof' expression. */ -/* @@? 43:22 Error SyntaxError: Invalid right-hand side in 'instanceof' expression. */ -/* @@? 50:27 Error SyntaxError: Invalid right-hand side in 'instanceof' expression. */ -/* @@? 50:31 Error SyntaxError: Expected ')', got '.'. */ -/* @@? 50:31 Error SyntaxError: Unexpected token '.'. */ -/* @@? 50:32 Error SyntaxError: Unexpected token 'b'. */ -/* @@? 50:32 Error TypeError: Property 'b' must be accessed through 'this' */ -/* @@? 50:33 Error SyntaxError: Unexpected token ')'. */ -/* @@? 50:35 Error SyntaxError: Unexpected token '{'. */ -/* @@? 57:22 Error SyntaxError: Invalid right-hand side in 'instanceof' expression. */ + +/* @@? 20:28 Error Syntax error ESY0130: Invalid right-hand side in 'instanceof' expression. */ +/* @@? 36:22 Error Syntax error ESY0130: Invalid right-hand side in 'instanceof' expression. */ +/* @@? 43:22 Error Syntax error ESY0130: Invalid right-hand side in 'instanceof' expression. */ +/* @@? 50:27 Error Syntax error ESY0130: Invalid right-hand side in 'instanceof' expression. */ +/* @@? 50:31 Error Syntax error ESY0230: Expected ')', got '.'. */ +/* @@? 50:31 Error Syntax error ESY0227: Unexpected token '.'. */ +/* @@? 50:32 Error Syntax error ESY0227: Unexpected token 'b'. */ +/* @@? 50:32 Error Semantic error ESE0145: Property 'b' must be accessed through 'this' */ +/* @@? 50:33 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 50:35 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 57:22 Error Syntax error ESY0130: Invalid right-hand side in 'instanceof' expression. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/this_type_lambda_declaration_parameter_in_class_invalid.ets b/ets2panda/test/ast/parser/ets/this_type_lambda_declaration_parameter_in_class_invalid.ets index f59ba4f21a..c163824446 100644 --- a/ets2panda/test/ast/parser/ets/this_type_lambda_declaration_parameter_in_class_invalid.ets +++ b/ets2panda/test/ast/parser/ets/this_type_lambda_declaration_parameter_in_class_invalid.ets @@ -19,4 +19,5 @@ class A { } } -/* @@@ label Error SyntaxError: A 'this' type is available only as return type in a non-static method of a class or struct and extension functions. */ + +/* @@@ label Error Syntax error ESY0044: A 'this' type is available only as return type in a non-static method of a class or struct and extension functions. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/this_type_lambda_declaration_parameter_invalid.ets b/ets2panda/test/ast/parser/ets/this_type_lambda_declaration_parameter_invalid.ets index 7de38bf162..c5373305b1 100644 --- a/ets2panda/test/ast/parser/ets/this_type_lambda_declaration_parameter_invalid.ets +++ b/ets2panda/test/ast/parser/ets/this_type_lambda_declaration_parameter_invalid.ets @@ -15,4 +15,5 @@ let x: (i: int, t: /* @@ label */this) => number; -/* @@@ label Error SyntaxError: A 'this' type is available only as return type in a non-static method of a class or struct and extension functions. */ + +/* @@@ label Error Syntax error ESY0044: A 'this' type is available only as return type in a non-static method of a class or struct and extension functions. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/this_type_lambda_declaration_return_in_class_invalid.ets b/ets2panda/test/ast/parser/ets/this_type_lambda_declaration_return_in_class_invalid.ets index e8996e7b02..703f084c98 100644 --- a/ets2panda/test/ast/parser/ets/this_type_lambda_declaration_return_in_class_invalid.ets +++ b/ets2panda/test/ast/parser/ets/this_type_lambda_declaration_return_in_class_invalid.ets @@ -19,4 +19,5 @@ class A { } } -/* @@@ label Error SyntaxError: A 'this' type is available only as return type in a non-static method of a class or struct and extension functions. */ + +/* @@@ label Error Syntax error ESY0044: A 'this' type is available only as return type in a non-static method of a class or struct and extension functions. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/this_type_lambda_declaration_return_invalid.ets b/ets2panda/test/ast/parser/ets/this_type_lambda_declaration_return_invalid.ets index a4f3d14935..1d1e2f5864 100644 --- a/ets2panda/test/ast/parser/ets/this_type_lambda_declaration_return_invalid.ets +++ b/ets2panda/test/ast/parser/ets/this_type_lambda_declaration_return_invalid.ets @@ -15,4 +15,5 @@ let x: (i: int, n: number) => /* @@ label */this; -/* @@@ label Error SyntaxError: A 'this' type is available only as return type in a non-static method of a class or struct and extension functions. */ + +/* @@@ label Error Syntax error ESY0044: A 'this' type is available only as return type in a non-static method of a class or struct and extension functions. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/this_type_lambda_definition_parameter_in_class_invalid.ets b/ets2panda/test/ast/parser/ets/this_type_lambda_definition_parameter_in_class_invalid.ets index 018061ac84..01319e45b3 100644 --- a/ets2panda/test/ast/parser/ets/this_type_lambda_definition_parameter_in_class_invalid.ets +++ b/ets2panda/test/ast/parser/ets/this_type_lambda_definition_parameter_in_class_invalid.ets @@ -20,4 +20,5 @@ class A { } } -/* @@@ label Error SyntaxError: A 'this' type is available only as return type in a non-static method of a class or struct and extension functions. */ + +/* @@@ label Error Syntax error ESY0044: A 'this' type is available only as return type in a non-static method of a class or struct and extension functions. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/this_type_lambda_definition_parameter_invalid.ets b/ets2panda/test/ast/parser/ets/this_type_lambda_definition_parameter_invalid.ets index 06872469f6..3208549aca 100644 --- a/ets2panda/test/ast/parser/ets/this_type_lambda_definition_parameter_invalid.ets +++ b/ets2panda/test/ast/parser/ets/this_type_lambda_definition_parameter_invalid.ets @@ -18,5 +18,5 @@ class A {} let x: (i: int, a: A) => number; x = (i: int, t: /* @@ label */this): number => { return 2.0; }; -/* @@@ label Error SyntaxError: A 'this' type is available only as return type in a non-static method of a class or struct and extension functions. */ -/* @@? 19:5 Error TypeError: Type '(p1: int, p2: ETSGLOBAL) => double' cannot be assigned to type '(p1: Int, p2: A) => Double' */ +/* @@? 19:5 Error Semantic error ESE0318: Type '(p1: Int, p2: ETSGLOBAL) => Double' cannot be assigned to type '(p1: Int, p2: A) => Double' */ +/* @@@ label Error Syntax error ESY0044: A 'this' type is available only as return type in a non-static method of a class or struct and extension functions. */ diff --git a/ets2panda/test/ast/parser/ets/this_type_lambda_definition_return_in_class_invalid.ets b/ets2panda/test/ast/parser/ets/this_type_lambda_definition_return_in_class_invalid.ets index aa1727e920..d09f3a6960 100644 --- a/ets2panda/test/ast/parser/ets/this_type_lambda_definition_return_in_class_invalid.ets +++ b/ets2panda/test/ast/parser/ets/this_type_lambda_definition_return_in_class_invalid.ets @@ -20,4 +20,5 @@ class A { } } -/* @@@ label Error SyntaxError: A 'this' type is available only as return type in a non-static method of a class or struct and extension functions. */ + +/* @@@ label Error Syntax error ESY0044: A 'this' type is available only as return type in a non-static method of a class or struct and extension functions. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/this_type_lambda_definition_return_invalid.ets b/ets2panda/test/ast/parser/ets/this_type_lambda_definition_return_invalid.ets index 0a3e1ee4c9..de9226e175 100644 --- a/ets2panda/test/ast/parser/ets/this_type_lambda_definition_return_invalid.ets +++ b/ets2panda/test/ast/parser/ets/this_type_lambda_definition_return_invalid.ets @@ -18,6 +18,6 @@ class A {} let x: (i: int, n: number) => A; x = (i: int, n: number): /* @@ label */this => { return new A(); }; -/* @@? 19:5 Error TypeError: Type '(p1: int, p2: double) => ETSGLOBAL' cannot be assigned to type '(p1: Int, p2: Double) => A' */ -/* @@@ label Error SyntaxError: A 'this' type is available only as return type in a non-static method of a class or struct and extension functions. */ -/* @@? 19:50 Error TypeError: Only extension function or a class method can return 'this' */ +/* @@? 19:5 Error Semantic error ESE0318: Type '(p1: Int, p2: Double) => ETSGLOBAL' cannot be assigned to type '(p1: Int, p2: Double) => A' */ +/* @@@ label Error Syntax error ESY0044: A 'this' type is available only as return type in a non-static method of a class or struct and extension functions. */ +/* @@? 19:50 Error Semantic error ESE0031: Only extension function or a class method can return 'this' */ diff --git a/ets2panda/test/ast/parser/ets/topLevelStaticClass.ets b/ets2panda/test/ast/parser/ets/topLevelStaticClass.ets index 34985816d1..bc88292e59 100644 --- a/ets2panda/test/ast/parser/ets/topLevelStaticClass.ets +++ b/ets2panda/test/ast/parser/ets/topLevelStaticClass.ets @@ -17,4 +17,5 @@ } -/* @@@ label Error SyntaxError: Unexpected token 'static'. */ + +/* @@@ label Error Syntax error ESY0227: Unexpected token 'static'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/trailing_comma_1.ets b/ets2panda/test/ast/parser/ets/trailing_comma_1.ets index 3bc32586c9..80c0f0ecb3 100644 --- a/ets2panda/test/ast/parser/ets/trailing_comma_1.ets +++ b/ets2panda/test/ast/parser/ets/trailing_comma_1.ets @@ -35,35 +35,36 @@ foo(,a[0]) foo(a[0] a[1]) foo(,) -/* @@? 16:30 Error SyntaxError: Rest parameter must be the last formal parameter. */ -/* @@? 24:15 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 24:15 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ -/* @@? 28:12 Error SyntaxError: Unexpected token ','. */ -/* @@? 28:14 Error SyntaxError: Unexpected token, expected ',' or ']'. */ -/* @@? 28:14 Error SyntaxError: Unexpected token '2'. */ -/* @@? 28:15 Error SyntaxError: Unexpected token ','. */ -/* @@? 28:16 Error SyntaxError: Unexpected token ']'. */ -/* @@? 30:5 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@? 31:1 Error TypeError: No matching call signature for foo(a[0], a[1], ...a) */ -/* @@? 31:5 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@? 31:11 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@? 31:17 Error TypeError: Spread argument for the rest parameter can be only one. */ -/* @@? 32:5 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@? 32:10 Error SyntaxError: Unexpected token ','. */ -/* @@? 32:11 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 32:11 Error SyntaxError: Unexpected token 'a'. */ -/* @@? 32:11 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@? 32:15 Error SyntaxError: Unexpected token ')'. */ -/* @@? 33:5 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@? 33:10 Error SyntaxError: Unexpected token ','. */ -/* @@? 34:5 Error SyntaxError: Unexpected token ','. */ -/* @@? 34:6 Error SyntaxError: Unexpected token 'a'. */ -/* @@? 34:6 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 34:6 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@? 34:10 Error SyntaxError: Unexpected token ')'. */ -/* @@? 35:5 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@? 35:10 Error SyntaxError: Unexpected token 'a'. */ -/* @@? 35:10 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 35:10 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@? 35:14 Error SyntaxError: Unexpected token ')'. */ -/* @@? 36:5 Error SyntaxError: Unexpected token ','. */ + +/* @@? 16:30 Error Syntax error ESY0067: Rest parameter must be the last formal parameter. */ +/* @@? 24:15 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 24:15 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ +/* @@? 28:12 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 28:14 Error Syntax error ESY0229: Unexpected token, expected ',' or ']'. */ +/* @@? 28:14 Error Syntax error ESY0227: Unexpected token '2'. */ +/* @@? 28:15 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 28:16 Error Syntax error ESY0227: Unexpected token ']'. */ +/* @@? 30:5 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 31:1 Error Semantic error ESE0127: No matching call signature for foo(a[0], a[1], ...a) */ +/* @@? 31:5 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 31:11 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 31:17 Error Semantic error ESE0123: Spread argument for the rest parameter can be only one. */ +/* @@? 32:5 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 32:10 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 32:11 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 32:11 Error Syntax error ESY0227: Unexpected token 'a'. */ +/* @@? 32:11 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 32:15 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 33:5 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 33:10 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 34:5 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 34:6 Error Syntax error ESY0227: Unexpected token 'a'. */ +/* @@? 34:6 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 34:6 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 34:10 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 35:5 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 35:10 Error Syntax error ESY0227: Unexpected token 'a'. */ +/* @@? 35:10 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 35:10 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 35:14 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 36:5 Error Syntax error ESY0227: Unexpected token ','. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/trailing_comma_2.ets b/ets2panda/test/ast/parser/ets/trailing_comma_2.ets index d2ec51613e..7b58bd2dcb 100644 --- a/ets2panda/test/ast/parser/ets/trailing_comma_2.ets +++ b/ets2panda/test/ast/parser/ets/trailing_comma_2.ets @@ -19,8 +19,9 @@ class C { let a = new C(12,) -/* @@@ label1 Error SyntaxError: Unexpected token ','. */ -/* @@? 20:9 Error TypeError: Expected 0 arguments, got 1. */ -/* @@? 20:9 Error TypeError: No matching construct signature for trailing_comma_2.C(Int) */ -/* @@? 20:9 Error TypeError: Expected 0 arguments, got 1. */ -/* @@? 20:9 Error TypeError: No matching construct signature for trailing_comma_2.C(Int) */ + +/* @@@ label1 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 20:9 Error Semantic error ESE0124: Expected 0 arguments, got 1. */ +/* @@? 20:9 Error Semantic error ESE0127: No matching construct signature for trailing_comma_2.C(Int) */ +/* @@? 20:9 Error Semantic error ESE0124: Expected 0 arguments, got 1. */ +/* @@? 20:9 Error Semantic error ESE0127: No matching construct signature for trailing_comma_2.C(Int) */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/trailing_lambda_tests/double_trailing_lambda_1.ets b/ets2panda/test/ast/parser/ets/trailing_lambda_tests/double_trailing_lambda_1.ets index 74e47ee4f4..20d3eee225 100644 --- a/ets2panda/test/ast/parser/ets/trailing_lambda_tests/double_trailing_lambda_1.ets +++ b/ets2panda/test/ast/parser/ets/trailing_lambda_tests/double_trailing_lambda_1.ets @@ -17,4 +17,4 @@ function foo(a?:number, b?:()=>void, c?:()=>void){} foo(){}{} -/* @@? 18:8 Error SyntaxError: Unexpected token '{'. */ \ No newline at end of file +/* @@? 18:8 Error Syntax error ESY0227: Unexpected token '{'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/trailing_lambda_tests/empty_vs_nonempty_lambda.ets b/ets2panda/test/ast/parser/ets/trailing_lambda_tests/empty_vs_nonempty_lambda.ets index f7270078e3..87914a1847 100644 --- a/ets2panda/test/ast/parser/ets/trailing_lambda_tests/empty_vs_nonempty_lambda.ets +++ b/ets2panda/test/ast/parser/ets/trailing_lambda_tests/empty_vs_nonempty_lambda.ets @@ -42,5 +42,5 @@ function testEmptyLambda() { }; } -/* @@? 40:5 Error TypeError: Expected 2 arguments, got 1. */ -/* @@? 40:5 Error TypeError: No matching call signature for check("test") */ \ No newline at end of file +/* @@? 40:5 Error Semantic error ESE0124: Expected 2 arguments, got 1. */ +/* @@? 40:5 Error Semantic error ESE0127: No matching call signature for check("test") */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/trailing_lambda_tests/extra_trailing_lambda_1.ets b/ets2panda/test/ast/parser/ets/trailing_lambda_tests/extra_trailing_lambda_1.ets index f4f17bf1dd..e86ea84ec3 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,7 @@ 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 */ \ No newline at end of file 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..7c825c804d 100644 --- a/ets2panda/test/ast/parser/ets/trailing_lambda_tests/extra_trailing_lambda_2.ets +++ b/ets2panda/test/ast/parser/ets/trailing_lambda_tests/extra_trailing_lambda_2.ets @@ -34,4 +34,5 @@ function testExtraTrailing() { }; } -/* @@? 32:5 Error TypeError: No matching call signature with trailing lambda */ + +/* @@? 32:5 Error Semantic error ESE0140: No matching call signature with trailing lambda */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/trailing_lambda_tests/invalid_rest_param_for_await.ets b/ets2panda/test/ast/parser/ets/trailing_lambda_tests/invalid_rest_param_for_await.ets index d027186f56..74176ef90e 100644 --- a/ets2panda/test/ast/parser/ets/trailing_lambda_tests/invalid_rest_param_for_await.ets +++ b/ets2panda/test/ast/parser/ets/trailing_lambda_tests/invalid_rest_param_for_await.ets @@ -15,8 +15,9 @@ async WeakMap => ...delete const { } -/* @@? 16:7 Error SyntaxError: 'async' flags must be used for functions only at top-level. */ -/* @@? 16:15 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 16:15 Error SyntaxError: Unexpected token, expected '('. */ -/* @@? 16:28 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ -/* @@? 16:28 Error SyntaxError: Rest parameter must be the last formal parameter. */ + +/* @@? 16:7 Error Syntax error ESY0202: 'async' flags must be used for functions only at top-level. */ +/* @@? 16:15 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 16:15 Error Syntax error ESY0228: Unexpected token, expected '('. */ +/* @@? 16:28 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ +/* @@? 16:28 Error Syntax error ESY0067: Rest parameter must be the last formal parameter. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/trailing_lambda_tests/invalid_rest_param_for_await_fuzz.ets b/ets2panda/test/ast/parser/ets/trailing_lambda_tests/invalid_rest_param_for_await_fuzz.ets index 6cf13fb5c6..aed63ff9e6 100644 --- a/ets2panda/test/ast/parser/ets/trailing_lambda_tests/invalid_rest_param_for_await_fuzz.ets +++ b/ets2panda/test/ast/parser/ets/trailing_lambda_tests/invalid_rest_param_for_await_fuzz.ets @@ -20,62 +20,63 @@ async WeakMap => ...delete const { Intl } = [ { opt } = [({} ? 4 : Array[-=])]; } -/* @@? 16:7 Error SyntaxError: 'async' flags must be used for functions only at top-level. */ -/* @@? 16:15 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 16:15 Error SyntaxError: Unexpected token, expected '('. */ -/* @@? 16:28 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ -/* @@? 16:28 Error SyntaxError: Rest parameter must be the last formal parameter. */ -/* @@? 16:43 Error SyntaxError: Unexpected token '='. */ -/* @@? 16:43 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@? 16:74 Error SyntaxError: Unexpected token '-='. */ -/* @@? 16:79 Error SyntaxError: Unexpected token, expected ']'. */ -/* @@? 17:1 Error SyntaxError: Unexpected token ','. */ -/* @@? 17:3 Error SyntaxError: Unexpected token '...'. */ -/* @@? 17:15 Error SyntaxError: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ -/* @@? 17:16 Error SyntaxError: Unexpected token '.'. */ -/* @@? 17:17 Error SyntaxError: Unexpected token ':'. */ -/* @@? 17:19 Error SyntaxError: Unexpected token '0'. */ -/* @@? 17:21 Error SyntaxError: Unexpected token, expected ')'. */ -/* @@? 17:22 Error SyntaxError: Unexpected token ']'. */ -/* @@? 17:23 Error SyntaxError: Unexpected token ')'. */ -/* @@? 17:23 Error TypeError: This expression is not callable. */ -/* @@? 17:23 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@? 17:25 Error SyntaxError: Unexpected token ','. */ -/* @@? 17:26 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 17:27 Error SyntaxError: Unexpected token ':'. */ -/* @@? 17:29 Error SyntaxError: Unexpected token '88'. */ -/* @@? 17:38 Error SyntaxError: Unexpected token ')'. */ -/* @@? 17:39 Error SyntaxError: Unexpected token ','. */ -/* @@? 17:41 Error SyntaxError: Unexpected token '...'. */ -/* @@? 17:44 Error SyntaxError: Unexpected token 'opt'. */ -/* @@? 17:44 Error TypeError: Unresolved reference opt */ -/* @@? 17:47 Error SyntaxError: Unexpected token ','. */ -/* @@? 17:47 Error TypeError: This expression is not callable. */ -/* @@? 17:55 Error SyntaxError: Unexpected token ':'. */ -/* @@? 17:57 Error SyntaxError: Unexpected token. */ -/* @@? 17:62 Error SyntaxError: Unexpected token ']'. */ -/* @@? 17:62 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@? 17:71 Error SyntaxError: Unexpected token '?'. */ -/* @@? 17:73 Error SyntaxError: Unexpected token, expected ')'. */ -/* @@? 17:75 Error SyntaxError: Unexpected token, expected ']'. */ -/* @@? 17:77 Error SyntaxError: Unexpected token, expected ']'. */ -/* @@? 17:78 Error SyntaxError: Unexpected token '}'. */ -/* @@? 17:87 Error SyntaxError: Unexpected token ')'. */ -/* @@? 17:88 Error SyntaxError: Unexpected token ']'. */ -/* @@? 17:89 Error SyntaxError: Unexpected token ']'. */ -/* @@? 18:2 Error SyntaxError: Unexpected token '>>>='. */ -/* @@? 18:7 Error SyntaxError: Unexpected token 'sub'. */ -/* @@? 18:7 Error TypeError: Unresolved reference sub */ -/* @@? 18:24 Error SyntaxError: Unexpected token 'await'. */ -/* @@? 18:24 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 18:24 Error TypeError: Invalid left-hand side of assignment expression */ -/* @@? 18:24 Error TypeError: Type 'ArrayBuffer' can not be awaited, it is not a Promise. */ -/* @@? 18:30 Error SyntaxError: Class cannot be used as object. */ -/* @@? 18:42 Error SyntaxError: Invalid left-hand side in assignment expression. */ -/* @@? 18:58 Error SyntaxError: Unexpected token ')'. */ -/* @@? 18:60 Error TypeError: Unresolved reference missing */ -/* @@? 18:68 Error SyntaxError: Unexpected token ''. */ -/* @@? 18:68 Error SyntaxError: Newline is not allowed in strings */ -/* @@? 18:69 Error SyntaxError: Unexpected token '}'. */ -/* @@? 18:69 Error SyntaxError: Unexpected token '> __a:be'. */ -/* @@? 18:69 Error SyntaxError: Newline is not allowed in strings */ + +/* @@? 16:7 Error Syntax error ESY0202: 'async' flags must be used for functions only at top-level. */ +/* @@? 16:15 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 16:15 Error Syntax error ESY0228: Unexpected token, expected '('. */ +/* @@? 16:28 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ +/* @@? 16:28 Error Syntax error ESY0067: Rest parameter must be the last formal parameter. */ +/* @@? 16:43 Error Syntax error ESY0227: Unexpected token '='. */ +/* @@? 16:43 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 16:74 Error Syntax error ESY0227: Unexpected token '-='. */ +/* @@? 16:79 Error Syntax error ESY0228: Unexpected token, expected ']'. */ +/* @@? 17:1 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 17:3 Error Syntax error ESY0227: Unexpected token '...'. */ +/* @@? 17:15 Error Syntax error ESY177354: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ +/* @@? 17:16 Error Syntax error ESY0227: Unexpected token '.'. */ +/* @@? 17:17 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 17:19 Error Syntax error ESY0227: Unexpected token '0'. */ +/* @@? 17:21 Error Syntax error ESY0228: Unexpected token, expected ')'. */ +/* @@? 17:22 Error Syntax error ESY0227: Unexpected token ']'. */ +/* @@? 17:23 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 17:23 Error Semantic error ESE0289: This expression is not callable. */ +/* @@? 17:23 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 17:25 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 17:26 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 17:27 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 17:29 Error Syntax error ESY0227: Unexpected token '88'. */ +/* @@? 17:38 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 17:39 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 17:41 Error Syntax error ESY0227: Unexpected token '...'. */ +/* @@? 17:44 Error Syntax error ESY0227: Unexpected token 'opt'. */ +/* @@? 17:44 Error Semantic error ESE0143: Unresolved reference opt */ +/* @@? 17:47 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 17:47 Error Semantic error ESE0289: This expression is not callable. */ +/* @@? 17:55 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 17:57 Error Syntax error ESY0016: Unexpected token. */ +/* @@? 17:62 Error Syntax error ESY0227: Unexpected token ']'. */ +/* @@? 17:62 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 17:71 Error Syntax error ESY0227: Unexpected token '?'. */ +/* @@? 17:73 Error Syntax error ESY0228: Unexpected token, expected ')'. */ +/* @@? 17:75 Error Syntax error ESY0228: Unexpected token, expected ']'. */ +/* @@? 17:77 Error Syntax error ESY0228: Unexpected token, expected ']'. */ +/* @@? 17:78 Error Syntax error ESY0227: Unexpected token '}'. */ +/* @@? 17:87 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 17:88 Error Syntax error ESY0227: Unexpected token ']'. */ +/* @@? 17:89 Error Syntax error ESY0227: Unexpected token ']'. */ +/* @@? 18:2 Error Syntax error ESY0227: Unexpected token '>>>='. */ +/* @@? 18:7 Error Syntax error ESY0227: Unexpected token 'sub'. */ +/* @@? 18:7 Error Semantic error ESE0143: Unresolved reference sub */ +/* @@? 18:24 Error Syntax error ESY0227: Unexpected token 'await'. */ +/* @@? 18:24 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 18:24 Error Semantic error ESE0025: Invalid left-hand side of assignment expression */ +/* @@? 18:24 Error Semantic error ESE0303: Type 'ArrayBuffer' can not be awaited, it is not a Promise. */ +/* @@? 18:30 Error Syntax error ESY0318: Class cannot be used as object. */ +/* @@? 18:42 Error Syntax error ESY0072: Invalid left-hand side in assignment expression. */ +/* @@? 18:58 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 18:60 Error Semantic error ESE0143: Unresolved reference missing */ +/* @@? 18:68 Error Syntax error ESY0227: Unexpected token ''. */ +/* @@? 18:68 Error Syntax error ESY0265: Newline is not allowed in strings */ +/* @@? 18:69 Error Syntax error ESY0227: Unexpected token '}'. */ +/* @@? 18:69 Error Syntax error ESY0227: Unexpected token '> __a:be'. */ +/* @@? 18:69 Error Syntax error ESY0265: Newline is not allowed in strings */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/trailing_lambda_tests/invalid_rest_param_for_rest_as_trailing_lambda.ets b/ets2panda/test/ast/parser/ets/trailing_lambda_tests/invalid_rest_param_for_rest_as_trailing_lambda.ets index ac028631f8..bdb9a67957 100644 --- a/ets2panda/test/ast/parser/ets/trailing_lambda_tests/invalid_rest_param_for_rest_as_trailing_lambda.ets +++ b/ets2panda/test/ast/parser/ets/trailing_lambda_tests/invalid_rest_param_for_rest_as_trailing_lambda.ets @@ -18,4 +18,5 @@ class A { } new A().foo( ()=>{} ){} -/* @@? 19:1 Error TypeError: No matching call signature with trailing lambda */ + +/* @@? 19:1 Error Semantic error ESE0140: No matching call signature with trailing lambda */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_mismatch_lambda_signature_1.ets b/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_mismatch_lambda_signature_1.ets index 95bf39bd29..08450897ed 100644 --- a/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_mismatch_lambda_signature_1.ets +++ b/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_mismatch_lambda_signature_1.ets @@ -23,4 +23,5 @@ function main() { } } -/* @@@ label Error TypeError: Unexpected return value, enclosing method return type is void. */ + +/* @@@ label Error Semantic error ESE0089: Unexpected return value, enclosing method return type is void. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_mismatch_lambda_signature_2.ets b/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_mismatch_lambda_signature_2.ets index 90b3b80d95..9f6f02ff01 100644 --- a/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_mismatch_lambda_signature_2.ets +++ b/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_mismatch_lambda_signature_2.ets @@ -23,4 +23,5 @@ function main() { } } -/* @@@ label Error TypeError: Unexpected return value, enclosing method return type is void. */ + +/* @@@ label Error Semantic error ESE0089: Unexpected return value, enclosing method return type is void. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_not_transform_trailing_block_1.ets b/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_not_transform_trailing_block_1.ets index a411511e00..4c6ed9fbcc 100644 --- a/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_not_transform_trailing_block_1.ets +++ b/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_not_transform_trailing_block_1.ets @@ -23,4 +23,5 @@ function f(c: ()=>void) { } -/* @@@ label Error TypeError: No matching call signature with trailing lambda */ + +/* @@@ label Error Semantic error ESE0140: No matching call signature with trailing lambda */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_not_transform_trailing_block_10.ets b/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_not_transform_trailing_block_10.ets index 2959142484..f34056713c 100644 --- a/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_not_transform_trailing_block_10.ets +++ b/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_not_transform_trailing_block_10.ets @@ -23,4 +23,5 @@ function main(): void { new A() { console.print(2); }; // It is forbidden to extend a class by an anonymous class } -/* @@? 23:13 Error SyntaxError: Unexpected token '{'. */ + +/* @@? 23:13 Error Syntax error ESY0227: Unexpected token '{'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_not_transform_trailing_block_2.ets b/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_not_transform_trailing_block_2.ets index fdfa09e061..ae94106a2b 100644 --- a/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_not_transform_trailing_block_2.ets +++ b/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_not_transform_trailing_block_2.ets @@ -23,5 +23,6 @@ function main() { } } -/* @@? 21:5 Error TypeError: Expected 1 arguments, got 0. */ -/* @@? 21:5 Error TypeError: No matching call signature */ + +/* @@? 21:5 Error Semantic error ESE0124: Expected 1 arguments, got 0. */ +/* @@? 21:5 Error Semantic error ESE0128: No matching call signature */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_not_transform_trailing_block_3.ets b/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_not_transform_trailing_block_3.ets index bed0ab0816..8dca107727 100644 --- a/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_not_transform_trailing_block_3.ets +++ b/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_not_transform_trailing_block_3.ets @@ -23,6 +23,7 @@ function main(): void { new A() {}; // It is forbidden to extend a class by an anonymous class } -/* @@? 23:5 Error TypeError: Expected 1 arguments, got 0. */ -/* @@? 23:5 Error TypeError: No matching construct signature */ -/* @@? 23:13 Error SyntaxError: Unexpected token '{'. */ + +/* @@? 23:5 Error Semantic error ESE0124: Expected 1 arguments, got 0. */ +/* @@? 23:5 Error Semantic error ESE0128: No matching construct signature */ +/* @@? 23:13 Error Syntax error ESY0227: Unexpected token '{'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_not_transform_trailing_block_4.ets b/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_not_transform_trailing_block_4.ets index 725e5fce4f..3f83fa4665 100644 --- a/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_not_transform_trailing_block_4.ets +++ b/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_not_transform_trailing_block_4.ets @@ -23,6 +23,7 @@ function main(): void { new A {}; // It is forbidden to extend a class by an anonymous class } -/* @@? 23:5 Error TypeError: Expected 1 arguments, got 0. */ -/* @@? 23:5 Error TypeError: No matching construct signature */ -/* @@? 23:11 Error SyntaxError: Unexpected token '{'. */ + +/* @@? 23:5 Error Semantic error ESE0124: Expected 1 arguments, got 0. */ +/* @@? 23:5 Error Semantic error ESE0128: No matching construct signature */ +/* @@? 23:11 Error Syntax error ESY0227: Unexpected token '{'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_not_transform_trailing_block_5.ets b/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_not_transform_trailing_block_5.ets index bd5d20efe0..8e9edda70c 100644 --- a/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_not_transform_trailing_block_5.ets +++ b/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_not_transform_trailing_block_5.ets @@ -23,6 +23,7 @@ function main(): void { new A() { console.print(2); }; // It is forbidden to extend a class by an anonymous class } -/* @@? 23:5 Error TypeError: Expected 1 arguments, got 0. */ -/* @@? 23:5 Error TypeError: No matching construct signature */ -/* @@? 23:13 Error SyntaxError: Unexpected token '{'. */ + +/* @@? 23:5 Error Semantic error ESE0124: Expected 1 arguments, got 0. */ +/* @@? 23:5 Error Semantic error ESE0128: No matching construct signature */ +/* @@? 23:13 Error Syntax error ESY0227: Unexpected token '{'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_not_transform_trailing_block_6.ets b/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_not_transform_trailing_block_6.ets index 9d29273a82..96aad9a155 100644 --- a/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_not_transform_trailing_block_6.ets +++ b/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_not_transform_trailing_block_6.ets @@ -23,4 +23,5 @@ function f(c?: ()=>void) { } -/* @@@ label Error TypeError: No matching call signature with trailing lambda */ + +/* @@@ label Error Semantic error ESE0140: No matching call signature with trailing lambda */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_not_transform_trailing_block_8.ets b/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_not_transform_trailing_block_8.ets index b80f49af56..b8826cdf6b 100644 --- a/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_not_transform_trailing_block_8.ets +++ b/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_not_transform_trailing_block_8.ets @@ -23,4 +23,5 @@ function main(): void { new A() {}; // It is forbidden to extend a class by an anonymous class } -/* @@? 23:13 Error SyntaxError: Unexpected token '{'. */ + +/* @@? 23:13 Error Syntax error ESY0227: Unexpected token '{'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_not_transform_trailing_block_9.ets b/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_not_transform_trailing_block_9.ets index b168957e53..dc5dfe0ac9 100644 --- a/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_not_transform_trailing_block_9.ets +++ b/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_not_transform_trailing_block_9.ets @@ -23,4 +23,5 @@ function main(): void { new A {}; // It is forbidden to extend a class by an anonymous class } -/* @@? 23:11 Error SyntaxError: Unexpected token '{'. */ + +/* @@? 23:11 Error Syntax error ESY0227: Unexpected token '{'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_omit_call_parentheses.ets b/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_omit_call_parentheses.ets index c4e618d2d9..cfebd3f0af 100644 --- a/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_omit_call_parentheses.ets +++ b/ets2panda/test/ast/parser/ets/trailing_lambda_tests/trailing_lambda_omit_call_parentheses.ets @@ -23,4 +23,5 @@ function main() { } } -/* @@@ label Error SyntaxError: Unexpected token '{'. */ + +/* @@@ label Error Syntax error ESY0227: Unexpected token '{'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/tryBlockOnly.ets b/ets2panda/test/ast/parser/ets/tryBlockOnly.ets index af8966afe9..35fecca30b 100644 --- a/ets2panda/test/ast/parser/ets/tryBlockOnly.ets +++ b/ets2panda/test/ast/parser/ets/tryBlockOnly.ets @@ -19,4 +19,5 @@ function main() : int { return 0; } -/* @@@ label Error SyntaxError: A try statement should contain either finally clause or at least one catch clause. */ + +/* @@@ label Error Syntax error ESY0039: A try statement should contain either finally clause or at least one catch clause. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/try_catch_alive_1.ets b/ets2panda/test/ast/parser/ets/try_catch_alive_1.ets index 7bf5655f13..11af4130d3 100644 --- a/ets2panda/test/ast/parser/ets/try_catch_alive_1.ets +++ b/ets2panda/test/ast/parser/ets/try_catch_alive_1.ets @@ -66,4 +66,5 @@ function foo5(): int { return 2; } } -/* @@@ label Warning Warning: Finally clause cannot complete normally */ + +/* @@@ label Warning Warning W0021: Finally clause cannot complete normally */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/try_catch_alive_2.ets b/ets2panda/test/ast/parser/ets/try_catch_alive_2.ets index 6a456013e9..f8ab1f3a50 100644 --- a/ets2panda/test/ast/parser/ets/try_catch_alive_2.ets +++ b/ets2panda/test/ast/parser/ets/try_catch_alive_2.ets @@ -21,4 +21,5 @@ function /* @@ label */foo(): int { } } -/* @@@ label Error TypeError: Not all code paths return a value. */ + +/* @@@ label Error Semantic error ESE0104: Not all code paths return a value. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/try_catch_alive_3.ets b/ets2panda/test/ast/parser/ets/try_catch_alive_3.ets index a1a950a348..be5b544341 100644 --- a/ets2panda/test/ast/parser/ets/try_catch_alive_3.ets +++ b/ets2panda/test/ast/parser/ets/try_catch_alive_3.ets @@ -25,4 +25,5 @@ function /* @@ label */foo(): int { } } -/* @@@ label Error TypeError: Not all code paths return a value. */ + +/* @@@ label Error Semantic error ESE0104: Not all code paths return a value. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/try_catch_alive_4.ets b/ets2panda/test/ast/parser/ets/try_catch_alive_4.ets index f578fdd2cf..bd2d62ec16 100644 --- a/ets2panda/test/ast/parser/ets/try_catch_alive_4.ets +++ b/ets2panda/test/ast/parser/ets/try_catch_alive_4.ets @@ -24,4 +24,5 @@ function /* @@ label */foo(): int { } } -/* @@@ label Error TypeError: Not all code paths return a value. */ + +/* @@@ label Error Semantic error ESE0104: Not all code paths return a value. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/try_catch_alive_5.ets b/ets2panda/test/ast/parser/ets/try_catch_alive_5.ets index f2328e1f53..1467d2e3e4 100644 --- a/ets2panda/test/ast/parser/ets/try_catch_alive_5.ets +++ b/ets2panda/test/ast/parser/ets/try_catch_alive_5.ets @@ -26,4 +26,5 @@ function foo(): int { } } -/* @@@ label Warning Warning: Unreachable statement. */ + +/* @@@ label Warning Warning W0026: Unreachable statement. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/try_catch_alive_6.ets b/ets2panda/test/ast/parser/ets/try_catch_alive_6.ets index 40fe55f8cc..caa559dcc2 100644 --- a/ets2panda/test/ast/parser/ets/try_catch_alive_6.ets +++ b/ets2panda/test/ast/parser/ets/try_catch_alive_6.ets @@ -25,5 +25,6 @@ function foo(): int { } -/* @@@ label1 Warning Warning: Unreachable statement. */ -/* @@@ label Warning Warning: Finally clause cannot complete normally */ + +/* @@@ label Warning Warning W0021: Finally clause cannot complete normally */ +/* @@@ label1 Warning Warning W0026: Unreachable statement. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/try_catch_alive_7.ets b/ets2panda/test/ast/parser/ets/try_catch_alive_7.ets index 8f1984ceaa..11ad715cf9 100644 --- a/ets2panda/test/ast/parser/ets/try_catch_alive_7.ets +++ b/ets2panda/test/ast/parser/ets/try_catch_alive_7.ets @@ -23,4 +23,5 @@ function /* @@ label */foo(): int { } } -/* @@@ label Error TypeError: Function with a non void return type must return a value. */ + +/* @@@ label Error Semantic error ESE0103: Function with a non void return type must return a value. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/try_catch_alive_8.ets b/ets2panda/test/ast/parser/ets/try_catch_alive_8.ets index 356e8c5c6d..52fccdfc78 100644 --- a/ets2panda/test/ast/parser/ets/try_catch_alive_8.ets +++ b/ets2panda/test/ast/parser/ets/try_catch_alive_8.ets @@ -24,5 +24,6 @@ function foo(): int { /* @@ label1 */return 0; } -/* @@@ label Warning Warning: Finally clause cannot complete normally */ -/* @@@ label1 Warning Warning: Unreachable statement. */ + +/* @@@ label Warning Warning W0021: Finally clause cannot complete normally */ +/* @@@ label1 Warning Warning W0026: Unreachable statement. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/try_catch_alive_9.ets b/ets2panda/test/ast/parser/ets/try_catch_alive_9.ets index 2b31a764f1..36de36b391 100644 --- a/ets2panda/test/ast/parser/ets/try_catch_alive_9.ets +++ b/ets2panda/test/ast/parser/ets/try_catch_alive_9.ets @@ -24,5 +24,6 @@ function foo(): int { } } -/* @@@ label Warning Warning: Unreachable statement. */ -/* @@@ label1 Warning Warning: Finally clause cannot complete normally */ + +/* @@@ label Warning Warning W0026: Unreachable statement. */ +/* @@@ label1 Warning Warning W0021: Finally clause cannot complete normally */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/ts-type-assertion.ets b/ets2panda/test/ast/parser/ets/ts-type-assertion.ets index 19a04aa602..719995082a 100644 --- a/ets2panda/test/ast/parser/ets/ts-type-assertion.ets +++ b/ets2panda/test/ast/parser/ets/ts-type-assertion.ets @@ -20,9 +20,10 @@ const c = foo; const d = (foo); const e = (foo); const f = foo; -/* @@? 18:11 Error SyntaxError: Type cast syntax '' is not supported, please use 'as' keyword instead */ -/* @@? 19:11 Error SyntaxError: Type cast syntax '' is not supported, please use 'as' keyword instead */ -/* @@? 20:12 Error SyntaxError: Type cast syntax '' is not supported, please use 'as' keyword instead */ -/* @@? 21:11 Error SyntaxError: Type cast syntax '' is not supported, please use 'as' keyword instead */ -/* @@? 22:11 Error SyntaxError: Type cast syntax '' is not supported, please use 'as' keyword instead */ -/* @@? 22:14 Error SyntaxError: Type cast syntax '' is not supported, please use 'as' keyword instead */ + +/* @@? 18:11 Error Syntax error ESY178094: Type cast syntax '' is not supported, please use 'as' keyword instead */ +/* @@? 19:11 Error Syntax error ESY178094: Type cast syntax '' is not supported, please use 'as' keyword instead */ +/* @@? 20:12 Error Syntax error ESY178094: Type cast syntax '' is not supported, please use 'as' keyword instead */ +/* @@? 21:11 Error Syntax error ESY178094: Type cast syntax '' is not supported, please use 'as' keyword instead */ +/* @@? 22:11 Error Syntax error ESY178094: Type cast syntax '' is not supported, please use 'as' keyword instead */ +/* @@? 22:14 Error Syntax error ESY178094: Type cast syntax '' is not supported, please use 'as' keyword instead */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/tsas_binop.ets b/ets2panda/test/ast/parser/ets/tsas_binop.ets index 1bf78fdde5..10e2cf1cad 100644 --- a/ets2panda/test/ast/parser/ets/tsas_binop.ets +++ b/ets2panda/test/ast/parser/ets/tsas_binop.ets @@ -21,6 +21,7 @@ function main():void{ (1.0 as test) == test.a } -/* @@? 21:6 Error TypeError: Type 'Double' is not compatible with type 'Int' at index 1 */ -/* @@? 21:6 Error TypeError: No matching call signature for fromValue(Double) */ -/* @@? 21:6 Warning Warning: Enum cast is deprecated. Cast support from 'Double' to 'test' will be removed. */ + +/* @@? 21:6 Error Semantic error ESE0046: Type 'Double' is not compatible with type 'Int' at index 1 */ +/* @@? 21:6 Error Semantic error ESE0127: No matching call signature for fromValue(Double) */ +/* @@? 21:6 Warning Warning W0030: Enum cast is deprecated. Cast support from 'Double' to 'test' will be removed. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/tupleIndexWithLargeInt.ets b/ets2panda/test/ast/parser/ets/tupleIndexWithLargeInt.ets index a894834153..0721c71730 100644 --- a/ets2panda/test/ast/parser/ets/tupleIndexWithLargeInt.ets +++ b/ets2panda/test/ast/parser/ets/tupleIndexWithLargeInt.ets @@ -20,4 +20,5 @@ function main(): void { tuple[/* @@ label */index] = 2; } -/* @@@ label Error TypeError: Element accessor value is out of tuple size bounds. */ + +/* @@@ label Error Semantic error ESE0198: Element accessor value is out of tuple size bounds. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/tuple_trailing_comma.ets b/ets2panda/test/ast/parser/ets/tuple_trailing_comma.ets index 093fa956be..0d7d3f2d3f 100644 --- a/ets2panda/test/ast/parser/ets/tuple_trailing_comma.ets +++ b/ets2panda/test/ast/parser/ets/tuple_trailing_comma.ets @@ -17,14 +17,15 @@ let a: [number, w: number, number,] = [1, 2, 3,]; let b: [number, /* @@ label */,number, number,] = [1, 2, 3,]; -/* @@? 17:17 Error TypeError: Cannot find type 'w'. */ -/* @@? 17:18 Error SyntaxError: Unexpected token, expected ',' or ']'. */ -/* @@? 17:18 Error SyntaxError: Unexpected token ':'. */ -/* @@? 17:20 Error SyntaxError: Unexpected token 'number'. */ -/* @@? 17:20 Error TypeError: Type name 'number' used in the wrong context */ -/* @@? 17:26 Error SyntaxError: Unexpected token ','. */ -/* @@? 17:28 Error SyntaxError: Unexpected token 'number'. */ -/* @@? 17:28 Error TypeError: Type name 'number' used in the wrong context */ -/* @@? 17:34 Error SyntaxError: Unexpected token ','. */ -/* @@? 17:35 Error SyntaxError: Unexpected token ']'. */ -/* @@@ label Error SyntaxError: Invalid Type. */ + +/* @@? 17:17 Error Semantic error ESE0371: Cannot find type 'w'. */ +/* @@? 17:18 Error Syntax error ESY0229: Unexpected token, expected ',' or ']'. */ +/* @@? 17:18 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 17:20 Error Syntax error ESY0227: Unexpected token 'number'. */ +/* @@? 17:20 Error Semantic error ESE0144: Type name 'number' used in the wrong context */ +/* @@? 17:26 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 17:28 Error Syntax error ESY0227: Unexpected token 'number'. */ +/* @@? 17:28 Error Semantic error ESE0144: Type name 'number' used in the wrong context */ +/* @@? 17:34 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 17:35 Error Syntax error ESY0227: Unexpected token ']'. */ +/* @@@ label Error Syntax error ESY0138: Invalid Type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/tuple_type_2_neg.ets b/ets2panda/test/ast/parser/ets/tuple_type_2_neg.ets index c8033ccf5c..f567447aac 100644 --- a/ets2panda/test/ast/parser/ets/tuple_type_2_neg.ets +++ b/ets2panda/test/ast/parser/ets/tuple_type_2_neg.ets @@ -16,11 +16,12 @@ let a: [number, ...number[], number] = [1, 2, 3]; -/* @@? 17:17 Error SyntaxError: Invalid Type. */ -/* @@? 17:17 Error SyntaxError: Unexpected token, expected ',' or ']'. */ -/* @@? 17:17 Error SyntaxError: Unexpected token '...'. */ -/* @@? 17:20 Error SyntaxError: Unexpected token 'number'. */ -/* @@? 17:28 Error SyntaxError: Unexpected token ','. */ -/* @@? 17:30 Error SyntaxError: Unexpected token 'number'. */ -/* @@? 17:30 Error TypeError: Type name 'number' used in the wrong context */ -/* @@? 17:36 Error SyntaxError: Unexpected token ']'. */ + +/* @@? 17:17 Error Syntax error ESY0138: Invalid Type. */ +/* @@? 17:17 Error Syntax error ESY0229: Unexpected token, expected ',' or ']'. */ +/* @@? 17:17 Error Syntax error ESY0227: Unexpected token '...'. */ +/* @@? 17:20 Error Syntax error ESY0227: Unexpected token 'number'. */ +/* @@? 17:28 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 17:30 Error Syntax error ESY0227: Unexpected token 'number'. */ +/* @@? 17:30 Error Semantic error ESE0144: Type name 'number' used in the wrong context */ +/* @@? 17:36 Error Syntax error ESY0227: Unexpected token ']'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/tuple_type_3_neg.ets b/ets2panda/test/ast/parser/ets/tuple_type_3_neg.ets index 2ac71cc79e..130e74d26f 100644 --- a/ets2panda/test/ast/parser/ets/tuple_type_3_neg.ets +++ b/ets2panda/test/ast/parser/ets/tuple_type_3_neg.ets @@ -16,7 +16,8 @@ let a: [number, number number] = [1, 2, 3]; -/* @@? 17:24 Error SyntaxError: Unexpected token, expected ',' or ']'. */ -/* @@? 17:24 Error SyntaxError: Unexpected token 'number'. */ -/* @@? 17:24 Error TypeError: Type name 'number' used in the wrong context */ -/* @@? 17:30 Error SyntaxError: Unexpected token ']'. */ + +/* @@? 17:24 Error Syntax error ESY0229: Unexpected token, expected ',' or ']'. */ +/* @@? 17:24 Error Syntax error ESY0227: Unexpected token 'number'. */ +/* @@? 17:24 Error Semantic error ESE0144: Type name 'number' used in the wrong context */ +/* @@? 17:30 Error Syntax error ESY0227: Unexpected token ']'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/tuple_type_4_neg.ets b/ets2panda/test/ast/parser/ets/tuple_type_4_neg.ets index 47e1f0f241..ddefb56bb6 100644 --- a/ets2panda/test/ast/parser/ets/tuple_type_4_neg.ets +++ b/ets2panda/test/ast/parser/ets/tuple_type_4_neg.ets @@ -16,11 +16,12 @@ let a: [a0: , a1: number] = [1, 2, 3]; -/* @@? 17:9 Error TypeError: Cannot find type 'a0'. */ -/* @@? 17:11 Error SyntaxError: Unexpected token, expected ',' or ']'. */ -/* @@? 17:11 Error SyntaxError: Unexpected token ':'. */ -/* @@? 17:13 Error SyntaxError: Unexpected token ','. */ -/* @@? 17:15 Error SyntaxError: Unexpected token 'a1'. */ -/* @@? 17:19 Error SyntaxError: Label must be followed by a loop statement. */ -/* @@? 17:19 Error TypeError: Type name 'number' used in the wrong context */ -/* @@? 17:25 Error SyntaxError: Unexpected token ']'. */ + +/* @@? 17:9 Error Semantic error ESE0371: Cannot find type 'a0'. */ +/* @@? 17:11 Error Syntax error ESY0229: Unexpected token, expected ',' or ']'. */ +/* @@? 17:11 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 17:13 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 17:15 Error Syntax error ESY0227: Unexpected token 'a1'. */ +/* @@? 17:19 Error Syntax error ESY0038: Label must be followed by a loop statement. */ +/* @@? 17:19 Error Semantic error ESE0144: Type name 'number' used in the wrong context */ +/* @@? 17:25 Error Syntax error ESY0227: Unexpected token ']'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/type_alias_invalid_name.ets b/ets2panda/test/ast/parser/ets/type_alias_invalid_name.ets index 9caf26990c..2004437610 100644 --- a/ets2panda/test/ast/parser/ets/type_alias_invalid_name.ets +++ b/ets2panda/test/ast/parser/ets/type_alias_invalid_name.ets @@ -15,4 +15,5 @@ type var = number[] -/* @@? 16:6 Error SyntaxError: Type alias name cannot be 'var'. */ + +/* @@? 16:6 Error Syntax error ESY0225: Type alias name cannot be 'var'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/type_argument_conversion.ets b/ets2panda/test/ast/parser/ets/type_argument_conversion.ets index 0de608fe90..51d32290aa 100644 --- a/ets2panda/test/ast/parser/ets/type_argument_conversion.ets +++ b/ets2panda/test/ast/parser/ets/type_argument_conversion.ets @@ -30,8 +30,9 @@ function main(): int { return 0; } -/* @@? 29:24 Error TypeError: No matching construct signature for type_argument_conversion.A(Array>) */ -/* @@? 29:38 Error TypeError: No Matching Parameterless Constructor, parameter count 1 */ -/* @@? 29:38 Error TypeError: No matching parameterless constructor */ -/* @@? 29:38 Error TypeError: Signature is not available here. */ -/* @@? 29:38 Error TypeError: Type 'Array>' is not compatible with type 'Array>' at index 1 */ + +/* @@? 29:24 Error Semantic error ESE0127: No matching construct signature for type_argument_conversion.A(Array>) */ +/* @@? 29:38 Error Semantic error ESE0270: No Matching Parameterless Constructor, parameter count 1 */ +/* @@? 29:38 Error Semantic error ESE0125: No matching parameterless constructor */ +/* @@? 29:38 Error Semantic error ESE0137: Signature is not available here. */ +/* @@? 29:38 Error Semantic error ESE0046: Type 'Array>' is not compatible with type 'Array>' at index 1 */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/type_decution_unnecessary_boxing.ets b/ets2panda/test/ast/parser/ets/type_decution_unnecessary_boxing.ets index 9a92463350..48716d14d1 100644 --- a/ets2panda/test/ast/parser/ets/type_decution_unnecessary_boxing.ets +++ b/ets2panda/test/ast/parser/ets/type_decution_unnecessary_boxing.ets @@ -21,4 +21,5 @@ y = true ? y:():int=>32 y = true ? ():int=>32:y x = /* @@ forbid_aggresive_constf */true ? x:"apple" -/* @@@ forbid_aggresive_constf Error TypeError: Type '(() => Long)|"apple"' cannot be assigned to type '() => Long' */ + +/* @@@ forbid_aggresive_constf Error Semantic error ESE0318: Type '(() => Long)|"apple"' cannot be assigned to type '() => Long' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/type_export_import/type_kw_on_identifiers/export.ets b/ets2panda/test/ast/parser/ets/type_export_import/type_kw_on_identifiers/export.ets index c9e6a3d14b..3c3e4dd276 100644 --- a/ets2panda/test/ast/parser/ets/type_export_import/type_kw_on_identifiers/export.ets +++ b/ets2panda/test/ast/parser/ets/type_export_import/type_kw_on_identifiers/export.ets @@ -47,7 +47,8 @@ class R {} let a = 0; -/* @@@ first Error SyntaxError: Type keyword set on both the specifier list and on the specifier itself. */ -/* @@@ second Error SyntaxError: Type keyword set on both the specifier list and on the specifier itself. */ -/* @@@ third Error SyntaxError: Type keyword set on both the specifier list and on the specifier itself. */ -/* @@@ fourth Error SyntaxError: Type keyword set on both the specifier list and on the specifier itself. */ + +/* @@@ first Error Syntax error ESY135857: Type keyword set on both the specifier list and on the specifier itself. */ +/* @@@ second Error Syntax error ESY135857: Type keyword set on both the specifier list and on the specifier itself. */ +/* @@@ third Error Syntax error ESY135857: Type keyword set on both the specifier list and on the specifier itself. */ +/* @@@ fourth Error Syntax error ESY135857: Type keyword set on both the specifier list and on the specifier itself. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/type_export_import/type_kw_on_identifiers/import.ets b/ets2panda/test/ast/parser/ets/type_export_import/type_kw_on_identifiers/import.ets index a902fe01f1..27cb1c025d 100644 --- a/ets2panda/test/ast/parser/ets/type_export_import/type_kw_on_identifiers/import.ets +++ b/ets2panda/test/ast/parser/ets/type_export_import/type_kw_on_identifiers/import.ets @@ -32,8 +32,9 @@ import type { type /* @@ third */Q, type /* @@ fourth */R } from "./source" // import type {type /* @@ fifth */default as DD} from "./source" -/* @@@ first Error SyntaxError: Type keyword set on both the specifier list and on the specifier itself. */ -/* @@@ second Error SyntaxError: Type keyword set on both the specifier list and on the specifier itself. */ -/* @@@ third Error SyntaxError: Type keyword set on both the specifier list and on the specifier itself. */ -/* @@@ fourth Error SyntaxError: Type keyword set on both the specifier list and on the specifier itself. */ -/* @@@ fifth Error SyntaxError: Type keyword set on both the specifier list and on the specifier itself. */ + +/* @@@ first Error Syntax error ESY135857: Type keyword set on both the specifier list and on the specifier itself. */ +/* @@@ second Error Syntax error ESY135857: Type keyword set on both the specifier list and on the specifier itself. */ +/* @@@ third Error Syntax error ESY135857: Type keyword set on both the specifier list and on the specifier itself. */ +/* @@@ fourth Error Syntax error ESY135857: Type keyword set on both the specifier list and on the specifier itself. */ +/* @@@ fifth Error Syntax error ESY135857: Type keyword set on both the specifier list and on the specifier itself. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/type_from_1.ets b/ets2panda/test/ast/parser/ets/type_from_1.ets index 4e10098780..89a9c48fcf 100644 --- a/ets2panda/test/ast/parser/ets/type_from_1.ets +++ b/ets2panda/test/ast/parser/ets/type_from_1.ets @@ -17,5 +17,5 @@ } - /* @@? 16:13 Error TypeError: Expected 1 type arguments, got 0 .*/ - /* @@? 16:13 Error TypeError: No matching call signature */ \ No newline at end of file + /* @@? 16:13 Error Semantic error ESE0273: Expected 1 type arguments, got 0 . */ +/* @@? 16:13 Error Semantic error ESE0128: No matching call signature */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/type_from_generic.ets b/ets2panda/test/ast/parser/ets/type_from_generic.ets index 0a37ebe547..4f04d98908 100644 --- a/ets2panda/test/ast/parser/ets/type_from_generic.ets +++ b/ets2panda/test/ast/parser/ets/type_from_generic.ets @@ -17,4 +17,4 @@ function foo(){ Type.from(); } - /* @@? 17:3 Error TypeError: Unable to resolve type.*/ \ No newline at end of file + /* @@? 17:3 Error Semantic error ESE0285: Unable to resolve type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/type_from_never_literal_keyof.ets b/ets2panda/test/ast/parser/ets/type_from_never_literal_keyof.ets index 302df199c4..f8322d02aa 100644 --- a/ets2panda/test/ast/parser/ets/type_from_never_literal_keyof.ets +++ b/ets2panda/test/ast/parser/ets/type_from_never_literal_keyof.ets @@ -19,5 +19,5 @@ let keyOfType = Type.from(); } - /* @@? 18:4 Error SyntaxError: Illegal start of Type Alias expression. */ - /* @@? 19:30 Error TypeError: Cannot find type 'keyofType'. */ \ No newline at end of file + /* @@? 18:4 Error Syntax error ESY0040: Illegal start of Type Alias expression. */ +/* @@? 19:30 Error Semantic error ESE0371: Cannot find type 'keyofType'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/type_from_union_tuple.ets b/ets2panda/test/ast/parser/ets/type_from_union_tuple.ets index 6c2a060aa5..a292e973fc 100644 --- a/ets2panda/test/ast/parser/ets/type_from_union_tuple.ets +++ b/ets2panda/test/ast/parser/ets/type_from_union_tuple.ets @@ -19,6 +19,7 @@ function foo(){ let unionTuple = Type.from<[string|number,byte|short|int|long]>(); } - /* @@? 17:18 Error TypeError: Acquiring types for union types is not supported. */ - /* @@? 18:18 Error TypeError: Acquiring types for tuple types is not supported. */ - /* @@? 19:22 Error TypeError: Acquiring types for tuple types is not supported. */ + +/* @@? 17:18 Error Semantic error ESE0284: Acquiring types for union types is not supported. */ +/* @@? 18:18 Error Semantic error ESE0286: Acquiring types for tuple types is not supported. */ +/* @@? 19:22 Error Semantic error ESE0286: Acquiring types for tuple types is not supported. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/type_from_utility_type.ets b/ets2panda/test/ast/parser/ets/type_from_utility_type.ets index dd7dd59374..6aed0cd72f 100644 --- a/ets2panda/test/ast/parser/ets/type_from_utility_type.ets +++ b/ets2panda/test/ast/parser/ets/type_from_utility_type.ets @@ -32,11 +32,11 @@ let recordarrT = Type.from,Array>>(); } - /* @@? 30:19 Error TypeError: Bad operand type, the types of the operands must be numeric, same enumeration, or boolean type. */ -/* @@? 17:37 Error TypeError: T in Partial must be a class or an interface type. */ -/* @@? 21:39 Error TypeError: T in Required must be a class or an interface type. */ -/* @@? 30:19 Error TypeError: Bad operand type, the types of the operands must be numeric, same enumeration, or boolean type. */ -/* @@? 30:29 Error TypeError: No static $_invoke method and static $_instantiate method in Record. Record() is not allowed. */ -/* @@? 30:29 Error TypeError: Type 'Record' has no call signatures. */ -/* @@? 31:38 Error TypeError: Type argument 'Array' should be a subtype of 'Numeric|String|BaseEnum|BaseEnum|BaseEnum'-constraint */ -/* @@? 32:38 Error TypeError: Type argument 'Array' should be a subtype of 'Numeric|String|BaseEnum|BaseEnum|BaseEnum'-constraint */ + +/* @@? 17:37 Error Semantic error ESE124644: T in Partial must be a class or an interface type. */ +/* @@? 21:39 Error Semantic error ESE124644: T in Required must be a class or an interface type. */ +/* @@? 30:19 Error Semantic error ESE0114: Bad operand type, the types of the operands must be numeric, same enumeration, or boolean type. */ +/* @@? 30:29 Error Semantic error ESE0172: No static $_invoke method and static $_instantiate method in Record. Record() is not allowed. */ +/* @@? 30:29 Error Semantic error ESE0002: Type 'Record' has no call signatures. */ +/* @@? 31:38 Error Semantic error ESE0228: Type argument 'Array' should be a subtype of 'Numeric|String|BaseEnum|BaseEnum|BaseEnum'-constraint */ +/* @@? 32:38 Error Semantic error ESE0228: Type argument 'Array' should be a subtype of 'Numeric|String|BaseEnum|BaseEnum|BaseEnum'-constraint */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/type_node_clone_assertion_fix.ets b/ets2panda/test/ast/parser/ets/type_node_clone_assertion_fix.ets index 911938c626..c50f52ee31 100644 --- a/ets2panda/test/ast/parser/ets/type_node_clone_assertion_fix.ets +++ b/ets2panda/test/ast/parser/ets/type_node_clone_assertion_fix.ets @@ -26,6 +26,6 @@ type MyMap = { type RecordMap = { n: number }; // Expected compilation errors for unsupported TypeScript features in ETS: -/* @@? 22:37 Error TypeError: The `keyof` keyword can only be used for class or interface type. */ -/* @@? 22:41 Error SyntaxError: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ -/* @@? 26:18 Error SyntaxError: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ \ No newline at end of file +/* @@? 22:37 Error Semantic error ESE0276: The `keyof` keyword can only be used for class or interface type. */ +/* @@? 22:41 Error Syntax error ESY177354: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ +/* @@? 26:18 Error Syntax error ESY177354: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/type_param_contraint_override.ets b/ets2panda/test/ast/parser/ets/type_param_contraint_override.ets index e679c92132..dd2e24920f 100644 --- a/ets2panda/test/ast/parser/ets/type_param_contraint_override.ets +++ b/ets2panda/test/ast/parser/ets/type_param_contraint_override.ets @@ -32,5 +32,6 @@ function main() { arktest.assertEQ(res, 2); } -/* @@? 25:17 Error TypeError: foo(x: T): void in B cannot override foo(x: T): void in A because overriding type parameter's conatraints are not compatible with type parameter constraints of the overridden method. */ -/* @@? 25:17 Error TypeError: Method foo(x: T): void in B not overriding any method */ + +/* @@? 25:17 Error Semantic error ESE0141: foo(x: T): void in B cannot override foo(x: T): void in A because overriding type parameter's conatraints are not compatible with type parameter constraints of the overridden method. */ +/* @@? 25:17 Error Semantic error ESE0136: Method foo(x: T): void in B not overriding any method */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/type_references.ets b/ets2panda/test/ast/parser/ets/type_references.ets index 4659ad2318..72a3ba3fb7 100644 --- a/ets2panda/test/ast/parser/ets/type_references.ets +++ b/ets2panda/test/ast/parser/ets/type_references.ets @@ -18,6 +18,7 @@ type B = short; let x: G // OK let y: G<{a:String}, B> // Error -/* @@? 18:8 Error TypeError: Cannot find type 'G'. */ -/* @@? 19:8 Error TypeError: Cannot find type 'G'. */ -/* @@? 19:10 Error SyntaxError: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ + +/* @@? 18:8 Error Semantic error ESE0371: Cannot find type 'G'. */ +/* @@? 19:8 Error Semantic error ESE0371: Cannot find type 'G'. */ +/* @@? 19:10 Error Syntax error ESY177354: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/type_variance2.ets b/ets2panda/test/ast/parser/ets/type_variance2.ets index c7b077b0b6..ab503e7605 100644 --- a/ets2panda/test/ast/parser/ets/type_variance2.ets +++ b/ets2panda/test/ast/parser/ets/type_variance2.ets @@ -17,5 +17,6 @@ class C { constructor() {} } -/* @@@ label Error SyntaxError: Variance modifier is not allowed here. */ -/* @@? 17:35 Error SyntaxError: Constructor should not have type parameters. */ + +/* @@@ label Error Syntax error ESY0098: Variance modifier is not allowed here. */ +/* @@? 17:35 Error Syntax error ESY0330: Constructor should not have type parameters. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/type_variance3.ets b/ets2panda/test/ast/parser/ets/type_variance3.ets index ac07e70222..185d89038c 100644 --- a/ets2panda/test/ast/parser/ets/type_variance3.ets +++ b/ets2panda/test/ast/parser/ets/type_variance3.ets @@ -17,4 +17,5 @@ class C { set(t: T2): void { } } -/* @@@ label Error SyntaxError: Variance modifier is not allowed here. */ + +/* @@@ label Error Syntax error ESY0098: Variance modifier is not allowed here. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/type_variance4.ets b/ets2panda/test/ast/parser/ets/type_variance4.ets index f4495006d1..80a750d990 100644 --- a/ets2panda/test/ast/parser/ets/type_variance4.ets +++ b/ets2panda/test/ast/parser/ets/type_variance4.ets @@ -17,4 +17,5 @@ // after generic global function parsing is implemented. function fn(t: T): void {} -/* @@@ label Error SyntaxError: Variance modifier is not allowed here. */ + +/* @@@ label Error Syntax error ESY0098: Variance modifier is not allowed here. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/typeinference_function_generic.ets b/ets2panda/test/ast/parser/ets/typeinference_function_generic.ets index 8fa208a4cb..9c0ce4b7b4 100644 --- a/ets2panda/test/ast/parser/ets/typeinference_function_generic.ets +++ b/ets2panda/test/ast/parser/ets/typeinference_function_generic.ets @@ -35,4 +35,5 @@ fn6("123","456","321") function fn7(x:T, y:D){} fn7("123","456") -/* @@@ label Error TypeError: Type parameter 'D' has circular constraint dependency. */ + +/* @@@ label Error Semantic error ESE0184: Type parameter 'D' has circular constraint dependency. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/typenode_clone_brokentype.ets b/ets2panda/test/ast/parser/ets/typenode_clone_brokentype.ets index fe8f7863b7..df44faa924 100644 --- a/ets2panda/test/ast/parser/ets/typenode_clone_brokentype.ets +++ b/ets2panda/test/ast/parser/ets/typenode_clone_brokentype.ets @@ -39,17 +39,18 @@ type BrokenFunc = (param: T) => void; declare const broken1: BrokenType; declare const broken2: AnotherBroken; -/* @@? 21:33 Error TypeError: Cannot find type 'UndefinedMap'. */ -/* @@? 21:45 Error TypeError: The `keyof` keyword can only be used for class or interface type. */ -/* @@? 21:49 Error SyntaxError: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ -/* @@? 26:36 Error TypeError: Cannot find type 'NonExistent'. */ -/* @@? 26:47 Error TypeError: The `keyof` keyword can only be used for class or interface type. */ -/* @@? 27:27 Error TypeError: Cannot find type 'InvalidInterface'. */ -/* @@? 30:52 Error SyntaxError: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ -/* @@? 31:14 Error SyntaxError: Unexpected token ','. */ -/* @@? 32:26 Error SyntaxError: Unexpected token, expected ']'. */ -/* @@? 32:26 Error SyntaxError: Unexpected token ']'. */ -/* @@? 32:27 Error SyntaxError: Unexpected token ']'. */ -/* @@? 36:27 Error TypeError: Cannot find type 'UndefinedInterface'. */ -/* @@? 39:35 Error TypeError: Cannot find type 'xny'. */ -/* @@? 40:38 Error TypeError: Cannot find type 'xny'. */ + +/* @@? 21:33 Error Semantic error ESE0371: Cannot find type 'UndefinedMap'. */ +/* @@? 21:45 Error Semantic error ESE0276: The `keyof` keyword can only be used for class or interface type. */ +/* @@? 21:49 Error Syntax error ESY177354: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ +/* @@? 26:36 Error Semantic error ESE0371: Cannot find type 'NonExistent'. */ +/* @@? 26:47 Error Semantic error ESE0276: The `keyof` keyword can only be used for class or interface type. */ +/* @@? 27:27 Error Semantic error ESE0371: Cannot find type 'InvalidInterface'. */ +/* @@? 30:52 Error Syntax error ESY177354: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ +/* @@? 31:14 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 32:26 Error Syntax error ESY0228: Unexpected token, expected ']'. */ +/* @@? 32:26 Error Syntax error ESY0227: Unexpected token ']'. */ +/* @@? 32:27 Error Syntax error ESY0227: Unexpected token ']'. */ +/* @@? 36:27 Error Semantic error ESE0371: Cannot find type 'UndefinedInterface'. */ +/* @@? 39:35 Error Semantic error ESE0371: Cannot find type 'xny'. */ +/* @@? 40:38 Error Semantic error ESE0371: Cannot find type 'xny'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/typenode_clone_comprehensive.ets b/ets2panda/test/ast/parser/ets/typenode_clone_comprehensive.ets index 069c51fb2f..9de289b41c 100644 --- a/ets2panda/test/ast/parser/ets/typenode_clone_comprehensive.ets +++ b/ets2panda/test/ast/parser/ets/typenode_clone_comprehensive.ets @@ -67,58 +67,59 @@ declare const test1: ComplexType<'n'>; declare const test2: ComplexType<'s'>; declare const test3: ComplexType<'b'>; -/* @@? 1:3 Error TypeError: Class 'TupleType' is already defined with different type. */ -/* @@? 1:3 Error TypeError: Class 'UnionType' is already defined with different type. */ -/* @@? 21:19 Error SyntaxError: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ -/* @@? 21:30 Error SyntaxError: Unexpected token ','. */ -/* @@? 21:41 Error SyntaxError: Unexpected token ','. */ -/* @@? 32:42 Error TypeError: The `keyof` keyword can only be used for class or interface type. */ -/* @@? 35:44 Error TypeError: The `keyof` keyword can only be used for class or interface type. */ -/* @@? 35:59 Error SyntaxError: Unexpected token, expected ']'. */ -/* @@? 35:59 Error SyntaxError: Unexpected token ']'. */ -/* @@? 35:60 Error SyntaxError: Unexpected token ']'. */ -/* @@? 38:19 Error TypeError: Cannot find type 'a'. */ -/* @@? 38:20 Error SyntaxError: Unexpected token ':'. */ -/* @@? 38:20 Error SyntaxError: Unexpected token, expected ',' or ']'. */ -/* @@? 38:22 Error SyntaxError: Unexpected token 'number'. */ -/* @@? 38:22 Error TypeError: Type name 'number' used in the wrong context */ -/* @@? 38:28 Error SyntaxError: Unexpected token ','. */ -/* @@? 38:30 Error SyntaxError: Unexpected token 'b'. */ -/* @@? 38:33 Error SyntaxError: Label must be followed by a loop statement. */ -/* @@? 38:33 Error TypeError: Type name 'string' used in the wrong context */ -/* @@? 38:39 Error SyntaxError: Unexpected token ']'. */ -/* @@? 41:19 Error SyntaxError: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ -/* @@? 41:22 Error TypeError: Indexed signatures are not allowed. Use arrays instead! */ -/* @@? 41:26 Error SyntaxError: Field type annotation expected. */ -/* @@? 41:32 Error SyntaxError: Field type annotation expected. */ -/* @@? 41:43 Error SyntaxError: Unexpected token ']'. */ -/* @@? 41:43 Error SyntaxError: Field type annotation expected. */ -/* @@? 41:44 Error SyntaxError: Unexpected token ':'. */ -/* @@? 41:46 Error SyntaxError: string is a predefined type, cannot be used as an identifier */ -/* @@? 44:41 Error TypeError: The `keyof` keyword can only be used for class or interface type. */ -/* @@? 44:60 Error SyntaxError: Unexpected token, expected ']'. */ -/* @@? 54:34 Error TypeError: Cannot find type 'InvalidMap'. */ -/* @@? 54:44 Error TypeError: The `keyof` keyword can only be used for class or interface type. */ -/* @@? 57:45 Error TypeError: The `keyof` keyword can only be used for class or interface type. */ -/* @@? 57:63 Error TypeError: The `keyof` keyword can only be used for class or interface type. */ -/* @@? 57:67 Error SyntaxError: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ -/* @@? 58:12 Error SyntaxError: Unexpected token ','. */ -/* @@? 59:23 Error SyntaxError: Unexpected token, expected ']'. */ -/* @@? 59:23 Error SyntaxError: Unexpected token ']'. */ -/* @@? 59:24 Error SyntaxError: Unexpected token ']'. */ -/* @@? 59:25 Error SyntaxError: Unexpected token ','. */ -/* @@? 60:29 Error SyntaxError: Unexpected token, expected ']'. */ -/* @@? 60:40 Error SyntaxError: Unexpected token ','. */ -/* @@? 61:27 Error SyntaxError: Unexpected token, expected ']'. */ -/* @@? 61:28 Error SyntaxError: Unexpected token ']'. */ -/* @@? 61:29 Error SyntaxError: Unexpected token ']'. */ -/* @@? 61:30 Error SyntaxError: Unexpected token ','. */ -/* @@? 62:13 Error SyntaxError: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ -/* @@? 62:16 Error TypeError: Indexed signatures are not allowed. Use arrays instead! */ -/* @@? 62:20 Error SyntaxError: Field type annotation expected. */ -/* @@? 62:22 Error SyntaxError: Unexpected token ']'. */ -/* @@? 62:22 Error SyntaxError: Field type annotation expected. */ -/* @@? 62:23 Error SyntaxError: Unexpected token ':'. */ -/* @@? 62:35 Error SyntaxError: Field type annotation expected. */ -/* @@? 62:36 Error TypeError: Indexed signatures are not allowed. Use arrays instead! */ -/* @@? 62:37 Error SyntaxError: Unexpected token ']'. */ + +/* @@? 1:3 Error Semantic error ESE0350: Class 'UnionType' is already defined with different type. */ +/* @@? 1:3 Error Semantic error ESE0350: Class 'TupleType' is already defined with different type. */ +/* @@? 21:19 Error Syntax error ESY177354: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ +/* @@? 21:30 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 21:41 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 32:42 Error Semantic error ESE0276: The `keyof` keyword can only be used for class or interface type. */ +/* @@? 35:44 Error Semantic error ESE0276: The `keyof` keyword can only be used for class or interface type. */ +/* @@? 35:59 Error Syntax error ESY0228: Unexpected token, expected ']'. */ +/* @@? 35:59 Error Syntax error ESY0227: Unexpected token ']'. */ +/* @@? 35:60 Error Syntax error ESY0227: Unexpected token ']'. */ +/* @@? 38:19 Error Semantic error ESE0371: Cannot find type 'a'. */ +/* @@? 38:20 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 38:20 Error Syntax error ESY0229: Unexpected token, expected ',' or ']'. */ +/* @@? 38:22 Error Syntax error ESY0227: Unexpected token 'number'. */ +/* @@? 38:22 Error Semantic error ESE0144: Type name 'number' used in the wrong context */ +/* @@? 38:28 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 38:30 Error Syntax error ESY0227: Unexpected token 'b'. */ +/* @@? 38:33 Error Syntax error ESY0038: Label must be followed by a loop statement. */ +/* @@? 38:33 Error Semantic error ESE0144: Type name 'string' used in the wrong context */ +/* @@? 38:39 Error Syntax error ESY0227: Unexpected token ']'. */ +/* @@? 41:19 Error Syntax error ESY177354: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ +/* @@? 41:22 Error Semantic error ESE0343: Indexed signatures are not allowed. Use arrays instead! */ +/* @@? 41:26 Error Syntax error ESY0121: Field type annotation expected. */ +/* @@? 41:32 Error Syntax error ESY0121: Field type annotation expected. */ +/* @@? 41:43 Error Syntax error ESY0227: Unexpected token ']'. */ +/* @@? 41:43 Error Syntax error ESY0121: Field type annotation expected. */ +/* @@? 41:44 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 41:46 Error Syntax error ESY0295: string is a predefined type, cannot be used as an identifier */ +/* @@? 44:41 Error Semantic error ESE0276: The `keyof` keyword can only be used for class or interface type. */ +/* @@? 44:60 Error Syntax error ESY0228: Unexpected token, expected ']'. */ +/* @@? 54:34 Error Semantic error ESE0371: Cannot find type 'InvalidMap'. */ +/* @@? 54:44 Error Semantic error ESE0276: The `keyof` keyword can only be used for class or interface type. */ +/* @@? 57:45 Error Semantic error ESE0276: The `keyof` keyword can only be used for class or interface type. */ +/* @@? 57:63 Error Semantic error ESE0276: The `keyof` keyword can only be used for class or interface type. */ +/* @@? 57:67 Error Syntax error ESY177354: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ +/* @@? 58:12 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 59:23 Error Syntax error ESY0228: Unexpected token, expected ']'. */ +/* @@? 59:23 Error Syntax error ESY0227: Unexpected token ']'. */ +/* @@? 59:24 Error Syntax error ESY0227: Unexpected token ']'. */ +/* @@? 59:25 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 60:29 Error Syntax error ESY0228: Unexpected token, expected ']'. */ +/* @@? 60:40 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 61:27 Error Syntax error ESY0228: Unexpected token, expected ']'. */ +/* @@? 61:28 Error Syntax error ESY0227: Unexpected token ']'. */ +/* @@? 61:29 Error Syntax error ESY0227: Unexpected token ']'. */ +/* @@? 61:30 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 62:13 Error Syntax error ESY177354: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ +/* @@? 62:16 Error Semantic error ESE0343: Indexed signatures are not allowed. Use arrays instead! */ +/* @@? 62:20 Error Syntax error ESY0121: Field type annotation expected. */ +/* @@? 62:22 Error Syntax error ESY0227: Unexpected token ']'. */ +/* @@? 62:22 Error Syntax error ESY0121: Field type annotation expected. */ +/* @@? 62:23 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 62:35 Error Syntax error ESY0121: Field type annotation expected. */ +/* @@? 62:36 Error Semantic error ESE0343: Indexed signatures are not allowed. Use arrays instead! */ +/* @@? 62:37 Error Syntax error ESY0227: Unexpected token ']'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/typenode_clone_primitives.ets b/ets2panda/test/ast/parser/ets/typenode_clone_primitives.ets index 2cce27da50..3e235acf36 100644 --- a/ets2panda/test/ast/parser/ets/typenode_clone_primitives.ets +++ b/ets2panda/test/ast/parser/ets/typenode_clone_primitives.ets @@ -46,15 +46,16 @@ declare const num: NumAlias<42>; declare const str: StrAlias<"test">; declare const bool: BoolAlias; -/* @@? 37:73 Error SyntaxError: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ -/* @@? 38:16 Error SyntaxError: Unexpected token ','. */ -/* @@? 39:16 Error SyntaxError: Unexpected token ','. */ -/* @@? 40:17 Error SyntaxError: Unexpected token ','. */ -/* @@? 45:29 Error SyntaxError: Invalid Type. */ -/* @@? 45:29 Error SyntaxError: Unexpected token, expected '>'. */ -/* @@? 45:29 Error SyntaxError: Unexpected token '>'. */ -/* @@? 45:32 Error SyntaxError: Unexpected token ';'. */ -/* @@? 47:31 Error SyntaxError: Invalid Type. */ -/* @@? 47:31 Error SyntaxError: Unexpected token, expected '>'. */ -/* @@? 47:31 Error SyntaxError: Unexpected token '>'. */ -/* @@? 47:36 Error SyntaxError: Unexpected token ';'. */ + +/* @@? 37:73 Error Syntax error ESY177354: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ +/* @@? 38:16 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 39:16 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 40:17 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 45:29 Error Syntax error ESY0138: Invalid Type. */ +/* @@? 45:29 Error Syntax error ESY0228: Unexpected token, expected '>'. */ +/* @@? 45:29 Error Syntax error ESY0227: Unexpected token '>'. */ +/* @@? 45:32 Error Syntax error ESY0227: Unexpected token ';'. */ +/* @@? 47:31 Error Syntax error ESY0138: Invalid Type. */ +/* @@? 47:31 Error Syntax error ESY0228: Unexpected token, expected '>'. */ +/* @@? 47:31 Error Syntax error ESY0227: Unexpected token '>'. */ +/* @@? 47:36 Error Syntax error ESY0227: Unexpected token ';'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/typeof_in_annotation.ets b/ets2panda/test/ast/parser/ets/typeof_in_annotation.ets index 2ab98e4b55..5bf139618b 100644 --- a/ets2panda/test/ast/parser/ets/typeof_in_annotation.ets +++ b/ets2panda/test/ast/parser/ets/typeof_in_annotation.ets @@ -18,7 +18,8 @@ let s1 = "foo" let n2: typeof n1 let s2: typeof s1 -/* @@? 18:16 Error SyntaxError: Result of 'typeof' operator is not supported to be used as type annotation. */ -/* @@? 18:16 Error SyntaxError: Unexpected token 'n1'. */ -/* @@? 19:16 Error SyntaxError: Result of 'typeof' operator is not supported to be used as type annotation. */ -/* @@? 19:16 Error SyntaxError: Unexpected token 's1'. */ + +/* @@? 18:16 Error Syntax error ESY0309: Result of 'typeof' operator is not supported to be used as type annotation. */ +/* @@? 18:16 Error Syntax error ESY0227: Unexpected token 'n1'. */ +/* @@? 19:16 Error Syntax error ESY0309: Result of 'typeof' operator is not supported to be used as type annotation. */ +/* @@? 19:16 Error Syntax error ESY0227: Unexpected token 's1'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/typeparameter_constraint_circular-neg_0.ets b/ets2panda/test/ast/parser/ets/typeparameter_constraint_circular-neg_0.ets index 0633f881b0..4526011389 100644 --- a/ets2panda/test/ast/parser/ets/typeparameter_constraint_circular-neg_0.ets +++ b/ets2panda/test/ast/parser/ets/typeparameter_constraint_circular-neg_0.ets @@ -14,4 +14,5 @@ */ function foo() {} -/* @@@ label Error TypeError: Type parameter 'T' has circular constraint dependency. */ + +/* @@@ label Error Semantic error ESE0184: Type parameter 'T' has circular constraint dependency. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/typeparameter_constraint_circular-neg_1.ets b/ets2panda/test/ast/parser/ets/typeparameter_constraint_circular-neg_1.ets index c9d98306aa..4f9ea79fb9 100644 --- a/ets2panda/test/ast/parser/ets/typeparameter_constraint_circular-neg_1.ets +++ b/ets2panda/test/ast/parser/ets/typeparameter_constraint_circular-neg_1.ets @@ -14,4 +14,5 @@ */ function foo() {} -/* @@@ label Error TypeError: Type parameter 'R' has circular constraint dependency. */ + +/* @@@ label Error Semantic error ESE0184: Type parameter 'R' has circular constraint dependency. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/types_decls.ets b/ets2panda/test/ast/parser/ets/types_decls.ets index 07eedb43d2..261f6b312b 100644 --- a/ets2panda/test/ast/parser/ets/types_decls.ets +++ b/ets2panda/test/ast/parser/ets/types_decls.ets @@ -56,11 +56,12 @@ let non_prim_c: Char = c'b'; // see 3.1.5 Void type function v(): void {} -/* @@? 35:21 Error TypeError: Type 'Double' cannot be assigned to type 'Float' */ -/* @@? 36:25 Error TypeError: Type 'Double' cannot be assigned to type 'Float' */ -/* @@@ label Error TypeError: Variable 'prim_b' has already been declared. */ -/* @@? 45:27 Error TypeError: Cannot find type 'bool'. */ -/* @@? 45:34 Error TypeError: Type 'Boolean' cannot be assigned to type 'Byte' */ -/* @@? 46:5 Error TypeError: Variable 'non_prim_b' has already been declared. */ -/* @@? 46:17 Error TypeError: Cannot find type 'Bool'. */ -/* @@? 46:24 Error TypeError: Type 'Boolean' cannot be assigned to type 'Byte' */ + +/* @@? 35:21 Error Semantic error ESE0318: Type 'Double' cannot be assigned to type 'Float' */ +/* @@? 36:25 Error Semantic error ESE0318: Type 'Double' cannot be assigned to type 'Float' */ +/* @@@ label Error Semantic error ESE0351: Variable 'prim_b' has already been declared. */ +/* @@? 45:27 Error Semantic error ESE0371: Cannot find type 'bool'. */ +/* @@? 45:34 Error Semantic error ESE0318: Type 'Boolean' cannot be assigned to type 'Byte' */ +/* @@? 46:5 Error Semantic error ESE0351: Variable 'non_prim_b' has already been declared. */ +/* @@? 46:17 Error Semantic error ESE0371: Cannot find type 'Bool'. */ +/* @@? 46:24 Error Semantic error ESE0318: Type 'Boolean' cannot be assigned to type 'Byte' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/types_no_object_lit_to_decl.ets b/ets2panda/test/ast/parser/ets/types_no_object_lit_to_decl.ets index 633a00e7ac..7dcb76c39d 100644 --- a/ets2panda/test/ast/parser/ets/types_no_object_lit_to_decl.ets +++ b/ets2panda/test/ast/parser/ets/types_no_object_lit_to_decl.ets @@ -15,5 +15,6 @@ let o: /* @@ label */{ x: number/* @@ label2 */, y: number } = { x: 2, y: 3 } -/* @@@ label Error SyntaxError: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ -/* @@@ label2 Error SyntaxError: Unexpected token ','. */ + +/* @@@ label Error Syntax error ESY177354: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ +/* @@@ label2 Error Syntax error ESY0227: Unexpected token ','. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/types_no_object_lit_to_decl_2.ets b/ets2panda/test/ast/parser/ets/types_no_object_lit_to_decl_2.ets index dbbd45161e..1d7d3e184e 100644 --- a/ets2panda/test/ast/parser/ets/types_no_object_lit_to_decl_2.ets +++ b/ets2panda/test/ast/parser/ets/types_no_object_lit_to_decl_2.ets @@ -15,5 +15,6 @@ type S = Set -/* @@@ label Error SyntaxError: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ -/* @@@ label2 Error SyntaxError: Unexpected token ','. */ + +/* @@@ label Error Syntax error ESY177354: Using object literals to declare types in place is not supported. Please declare types and interfaces explicitly! */ +/* @@@ label2 Error Syntax error ESY0227: Unexpected token ','. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/unclosed_loop.ets b/ets2panda/test/ast/parser/ets/unclosed_loop.ets index a2b6128cce..0b20762884 100644 --- a/ets2panda/test/ast/parser/ets/unclosed_loop.ets +++ b/ets2panda/test/ast/parser/ets/unclosed_loop.ets @@ -24,7 +24,7 @@ function main(): int { /* @@ label3 */continue return 0; } -/* @@@ label Error TypeError: Control flow redirection statement can not be used out of loop or switch statement. */ -/* @@@ label1 Error TypeError: Control flow redirection statement can not be used out of loop or switch statement. */ -/* @@@ label2 Error TypeError: Control flow redirection statement can not be used out of loop or switch statement. */ -/* @@@ label3 Error TypeError: Control flow redirection statement can not be used out of loop or switch statement. */ \ No newline at end of file +/* @@@ label Error Semantic error ESE0161: Control flow redirection statement can not be used out of loop or switch statement. */ +/* @@@ label1 Error Semantic error ESE0161: Control flow redirection statement can not be used out of loop or switch statement. */ +/* @@@ label2 Error Semantic error ESE0161: Control flow redirection statement can not be used out of loop or switch statement. */ +/* @@@ label3 Error Semantic error ESE0161: Control flow redirection statement can not be used out of loop or switch statement. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/undefinedNullNotObject.ets b/ets2panda/test/ast/parser/ets/undefinedNullNotObject.ets index 2abca16932..3a9e4bfa6a 100644 --- a/ets2panda/test/ast/parser/ets/undefinedNullNotObject.ets +++ b/ets2panda/test/ast/parser/ets/undefinedNullNotObject.ets @@ -18,4 +18,5 @@ function main(){ mix = /* @@ label */new Object(); } -/* @@@ label Error TypeError: Type 'Object' cannot be assigned to type 'undefined|null' */ + +/* @@@ label Error Semantic error ESE0318: Type 'Object' cannot be assigned to type 'undefined|null' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_1.ets b/ets2panda/test/ast/parser/ets/unexpected_token_1.ets index 475a31b33c..11048f7313 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_1.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_1.ets @@ -15,6 +15,7 @@ import num from @^& -/* @@? 16:17 Error SyntaxError: Unexpected token, expected string literal. */ -/* @@? 16:17 Error TypeError: Bad operand type, the types of the operands must be numeric type. */ -/* @@? 16:19 Error SyntaxError: Unexpected token '&'. */ + +/* @@? 16:17 Error Syntax error ESY0151: Unexpected token, expected string literal. */ +/* @@? 16:17 Error Semantic error ESE0107: Bad operand type, the types of the operands must be numeric type. */ +/* @@? 16:19 Error Syntax error ESY0227: Unexpected token '&'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_10.ets b/ets2panda/test/ast/parser/ets/unexpected_token_10.ets index 71868b43ec..9a0c0e9082 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_10.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_10.ets @@ -15,7 +15,8 @@ import /* @@ label */(/* @@ label1 */node/* @@ label2 */) /* @@ label3 */from -/* @@@ label Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@@ label1 Error SyntaxError: Unexpected token, expected 'from'. */ -/* @@@ label2 Error SyntaxError: Unexpected token, expected 'from'. */ -/* @@@ label3 Error SyntaxError: Unexpected token, expected string literal. */ + +/* @@@ label Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@@ label1 Error Syntax error ESY0228: Unexpected token, expected 'from'. */ +/* @@@ label2 Error Syntax error ESY0228: Unexpected token, expected 'from'. */ +/* @@@ label3 Error Syntax error ESY0151: Unexpected token, expected string literal. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_11.ets b/ets2panda/test/ast/parser/ets/unexpected_token_11.ets index b64b32d756..d5a0954a5a 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_11.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_11.ets @@ -15,4 +15,5 @@ do {} /* @@ label */whi (true) -/* @@@ label Error SyntaxError: Unexpected token, expected 'while'. */ + +/* @@@ label Error Syntax error ESY0228: Unexpected token, expected 'while'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_12.ets b/ets2panda/test/ast/parser/ets/unexpected_token_12.ets index b963cbd92e..ad7b7cda99 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_12.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_12.ets @@ -15,8 +15,9 @@ import { foo, bar } /* @@ label */kjfjf /* @@ label1 */988 /* @@ label2 */from /* @@ label3 */"./import_tests/modules/module" -/* @@@ label Error SyntaxError: Unexpected token, expected 'from'. */ -/* @@@ label1 Error SyntaxError: Unexpected token, expected string literal. */ -/* @@@ label2 Error SyntaxError: Unexpected token 'from'. */ -/* @@? 16:75 Error TypeError: Unresolved reference from */ -/* @@@ label3 Error SyntaxError: Unexpected token './import_tests/modules/module'. */ + +/* @@@ label Error Syntax error ESY0228: Unexpected token, expected 'from'. */ +/* @@@ label1 Error Syntax error ESY0151: Unexpected token, expected string literal. */ +/* @@@ label2 Error Syntax error ESY0227: Unexpected token 'from'. */ +/* @@@ label2 Error Semantic error ESE0143: Unresolved reference from */ +/* @@@ label3 Error Syntax error ESY0227: Unexpected token './import_tests/modules/module'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_13.ets b/ets2panda/test/ast/parser/ets/unexpected_token_13.ets index 74bc387d00..99162704ea 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_13.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_13.ets @@ -15,5 +15,6 @@ import X1/* @@ label */~ from -/* @@@ label Error SyntaxError: Unexpected token, expected 'from'. */ -/* @@? 20:1 Error SyntaxError: Unexpected token, expected string literal. */ + +/* @@@ label Error Syntax error ESY0228: Unexpected token, expected 'from'. */ +/* @@? 20:87 Error Syntax error ESY0151: Unexpected token, expected string literal. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_14.ets b/ets2panda/test/ast/parser/ets/unexpected_token_14.ets index 8cf75f4f62..1d35016392 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_14.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_14.ets @@ -19,9 +19,10 @@ enum HEHE } -/* @@? 17:5 Error SyntaxError: Unexpected token, expected '{'. */ -/* @@? 17:9 Error SyntaxError: Identifier expected, got '='. */ -/* @@? 17:11 Error SyntaxError: Unexpected token, expected ',' or '}'. */ -/* @@? 17:21 Error SyntaxError: Unexpected token ','. */ -/* @@? 18:5 Error TypeError: Unresolved reference Green */ -/* @@? 19:1 Error SyntaxError: Unexpected token '}'. */ + +/* @@? 17:5 Error Syntax error ESY0228: Unexpected token, expected '{'. */ +/* @@? 17:9 Error Syntax error ESY0224: Identifier expected, got '='. */ +/* @@? 17:11 Error Syntax error ESY0229: Unexpected token, expected ',' or '}'. */ +/* @@? 17:21 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 18:5 Error Semantic error ESE0143: Unresolved reference Green */ +/* @@? 19:1 Error Syntax error ESY0227: Unexpected token '}'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_15.ets b/ets2panda/test/ast/parser/ets/unexpected_token_15.ets index aee9c4ea50..443b4505ee 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_15.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_15.ets @@ -15,5 +15,6 @@ try /* @@ label */} catch (/* @@ label1 */) {} -/* @@@ label Error SyntaxError: Expected '{', got '}'. */ -/* @@@ label1 Error SyntaxError: Unexpected token, expected an identifier. */ + +/* @@@ label Error Syntax error ESY0230: Expected '{', got '}'. */ +/* @@@ label1 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_16.ets b/ets2panda/test/ast/parser/ets/unexpected_token_16.ets index 4ed6781a78..9543c744ae 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_16.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_16.ets @@ -31,4 +31,7 @@ function main(): void { } } -/* @@@ label Error SyntaxError: Unexpected token 'break', expected ':' */ + +/* @@? 23:18 Error Semantic error ESE0091: Type 'void' is not compatible with the enclosing method's return type 'Int' */ +/* @@? 25:18 Error Semantic error ESE0262: Switch case type 'double' is not comparable to discriminant type 'int' */ +/* @@@ label Error Syntax error ESY0230: Expected ':', got 'break'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_17.ets b/ets2panda/test/ast/parser/ets/unexpected_token_17.ets index 436b195007..79ffecdc3e 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_17.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_17.ets @@ -31,4 +31,7 @@ function main(): void { } } -/* @@@ label Error SyntaxError: Unexpected token 'case', expected '{' */ + +/* @@? 23:18 Error Semantic error ESE0091: Type 'void' is not compatible with the enclosing method's return type 'Int' */ +/* @@@ label Error Syntax error ESY0230: Expected '{', got 'case'. */ +/* @@? 25:32 Error Semantic error ESE0262: Switch case type 'double' is not comparable to discriminant type 'int' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_18.ets b/ets2panda/test/ast/parser/ets/unexpected_token_18.ets index 9ca9cf1006..d0d4e7d4f9 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_18.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_18.ets @@ -15,4 +15,5 @@ try {} catch (e) /* @@ label */} -/* @@@ label Error SyntaxError: Expected '{', got '}'. */ + +/* @@@ label Error Syntax error ESY0230: Expected '{', got '}'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_19.ets b/ets2panda/test/ast/parser/ets/unexpected_token_19.ets index aef678ed24..e48bf552af 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_19.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_19.ets @@ -15,5 +15,6 @@ interface A /* @@ label */} -/* @@@ label Error SyntaxError: Unexpected token, expected '{'. */ -/* @@? 20:1 Error SyntaxError: Unexpected token, expected '}'. */ + +/* @@@ label Error Syntax error ESY0228: Unexpected token, expected '{'. */ +/* @@? 20:76 Error Syntax error ESY0228: Unexpected token, expected '}'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_2.ets b/ets2panda/test/ast/parser/ets/unexpected_token_2.ets index 9fd9559ad1..2faead97ec 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_2.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_2.ets @@ -36,6 +36,7 @@ function labeledTest01(): int { return result; } -/* @@@ label Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@@ label1 Error SyntaxError: Unexpected token 'label1'. */ -/* @@@ label1 Error TypeError: Identifier 'label1' is used in wrong context. */ + +/* @@@ label Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@@ label1 Error Syntax error ESY0227: Unexpected token 'label1'. */ +/* @@@ label1 Error Semantic error ESE0330: Identifier 'label1' is used in wrong context. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_20.ets b/ets2panda/test/ast/parser/ets/unexpected_token_20.ets index 916eadf031..2eaab14e67 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_20.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_20.ets @@ -15,4 +15,5 @@ try {} catch /* @@ label */e) {} finally {} -/* @@@ label Error SyntaxError: Expected '(', got 'identification literal'. */ + +/* @@@ label Error Syntax error ESY0230: Expected '(', got 'identification literal'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_21.ets b/ets2panda/test/ast/parser/ets/unexpected_token_21.ets index d4101acf56..a01423a544 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_21.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_21.ets @@ -17,6 +17,7 @@ async function asyncFunc): Promise { return true; } -/* @@? 16:25 Error SyntaxError: Unexpected token, expected '('. */ -/* @@? 16:26 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 16:45 Error SyntaxError: Unexpected token, expected ',' or ')'. */ + +/* @@? 16:25 Error Syntax error ESY0228: Unexpected token, expected '('. */ +/* @@? 16:26 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 16:45 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_22.ets b/ets2panda/test/ast/parser/ets/unexpected_token_22.ets index 844628de89..e1f9ca2d11 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_22.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_22.ets @@ -36,7 +36,7 @@ function main(): void { callAsyncLambda(); } -/* @@? 25:43 Error SyntaxError: Unexpected token, expected '('. */ -/* @@? 25:43 Error TypeError: Type '(p1: Promise) => Promise' cannot be assigned to type '() => Promise' */ -/* @@? 25:44 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 25:60 Error SyntaxError: Unexpected token, expected ',' or ')'. */ +/* @@? 25:43 Error Syntax error ESY0228: Unexpected token, expected '('. */ +/* @@? 25:43 Error Semantic error ESE0318: Type '(p1: Promise) => Promise' cannot be assigned to type '() => Promise' */ +/* @@? 25:44 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 25:60 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_23.ets b/ets2panda/test/ast/parser/ets/unexpected_token_23.ets index 9f614340a0..f05705fb8e 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_23.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_23.ets @@ -15,4 +15,5 @@ do {} while /* @@ label */[true) -/* @@@ label Error SyntaxError: Unexpected token, expected '('. */ + +/* @@@ label Error Syntax error ESY0228: Unexpected token, expected '('. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_24.ets b/ets2panda/test/ast/parser/ets/unexpected_token_24.ets index e2d0fa6af6..2c0a9a5a53 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_24.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_24.ets @@ -27,6 +27,7 @@ function main(): void { } } -/* @@? 19:5 Error TypeError: Unresolved reference with_param */ -/* @@? 20:31 Error SyntaxError: Expected '(', got 'identification literal'. */ -/* @@? 21:28 Error SyntaxError: Expected '{', got 'case'. */ + +/* @@? 19:5 Error Semantic error ESE0143: Unresolved reference with_param */ +/* @@@ label1 Error Syntax error ESY0230: Expected '(', got 'identification literal'. */ +/* @@@ label2 Error Syntax error ESY0230: Expected '{', got 'case'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_25.ets b/ets2panda/test/ast/parser/ets/unexpected_token_25.ets index 629580bc4c..ae15ac55a1 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_25.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_25.ets @@ -16,12 +16,13 @@ let x: int[ = [1,2,3] let y: int = x [0] -/* @@? 16:13 Error SyntaxError: Unexpected token, expected ']'. */ -/* @@? 16:13 Error SyntaxError: Unexpected token ']'. */ -/* @@? 16:13 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@? 16:17 Error SyntaxError: Unexpected token, expected ']'. */ -/* @@? 16:18 Error SyntaxError: Unexpected token '2'. */ -/* @@? 16:19 Error SyntaxError: Unexpected token ','. */ -/* @@? 16:20 Error SyntaxError: Unexpected token '3'. */ -/* @@? 16:21 Error SyntaxError: Unexpected token ']'. */ -/* @@? 17:14 Error TypeError: Indexed access is not supported for such expression type. */ + +/* @@? 16:13 Error Syntax error ESY0228: Unexpected token, expected ']'. */ +/* @@? 16:13 Error Syntax error ESY0227: Unexpected token ']'. */ +/* @@? 16:13 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 16:17 Error Syntax error ESY0228: Unexpected token, expected ']'. */ +/* @@? 16:18 Error Syntax error ESY0227: Unexpected token '2'. */ +/* @@? 16:19 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 16:20 Error Syntax error ESY0227: Unexpected token '3'. */ +/* @@? 16:21 Error Syntax error ESY0227: Unexpected token ']'. */ +/* @@? 17:14 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_26.ets b/ets2panda/test/ast/parser/ets/unexpected_token_26.ets index fb94eb1691..9fc31b8819 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_26.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_26.ets @@ -16,4 +16,5 @@ let x: int[] = [1,2,3] let y: int = x [0 -/* @@? 20:1 Error SyntaxError: Unexpected token, expected ']'. */ + +/* @@? 20:76 Error Syntax error ESY0228: Unexpected token, expected ']'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_27.ets b/ets2panda/test/ast/parser/ets/unexpected_token_27.ets index e9078503bc..99920a0c47 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_27.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_27.ets @@ -17,5 +17,6 @@ interface A {} interface B {} class C implements A, B /* @@ label */[} -/* @@@ label Error SyntaxError: Unexpected token, expected ','. */ -/* @@@ label Error SyntaxError: Expected '{', got ','. */ + +/* @@@ label Error Syntax error ESY0228: Unexpected token, expected ','. */ +/* @@@ label Error Syntax error ESY0230: Expected '{', got ','. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_28.ets b/ets2panda/test/ast/parser/ets/unexpected_token_28.ets index b71e53851f..ea23f0cdbc 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_28.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_28.ets @@ -17,11 +17,12 @@ interface A {} interface B {} interface C extends A, B [} -/* @@? 18:26 Error SyntaxError: Unexpected token, expected ','. */ -/* @@? 18:27 Error SyntaxError: Identifier expected. */ -/* @@? 18:27 Error SyntaxError: Unexpected token, expected ','. */ -/* @@? 18:27 Error TypeError: Interface expected here. */ -/* @@? 28:1 Error SyntaxError: Identifier expected. */ -/* @@? 28:1 Error SyntaxError: Unexpected token, expected '{'. */ -/* @@? 28:1 Error SyntaxError: Unexpected token, expected '}'. */ -/* @@? 28:1 Error TypeError: Interface expected here. */ + +/* @@? 18:26 Error Syntax error ESY0228: Unexpected token, expected ','. */ +/* @@? 18:27 Error Syntax error ESY0122: Identifier expected. */ +/* @@? 18:27 Error Syntax error ESY0228: Unexpected token, expected ','. */ +/* @@? 18:27 Error Semantic error ESE0179: Interface expected here. */ +/* @@? 28:71 Error Syntax error ESY0122: Identifier expected. */ +/* @@? 28:71 Error Syntax error ESY0228: Unexpected token, expected '{'. */ +/* @@? 28:71 Error Syntax error ESY0228: Unexpected token, expected '}'. */ +/* @@? 28:71 Error Semantic error ESE0179: Interface expected here. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_29.ets b/ets2panda/test/ast/parser/ets/unexpected_token_29.ets index b2c42936fa..839e8f362e 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_29.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_29.ets @@ -19,11 +19,12 @@ function main(): void { } /*@@ label4 */} -/* @@@ label1 Error SyntaxError: Expected ';', got 'identification literal'. */ -/* @@? 17:44 Error TypeError: Bad operand type, the types of the operands must be numeric type. */ -/* @@@ label2 Error SyntaxError: Unexpected token, expected ';'. */ -/* @@? 17:69 Error TypeError: need to specify target type for class composite */ -/* @@? 18:30 Error SyntaxError: Unexpected token, expected ':'. */ -/* @@? 20:15 Error SyntaxError: Expected ')', got '}'. */ -/* @@? 20:15 Error SyntaxError: Unexpected token '}'. */ -/* @@? 30:1 Error SyntaxError: Expected '}', got 'end of stream'. */ + +/* @@@ label1 Error Syntax error ESY0230: Expected ';', got 'identification literal'. */ +/* @@? 17:44 Error Semantic error ESE0107: Bad operand type, the types of the operands must be numeric type. */ +/* @@@ label2 Error Syntax error ESY0228: Unexpected token, expected ';'. */ +/* @@? 17:69 Error Semantic error ESE0062: need to specify target type for class composite */ +/* @@@ label3 Error Syntax error ESY0228: Unexpected token, expected ':'. */ +/* @@@ label4 Error Syntax error ESY0230: Expected ')', got '}'. */ +/* @@@ label4 Error Syntax error ESY0227: Unexpected token '}'. */ +/* @@? 30:79 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_3.ets b/ets2panda/test/ast/parser/ets/unexpected_token_3.ets index 9d34f48d53..50ef4eb944 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_3.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_3.ets @@ -36,7 +36,8 @@ function labeledTest01(): int { return result; } -/* @@@ label Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@@ label1 Error SyntaxError: Unexpected token '^'. */ -/* @@? 27:57 Error SyntaxError: Unexpected token 'label1'. */ -/* @@? 27:57 Error TypeError: Identifier 'label1' is used in wrong context. */ + +/* @@@ label Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@@ label1 Error Syntax error ESY0227: Unexpected token '^'. */ +/* @@? 27:57 Error Syntax error ESY0227: Unexpected token 'label1'. */ +/* @@? 27:57 Error Semantic error ESE0330: Identifier 'label1' is used in wrong context. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_30.ets b/ets2panda/test/ast/parser/ets/unexpected_token_30.ets index 3dc7c9d733..9dc59f9739 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_30.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_30.ets @@ -19,6 +19,7 @@ function main(): void { } } -/* @@? 17:23 Error TypeError: Bad operand type, the types of the operands must be numeric type. */ -/* @@? 17:27 Error TypeError: Variable 'i' is accessed before it's initialization. */ -/* @@@ label Error SyntaxError: Expected ';', got ')'. */ + +/* @@? 17:23 Error Semantic error ESE0107: Bad operand type, the types of the operands must be numeric type. */ +/* @@? 17:27 Error Semantic error ESE0365: Variable 'i' is accessed before it's initialization. */ +/* @@@ label Error Syntax error ESY0230: Expected ';', got ')'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_31.ets b/ets2panda/test/ast/parser/ets/unexpected_token_31.ets index 01374410c3..22b84e100b 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_31.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_31.ets @@ -17,16 +17,17 @@ function foo(...^number: int[]): int { return number[0] } -/* @@? 16:10 Error TypeError: Only abstract or native methods can't have body. */ -/* @@? 16:14 Error SyntaxError: Rest parameter should be either array or tuple type. */ -/* @@? 16:17 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 16:18 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ -/* @@? 16:18 Error SyntaxError: Rest parameter must be the last formal parameter. */ -/* @@? 16:31 Error SyntaxError: Unexpected token ')'. */ -/* @@? 16:32 Error SyntaxError: Unexpected token ':'. */ -/* @@? 16:34 Error SyntaxError: Unexpected token 'int'. */ -/* @@? 16:38 Error SyntaxError: Unexpected token '{'. */ -/* @@? 17:5 Error SyntaxError: return keyword should be used in function body. */ -/* @@? 17:12 Error TypeError: Type name 'number' used in the wrong context */ -/* @@? 17:12 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@? 17:12 Error TypeError: All return statements in the function should be empty or have a value. */ + +/* @@? 16:10 Error Semantic error ESE0017: Only abstract or native methods can't have body. */ +/* @@? 16:14 Error Syntax error ESY0193: Rest parameter should be either array or tuple type. */ +/* @@? 16:17 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 16:18 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ +/* @@? 16:18 Error Syntax error ESY0067: Rest parameter must be the last formal parameter. */ +/* @@? 16:31 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 16:32 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 16:34 Error Syntax error ESY0227: Unexpected token 'int'. */ +/* @@? 16:38 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 17:5 Error Syntax error ESY0163: return keyword should be used in function body. */ +/* @@? 17:12 Error Semantic error ESE0144: Type name 'number' used in the wrong context */ +/* @@? 17:12 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 17:12 Error Semantic error ESE0092: All return statements in the function should be empty or have a value. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_32.ets b/ets2panda/test/ast/parser/ets/unexpected_token_32.ets index 001705a3bb..51c6d5944d 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_32.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_32.ets @@ -15,7 +15,7 @@ class G'. */ -/* @@@ label1 Error SyntaxError: Expected '{', got '}'. */ -/* @@@ label2 Error SyntaxError: Expected '}', got 'end of stream'. */ -/* @@label2 */ \ No newline at end of file + +/* @@label2 *//* @@@ label Error Syntax error ESY0228: Unexpected token, expected '>'. */ +/* @@@ label1 Error Syntax error ESY0230: Expected '{', got '}'. */ +/* @@? 21:79 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_33.ets b/ets2panda/test/ast/parser/ets/unexpected_token_33.ets index 4041748031..e557b6b0f7 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_33.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_33.ets @@ -15,10 +15,11 @@ class G /* @@ label */T/* @@ label1 */, S /* @@ label2 */extends T/* @@ label3 */> /* @@ label4 */{} -/* @@@ label Error SyntaxError: Expected '{', got 'identification literal'. */ -/* @@@ label1 Error SyntaxError: Unexpected token ','. */ -/* @@? 16:42 Error SyntaxError: Field type annotation expected. */ -/* @@@ label2 Error SyntaxError: Unexpected token 'extends'. */ -/* @@? 16:67 Error SyntaxError: Field type annotation expected. */ -/* @@@ label3 Error SyntaxError: Unexpected token '>'. */ -/* @@@ label4 Error SyntaxError: Unexpected token '{'. */ + +/* @@@ label Error Syntax error ESY0230: Expected '{', got 'identification literal'. */ +/* @@@ label1 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 16:42 Error Syntax error ESY0121: Field type annotation expected. */ +/* @@@ label2 Error Syntax error ESY0227: Unexpected token 'extends'. */ +/* @@? 16:67 Error Syntax error ESY0121: Field type annotation expected. */ +/* @@@ label3 Error Syntax error ESY0227: Unexpected token '>'. */ +/* @@@ label4 Error Syntax error ESY0227: Unexpected token '{'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_34.ets b/ets2panda/test/ast/parser/ets/unexpected_token_34.ets index 3ca38740cf..e7e73ec951 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_34.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_34.ets @@ -23,5 +23,7 @@ switch (a /* @@ label */{ console.log("bbb") } -/* @@@ label Error SyntaxError: Unexpected token '{', expected ')' */ + +/* @@? 18:9 Error Semantic error ESE0162: Incompatible types. Found: boolean, required: char , byte , short , int, long , Char , Byte , Short , Int, Long , String or an enum type */ +/* @@@ label Error Syntax error ESY0230: Expected ')', got '{'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_35.ets b/ets2panda/test/ast/parser/ets/unexpected_token_35.ets index c9915a5fa6..08acd42148 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_35.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_35.ets @@ -25,9 +25,10 @@ let sector: float }; } -/* @@? 21:5 Error TypeError: type Float has no property named radius */ -/* @@? 23:19 Error SyntaxError: Unexpected token, expected ')'. */ -/* @@? 23:20 Error SyntaxError: Unexpected token. */ -/* @@? 23:21 Error SyntaxError: Unexpected token ','. */ -/* @@? 24:16 Error SyntaxError: Label must be followed by a loop statement. */ -/* @@? 26:1 Error SyntaxError: Unexpected token '}'. */ + +/* @@? 21:5 Error Semantic error ESE0065: type Float has no property named radius */ +/* @@? 23:19 Error Syntax error ESY0228: Unexpected token, expected ')'. */ +/* @@? 23:20 Error Syntax error ESY0016: Unexpected token. */ +/* @@? 23:21 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 24:16 Error Syntax error ESY0038: Label must be followed by a loop statement. */ +/* @@? 26:1 Error Syntax error ESY0227: Unexpected token '}'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_36.ets b/ets2panda/test/ast/parser/ets/unexpected_token_36.ets index 742ce91981..d011e2f327 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_36.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_36.ets @@ -31,12 +31,13 @@ export class AccessNSieve { } } } -/* @@? 29:10 Error TypeError: Unresolved reference le */ -/* @@? 29:13 Error SyntaxError: Expected ';', got 'identification literal'. */ -/* @@? 29:13 Error TypeError: Unresolved reference i */ -/* @@? 29:14 Error SyntaxError: Expected ';', got ':'. */ -/* @@? 29:14 Error SyntaxError: Unexpected token ':'. */ -/* @@? 29:16 Error SyntaxError: Expected ')', got 'int'. */ -/* @@? 29:16 Error SyntaxError: Unexpected token 'int'. */ -/* @@? 29:36 Error SyntaxError: Unexpected token ')'. */ -/* @@? 29:38 Error SyntaxError: Unexpected token '{'. */ + +/* @@? 29:10 Error Semantic error ESE0143: Unresolved reference le */ +/* @@? 29:13 Error Syntax error ESY0230: Expected ';', got 'identification literal'. */ +/* @@? 29:13 Error Semantic error ESE0143: Unresolved reference i */ +/* @@? 29:14 Error Syntax error ESY0230: Expected ';', got ':'. */ +/* @@? 29:14 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 29:16 Error Syntax error ESY0230: Expected ')', got 'int'. */ +/* @@? 29:16 Error Syntax error ESY0227: Unexpected token 'int'. */ +/* @@? 29:36 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 29:38 Error Syntax error ESY0227: Unexpected token '{'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_37.ets b/ets2panda/test/ast/parser/ets/unexpected_token_37.ets index 11db5876c0..ea3170590c 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_37.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_37.ets @@ -20,12 +20,13 @@ console.log("h") } -/* @@@ label Error SyntaxError: A try statement should contain either finally clause or at least one catch clause. */ -/* @@@ label1 Error SyntaxError: Expected '{', got 'identification literal'. */ -/* @@@ label2 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@@ label2 Error SyntaxError: Unexpected token ':'. */ -/* @@? 17:41 Error SyntaxError: Unexpected token 'Error'. */ -/* @@@ label3 Error SyntaxError: Unexpected token ')'. */ -/* @@? 17:63 Error SyntaxError: Unexpected token '{'. */ -/* @@@ label4 Error SyntaxError: Unexpected token '{'. */ -/* @@? 32:1 Error SyntaxError: Expected '}', got 'end of stream'. */ + +/* @@@ label Error Syntax error ESY0039: A try statement should contain either finally clause or at least one catch clause. */ +/* @@@ label1 Error Syntax error ESY0230: Expected '{', got 'identification literal'. */ +/* @@@ label2 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@@ label2 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 17:41 Error Syntax error ESY0227: Unexpected token 'Error'. */ +/* @@@ label3 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 17:63 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@@ label4 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 32:79 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_38.ets b/ets2panda/test/ast/parser/ets/unexpected_token_38.ets index cf3bc0a1d1..11b98e2e0f 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_38.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_38.ets @@ -23,8 +23,9 @@ let func3: (f: (a: number, b: string) => number[]): number[] => (a: number, b: b // let func3: (f: (a: number, b: string) => number[]): number[]) => (a: number, b: boolean) => true; -/* @@? 19:8 Error TypeError: 'void' used as type annotation. */ -/* @@? 22:51 Error SyntaxError: Unexpected token, expected '=>'. */ -/* @@? 22:51 Error SyntaxError: Unexpected token '=>'. */ -/* @@? 22:53 Error SyntaxError: Unexpected token 'number'. */ -/* @@? 22:62 Error SyntaxError: Unexpected token '=>'. */ + +/* @@? 19:8 Error Semantic error ESE0232: 'void' used as type annotation. */ +/* @@? 22:51 Error Syntax error ESY0228: Unexpected token, expected '=>'. */ +/* @@? 22:51 Error Syntax error ESY0227: Unexpected token '=>'. */ +/* @@? 22:53 Error Syntax error ESY0227: Unexpected token 'number'. */ +/* @@? 22:62 Error Syntax error ESY0227: Unexpected token '=>'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_39.ets b/ets2panda/test/ast/parser/ets/unexpected_token_39.ets index 31b0b10aa7..87f335ad21 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_39.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_39.ets @@ -15,4 +15,5 @@ let r: ((((number)))[]/* @@ label */; -/* @@@ label Error SyntaxError: Unexpected token, expected ')'. */ + +/* @@@ label Error Syntax error ESY0228: Unexpected token, expected ')'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_4.ets b/ets2panda/test/ast/parser/ets/unexpected_token_4.ets index 5c8a7e33b0..8cc3aa6d97 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_4.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_4.ets @@ -15,6 +15,7 @@ import {/* @@ label */^} from /* @@ label1 */"./import_tests/modules/module" -/* @@@ label Error SyntaxError: Unexpected token '^'. */ -/* @@? 16:26 Error TypeError: Unresolved reference from */ -/* @@@ label1 Error SyntaxError: Unexpected token './import_tests/modules/module'. */ + +/* @@@ label Error Syntax error ESY0227: Unexpected token '^'. */ +/* @@? 16:26 Error Semantic error ESE0143: Unresolved reference from */ +/* @@@ label1 Error Syntax error ESY0227: Unexpected token './import_tests/modules/module'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_40.ets b/ets2panda/test/ast/parser/ets/unexpected_token_40.ets index f4c93de60b..f7b9e15af5 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_40.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_40.ets @@ -15,6 +15,7 @@ let arr = new Array' is generic but type argument were not provided. */ -/* @@? 16:41 Error SyntaxError: Unexpected token, expected '>'. */ -/* @@? 21:1 Error SyntaxError: Unexpected token 'end of stream'. */ + +/* @@? 16:15 Error Semantic error ESE0170: Type 'Array' is generic but type argument were not provided. */ +/* @@@ label Error Syntax error ESY0228: Unexpected token, expected '>'. */ +/* @@? 21:78 Error Syntax error ESY0227: Unexpected token 'end of stream'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_41.ets b/ets2panda/test/ast/parser/ets/unexpected_token_41.ets index 40e2093999..0e9b604a0b 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_41.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_41.ets @@ -17,8 +17,9 @@ for (let i: int = 0; i < d?length/* @@ label */; ++i/* @@ label1 */) { arr.push(d[i]); } -/* @@? 16:26 Error TypeError: Unresolved reference d */ -/* @@? 16:28 Error TypeError: Unresolved reference length */ -/* @@@ label Error SyntaxError: Unexpected token, expected ':'. */ -/* @@@ label1 Error SyntaxError: Expected ';', got ')'. */ -/* @@? 17:5 Error TypeError: Unresolved reference arr */ + +/* @@? 16:26 Error Semantic error ESE0143: Unresolved reference d */ +/* @@? 16:28 Error Semantic error ESE0143: Unresolved reference length */ +/* @@@ label Error Syntax error ESY0228: Unexpected token, expected ':'. */ +/* @@@ label1 Error Syntax error ESY0230: Expected ';', got ')'. */ +/* @@? 17:5 Error Semantic error ESE0143: Unresolved reference arr */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_42.ets b/ets2panda/test/ast/parser/ets/unexpected_token_42.ets index 7d02e8a0d8..f212a9be3b 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_42.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_42.ets @@ -15,5 +15,6 @@ // Int[1,2,3,4,5] let a: number = new Int[1 -/* @@? 16:17 Error TypeError: Type 'Array' cannot be assigned to type 'Double' */ -/* @@? 20:1 Error SyntaxError: Expected ']', got 'end of stream'. */ + +/* @@? 16:17 Error Semantic error ESE0318: Type 'Array' cannot be assigned to type 'Double' */ +/* @@? 20:79 Error Syntax error ESY0230: Expected ']', got 'end of stream'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_43.ets b/ets2panda/test/ast/parser/ets/unexpected_token_43.ets index 28f196a0b8..ffd132c22a 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_43.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_43.ets @@ -15,9 +15,10 @@ let v2 = `--- ${y + abc /* @@ label */${y} = ${ n*2 }!`/* @@ label1 */} ---`;` -/* @@? 16:17 Error TypeError: Unresolved reference y */ -/* @@? 16:21 Error TypeError: Unresolved reference abc */ -/* @@@ label Error SyntaxError: Expected '}', got 'identification literal'. */ -/* @@? 16:49 Error TypeError: Unresolved reference n */ -/* @@@ label1 Error SyntaxError: Unexpected token '}'. */ -/* @@? 16:71 Error TypeError: Bad operand type, the types of the operands must be numeric type. */ + +/* @@? 16:17 Error Semantic error ESE0143: Unresolved reference y */ +/* @@? 16:21 Error Semantic error ESE0143: Unresolved reference abc */ +/* @@@ label Error Syntax error ESY0230: Expected '}', got 'identification literal'. */ +/* @@? 16:49 Error Semantic error ESE0143: Unresolved reference n */ +/* @@@ label1 Error Syntax error ESY0227: Unexpected token '}'. */ +/* @@@ label1 Error Semantic error ESE0107: Bad operand type, the types of the operands must be numeric type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_44.ets b/ets2panda/test/ast/parser/ets/unexpected_token_44.ets index ebff97f5b4..2bb8803d32 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_44.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_44.ets @@ -19,4 +19,5 @@ do { ) } while /* @@ label */[true) -/* @@@ label Error SyntaxError: Unexpected token, expected '('. */ + +/* @@@ label Error Syntax error ESY0228: Unexpected token, expected '('. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_45.ets b/ets2panda/test/ast/parser/ets/unexpected_token_45.ets index 8ee88559f0..524a7b851c 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_45.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_45.ets @@ -19,5 +19,5 @@ do { ) } while (true -/* @@@ label Error SyntaxError: Expected ')', got 'end of stream'. */ -/* @@ label */ \ No newline at end of file + +/* @@ label *//* @@? 23:93 Error Syntax error ESY0230: Expected ')', got 'end of stream'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_46.ets b/ets2panda/test/ast/parser/ets/unexpected_token_46.ets index 5762664c26..5d4c312add 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_46.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_46.ets @@ -19,7 +19,8 @@ interface IEmployee { sdskdsopd?: string; } -/* @@? 17:7 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 17:7 Error SyntaxError: Expected 'method name', got '^'. */ -/* @@? 17:7 Error SyntaxError: Unexpected token, expected '('. */ -/* @@? 17:25 Error SyntaxError: Unexpected token, expected ',' or ')'. */ + +/* @@? 17:7 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 17:7 Error Syntax error ESY0230: Expected 'method name', got '^'. */ +/* @@? 17:7 Error Syntax error ESY0228: Unexpected token, expected '('. */ +/* @@? 17:25 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_47.ets b/ets2panda/test/ast/parser/ets/unexpected_token_47.ets index 875bd83b5a..7a07b93234 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_47.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_47.ets @@ -15,7 +15,8 @@ let isPrime: int[] = new int[[]][[] -/* @@? 16:22 Error TypeError: Type 'Array>' cannot be assigned to type 'Array' */ -/* @@? 16:30 Error TypeError: Can't resolve array type */ -/* @@? 16:34 Error TypeError: Can't resolve array type */ -/* @@? 22:1 Error SyntaxError: Expected ']', got 'end of stream'. */ + +/* @@? 16:22 Error Semantic error ESE0318: Type 'Array>' cannot be assigned to type 'Array' */ +/* @@? 16:30 Error Semantic error ESE0301: Can't resolve array type */ +/* @@? 16:34 Error Semantic error ESE0301: Can't resolve array type */ +/* @@? 22:79 Error Syntax error ESY0230: Expected ']', got 'end of stream'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_48.ets b/ets2panda/test/ast/parser/ets/unexpected_token_48.ets index 9193aee2c1..95d95a7319 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_48.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_48.ets @@ -15,6 +15,7 @@ export type {B/* @@ label */] -/* @@? 16:14 Error SyntaxError: Cannot find name 'B' to export. */ -/* @@@ label Error SyntaxError: Unexpected token, expected ',' or '}'. */ -/* @@@ label Error SyntaxError: Unexpected token ']'. */ + +/* @@? 16:14 Error Syntax error ESY0279: Cannot find name 'B' to export. */ +/* @@@ label Error Syntax error ESY0229: Unexpected token, expected ',' or '}'. */ +/* @@@ label Error Syntax error ESY0227: Unexpected token ']'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_49.ets b/ets2panda/test/ast/parser/ets/unexpected_token_49.ets index a08589fe31..f9662e877c 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_49.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_49.ets @@ -18,7 +18,10 @@ function identity(arg: Type): Type { } let output = identity/* @@ label */"hehe" -/* @@? 19:14 Error TypeError: Expected 1 arguments, got 0. */ -/* @@? 19:14 Error TypeError: No matching call signature */ -/* @@? 19:44 Error SyntaxError: Unexpected token, expected '('. */ -/* @@? 25:1 Error SyntaxError: Expected ')', got 'end of stream'. */ + +/* @@? 19:14 Error Semantic error ESE0124: Expected 1 arguments, got 0. */ +/* @@? 19:14 Error Semantic error ESE0128: No matching call signature */ +/* @@? 19:14 Error Semantic error ESE0124: Expected 1 arguments, got 0. */ +/* @@? 19:14 Error Semantic error ESE0128: No matching call signature */ +/* @@@ label Error Syntax error ESY0228: Unexpected token, expected '('. */ +/* @@? 27:79 Error Syntax error ESY0230: Expected ')', got 'end of stream'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_5.ets b/ets2panda/test/ast/parser/ets/unexpected_token_5.ets index 2e86dc60a2..d1407e3c8b 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_5.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_5.ets @@ -15,7 +15,8 @@ import * as /* @@ label */~/* @@ label1 */path /* @@ label2 */from /* @@ label3 */'node:path'; -/* @@@ label Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@@ label1 Error SyntaxError: Unexpected token, expected 'from'. */ -/* @@@ label2 Error SyntaxError: Unexpected token, expected string literal. */ -/* @@@ label3 Error SyntaxError: Unexpected token 'node:path'. */ + +/* @@@ label Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@@ label1 Error Syntax error ESY0228: Unexpected token, expected 'from'. */ +/* @@@ label2 Error Syntax error ESY0151: Unexpected token, expected string literal. */ +/* @@@ label3 Error Syntax error ESY0227: Unexpected token 'node:path'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_50.ets b/ets2panda/test/ast/parser/ets/unexpected_token_50.ets index d183229f0b..e8e2fd7bd7 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_50.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_50.ets @@ -19,7 +19,10 @@ function identity(arg: Type): Type { let output = identity let output1 = identity/* @@ label */"hehe" -/* @@? 20:15 Error TypeError: Expected 1 arguments, got 0. */ -/* @@? 20:15 Error TypeError: No matching call signature */ -/* @@? 20:45 Error SyntaxError: Unexpected token, expected '('. */ -/* @@? 26:1 Error SyntaxError: Expected ')', got 'end of stream'. */ + +/* @@? 20:15 Error Semantic error ESE0124: Expected 1 arguments, got 0. */ +/* @@? 20:15 Error Semantic error ESE0128: No matching call signature */ +/* @@? 20:15 Error Semantic error ESE0124: Expected 1 arguments, got 0. */ +/* @@? 20:15 Error Semantic error ESE0128: No matching call signature */ +/* @@@ label Error Syntax error ESY0228: Unexpected token, expected '('. */ +/* @@? 28:79 Error Syntax error ESY0230: Expected ')', got 'end of stream'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_51.ets b/ets2panda/test/ast/parser/ets/unexpected_token_51.ets index b923bdcaf3..3e9afd84f4 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_51.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_51.ets @@ -22,8 +22,5 @@ console.log(/* @@ label */output(/* @@ label1 */"hehehe")) console.log(/* @@ label2 */output(/* @@ label3 */4)) // bug with type error is here -/* @@@ label1 Error TypeError: Type '"hehehe"' is not compatible with type 'Type' at index 1 */ -/* @@@ label Error TypeError: No matching call signature for invoke0("hehehe") */ -/* @@@ label3 Error TypeError: Type 'int' is not compatible with type 'Type' at index 1 */ -/* @@@ label2 Error TypeError: No matching call signature for invoke0(int) */ + diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_52.ets b/ets2panda/test/ast/parser/ets/unexpected_token_52.ets index 9b65b55ca6..e1d97607a1 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_52.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_52.ets @@ -18,16 +18,17 @@ let a = { ...a, } -/* @@? 16:5 Error TypeError: Cannot infer type for a because class composite needs an explicit target type */ -/* @@? 17:9 Error SyntaxError: Unexpected token. */ -/* @@? 17:10 Error SyntaxError: Unexpected token, expected '('. */ -/* @@? 17:10 Error SyntaxError: Object pattern can't contain methods. */ -/* @@? 17:12 Error SyntaxError: Expected '{', got '('. */ -/* @@? 17:12 Error SyntaxError: Unexpected token. */ -/* @@? 17:13 Error SyntaxError: Unexpected token ')'. */ -/* @@? 17:14 Error SyntaxError: Unexpected token '{'. */ -/* @@? 17:16 Error SyntaxError: Unexpected token ','. */ -/* @@? 18:5 Error SyntaxError: Unexpected token '...'. */ -/* @@? 18:8 Error SyntaxError: Unexpected token 'a'. */ -/* @@? 18:9 Error SyntaxError: Unexpected token ','. */ -/* @@? 19:1 Error SyntaxError: Unexpected token '}'. */ + +/* @@? 16:5 Error Semantic error ESE0174: Cannot infer type for a because class composite needs an explicit target type */ +/* @@? 17:9 Error Syntax error ESY0016: Unexpected token. */ +/* @@? 17:10 Error Syntax error ESY0228: Unexpected token, expected '('. */ +/* @@? 17:10 Error Syntax error ESY0062: Object pattern can't contain methods. */ +/* @@? 17:12 Error Syntax error ESY0230: Expected '{', got '('. */ +/* @@? 17:12 Error Syntax error ESY0016: Unexpected token. */ +/* @@? 17:13 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 17:14 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 17:16 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 18:5 Error Syntax error ESY0227: Unexpected token '...'. */ +/* @@? 18:8 Error Syntax error ESY0227: Unexpected token 'a'. */ +/* @@? 18:9 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 19:1 Error Syntax error ESY0227: Unexpected token '}'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_53.ets b/ets2panda/test/ast/parser/ets/unexpected_token_53.ets index da3f06e4cb..84c5dec732 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_53.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_53.ets @@ -25,17 +25,18 @@ export class MathSpectralNorm { } } -/* @@? 19:10 Error TypeError: Unresolved reference i */ -/* @@? 19:22 Error SyntaxError: Expected ';', got ':'. */ -/* @@? 19:22 Error SyntaxError: Unexpected token ':'. */ -/* @@? 19:24 Error SyntaxError: Expected ')', got 'identification literal'. */ -/* @@? 19:27 Error SyntaxError: Unexpected token ')'. */ -/* @@? 19:29 Error SyntaxError: Unexpected token '{'. */ -/* @@? 20:7 Error TypeError: Unresolved reference vbv */ -/* @@? 20:14 Error TypeError: Unresolved reference u */ -/* @@? 20:14 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@? 20:21 Error TypeError: Unresolved reference v */ -/* @@? 20:21 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@? 21:7 Error TypeError: Unresolved reference vv */ -/* @@? 21:14 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@? 21:21 Error TypeError: Indexed access is not supported for such expression type. */ + +/* @@? 19:10 Error Semantic error ESE0143: Unresolved reference i */ +/* @@? 19:22 Error Syntax error ESY0230: Expected ';', got ':'. */ +/* @@? 19:22 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 19:24 Error Syntax error ESY0230: Expected ')', got 'identification literal'. */ +/* @@? 19:27 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 19:29 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 20:7 Error Semantic error ESE0143: Unresolved reference vbv */ +/* @@? 20:14 Error Semantic error ESE0143: Unresolved reference u */ +/* @@? 20:14 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 20:21 Error Semantic error ESE0143: Unresolved reference v */ +/* @@? 20:21 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 21:7 Error Semantic error ESE0143: Unresolved reference vv */ +/* @@? 21:14 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 21:21 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_54.ets b/ets2panda/test/ast/parser/ets/unexpected_token_54.ets index 1f0ca0791b..e06e697c16 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_54.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_54.ets @@ -23,4 +23,7 @@ switch (a/* @@ label */] { console.log("bbb") } -/* @@@ label Error SyntaxError: Unexpected token, expected ')'. */ + +/* @@? 18:9 Error Semantic error ESE0162: Incompatible types. Found: boolean, required: char , byte , short , int, long , Char , Byte , Short , Int, Long , String or an enum type */ +/* @@@ label Error Syntax error ESY0230: Expected ')', got ']'. */ +/* @@@ label Error Syntax error ESY0230: Expected '{', got ']'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_55.ets b/ets2panda/test/ast/parser/ets/unexpected_token_55.ets index 17ccd74642..385ef3755c 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_55.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_55.ets @@ -25,18 +25,19 @@ export class MathSpectralNorm { } } -/* @@? 19:16 Error TypeError: Unresolved reference i */ -/* @@? 19:18 Error SyntaxError: Unexpected token '='. */ -/* @@? 19:29 Error SyntaxError: Expected ';', got ':'. */ -/* @@? 19:29 Error SyntaxError: Unexpected token ':'. */ -/* @@? 19:31 Error SyntaxError: Expected ')', got 'identification literal'. */ -/* @@? 19:34 Error SyntaxError: Unexpected token ')'. */ -/* @@? 19:36 Error SyntaxError: Unexpected token '{'. */ -/* @@? 20:7 Error TypeError: Unresolved reference vbv */ -/* @@? 20:14 Error TypeError: Unresolved reference u */ -/* @@? 20:14 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@? 20:21 Error TypeError: Unresolved reference v */ -/* @@? 20:21 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@? 21:7 Error TypeError: Unresolved reference vv */ -/* @@? 21:14 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@? 21:21 Error TypeError: Indexed access is not supported for such expression type. */ + +/* @@? 19:16 Error Semantic error ESE0143: Unresolved reference i */ +/* @@? 19:18 Error Syntax error ESY0227: Unexpected token '='. */ +/* @@? 19:29 Error Syntax error ESY0230: Expected ';', got ':'. */ +/* @@? 19:29 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 19:31 Error Syntax error ESY0230: Expected ')', got 'identification literal'. */ +/* @@? 19:34 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 19:36 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 20:7 Error Semantic error ESE0143: Unresolved reference vbv */ +/* @@? 20:14 Error Semantic error ESE0143: Unresolved reference u */ +/* @@? 20:14 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 20:21 Error Semantic error ESE0143: Unresolved reference v */ +/* @@? 20:21 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 21:7 Error Semantic error ESE0143: Unresolved reference vv */ +/* @@? 21:14 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 21:21 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_56.ets b/ets2panda/test/ast/parser/ets/unexpected_token_56.ets index 7b68324c19..d56dba3e57 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_56.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_56.ets @@ -18,16 +18,17 @@ for await (/* @@ label1 */;/* @@ label2 */;/* @@ label3 */i < /* @@ label4 */cou } for (let i? /* @@ label11 */: Number = 1;;) { break; } -/* @@@ label1 Error SyntaxError: Unexpected token ';'. */ -/* @@@ label2 Error SyntaxError: Unexpected token ';'. */ -/* @@@ label3 Error TypeError: Unresolved reference i */ -/* @@@ label4 Error TypeError: Unresolved reference count */ -/* @@@ label5 Error SyntaxError: Expected ')', got ';'. */ -/* @@@ label6 Error SyntaxError: Unexpected token ')'. */ -/* @@@ label7 Error SyntaxError: Unexpected token '{'. */ -/* @@@ label8 Error TypeError: Unresolved reference result */ -/* @@@ label9 Error TypeError: Unresolved reference p */ -/* @@@ label9 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@@ label10 Error TypeError: Unresolved reference a */ -/* @@@ label10 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@@ label11 Error SyntaxError: Optional variable is deprecated and no longer supported. */ + +/* @@@ label1 Error Syntax error ESY0227: Unexpected token ';'. */ +/* @@@ label2 Error Syntax error ESY0227: Unexpected token ';'. */ +/* @@@ label3 Error Semantic error ESE0143: Unresolved reference i */ +/* @@@ label4 Error Semantic error ESE0143: Unresolved reference count */ +/* @@@ label5 Error Syntax error ESY0230: Expected ')', got ';'. */ +/* @@@ label6 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@@ label7 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@@ label8 Error Semantic error ESE0143: Unresolved reference result */ +/* @@@ label9 Error Semantic error ESE0143: Unresolved reference p */ +/* @@@ label9 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@@ label10 Error Semantic error ESE0143: Unresolved reference a */ +/* @@@ label10 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@@ label11 Error Syntax error ESY0306: Optional variable is deprecated and no longer supported. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_57.ets b/ets2panda/test/ast/parser/ets/unexpected_token_57.ets index 3372ab6a51..052f750c33 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_57.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_57.ets @@ -17,5 +17,5 @@ function foo(a: int) {} foo(1 -/* @@@ label Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@ label */ \ No newline at end of file + +/* @@ label *//* @@? 21:97 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_58.ets b/ets2panda/test/ast/parser/ets/unexpected_token_58.ets index b6b5d9d26f..4fb63e65e8 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_58.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_58.ets @@ -17,5 +17,5 @@ function foo(a: int) {} foo(1, -/* @@@ label Error SyntaxError: Expected ')', got 'end of stream'. */ -/* @@ label */ \ No newline at end of file + +/* @@ label *//* @@? 21:93 Error Syntax error ESY0230: Expected ')', got 'end of stream'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_59.ets b/ets2panda/test/ast/parser/ets/unexpected_token_59.ets index b35bc96dee..cea8e907d4 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_59.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_59.ets @@ -17,5 +17,5 @@ class A { x: int -/* @@@ label Error SyntaxError: Expected '}', got 'end of stream'. */ -/* @@ label */ \ No newline at end of file + +/* @@ label *//* @@? 21:93 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_6.ets b/ets2panda/test/ast/parser/ets/unexpected_token_6.ets index 7f3274cd03..97d21f0734 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_6.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_6.ets @@ -17,4 +17,5 @@ while (true /* @@ label */{ console.log("hehehehe") } -/* @@@ label Error SyntaxError: Expected ')', got '{'. */ + +/* @@@ label Error Syntax error ESY0230: Expected ')', got '{'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_60.ets b/ets2panda/test/ast/parser/ets/unexpected_token_60.ets index be2e36498f..1572f586a6 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_60.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_60.ets @@ -19,4 +19,5 @@ function main(): void { } } -/* @@@ label1 Error SyntaxError: Expected ';', got 'identification literal'. */ + +/* @@@ label1 Error Syntax error ESY0230: Expected ';', got 'identification literal'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_61.ets b/ets2panda/test/ast/parser/ets/unexpected_token_61.ets index 76c41c3aa4..e7e7cf93b9 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_61.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_61.ets @@ -19,5 +19,6 @@ function main(): void { } } -/* @@@ label Error TypeError: Cannot assign to a constant variable i */ -/* @@@ label1 Error SyntaxError: Expected ';', got 'identification literal'. */ + +/* @@@ label1 Error Syntax error ESY0230: Expected ';', got 'identification literal'. */ +/* @@@ label Error Semantic error ESE4001: Cannot assign to a constant variable i */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_62.ets b/ets2panda/test/ast/parser/ets/unexpected_token_62.ets index 78b6905b98..6d15822fcc 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_62.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_62.ets @@ -26,48 +26,48 @@ int = 10 ) => B = (p:+): A6=> { reƒurn _ew B(ô } |ó -/* @@? 17:9 Error SyntaxError: Expected '{', got 'identification literal'. */ -/* @@? 17:18 Error SyntaxError: Unexpected token '{'. */ -/* @@? 19:1 Error TypeError: Unresolved reference functioew */ -/* @@? 19:11 Error SyntaxError: Unexpected token 'Nu'. */ -/* @@? 19:11 Error TypeError: Unresolved reference Nu */ -/* @@? 20:1 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 20:1 Error TypeError: Unresolved reference nt */ -/* @@? 20:10 Error SyntaxError: Unexpected token 'A'. */ -/* @@? 20:10 Error SyntaxError: Class cannot be used as object. */ -/* @@? 20:12 Error SyntaxError: Unexpected token '{'. */ -/* @@? 22:11 Error SyntaxError: Unexpected token 'Nu'. */ -/* @@? 23:1 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 24:1 Error SyntaxError: Unexpected token ')'. */ -/* @@? 24:2 Error SyntaxError: Unexpected token 'void'. */ -/* @@? 24:7 Error SyntaxError: Unexpected token '{'. */ -/* @@? 24:8 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 24:8 Error TypeError: Unresolved reference nt */ -/* @@? 24:16 Error SyntaxError: Unexpected token ','. */ -/* @@? 24:18 Error SyntaxError: Unexpected token 'g'. */ -/* @@? 24:21 Error SyntaxError: Label must be followed by a loop statement. */ -/* @@? 24:21 Error TypeError: Unresolved reference s */ -/* @@? 24:23 Error SyntaxError: Unexpected token 'A'. */ -/* @@? 24:23 Error SyntaxError: Class cannot be used as object. */ -/* @@? 24:25 Error SyntaxError: Unexpected token '{'. */ -/* @@? 25:1 Error SyntaxError: Unexpected token 'int'. */ -/* @@? 26:1 Error SyntaxError: Unexpected token ')'. */ -/* @@? 26:3 Error SyntaxError: Unexpected token '=>'. */ -/* @@? 26:13 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 26:13 Error TypeError: Cannot find type ''. */ -/* @@? 26:14 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 26:14 Error SyntaxError: Expected '=>', got '+'. */ -/* @@? 26:15 Error SyntaxError: Unexpected token ')'. */ -/* @@? 26:16 Error SyntaxError: Unexpected token ':'. */ -/* @@? 26:18 Error SyntaxError: Unexpected token 'A6'. */ -/* @@? 26:18 Error TypeError: Bad operand type, the types of the operands must be numeric type. */ -/* @@? 26:18 Error TypeError: The type of parameter 'A6' cannot be inferred */ -/* @@? 26:25 Error TypeError: Unresolved reference reƒurn */ -/* @@? 26:32 Error SyntaxError: Unexpected token '_ew'. */ -/* @@? 26:32 Error TypeError: Unresolved reference _ew */ -/* @@? 26:36 Error SyntaxError: Unexpected token 'B'. */ -/* @@? 26:36 Error TypeError: No static $_invoke method and static $_instantiate method in B. B() is not allowed. */ -/* @@? 26:36 Error TypeError: Type 'B' has no call signatures. */ -/* @@? 26:40 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 27:2 Error TypeError: Unresolved reference ó */ -/* @@? 74:1 Error SyntaxError: Expected '}', got 'end of stream'. */ + +/* @@? 17:9 Error Syntax error ESY0230: Expected '{', got 'identification literal'. */ +/* @@? 17:18 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 19:1 Error Semantic error ESE0143: Unresolved reference functioew */ +/* @@? 19:11 Error Syntax error ESY0227: Unexpected token 'Nu'. */ +/* @@? 19:11 Error Semantic error ESE0143: Unresolved reference Nu */ +/* @@? 20:1 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 20:1 Error Semantic error ESE0143: Unresolved reference nt */ +/* @@? 20:10 Error Syntax error ESY0318: Class cannot be used as object. */ +/* @@? 20:10 Error Syntax error ESY0227: Unexpected token 'A'. */ +/* @@? 20:12 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 22:11 Error Syntax error ESY0227: Unexpected token 'Nu'. */ +/* @@? 23:1 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 24:1 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 24:2 Error Syntax error ESY0227: Unexpected token 'void'. */ +/* @@? 24:7 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 24:8 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 24:8 Error Semantic error ESE0143: Unresolved reference nt */ +/* @@? 24:16 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 24:18 Error Syntax error ESY0227: Unexpected token 'g'. */ +/* @@? 24:21 Error Syntax error ESY0038: Label must be followed by a loop statement. */ +/* @@? 24:21 Error Semantic error ESE0143: Unresolved reference s */ +/* @@? 24:23 Error Syntax error ESY0227: Unexpected token 'A'. */ +/* @@? 24:23 Error Syntax error ESY0318: Class cannot be used as object. */ +/* @@? 24:25 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 25:1 Error Syntax error ESY0227: Unexpected token 'int'. */ +/* @@? 26:1 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 26:3 Error Syntax error ESY0227: Unexpected token '=>'. */ +/* @@? 26:13 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 26:13 Error Semantic error ESE0371: Cannot find type ''. */ +/* @@? 26:14 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 26:14 Error Syntax error ESY0230: Expected '=>', got '+'. */ +/* @@? 26:15 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 26:16 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 26:18 Error Syntax error ESY0227: Unexpected token 'A6'. */ +/* @@? 26:18 Error Semantic error ESE0107: Bad operand type, the types of the operands must be numeric type. */ +/* @@? 26:18 Error Semantic error ESE0132: The type of parameter 'A6' cannot be inferred */ +/* @@? 26:25 Error Semantic error ESE0143: Unresolved reference reƒurn */ +/* @@? 26:32 Error Syntax error ESY0227: Unexpected token '_ew'. */ +/* @@? 26:32 Error Semantic error ESE0143: Unresolved reference _ew */ +/* @@? 26:36 Error Syntax error ESY0227: Unexpected token 'B'. */ +/* @@? 26:36 Error Semantic error ESE0172: No static $_invoke method and static $_instantiate method in B. B() is not allowed. */ +/* @@? 26:40 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 27:2 Error Semantic error ESE0143: Unresolved reference ó */ +/* @@? 73:79 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_63.ets b/ets2panda/test/ast/parser/ets/unexpected_token_63.ets index 2cc94b998a..979d119f06 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_63.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_63.ets @@ -27,36 +27,37 @@ class A { } -/* @@? 17:7 Error TypeError: Only abstract or native methods can't have body. */ -/* @@? 17:23 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ -/* @@? 17:23 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 17:23 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 17:29 Error SyntaxError: Unexpected token ':'. */ -/* @@? 17:31 Error SyntaxError: number is a predefined type, cannot be used as an identifier */ -/* @@? 17:37 Error SyntaxError: Unexpected token ')'. */ -/* @@? 17:39 Error SyntaxError: Unexpected token '{'. */ -/* @@? 18:3 Error SyntaxError: Unexpected token 'while'. */ -/* @@? 18:8 Error SyntaxError: Call signatures in object types are not supported. Use '$_invoke' method instead. */ -/* @@? 18:9 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 18:9 Error SyntaxError: Unexpected token 'true'. */ -/* @@? 18:9 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 18:9 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ -/* @@? 18:13 Error SyntaxError: Unexpected token ')'. */ -/* @@? 18:15 Error SyntaxError: Unexpected token '{'. */ -/* @@? 19:4 Error SyntaxError: Unexpected token 'if'. */ -/* @@? 19:6 Error SyntaxError: Call signatures in object types are not supported. Use '$_invoke' method instead. */ -/* @@? 19:7 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ -/* @@? 19:7 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 19:7 Error SyntaxError: Unexpected token 'false'. */ -/* @@? 19:7 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 19:12 Error SyntaxError: Unexpected token ')'. */ -/* @@? 19:14 Error SyntaxError: Unexpected token '{'. */ -/* @@? 20:5 Error SyntaxError: Unexpected token 'break'. */ -/* @@? 21:6 Error SyntaxError: Unexpected token 'else'. */ -/* @@? 21:11 Error SyntaxError: Unexpected token '{'. */ -/* @@? 23:5 Error TypeError: 'this' cannot be referenced from a static context */ -/* @@? 23:10 Error TypeError: Property 'func' does not exist on type 'ETSGLOBAL' */ -/* @@? 23:21 Error SyntaxError: Unexpected token 'final'. */ -/* @@? 25:3 Error SyntaxError: Unexpected token '}'. */ -/* @@? 26:2 Error SyntaxError: Unexpected token '}'. */ -/* @@? 27:1 Error SyntaxError: Unexpected token '}'. */ + +/* @@? 17:7 Error Semantic error ESE0017: Only abstract or native methods can't have body. */ +/* @@? 17:23 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ +/* @@? 17:23 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 17:23 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 17:29 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 17:31 Error Syntax error ESY0295: number is a predefined type, cannot be used as an identifier */ +/* @@? 17:37 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 17:39 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 18:3 Error Syntax error ESY0227: Unexpected token 'while'. */ +/* @@? 18:8 Error Syntax error ESY103145: Call signatures in object types are not supported. Use '$_invoke' method instead. */ +/* @@? 18:9 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 18:9 Error Syntax error ESY0227: Unexpected token 'true'. */ +/* @@? 18:9 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 18:9 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ +/* @@? 18:13 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 18:15 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 19:4 Error Syntax error ESY0227: Unexpected token 'if'. */ +/* @@? 19:6 Error Syntax error ESY103145: Call signatures in object types are not supported. Use '$_invoke' method instead. */ +/* @@? 19:7 Error Syntax error ESY0194: Parameter declaration should have an explicit type annotation. */ +/* @@? 19:7 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 19:7 Error Syntax error ESY0227: Unexpected token 'false'. */ +/* @@? 19:7 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 19:12 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 19:14 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 20:5 Error Syntax error ESY0227: Unexpected token 'break'. */ +/* @@? 21:6 Error Syntax error ESY0227: Unexpected token 'else'. */ +/* @@? 21:11 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 23:5 Error Semantic error ESE0202: 'this' cannot be referenced from a static context */ +/* @@? 23:10 Error Semantic error ESE0087: Property 'func' does not exist on type 'ETSGLOBAL' */ +/* @@? 23:21 Error Syntax error ESY0227: Unexpected token 'final'. */ +/* @@? 25:3 Error Syntax error ESY0227: Unexpected token '}'. */ +/* @@? 26:2 Error Syntax error ESY0227: Unexpected token '}'. */ +/* @@? 27:1 Error Syntax error ESY0227: Unexpected token '}'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_7.ets b/ets2panda/test/ast/parser/ets/unexpected_token_7.ets index 43dc6c6c47..4bb1fc4793 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_7.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_7.ets @@ -17,4 +17,5 @@ while /* @@ label */true) { console.log("hehehehe") } -/* @@@ label Error SyntaxError: Expected '(', got 'true'. */ + +/* @@@ label Error Syntax error ESY0230: Expected '(', got 'true'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_8.ets b/ets2panda/test/ast/parser/ets/unexpected_token_8.ets index 0e1150386e..484bd165ec 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_8.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_8.ets @@ -17,4 +17,5 @@ try { } catch (e /* @@ label1 */{} -/* @@@ label1 Error SyntaxError: Expected ')', got '{'. */ + +/* @@@ label1 Error Syntax error ESY0230: Expected ')', got '{'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/unexpected_token_9.ets b/ets2panda/test/ast/parser/ets/unexpected_token_9.ets index 0afcc96121..d16573a39d 100644 --- a/ets2panda/test/ast/parser/ets/unexpected_token_9.ets +++ b/ets2panda/test/ast/parser/ets/unexpected_token_9.ets @@ -15,5 +15,6 @@ console.log("aaaaaaaa"} -/* @@? 16:23 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 16:23 Error SyntaxError: Unexpected token '}'. */ + +/* @@? 16:23 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 16:23 Error Syntax error ESY0227: Unexpected token '}'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/union_static_method.ets b/ets2panda/test/ast/parser/ets/union_static_method.ets index 9148df2085..bac93b2ae2 100644 --- a/ets2panda/test/ast/parser/ets/union_static_method.ets +++ b/ets2panda/test/ast/parser/ets/union_static_method.ets @@ -29,4 +29,5 @@ function main() { UT.met() } -/* @@? 29:5 Error TypeError: Static union member expression cannot be interpreted. */ + +/* @@? 29:5 Error Semantic error ESE0335: Static union member expression cannot be interpreted. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/unreachable_fuzz_error.ets b/ets2panda/test/ast/parser/ets/unreachable_fuzz_error.ets index 81b8aca00e..de8e7deef1 100644 --- a/ets2panda/test/ast/parser/ets/unreachable_fuzz_error.ets +++ b/ets2panda/test/ast/parser/ets/unreachable_fuzz_error.ets @@ -21,12 +21,13 @@ classtext: string, reviver: ((key: string, value: Any) => Any) | undefined, type: Type -/* @@? 16:13 Error TypeError: Unresolved reference z */ -/* @@? 22:12 Error SyntaxError: Label must be followed by a loop statement. */ -/* @@? 22:18 Error SyntaxError: Unexpected token ','. */ -/* @@? 22:20 Error SyntaxError: Unexpected token 'reviver'. */ -/* @@? 22:29 Error SyntaxError: Label must be followed by a loop statement. */ -/* @@? 22:75 Error SyntaxError: Unexpected token ','. */ -/* @@? 22:77 Error SyntaxError: Unexpected token 'type'. */ -/* @@? 22:83 Error SyntaxError: Label must be followed by a loop statement. */ -/* @@? 33:1 Error SyntaxError: Expected '}', got 'end of stream'. */ + +/* @@? 16:13 Error Semantic error ESE0143: Unresolved reference z */ +/* @@? 22:12 Error Syntax error ESY0038: Label must be followed by a loop statement. */ +/* @@? 22:18 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 22:20 Error Syntax error ESY0227: Unexpected token 'reviver'. */ +/* @@? 22:29 Error Syntax error ESY0038: Label must be followed by a loop statement. */ +/* @@? 22:75 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 22:77 Error Syntax error ESY0227: Unexpected token 'type'. */ +/* @@? 22:83 Error Syntax error ESY0038: Label must be followed by a loop statement. */ +/* @@? 33:79 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/update_funcscope_error.ets b/ets2panda/test/ast/parser/ets/update_funcscope_error.ets index 704622f81a..99a1d53479 100644 --- a/ets2panda/test/ast/parser/ets/update_funcscope_error.ets +++ b/ets2panda/test/ast/parser/ets/update_funcscope_error.ets @@ -34,20 +34,20 @@ export const updateIfChanged = (t: Record) => { }; }; -/* @@? 21:19 Error TypeError: Indexed access is not supported for such expression type. */ -/* @@? 21:19 Error TypeError: Unresolved reference u */ -/* @@? 24:7 Error TypeError: Type '(p1: Record) => Boolean' is not compatible with type '(p1: Boolean, p2: Boolean, p3: Int, p4: FixedArray) => Boolean' at index 2 */ -/* @@? 27:11 Error TypeError: Invalid record property */ -/* @@? 28:11 Error SyntaxError: Unexpected token. */ -/* @@? 28:12 Error SyntaxError: Unexpected token. */ -/* @@? 28:12 Error TypeError: Type '*ERROR_TYPE*' is not compatible with type 'String' at index 1 */ -/* @@? 28:15 Error SyntaxError: Unexpected token. */ -/* @@? 28:16 Error SyntaxError: Unexpected token ':'. */ -/* @@? 28:18 Error SyntaxError: Unexpected token 'v'. */ -/* @@? 29:10 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 30:16 Error TypeError: Unresolved reference update */ -/* @@? 30:16 Error TypeError: This expression is not callable. */ -/* @@? 32:5 Error SyntaxError: Unexpected token ')'. */ -/* @@? 33:12 Error TypeError: Unresolved reference reduceResult */ -/* @@? 33:12 Error TypeError: Unexpected return value, enclosing method return type is void. */ -/* @@? 35:1 Error SyntaxError: Unexpected token '}'. */ +/* @@? 21:19 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ +/* @@? 21:19 Error Semantic error ESE0143: Unresolved reference u */ +/* @@? 24:7 Error Semantic error ESE0046: Type '(p1: Record) => Boolean' is not compatible with type '(p1: Boolean, p2: Boolean, p3: Int, p4: FixedArray) => Boolean' at index 2 */ +/* @@? 27:11 Error Semantic error ESE0393: Invalid record property */ +/* @@? 28:11 Error Syntax error ESY0016: Unexpected token. */ +/* @@? 28:12 Error Syntax error ESY0016: Unexpected token. */ +/* @@? 28:12 Error Semantic error ESE0046: Type '*ERROR_TYPE*' is not compatible with type 'String' at index 1 */ +/* @@? 28:15 Error Syntax error ESY0016: Unexpected token. */ +/* @@? 28:16 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 28:18 Error Syntax error ESY0227: Unexpected token 'v'. */ +/* @@? 29:10 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 30:16 Error Semantic error ESE0143: Unresolved reference update */ +/* @@? 30:16 Error Semantic error ESE0289: This expression is not callable. */ +/* @@? 32:5 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 33:12 Error Semantic error ESE0143: Unresolved reference reduceResult */ +/* @@? 33:12 Error Semantic error ESE0089: Unexpected return value, enclosing method return type is void. */ +/* @@? 35:1 Error Syntax error ESY0227: Unexpected token '}'. */ diff --git a/ets2panda/test/ast/parser/ets/user_defined_10.ets b/ets2panda/test/ast/parser/ets/user_defined_10.ets index 3f505ccfbd..e0f8a64a68 100644 --- a/ets2panda/test/ast/parser/ets/user_defined_10.ets +++ b/ets2panda/test/ast/parser/ets/user_defined_10.ets @@ -17,5 +17,6 @@ struct number{ a : string = "15"; } -/* @@? 16:1 Error TypeError: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ -/* @@? 16:8 Error SyntaxError: number is a predefined type, cannot be used as an identifier */ + +/* @@? 16:1 Error Semantic error ESE0364: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ +/* @@? 16:8 Error Syntax error ESY0295: number is a predefined type, cannot be used as an identifier */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/user_defined_11.ets b/ets2panda/test/ast/parser/ets/user_defined_11.ets index e04f80779f..734d3885b7 100644 --- a/ets2panda/test/ast/parser/ets/user_defined_11.ets +++ b/ets2panda/test/ast/parser/ets/user_defined_11.ets @@ -17,4 +17,5 @@ class /* @@ label */number{ a : string = "15"; } -/* @@? 16:21 Error SyntaxError: number is a predefined type, cannot be used as an identifier */ + +/* @@@ label Error Syntax error ESY0295: number is a predefined type, cannot be used as an identifier */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/user_defined_12.ets b/ets2panda/test/ast/parser/ets/user_defined_12.ets index aa91f5c7f9..aa80ec89ff 100644 --- a/ets2panda/test/ast/parser/ets/user_defined_12.ets +++ b/ets2panda/test/ast/parser/ets/user_defined_12.ets @@ -17,4 +17,5 @@ class /* @@ label */yield{ a : string = "15"; } -/* @@@ label Error SyntaxError: Cannot be used as user-defined type. */ + +/* @@@ label Error Syntax error ESY0145: Cannot be used as user-defined type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/user_defined_13.ets b/ets2panda/test/ast/parser/ets/user_defined_13.ets index 15cf8e612b..d371c12a92 100644 --- a/ets2panda/test/ast/parser/ets/user_defined_13.ets +++ b/ets2panda/test/ast/parser/ets/user_defined_13.ets @@ -17,4 +17,5 @@ class /* @@ label */var{ a : string = "15"; } -/* @@@ label Error SyntaxError: Cannot be used as user-defined type. */ + +/* @@@ label Error Syntax error ESY0145: Cannot be used as user-defined type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/user_defined_14.ets b/ets2panda/test/ast/parser/ets/user_defined_14.ets index 31c17e0cc8..ef22a3a54c 100644 --- a/ets2panda/test/ast/parser/ets/user_defined_14.ets +++ b/ets2panda/test/ast/parser/ets/user_defined_14.ets @@ -17,5 +17,6 @@ class /* @@ label */typeof { a : string = "15"; } -/* @@@ label Error SyntaxError: Hard keyword 'typeof' cannot be used as identifier */ -/* @@@ label Error SyntaxError: Identifier expected, got 'typeof'. */ + +/* @@@ label Error Syntax error ESY0316: Hard keyword 'typeof' cannot be used as identifier */ +/* @@@ label Error Syntax error ESY0224: Identifier expected, got 'typeof'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/user_defined_15.ets b/ets2panda/test/ast/parser/ets/user_defined_15.ets index 1d8a6b4ec1..a79609af34 100644 --- a/ets2panda/test/ast/parser/ets/user_defined_15.ets +++ b/ets2panda/test/ast/parser/ets/user_defined_15.ets @@ -17,4 +17,5 @@ class /* @@ label */is{ a : string = "15"; } -/* @@@ label Error SyntaxError: Cannot be used as user-defined type. */ + +/* @@@ label Error Syntax error ESY0145: Cannot be used as user-defined type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/user_defined_16.ets b/ets2panda/test/ast/parser/ets/user_defined_16.ets index 536b78e810..95911576cb 100644 --- a/ets2panda/test/ast/parser/ets/user_defined_16.ets +++ b/ets2panda/test/ast/parser/ets/user_defined_16.ets @@ -17,5 +17,6 @@ struct is{ a : string = "15"; } -/* @@? 16:8 Error SyntaxError: Cannot be used as user-defined type. */ -/* @@? 16:1 Error TypeError: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ + +/* @@? 16:1 Error Semantic error ESE0364: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ +/* @@? 16:8 Error Syntax error ESY0145: Cannot be used as user-defined type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/user_defined_17.ets b/ets2panda/test/ast/parser/ets/user_defined_17.ets index 316498fa68..dd93b68dbe 100644 --- a/ets2panda/test/ast/parser/ets/user_defined_17.ets +++ b/ets2panda/test/ast/parser/ets/user_defined_17.ets @@ -17,5 +17,6 @@ struct var{ a : string = "15"; } -/* @@? 16:1 Error TypeError: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ -/* @@? 16:8 Error SyntaxError: Cannot be used as user-defined type. */ + +/* @@? 16:1 Error Semantic error ESE0364: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ +/* @@? 16:8 Error Syntax error ESY0145: Cannot be used as user-defined type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/user_defined_18.ets b/ets2panda/test/ast/parser/ets/user_defined_18.ets index b261560d44..f3c697cae9 100644 --- a/ets2panda/test/ast/parser/ets/user_defined_18.ets +++ b/ets2panda/test/ast/parser/ets/user_defined_18.ets @@ -17,5 +17,6 @@ struct yield{ a : string = "15"; } -/* @@? 16:1 Error TypeError: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ -/* @@? 16:8 Error SyntaxError: Cannot be used as user-defined type. */ + +/* @@? 16:1 Error Semantic error ESE0364: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ +/* @@? 16:8 Error Syntax error ESY0145: Cannot be used as user-defined type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/user_defined_19.ets b/ets2panda/test/ast/parser/ets/user_defined_19.ets index 8f81e7dbc7..50c36e60e6 100644 --- a/ets2panda/test/ast/parser/ets/user_defined_19.ets +++ b/ets2panda/test/ast/parser/ets/user_defined_19.ets @@ -17,6 +17,7 @@ struct typeof{ a : string = "15"; } -/* @@? 16:1 Error TypeError: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ -/* @@? 16:8 Error SyntaxError: Hard keyword 'typeof' cannot be used as identifier */ -/* @@? 16:8 Error SyntaxError: Identifier expected, got 'typeof'. */ + +/* @@? 16:1 Error Semantic error ESE0364: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ +/* @@? 16:8 Error Syntax error ESY0316: Hard keyword 'typeof' cannot be used as identifier */ +/* @@? 16:8 Error Syntax error ESY0224: Identifier expected, got 'typeof'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/user_defined_20.ets b/ets2panda/test/ast/parser/ets/user_defined_20.ets index 11c00c085a..5e0fca9eb2 100644 --- a/ets2panda/test/ast/parser/ets/user_defined_20.ets +++ b/ets2panda/test/ast/parser/ets/user_defined_20.ets @@ -17,5 +17,6 @@ struct bigint{ a : string = "15"; } -/* @@? 16:8 Error SyntaxError: bigint is a predefined type, cannot be used as an identifier */ -/* @@? 16:1 Error TypeError: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ + +/* @@? 16:1 Error Semantic error ESE0364: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ +/* @@? 16:8 Error Syntax error ESY0295: bigint is a predefined type, cannot be used as an identifier */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/user_defined_21.ets b/ets2panda/test/ast/parser/ets/user_defined_21.ets index a7715989bf..6ceffcf5c8 100644 --- a/ets2panda/test/ast/parser/ets/user_defined_21.ets +++ b/ets2panda/test/ast/parser/ets/user_defined_21.ets @@ -17,4 +17,5 @@ class /* @@ label */bigint{ a : string = "15"; } -/* @@@ label Error SyntaxError: bigint is a predefined type, cannot be used as an identifier */ + +/* @@@ label Error Syntax error ESY0295: bigint is a predefined type, cannot be used as an identifier */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/user_defined_23.ets b/ets2panda/test/ast/parser/ets/user_defined_23.ets index efb6979bc6..2768959eca 100644 --- a/ets2panda/test/ast/parser/ets/user_defined_23.ets +++ b/ets2panda/test/ast/parser/ets/user_defined_23.ets @@ -17,4 +17,5 @@ class /* @@ label */type { type: number = 0 } -/* @@@ label Error SyntaxError: Cannot be used as user-defined type. */ + +/* @@@ label Error Syntax error ESY0145: Cannot be used as user-defined type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/user_defined_24.ets b/ets2panda/test/ast/parser/ets/user_defined_24.ets index fb94fe840a..424bf9bfce 100644 --- a/ets2panda/test/ast/parser/ets/user_defined_24.ets +++ b/ets2panda/test/ast/parser/ets/user_defined_24.ets @@ -17,5 +17,6 @@ struct type { type: number = 0 } -/* @@? 16:8 Error SyntaxError: Cannot be used as user-defined type. */ -/* @@? 16:1 Error TypeError: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ + +/* @@? 16:1 Error Semantic error ESE0364: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ +/* @@? 16:8 Error Syntax error ESY0145: Cannot be used as user-defined type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/user_defined_25.ets b/ets2panda/test/ast/parser/ets/user_defined_25.ets index 9f7ad7798d..0a1bc5b751 100644 --- a/ets2panda/test/ast/parser/ets/user_defined_25.ets +++ b/ets2panda/test/ast/parser/ets/user_defined_25.ets @@ -17,8 +17,9 @@ interface /* @@ label1 */type { type: number /* @@ label2 */= /* @@ label3 */0 /* @@ label4 */} -/* @@@ label1 Error SyntaxError: Cannot be used as user-defined type. */ -/* @@@ label2 Error SyntaxError: Interface member initialization is prohibited. */ -/* @@@ label3 Error SyntaxError: Unexpected token, expected ','. */ -/* @@@ label3 Error SyntaxError: Identifier expected, got 'number literal'. */ -/* @@@ label4 Error SyntaxError: Identifier expected. */ + +/* @@@ label1 Error Syntax error ESY0145: Cannot be used as user-defined type. */ +/* @@@ label2 Error Syntax error ESY0180: Interface member initialization is prohibited. */ +/* @@@ label3 Error Syntax error ESY0228: Unexpected token, expected ','. */ +/* @@@ label3 Error Syntax error ESY0224: Identifier expected, got 'number literal'. */ +/* @@@ label4 Error Syntax error ESY0122: Identifier expected. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/user_defined_5.ets b/ets2panda/test/ast/parser/ets/user_defined_5.ets index a20b8680d4..fb50033b31 100644 --- a/ets2panda/test/ast/parser/ets/user_defined_5.ets +++ b/ets2panda/test/ast/parser/ets/user_defined_5.ets @@ -17,4 +17,5 @@ enum /* @@ label */double { A, B, C } -/* @@@ label Error SyntaxError: double is a predefined type, cannot be used as an identifier */ + +/* @@@ label Error Syntax error ESY0295: double is a predefined type, cannot be used as an identifier */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/user_defined_7.ets b/ets2panda/test/ast/parser/ets/user_defined_7.ets index fbd4aae280..2090d64993 100644 --- a/ets2panda/test/ast/parser/ets/user_defined_7.ets +++ b/ets2panda/test/ast/parser/ets/user_defined_7.ets @@ -17,8 +17,9 @@ interface /* @@ label1 */double { name : string /* @@ label2 */= /* @@ label3 */"" /* @@ label4 */} -/* @@@ label1 Error SyntaxError: double is a predefined type, cannot be used as an identifier */ -/* @@@ label2 Error SyntaxError: Interface member initialization is prohibited. */ -/* @@@ label3 Error SyntaxError: Unexpected token, expected ','. */ -/* @@@ label3 Error SyntaxError: Identifier expected, got 'string literal'. */ -/* @@@ label4 Error SyntaxError: Identifier expected. */ + +/* @@@ label1 Error Syntax error ESY0295: double is a predefined type, cannot be used as an identifier */ +/* @@@ label2 Error Syntax error ESY0180: Interface member initialization is prohibited. */ +/* @@@ label3 Error Syntax error ESY0228: Unexpected token, expected ','. */ +/* @@@ label3 Error Syntax error ESY0224: Identifier expected, got 'string literal'. */ +/* @@@ label4 Error Syntax error ESY0122: Identifier expected. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/user_defined_8.ets b/ets2panda/test/ast/parser/ets/user_defined_8.ets index 52278742dd..25f620b94f 100644 --- a/ets2panda/test/ast/parser/ets/user_defined_8.ets +++ b/ets2panda/test/ast/parser/ets/user_defined_8.ets @@ -17,5 +17,6 @@ struct string{ a : string = "15"; } -/* @@? 16:8 Error SyntaxError: string is a predefined type, cannot be used as an identifier */ -/* @@? 16:1 Error TypeError: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ + +/* @@? 16:1 Error Semantic error ESE0364: Structs are only used to define UI components, it should be translated at 'plugin after parser' phase. */ +/* @@? 16:8 Error Syntax error ESY0295: string is a predefined type, cannot be used as an identifier */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/user_defined_9.ets b/ets2panda/test/ast/parser/ets/user_defined_9.ets index 1170c80f98..6afa5057c1 100644 --- a/ets2panda/test/ast/parser/ets/user_defined_9.ets +++ b/ets2panda/test/ast/parser/ets/user_defined_9.ets @@ -17,4 +17,5 @@ class /* @@ label */string{ a : string = "15"; } -/* @@@ label Error SyntaxError: string is a predefined type, cannot be used as an identifier */ + +/* @@@ label Error Syntax error ESY0295: string is a predefined type, cannot be used as an identifier */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/visible_signatures_1.ets b/ets2panda/test/ast/parser/ets/visible_signatures_1.ets index 7be7ca46ca..09baee9e42 100644 --- a/ets2panda/test/ast/parser/ets/visible_signatures_1.ets +++ b/ets2panda/test/ast/parser/ets/visible_signatures_1.ets @@ -27,6 +27,7 @@ function main(): void { } -/* @@? 20:13 Error TypeError: Function foo with this assembly signature already declared. */ -/* @@? 26:5 Error TypeError: Signature foo(a: Double|undefined): Int is not visible here. */ -/* @@? 26:5 Error TypeError: No matching call signature for foo(Double) */ + +/* @@? 20:13 Error Semantic error ESE0131: Function foo with this assembly signature already declared. */ +/* @@? 26:5 Error Semantic error ESE0139: Signature foo(a: Double|undefined): Int is not visible here. */ +/* @@? 26:5 Error Semantic error ESE0127: No matching call signature for foo(Double) */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/visit_member_class_null_to_never.ets b/ets2panda/test/ast/parser/ets/visit_member_class_null_to_never.ets index a00400dec8..a269c5038d 100644 --- a/ets2panda/test/ast/parser/ets/visit_member_class_null_to_never.ets +++ b/ets2panda/test/ast/parser/ets/visit_member_class_null_to_never.ets @@ -35,4 +35,5 @@ function dasgAssert() { dasgAssert(); -/* @@? 23:15 Warning Warning: Bad operand type, the operand of the non-nullish expression is 'null' or 'undefined'. */ + +/* @@? 23:15 Warning Warning W0014: Bad operand type, the operand of the non-nullish expression is 'null' or 'undefined'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/while_with_empty_body.ets b/ets2panda/test/ast/parser/ets/while_with_empty_body.ets index 3e6ecfbf42..5b3260fc73 100644 --- a/ets2panda/test/ast/parser/ets/while_with_empty_body.ets +++ b/ets2panda/test/ast/parser/ets/while_with_empty_body.ets @@ -15,5 +15,6 @@ while (null) export function foo() {} -/* @@? 16:14 Error SyntaxError: Unexpected token 'export'. */ -/* @@? 16:14 Error SyntaxError: Missing body in while statement */ + +/* @@? 16:14 Error Syntax error ESY0227: Unexpected token 'export'. */ +/* @@? 16:14 Error Syntax error ESY0300: Missing body in while statement */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/while_with_empty_condition.ets b/ets2panda/test/ast/parser/ets/while_with_empty_condition.ets index 33c96d6b16..62e23ea51d 100644 --- a/ets2panda/test/ast/parser/ets/while_with_empty_condition.ets +++ b/ets2panda/test/ast/parser/ets/while_with_empty_condition.ets @@ -15,6 +15,7 @@ while () {} -/* @@? 16:8 Error SyntaxError: Unexpected token ')'. */ -/* @@? 16:10 Error SyntaxError: Expected ')', got '{'. */ -/* @@? 21:1 Error SyntaxError: Missing condition in while statement */ + +/* @@? 16:8 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 16:10 Error Syntax error ESY0230: Expected ')', got '{'. */ +/* @@? 21:81 Error Syntax error ESY0301: Missing condition in while statement */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/windows_multiline_comments.ets b/ets2panda/test/ast/parser/ets/windows_multiline_comments.ets index f4fc655e44..ffb1186339 100644 --- a/ets2panda/test/ast/parser/ets/windows_multiline_comments.ets +++ b/ets2panda/test/ast/parser/ets/windows_multiline_comments.ets @@ -20,4 +20,5 @@ file with CR LF line endings */ a -/* @@? 21:1 Error TypeError: Unresolved reference a */ + +/* @@? 21:1 Error Semantic error ESE0143: Unresolved reference a */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/wrong-union-array-assignment.ets b/ets2panda/test/ast/parser/ets/wrong-union-array-assignment.ets index 90dddc19e8..574539a72c 100644 --- a/ets2panda/test/ast/parser/ets/wrong-union-array-assignment.ets +++ b/ets2panda/test/ast/parser/ets/wrong-union-array-assignment.ets @@ -24,4 +24,5 @@ function main() array = /* @@ label */new Bad(); } -/* @@? 24:27 Error TypeError: Type 'Bad' cannot be assigned to type 'Array' */ + +/* @@@ label Error Semantic error ESE0318: Type 'Bad' cannot be assigned to type 'Array' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/wrongReadonlyUtilityType.ets b/ets2panda/test/ast/parser/ets/wrongReadonlyUtilityType.ets index 4b832e61e6..fe964ed528 100644 --- a/ets2panda/test/ast/parser/ets/wrongReadonlyUtilityType.ets +++ b/ets2panda/test/ast/parser/ets/wrongReadonlyUtilityType.ets @@ -20,8 +20,9 @@ class A { let a: readonly = new A(); -/* @@? 21:16 Error SyntaxError: Invalid Type. */ -/* @@? 21:16 Error SyntaxError: Unexpected token '<'. */ -/* @@? 21:16 Error SyntaxError: Type cast syntax '' is not supported, please use 'as' keyword instead */ -/* @@? 21:20 Error SyntaxError: Unexpected token '='. */ -/* @@? 21:22 Error SyntaxError: Unexpected token 'new'. */ + +/* @@? 21:16 Error Syntax error ESY0138: Invalid Type. */ +/* @@? 21:16 Error Syntax error ESY0227: Unexpected token '<'. */ +/* @@? 21:16 Error Syntax error ESY178094: Type cast syntax '' is not supported, please use 'as' keyword instead */ +/* @@? 21:20 Error Syntax error ESY0227: Unexpected token '='. */ +/* @@? 21:22 Error Syntax error ESY0227: Unexpected token 'new'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/wrong_context_class_1.ets b/ets2panda/test/ast/parser/ets/wrong_context_class_1.ets index 76848aae0f..eb4ddf29b3 100644 --- a/ets2panda/test/ast/parser/ets/wrong_context_class_1.ets +++ b/ets2panda/test/ast/parser/ets/wrong_context_class_1.ets @@ -22,5 +22,6 @@ function main() /* @@ label */a = /* @@ label1 */5 } -/* @@@ label Error SyntaxError: Class cannot be used as object. */ -/* @@@ label1 Error TypeError: Type 'Int' cannot be assigned to type 'a' */ + +/* @@@ label Error Syntax error ESY0318: Class cannot be used as object. */ +/* @@@ label1 Error Semantic error ESE0318: Type 'Int' cannot be assigned to type 'a' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/wrong_context_class_2.ets b/ets2panda/test/ast/parser/ets/wrong_context_class_2.ets index f26cb6dee6..c7913b9f51 100644 --- a/ets2panda/test/ast/parser/ets/wrong_context_class_2.ets +++ b/ets2panda/test/ast/parser/ets/wrong_context_class_2.ets @@ -23,5 +23,6 @@ function main() b = a } -/* @@? 23:9 Error SyntaxError: Class cannot be used as object. */ -/* @@? 23:9 Error TypeError: Type 'a' cannot be assigned to type 'Int' */ + +/* @@? 23:9 Error Syntax error ESY0318: Class cannot be used as object. */ +/* @@? 23:9 Error Semantic error ESE0318: Type 'a' cannot be assigned to type 'Int' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/wrong_context_class_3.ets b/ets2panda/test/ast/parser/ets/wrong_context_class_3.ets index 6b54667d9f..c40f0c1182 100644 --- a/ets2panda/test/ast/parser/ets/wrong_context_class_3.ets +++ b/ets2panda/test/ast/parser/ets/wrong_context_class_3.ets @@ -22,5 +22,6 @@ function main() a++ } -/* @@? 22:5 Error SyntaxError: Class cannot be used as object. */ -/* @@? 22:5 Error TypeError: Bad operand type, the type of the operand must be numeric type. */ + +/* @@? 22:5 Error Syntax error ESY0318: Class cannot be used as object. */ +/* @@? 22:5 Error Semantic error ESE0066: Bad operand type, the type of the operand must be numeric type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/wrong_context_class_4.ets b/ets2panda/test/ast/parser/ets/wrong_context_class_4.ets index 79ccb2bf3b..d562a8b87d 100644 --- a/ets2panda/test/ast/parser/ets/wrong_context_class_4.ets +++ b/ets2panda/test/ast/parser/ets/wrong_context_class_4.ets @@ -26,5 +26,6 @@ function main() a[3] } -/* @@? 26:5 Error TypeError: Object type doesn't have proper index access method. */ -/* @@? 26:5 Error SyntaxError: Class cannot be used as object. */ + +/* @@? 26:5 Error Syntax error ESY0318: Class cannot be used as object. */ +/* @@? 26:5 Error Semantic error ESE0250: Object type doesn't have proper index access method. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/wrong_context_function_1.ets b/ets2panda/test/ast/parser/ets/wrong_context_function_1.ets index 530534fa78..2acd67b5fa 100644 --- a/ets2panda/test/ast/parser/ets/wrong_context_function_1.ets +++ b/ets2panda/test/ast/parser/ets/wrong_context_function_1.ets @@ -22,4 +22,5 @@ function main() /* @@ label */a = /* @@ label1 */5 } -/* @@@ label Error TypeError: Function name 'a' used in the wrong context */ + +/* @@@ label Error Semantic error ESE0144: Function name 'a' used in the wrong context */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/wrong_context_function_2.ets b/ets2panda/test/ast/parser/ets/wrong_context_function_2.ets index 69076b3d7b..bca796e150 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,5 @@ 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' */ \ No newline at end of file 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 293065f2be..39fe05e986 100644 --- a/ets2panda/test/ast/parser/ets/wrong_context_function_3.ets +++ b/ets2panda/test/ast/parser/ets/wrong_context_function_3.ets @@ -22,4 +22,5 @@ function main() a++ } -/* @@? 22:5 Error TypeError: Function name 'a' used in the wrong context */ + +/* @@? 22:5 Error Semantic error ESE0144: Function name 'a' used in the wrong context */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ets/wrong_context_function_4.ets b/ets2panda/test/ast/parser/ets/wrong_context_function_4.ets index 16a45d2daa..c1181754ab 100644 --- a/ets2panda/test/ast/parser/ets/wrong_context_function_4.ets +++ b/ets2panda/test/ast/parser/ets/wrong_context_function_4.ets @@ -26,5 +26,6 @@ function main() a[3] } -/* @@? 26:5 Error TypeError: Function name 'a' used in the wrong context */ -/* @@? 26:5 Error TypeError: Indexed access is not supported for such expression type. */ + +/* @@? 26:5 Error Semantic error ESE0144: Function name 'a' used in the wrong context */ +/* @@? 26:5 Error Semantic error ESE0252: Indexed access is not supported for such expression type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/InvalidExpressions.js b/ets2panda/test/ast/parser/js/InvalidExpressions.js index 110409e0fb..9a44739f74 100644 --- a/ets2panda/test/ast/parser/js/InvalidExpressions.js +++ b/ets2panda/test/ast/parser/js/InvalidExpressions.js @@ -70,86 +70,76 @@ async (x = await 7) /* @@ label56 */=> expression; (a, b) => { 7 /* @@ label57 */]; // This should be the last line to check syntax error about missing '}' -/* @@@ label Error SyntaxError: Illegal expression. Wrap left hand side or entire exponentiation in parentheses. */ -/* @@@ label1 Error SyntaxError: Unexpected token '<'. */ -/* @@@ label2 Error SyntaxError: Invalid left-hand side operator. */ -/* @@@ label3 Error SyntaxError: Assigning to 'eval' in strict mode is invalid. */ -/* @@@ label4 Error SyntaxError: Assigning to 'arguments' in strict mode is invalid. */ -/* @@@ label5 Error SyntaxError: Invalid left-hand side in prefix operation. */ -/* @@@ label6 Error SyntaxError: Assigning to 'arguments' in strict mode is invalid. */ -/* @@@ label7 Error SyntaxError: Assigning to 'eval' in strict mode is invalid. */ -/* @@@ label8 Error SyntaxError: Deleting local variable in strict mode. */ -/* @@@ label9 Error SyntaxError: Private fields can not be deleted. */ -/* @@@ label10 Error SyntaxError: 'import.Meta' may appear only with 'sourceType: module'. */ -/* @@@ label11 Error SyntaxError: 'import.Meta' may appear only with 'sourceType: module'. */ -/* @@@ label12 Error SyntaxError: 'import.Meta' may appear only with 'sourceType: module'. */ -/* @@@ label13 Error SyntaxError: 'import.Meta' may appear only with 'sourceType: module'. */ -/* @@@ label14 Error SyntaxError: The only valid meta property for import is import.Meta. */ -/* @@@ label15 Error SyntaxError: Nullish coalescing operator ?? requires parens when mixing with logical operators. */ -/* @@@ label16 Error SyntaxError: Nullish coalescing operator ?? requires parens when mixing with logical operators. */ -/* @@@ label17 Error SyntaxError: Unexpected token, expected ':'. */ -/* @@@ label18 Error SyntaxError: Unexpected token '}'. */ -/* @@@ label19 Error SyntaxError: Insufficient formal parameter in arrow function. */ -/* @@@ label20 Error SyntaxError: Unexpected token '1'. */ -/* @@@ label20 Error SyntaxError: Unexpected token. */ -/* @@@ label20 Error SyntaxError: Expected ')', got 'number literal'. */ -/* @@@ label21 Error SyntaxError: Unexpected token ')'. */ -/* @@@ label21 Error SyntaxError: Unexpected token ')'. */ -/* @@@ label21 Error SyntaxError: Unexpected token ')'. */ -/* @@@ label22 Error SyntaxError: Unexpected token '=>'. */ -/* @@@ label23 Error SyntaxError: Rest parameter must be the last formal parameter. */ -/* @@@ label23 Error SyntaxError: Unexpected token, expected '=>'. */ -/* @@@ label24 Error SyntaxError: Unexpected token ')'. */ -/* @@@ label24 Error SyntaxError: Unexpected token ')'. */ -/* @@@ label24 Error SyntaxError: Unexpected token ')'. */ -/* @@@ label25 Error SyntaxError: Unexpected token, expected '=>'. */ -/* @@@ label26 Error SyntaxError: Unexpected token, expected ']'. */ -/* @@@ label27 Error SyntaxError: Tagged Template Literals are not allowed in optionalChain. */ -/* @@@ label28 Error SyntaxError: Invalid left-hand side in array destructuring pattern. */ -/* @@@ label29 Error SyntaxError: Async methods cannot have a line terminator between 'async' and the property name. */ -/* @@@ label30 Error SyntaxError: Unexpected identifier. */ -/* @@@ label30 Error SyntaxError: Unexpected token, expected ':'. */ -/* @@@ label31 Error SyntaxError: Getter must not have formal parameters. */ -/* @@@ label32 Error SyntaxError: Setter must have exactly one formal parameter. */ -/* @@@ label33 Error SyntaxError: Unexpected token. */ -/* @@@ label34 Error SyntaxError: Unexpected token, expected ':'. */ -/* @@@ label34 Error SyntaxError: Unexpected identifier. */ -/* @@@ label35 Error SyntaxError: Unexpected token. */ -/* @@@ label36 Error SyntaxError: Unexpected token. */ -/* @@@ label37 Error SyntaxError: Missing initializer in destructuring declaration. */ -/* @@@ label38 Error SyntaxError: Invalid left-hand side in array destructuring pattern. */ -/* @@@ label39 Error SyntaxError: Object pattern can't contain methods. */ -/* @@@ label40 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@@ label41 Error SyntaxError: Invalid left-hand side in array destructuring pattern. */ -/* @@@ label42 Error SyntaxError: Invalid destructuring assignment target. */ -/* @@@ label42 Error SyntaxError: Unexpected ArrowParameter element. */ -/* @@@ label43 Error SyntaxError: Invalid destructuring assignment target. */ -/* @@@ label43 Error SyntaxError: Unexpected ArrowParameter element. */ -/* @@@ label44 Error SyntaxError: Unexpected token, expected ',' or ']'. */ -/* @@@ label44 Error SyntaxError: Expected ')', got 'number literal'. */ -/* @@@ label44 Error SyntaxError: Unexpected token '7'. */ -/* @@@ label45 Error SyntaxError: Unexpected token ']'. */ -/* @@@ label45 Error SyntaxError: Unexpected token ']'. */ -/* @@@ label45 Error SyntaxError: Unexpected token ']'. */ -/* @@@ label46 Error SyntaxError: Unexpected token ')'. */ -/* @@@ label46 Error SyntaxError: Unexpected token ')'. */ -/* @@@ label47 Error SyntaxError: Unexpected token '=>'. */ -/* @@@ label48 Error SyntaxError: Invalid destructuring assignment target. */ -/* @@@ label48 Error SyntaxError: Unexpected ArrowParameter element. */ -/* @@@ label49 Error SyntaxError: Unexpected token, expected ')'. */ -/* @@@ label50 Error SyntaxError: Rest parameter must be the last formal parameter. */ -/* @@@ label50 Error SyntaxError: Unexpected token, expected '=>'. */ -/* @@@ label51 Error SyntaxError: Unexpected token ')'. */ -/* @@@ label51 Error SyntaxError: Unexpected token ')'. */ -/* @@@ label51 Error SyntaxError: Unexpected token ')'. */ -/* @@@ label52 Error SyntaxError: Unexpected token '=>'. */ -/* @@@ label53 Error SyntaxError: Unexpected token, expected '=>'. */ -/* @@@ label54 Error SyntaxError: Unexpected token. */ -/* @@@ label55 Error SyntaxError: Invalid rest element. */ -/* @@@ label55 Error SyntaxError: Unexpected ArrowParameter element. */ -/* @@@ label56 Error SyntaxError: await is not allowed in arrow function parameters. */ -/* @@@ label56 Error SyntaxError: Unexpected ArrowParameter element. */ -/* @@@ label57 Error SyntaxError: Unexpected token ']'. */ -/* @@@ label57 Error SyntaxError: Unexpected token ']'. */ -/* @@@ label57 Error SyntaxError: Unexpected token ']'. */ -/* @@? 156:1 Error SyntaxError: Expected '}', got 'end of stream'. */ + +/* @@@ label Error Syntax error ESY0196: Illegal expression. Wrap left hand side or entire exponentiation in parentheses. */ +/* @@@ label1 Error Syntax error ESY0227: Unexpected token '<'. */ +/* @@@ label2 Error Syntax error ESY0053: Invalid left-hand side operator. */ +/* @@@ label3 Error Syntax error ESY0051: Assigning to 'eval' in strict mode is invalid. */ +/* @@@ label4 Error Syntax error ESY0057: Assigning to 'arguments' in strict mode is invalid. */ +/* @@@ label5 Error Syntax error ESY0071: Invalid left-hand side in prefix operation. */ +/* @@@ label6 Error Syntax error ESY0057: Assigning to 'arguments' in strict mode is invalid. */ +/* @@@ label7 Error Syntax error ESY0051: Assigning to 'eval' in strict mode is invalid. */ +/* @@@ label8 Error Syntax error ESY0050: Deleting local variable in strict mode. */ +/* @@@ label9 Error Syntax error ESY0070: Private fields can not be deleted. */ +/* @@@ label10 Error Syntax error ESY0069: 'import.Meta' may appear only with 'sourceType: module'. */ +/* @@@ label11 Error Syntax error ESY0069: 'import.Meta' may appear only with 'sourceType: module'. */ +/* @@@ label12 Error Syntax error ESY0069: 'import.Meta' may appear only with 'sourceType: module'. */ +/* @@@ label13 Error Syntax error ESY0069: 'import.Meta' may appear only with 'sourceType: module'. */ +/* @@@ label14 Error Syntax error ESY0068: The only valid meta property for import is import.Meta. */ +/* @@@ label15 Error Syntax error ESY0059: Nullish coalescing operator ?? requires parens when mixing with logical operators. */ +/* @@@ label16 Error Syntax error ESY0059: Nullish coalescing operator ?? requires parens when mixing with logical operators. */ +/* @@@ label17 Error Syntax error ESY0228: Unexpected token, expected ':'. */ +/* @@@ label18 Error Syntax error ESY0227: Unexpected token '}'. */ +/* @@@ label19 Error Syntax error ESY0064: Insufficient formal parameter in arrow function. */ +/* @@@ label20 Error Syntax error ESY0227: Unexpected token '1'. */ +/* @@@ label20 Error Syntax error ESY0016: Unexpected token. */ +/* @@@ label20 Error Syntax error ESY0230: Expected ')', got 'number literal'. */ +/* @@@ label21 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@@ label22 Error Syntax error ESY0227: Unexpected token '=>'. */ +/* @@@ label23 Error Syntax error ESY0067: Rest parameter must be the last formal parameter. */ +/* @@@ label23 Error Syntax error ESY0228: Unexpected token, expected '=>'. */ +/* @@@ label24 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@@ label25 Error Syntax error ESY0228: Unexpected token, expected '=>'. */ +/* @@@ label26 Error Syntax error ESY0228: Unexpected token, expected ']'. */ +/* @@@ label27 Error Syntax error ESY0056: Tagged Template Literals are not allowed in optionalChain. */ +/* @@@ label28 Error Syntax error ESY0204: Invalid left-hand side in array destructuring pattern. */ +/* @@@ label29 Error Syntax error ESY0197: Async methods cannot have a line terminator between 'async' and the property name. */ +/* @@@ label30 Error Syntax error ESY0045: Unexpected identifier. */ +/* @@@ label30 Error Syntax error ESY0228: Unexpected token, expected ':'. */ +/* @@@ label31 Error Syntax error ESY0058: Getter must not have formal parameters. */ +/* @@@ label32 Error Syntax error ESY0063: Setter must have exactly one formal parameter. */ +/* @@@ label33 Error Syntax error ESY0016: Unexpected token. */ +/* @@@ label34 Error Syntax error ESY0228: Unexpected token, expected ':'. */ +/* @@@ label34 Error Syntax error ESY0045: Unexpected identifier. */ +/* @@@ label35 Error Syntax error ESY0016: Unexpected token. */ +/* @@@ label36 Error Syntax error ESY0016: Unexpected token. */ +/* @@@ label37 Error Syntax error ESY0186: Missing initializer in destructuring declaration. */ +/* @@@ label38 Error Syntax error ESY0204: Invalid left-hand side in array destructuring pattern. */ +/* @@@ label39 Error Syntax error ESY0062: Object pattern can't contain methods. */ +/* @@@ label40 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@@ label41 Error Syntax error ESY0204: Invalid left-hand side in array destructuring pattern. */ +/* @@@ label42 Error Syntax error ESY0049: Invalid destructuring assignment target. */ +/* @@@ label42 Error Syntax error ESY0148: Unexpected ArrowParameter element. */ +/* @@@ label43 Error Syntax error ESY0049: Invalid destructuring assignment target. */ +/* @@@ label43 Error Syntax error ESY0148: Unexpected ArrowParameter element. */ +/* @@@ label44 Error Syntax error ESY0229: Unexpected token, expected ',' or ']'. */ +/* @@@ label44 Error Syntax error ESY0230: Expected ')', got 'number literal'. */ +/* @@@ label44 Error Syntax error ESY0227: Unexpected token '7'. */ +/* @@@ label45 Error Syntax error ESY0227: Unexpected token ']'. */ +/* @@@ label46 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@@ label47 Error Syntax error ESY0227: Unexpected token '=>'. */ +/* @@@ label48 Error Syntax error ESY0049: Invalid destructuring assignment target. */ +/* @@@ label48 Error Syntax error ESY0148: Unexpected ArrowParameter element. */ +/* @@@ label49 Error Syntax error ESY0228: Unexpected token, expected ')'. */ +/* @@@ label50 Error Syntax error ESY0067: Rest parameter must be the last formal parameter. */ +/* @@@ label50 Error Syntax error ESY0228: Unexpected token, expected '=>'. */ +/* @@@ label51 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@@ label52 Error Syntax error ESY0227: Unexpected token '=>'. */ +/* @@@ label53 Error Syntax error ESY0228: Unexpected token, expected '=>'. */ +/* @@@ label54 Error Syntax error ESY0016: Unexpected token. */ +/* @@@ label55 Error Syntax error ESY0055: Invalid rest element. */ +/* @@@ label55 Error Syntax error ESY0148: Unexpected ArrowParameter element. */ +/* @@@ label56 Error Syntax error ESY0046: await is not allowed in arrow function parameters. */ +/* @@@ label56 Error Syntax error ESY0148: Unexpected ArrowParameter element. */ +/* @@@ label57 Error Syntax error ESY0227: Unexpected token ']'. */ +/* @@? 145:80 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/InvalidParserImpl.js b/ets2panda/test/ast/parser/js/InvalidParserImpl.js index c9a25dc5df..875da4bfc5 100644 --- a/ets2panda/test/ast/parser/js/InvalidParserImpl.js +++ b/ets2panda/test/ast/parser/js/InvalidParserImpl.js @@ -49,21 +49,22 @@ for (var i of a) { continue label; } -/* @@? 16:7 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 16:10 Error SyntaxError: Unexpected token '{'. */ -/* @@? 22:5 Error SyntaxError: Private field has already been declared. */ -/* @@? 22:15 Error SyntaxError: Invalid accessor. */ -/* @@? 24:12 Error SyntaxError: Unexpected modifier. */ -/* @@? 24:12 Error SyntaxError: Duplicated modifier is not allowed. */ -/* @@? 26:6 Error SyntaxError: Unexpected identifier. */ -/* @@? 30:6 Error SyntaxError: Private identifier can not be constructor. */ -/* @@? 35:12 Error SyntaxError: Classes may not have static property named prototype. */ -/* @@? 37:5 Error SyntaxError: Classes may not have a field named 'constructor'. */ -/* @@? 38:12 Error SyntaxError: Classes may not have static property named prototype. */ -/* @@? 40:5 Error SyntaxError: Multiple constructor implementations are not allowed. */ -/* @@? 41:5 Error SyntaxError: Multiple constructor implementations are not allowed. */ -/* @@? 43:5 Error SyntaxError: Multiple constructor implementations are not allowed. */ -/* @@? 43:11 Error SyntaxError: Constructor can not be special method. */ -/* @@? 46:12 Error SyntaxError: 'eval' or 'arguments' can't be defined or assigned to in strict mode code. */ -/* @@? 46:18 Error SyntaxError: 'eval' or 'arguments' can't be defined or assigned to in strict mode code. */ -/* @@? 49:14 Error SyntaxError: Undefined label. */ + +/* @@? 16:7 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 16:10 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@? 22:5 Error Syntax error ESY0154: Private field has already been declared. */ +/* @@? 22:15 Error Syntax error ESY0159: Invalid accessor. */ +/* @@? 24:12 Error Syntax error ESY0153: Unexpected modifier. */ +/* @@? 24:12 Error Syntax error ESY0115: Duplicated modifier is not allowed. */ +/* @@? 26:6 Error Syntax error ESY0045: Unexpected identifier. */ +/* @@? 30:6 Error Syntax error ESY0267: Private identifier can not be constructor. */ +/* @@? 35:12 Error Syntax error ESY0155: Classes may not have static property named prototype. */ +/* @@? 37:5 Error Syntax error ESY0144: Classes may not have a field named 'constructor'. */ +/* @@? 38:12 Error Syntax error ESY0155: Classes may not have static property named prototype. */ +/* @@? 40:5 Error Syntax error ESY0206: Multiple constructor implementations are not allowed. */ +/* @@? 41:5 Error Syntax error ESY0206: Multiple constructor implementations are not allowed. */ +/* @@? 43:5 Error Syntax error ESY0206: Multiple constructor implementations are not allowed. */ +/* @@? 43:11 Error Syntax error ESY0149: Constructor can not be special method. */ +/* @@? 46:12 Error Syntax error ESY0207: 'eval' or 'arguments' can't be defined or assigned to in strict mode code. */ +/* @@? 46:18 Error Syntax error ESY0207: 'eval' or 'arguments' can't be defined or assigned to in strict mode code. */ +/* @@? 49:14 Error Syntax error ESY0162: Undefined label. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/for_of_loop_variable.js b/ets2panda/test/ast/parser/js/for_of_loop_variable.js index ba0df0f510..625e710518 100644 --- a/ets2panda/test/ast/parser/js/for_of_loop_variable.js +++ b/ets2panda/test/ast/parser/js/for_of_loop_variable.js @@ -27,4 +27,5 @@ for (let value of iterable2) { console.log(value); } -/* @@@ label Error SyntaxError: for-of loop variable declaration may not have an initializer. */ + +/* @@@ label Error Syntax error ESY0168: for-of loop variable declaration may not have an initializer. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/invalid-left-hand-side-in-prefix-operation.js b/ets2panda/test/ast/parser/js/invalid-left-hand-side-in-prefix-operation.js index 45100448e1..8fd2a82944 100644 --- a/ets2panda/test/ast/parser/js/invalid-left-hand-side-in-prefix-operation.js +++ b/ets2panda/test/ast/parser/js/invalid-left-hand-side-in-prefix-operation.js @@ -15,5 +15,5 @@ ++!a -/* @@@ label Error SyntaxError: Invalid left-hand side in prefix operation. */ -/* @@ label */ \ No newline at end of file + +/* @@ label *//* @@? 19:103 Error Syntax error ESY0071: Invalid left-hand side in prefix operation. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/module/import_meta_1.js b/ets2panda/test/ast/parser/js/module/import_meta_1.js index c27479a971..d7e36cb088 100644 --- a/ets2panda/test/ast/parser/js/module/import_meta_1.js +++ b/ets2panda/test/ast/parser/js/module/import_meta_1.js @@ -20,8 +20,5 @@ flags: [module] import(import.mta) import.meta -/* @@? 20:15 Error SyntaxError: The only valid meta property for import is import.Meta. */ -/* @@? 1:1 Node { - "type": "Program" -} *//* @@? 20:15 Error SyntaxError: The only valid meta property for import is import.Meta. */ -/* @@? 20:15 Error SyntaxError: The only valid meta property for import is import.Meta. */ + +/* @@? 20:15 Error Syntax error ESY0068: The only valid meta property for import is import.Meta. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/module/import_meta_2.js b/ets2panda/test/ast/parser/js/module/import_meta_2.js index 44391afab7..5683fdadc4 100644 --- a/ets2panda/test/ast/parser/js/module/import_meta_2.js +++ b/ets2panda/test/ast/parser/js/module/import_meta_2.js @@ -21,10 +21,6 @@ import(import.mta import.meta -/* @@? 20:15 Error SyntaxError: The only valid meta property for import is import.Meta. */ -/* @@? 21:1 Error SyntaxError: Expected ')', got 'import'. */ -/* @@? 1:1 Node { - "type": "Program" -} *//* @@? 20:15 Error SyntaxError: The only valid meta property for import is import.Meta. */ -/* @@? 20:15 Error SyntaxError: The only valid meta property for import is import.Meta. */ -/* @@? 21:1 Error SyntaxError: Expected ')', got 'import'. */ + +/* @@? 20:15 Error Syntax error ESY0068: The only valid meta property for import is import.Meta. */ +/* @@? 21:1 Error Syntax error ESY0230: Expected ')', got 'import'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/module/import_meta_3.js b/ets2panda/test/ast/parser/js/module/import_meta_3.js index a5848b2b4e..3681485435 100644 --- a/ets2panda/test/ast/parser/js/module/import_meta_3.js +++ b/ets2panda/test/ast/parser/js/module/import_meta_3.js @@ -21,7 +21,7 @@ import.meta; import (impor -/* @@? 25:68 Error SyntaxError: Unexpected token, expected: ')'. */ + /* @@? 1:1 Node { "type": "Program" -} */ \ No newline at end of file +} *//* @@? 27:84 Error Syntax error ESY0230: Expected ')', got 'end of stream'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/module/unexpected_token_10.js b/ets2panda/test/ast/parser/js/module/unexpected_token_10.js index 9b30edb06b..abbf0ba5c5 100644 --- a/ets2panda/test/ast/parser/js/module/unexpected_token_10.js +++ b/ets2panda/test/ast/parser/js/module/unexpected_token_10.js @@ -19,6 +19,7 @@ flags: [module] import(import /* @@ label */) -/* @@@ label Error SyntaxError: Expected '(', got ')'. */ -/* @@@ label Error SyntaxError: Unexpected token ')'. */ -/* @@? 25:1 Error SyntaxError: Expected ')', got 'end of stream'. */ + +/* @@@ label Error Syntax error ESY0230: Expected '(', got ')'. */ +/* @@@ label Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 25:79 Error Syntax error ESY0230: Expected ')', got 'end of stream'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/module/unexpected_token_9.js b/ets2panda/test/ast/parser/js/module/unexpected_token_9.js index 4988d12095..fed14152b6 100644 --- a/ets2panda/test/ast/parser/js/module/unexpected_token_9.js +++ b/ets2panda/test/ast/parser/js/module/unexpected_token_9.js @@ -20,8 +20,5 @@ flags: [module] export { a as 6, c} from "foo" -/* @@? 20:15 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 1:1 Node { - "type": "Program" -} *//* @@? 20:15 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 20:15 Error SyntaxError: Unexpected token, expected an identifier. */ + +/* @@? 20:15 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/new-expression.js b/ets2panda/test/ast/parser/js/new-expression.js index 3a1a9bb9b5..7cad0c151d 100644 --- a/ets2panda/test/ast/parser/js/new-expression.js +++ b/ets2panda/test/ast/parser/js/new-expression.js @@ -15,4 +15,5 @@ new a()/* @@ label */{}; -/* @@@ label Error SyntaxError: Unexpected token '{'. */ + +/* @@@ label Error Syntax error ESY0227: Unexpected token '{'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/private_ctor_bad.js b/ets2panda/test/ast/parser/js/private_ctor_bad.js index 1b9477045f..3031035e62 100644 --- a/ets2panda/test/ast/parser/js/private_ctor_bad.js +++ b/ets2panda/test/ast/parser/js/private_ctor_bad.js @@ -17,4 +17,5 @@ class A { #constructor(){} } -/* @@? 18:6 Error SyntaxError: Private identifier can not be constructor. */ + +/* @@? 18:6 Error Syntax error ESY0267: Private identifier can not be constructor. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/private_number_bad.js b/ets2panda/test/ast/parser/js/private_number_bad.js index 94cd82cad0..7d18e48325 100644 --- a/ets2panda/test/ast/parser/js/private_number_bad.js +++ b/ets2panda/test/ast/parser/js/private_number_bad.js @@ -16,5 +16,6 @@ class WeAre { #1 } -/* @@? 17:6 Error SyntaxError: Unexpected token in private field. */ -/* @@? 17:6 Error SyntaxError: Private identifier name can not be number. */ + +/* @@? 17:6 Error Syntax error ESY0160: Unexpected token in private field. */ +/* @@? 17:6 Error Syntax error ESY0269: Private identifier name can not be number. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/private_ref_bad.js b/ets2panda/test/ast/parser/js/private_ref_bad.js index cc4b234705..f4858f4fe3 100644 --- a/ets2panda/test/ast/parser/js/private_ref_bad.js +++ b/ets2panda/test/ast/parser/js/private_ref_bad.js @@ -18,4 +18,5 @@ class A{ return this.#x } } -/* @@? 18:21 Error SyntaxError: Private field 'x' must be declared in an enclosing class */ + +/* @@? 18:21 Error Syntax error ESY0000: Private field 'x' must be declared in an enclosing class */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/private_sqbracket_bad.js b/ets2panda/test/ast/parser/js/private_sqbracket_bad.js index 426ccec09f..5fe03ce657 100644 --- a/ets2panda/test/ast/parser/js/private_sqbracket_bad.js +++ b/ets2panda/test/ast/parser/js/private_sqbracket_bad.js @@ -16,8 +16,9 @@ class WeAre { #[ } -/* @@? 17:6 Error SyntaxError: Unexpected token in private field. */ -/* @@? 17:6 Error SyntaxError: Unexpected character in private identifier. */ -/* @@? 18:1 Error SyntaxError: Unexpected token '}'. */ -/* @@? 18:1 Error SyntaxError: Unexpected token, expected ']'. */ -/* @@? 24:1 Error SyntaxError: Expected '}', got 'end of stream'. */ + +/* @@? 17:6 Error Syntax error ESY0160: Unexpected token in private field. */ +/* @@? 17:6 Error Syntax error ESY0270: Unexpected character in private identifier. */ +/* @@? 18:1 Error Syntax error ESY0227: Unexpected token '}'. */ +/* @@? 18:1 Error Syntax error ESY0228: Unexpected token, expected ']'. */ +/* @@? 24:79 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/private_string_bad.js b/ets2panda/test/ast/parser/js/private_string_bad.js index 58c411b6fd..43e45f97ec 100644 --- a/ets2panda/test/ast/parser/js/private_string_bad.js +++ b/ets2panda/test/ast/parser/js/private_string_bad.js @@ -16,5 +16,6 @@ class WeAre { #"one" } -/* @@? 17:6 Error SyntaxError: Unexpected token in private field. */ -/* @@? 17:6 Error SyntaxError: Private identifier name can not be string. */ + +/* @@? 17:6 Error Syntax error ESY0160: Unexpected token in private field. */ +/* @@? 17:6 Error Syntax error ESY0268: Private identifier name can not be string. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/rest_params_1.js b/ets2panda/test/ast/parser/js/rest_params_1.js index 28a006da4b..a53c622770 100644 --- a/ets2panda/test/ast/parser/js/rest_params_1.js +++ b/ets2panda/test/ast/parser/js/rest_params_1.js @@ -18,7 +18,7 @@ function f4(a, b,...c^ { } -/* @@? 16:22 Error SyntaxError: Unexpected token, expected an identifier. */ + /* @@? 1:1 Node { "type": "Program" -} */ \ No newline at end of file +} *//* @@? 16:22 Error Syntax error ESY0067: Rest parameter must be the last formal parameter. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/static_property_prototype.js b/ets2panda/test/ast/parser/js/static_property_prototype.js index 9162d05945..7d07d1200f 100644 --- a/ets2panda/test/ast/parser/js/static_property_prototype.js +++ b/ets2panda/test/ast/parser/js/static_property_prototype.js @@ -18,4 +18,5 @@ class A { static "prototype" = 123; } -/* @@? 18:12 Error SyntaxError: Classes may not have static property named prototype. */ + +/* @@? 18:12 Error Syntax error ESY0155: Classes may not have static property named prototype. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/test-array-expression-1.js b/ets2panda/test/ast/parser/js/test-array-expression-1.js index 72735af88f..90d6d23c95 100644 --- a/ets2panda/test/ast/parser/js/test-array-expression-1.js +++ b/ets2panda/test/ast/parser/js/test-array-expression-1.js @@ -15,6 +15,7 @@ [a['b']/* @@ label */c] -/* @@@ label Error SyntaxError: Unexpected token, expected ',' or ']'. */ -/* @@? 17:22 Error SyntaxError: Unexpected token 'c'. */ -/* @@? 17:23 Error SyntaxError: Unexpected token ']'. */ + +/* @@@ label Error Syntax error ESY0229: Unexpected token, expected ',' or ']'. */ +/* @@@ label Error Syntax error ESY0227: Unexpected token 'c'. */ +/* @@? 17:23 Error Syntax error ESY0227: Unexpected token ']'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/test-array-expression-2.js b/ets2panda/test/ast/parser/js/test-array-expression-2.js index ae6bc3f978..d65d516400 100644 --- a/ets2panda/test/ast/parser/js/test-array-expression-2.js +++ b/ets2panda/test/ast/parser/js/test-array-expression-2.js @@ -16,4 +16,5 @@ [a/* @@ label */; -/* @@@ label Error SyntaxError: Unexpected token, expected ',' or ']'. */ + +/* @@@ label Error Syntax error ESY0229: Unexpected token, expected ',' or ']'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/test-class-definition1.js b/ets2panda/test/ast/parser/js/test-class-definition1.js index cc74c1dfa0..4646a8e43d 100644 --- a/ets2panda/test/ast/parser/js/test-class-definition1.js +++ b/ets2panda/test/ast/parser/js/test-class-definition1.js @@ -20,4 +20,5 @@ class A { super/* @@ label */(); } } -/* @@@ label Error SyntaxError: Unexpected super keyword. */ + +/* @@@ label Error Syntax error ESY0061: Unexpected super keyword. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/test-class-definition2.js b/ets2panda/test/ast/parser/js/test-class-definition2.js index 450865bc48..4eddd63ab4 100644 --- a/ets2panda/test/ast/parser/js/test-class-definition2.js +++ b/ets2panda/test/ast/parser/js/test-class-definition2.js @@ -23,4 +23,5 @@ class A { } } -/* @@@ label Error SyntaxError: Multiple constructor implementations are not allowed. */ + +/* @@@ label Error Syntax error ESY0206: Multiple constructor implementations are not allowed. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/test-class-definition3.js b/ets2panda/test/ast/parser/js/test-class-definition3.js index 9b0d1bd060..1edc9b9d3a 100644 --- a/ets2panda/test/ast/parser/js/test-class-definition3.js +++ b/ets2panda/test/ast/parser/js/test-class-definition3.js @@ -20,4 +20,5 @@ class B extends A { super/* @@ label */(); } } -/* @@@ label Error SyntaxError: Unexpected super keyword. */ + +/* @@@ label Error Syntax error ESY0061: Unexpected super keyword. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/test-class-definition4.js b/ets2panda/test/ast/parser/js/test-class-definition4.js index 2b904bb270..cbe027c790 100644 --- a/ets2panda/test/ast/parser/js/test-class-definition4.js +++ b/ets2panda/test/ast/parser/js/test-class-definition4.js @@ -18,4 +18,5 @@ class B { static /* @@ label */prototype() { } } -/* @@@ label Error SyntaxError: Classes may not have static property named prototype. */ + +/* @@@ label Error Syntax error ESY0155: Classes may not have static property named prototype. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/test-class-definition5.js b/ets2panda/test/ast/parser/js/test-class-definition5.js index 3fedf6b578..c7c580828d 100644 --- a/ets2panda/test/ast/parser/js/test-class-definition5.js +++ b/ets2panda/test/ast/parser/js/test-class-definition5.js @@ -18,4 +18,5 @@ class A { get /* @@ label */constructor() { } } -/* @@@ label Error SyntaxError: Constructor can not be special method. */ + +/* @@@ label Error Syntax error ESY0149: Constructor can not be special method. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/test-class-static-block1.js b/ets2panda/test/ast/parser/js/test-class-static-block1.js index d6eb0f75ba..759340d690 100644 --- a/ets2panda/test/ast/parser/js/test-class-static-block1.js +++ b/ets2panda/test/ast/parser/js/test-class-static-block1.js @@ -19,5 +19,6 @@ class A { } /* @@ label1 */} -/* @@@ label Error SyntaxError: Unexpected token, expected ';'. */ -/* @@@ label1 Error SyntaxError: Unexpected token '}'. */ + +/* @@@ label Error Syntax error ESY0228: Unexpected token, expected ';'. */ +/* @@@ label1 Error Syntax error ESY0227: Unexpected token '}'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/test-class-static-block2.js b/ets2panda/test/ast/parser/js/test-class-static-block2.js index cc4297e708..0e41d0d36c 100644 --- a/ets2panda/test/ast/parser/js/test-class-static-block2.js +++ b/ets2panda/test/ast/parser/js/test-class-static-block2.js @@ -19,4 +19,5 @@ class A { } } -/* @@@ label Error SyntaxError: return keyword should be used in function body. */ + +/* @@@ label Error Syntax error ESY0163: return keyword should be used in function body. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/test-class-static-block3.js b/ets2panda/test/ast/parser/js/test-class-static-block3.js index 1035daac13..6c2303fbb2 100644 --- a/ets2panda/test/ast/parser/js/test-class-static-block3.js +++ b/ets2panda/test/ast/parser/js/test-class-static-block3.js @@ -19,4 +19,5 @@ class A { } } -/* @@@ label Error SyntaxError: Unexpected super keyword. */ + +/* @@@ label Error Syntax error ESY0061: Unexpected super keyword. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/test-class-static-block4.js b/ets2panda/test/ast/parser/js/test-class-static-block4.js index cdf794c0e7..76b48b16e9 100644 --- a/ets2panda/test/ast/parser/js/test-class-static-block4.js +++ b/ets2panda/test/ast/parser/js/test-class-static-block4.js @@ -20,4 +20,5 @@ class A { } } -/* @@@ label Error SyntaxError: Variable 'a' has already been declared. */ + +/* @@@ label Error Syntax error ESY0000: Variable 'a' has already been declared. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/test-class-static-block5.js b/ets2panda/test/ast/parser/js/test-class-static-block5.js index 0fa943de1b..093a0ccf8a 100644 --- a/ets2panda/test/ast/parser/js/test-class-static-block5.js +++ b/ets2panda/test/ast/parser/js/test-class-static-block5.js @@ -20,4 +20,5 @@ class A { } -/* @@@ label Error SyntaxError: Private field 'a' must be declared in an enclosing class */ + +/* @@@ label Error Syntax error ESY0000: Private field 'a' must be declared in an enclosing class */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/test-class-static-block6.js b/ets2panda/test/ast/parser/js/test-class-static-block6.js index b12cb5006b..4206298adb 100644 --- a/ets2panda/test/ast/parser/js/test-class-static-block6.js +++ b/ets2panda/test/ast/parser/js/test-class-static-block6.js @@ -21,4 +21,5 @@ function *g() { } } -/* @@? 19:13 Error SyntaxError: Unexpected strict mode reserved keyword. */ + +/* @@? 19:13 Error Syntax error ESY0264: Unexpected strict mode reserved keyword. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/test-const-without-init.js b/ets2panda/test/ast/parser/js/test-const-without-init.js index 2a9fc8c2eb..3eee99b7ea 100644 --- a/ets2panda/test/ast/parser/js/test-const-without-init.js +++ b/ets2panda/test/ast/parser/js/test-const-without-init.js @@ -16,4 +16,5 @@ const c/* @@ label */; -/* @@@ label Error SyntaxError: Missing initializer in const declaration. */ + +/* @@@ label Error Syntax error ESY0100: Missing initializer in const declaration. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/test-continue-in-switch.js b/ets2panda/test/ast/parser/js/test-continue-in-switch.js index d1ed42da04..5859b810d5 100644 --- a/ets2panda/test/ast/parser/js/test-continue-in-switch.js +++ b/ets2panda/test/ast/parser/js/test-continue-in-switch.js @@ -25,4 +25,5 @@ switch (a) break; } -/* @@@ label Error SyntaxError: Illegal continue statement. */ + +/* @@@ label Error Syntax error ESY0165: Illegal continue statement. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/test-delete-identifier.js b/ets2panda/test/ast/parser/js/test-delete-identifier.js index 50d2a69b2d..6189f27f6c 100644 --- a/ets2panda/test/ast/parser/js/test-delete-identifier.js +++ b/ets2panda/test/ast/parser/js/test-delete-identifier.js @@ -16,4 +16,5 @@ var a; delete a/* @@ label */; -/* @@@ label Error SyntaxError: Deleting local variable in strict mode. */ + +/* @@@ label Error Syntax error ESY0050: Deleting local variable in strict mode. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/test-do-while-1.js b/ets2panda/test/ast/parser/js/test-do-while-1.js index 7f49fa1b8b..0cfa8a331a 100644 --- a/ets2panda/test/ast/parser/js/test-do-while-1.js +++ b/ets2panda/test/ast/parser/js/test-do-while-1.js @@ -15,4 +15,5 @@ do a = 2 /* @@ label */while (a > b) -/* @@@ label Error SyntaxError: Unexpected token 'while'. */ + +/* @@@ label Error Syntax error ESY0227: Unexpected token 'while'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/test-escaped-keyword.js b/ets2panda/test/ast/parser/js/test-escaped-keyword.js index 894e93267a..36f1f90698 100644 --- a/ets2panda/test/ast/parser/js/test-escaped-keyword.js +++ b/ets2panda/test/ast/parser/js/test-escaped-keyword.js @@ -16,4 +16,5 @@ cl\u0061ss; -/* @@? 17:1 Error SyntaxError: Escape sequences are not allowed in keyword. */ + +/* @@? 17:1 Error Syntax error ESY0271: Escape sequences are not allowed in keyword. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/test-expression-after-unary-expression.js b/ets2panda/test/ast/parser/js/test-expression-after-unary-expression.js index 2dace32c0c..66bc9055ad 100644 --- a/ets2panda/test/ast/parser/js/test-expression-after-unary-expression.js +++ b/ets2panda/test/ast/parser/js/test-expression-after-unary-expression.js @@ -15,4 +15,5 @@ ~a /* @@ label */b -/* @@@ label Error SyntaxError: Unexpected token 'b'. */ + +/* @@@ label Error Syntax error ESY0227: Unexpected token 'b'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/test-for-1.js b/ets2panda/test/ast/parser/js/test-for-1.js index 9b2243661f..bf28098d38 100644 --- a/ets2panda/test/ast/parser/js/test-for-1.js +++ b/ets2panda/test/ast/parser/js/test-for-1.js @@ -16,6 +16,6 @@ for () {} -/* @@? 17:6 Error SyntaxError: Unexpected token ')'. */ -/* @@? 17:6 Error SyntaxError: Unexpected token ')'. */ -/* @@? 17:6 Error SyntaxError: Expected ';', got ')'. */ + +/* @@? 17:6 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 17:6 Error Syntax error ESY0230: Expected ';', got ')'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/test-for-2.js b/ets2panda/test/ast/parser/js/test-for-2.js index 050b2fa3d7..9b033bbcd1 100644 --- a/ets2panda/test/ast/parser/js/test-for-2.js +++ b/ets2panda/test/ast/parser/js/test-for-2.js @@ -15,5 +15,6 @@ for (;/* @@ label */) {} -/* @@@ label Error SyntaxError: Unexpected token ')'. */ -/* @@@ label Error SyntaxError: Expected ';', got ')'. */ + +/* @@@ label Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@@ label Error Syntax error ESY0230: Expected ';', got ')'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/test-for-3.js b/ets2panda/test/ast/parser/js/test-for-3.js index 35fd692b38..b36a92829c 100644 --- a/ets2panda/test/ast/parser/js/test-for-3.js +++ b/ets2panda/test/ast/parser/js/test-for-3.js @@ -20,4 +20,5 @@ function foo() { } foo().a = 1; -/* @@@ label Error SyntaxError: Invalid left-hand side in 'For[In/Of]Statement'. */ + +/* @@@ label Error Syntax error ESY0167: Invalid left-hand side in 'For[In/Of]Statement'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/test-for-4.js b/ets2panda/test/ast/parser/js/test-for-4.js index 5c38c7a186..e7f275f15d 100644 --- a/ets2panda/test/ast/parser/js/test-for-4.js +++ b/ets2panda/test/ast/parser/js/test-for-4.js @@ -15,4 +15,5 @@ for (let d,/* @@ label */c of {d,c}); -/* @@@ label Error SyntaxError: Invalid left-hand side in 'for' statement: must have a single binding. */ + +/* @@@ label Error Syntax error ESY0211: Invalid left-hand side in 'for' statement: must have a single binding. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/test-function-scope-violation-1.js b/ets2panda/test/ast/parser/js/test-function-scope-violation-1.js index 18d6cfdd51..39fa8b91cb 100644 --- a/ets2panda/test/ast/parser/js/test-function-scope-violation-1.js +++ b/ets2panda/test/ast/parser/js/test-function-scope-violation-1.js @@ -21,4 +21,5 @@ function f(a, b, c) { let /* @@ label */a; } -/* @@@ label Error SyntaxError: Variable 'a' has already been declared. */ + +/* @@@ label Error Syntax error ESY0000: Variable 'a' has already been declared. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/test-function-scope-violation-2.js b/ets2panda/test/ast/parser/js/test-function-scope-violation-2.js index 9799129a27..3242e70740 100644 --- a/ets2panda/test/ast/parser/js/test-function-scope-violation-2.js +++ b/ets2panda/test/ast/parser/js/test-function-scope-violation-2.js @@ -20,4 +20,5 @@ function f(a, b, c) { const /* @@ label */c = 1; } -/* @@@ label Error SyntaxError: Variable 'c' has already been declared. */ + +/* @@@ label Error Syntax error ESY0000: Variable 'c' has already been declared. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/test-if-1.js b/ets2panda/test/ast/parser/js/test-if-1.js index 74a15854c6..bb50a507d3 100644 --- a/ets2panda/test/ast/parser/js/test-if-1.js +++ b/ets2panda/test/ast/parser/js/test-if-1.js @@ -15,7 +15,8 @@ if /* @@ label */else; -/* @@@ label Error SyntaxError: Expected '(', got 'else'. */ -/* @@@ label Error SyntaxError: Unexpected token 'else'. */ -/* @@@ label Error SyntaxError: Expected ')', got 'else'. */ -/* @@@ label Error SyntaxError: Unexpected token 'else'. */ + +/* @@@ label Error Syntax error ESY0230: Expected '(', got 'else'. */ +/* @@@ label Error Syntax error ESY0227: Unexpected token 'else'. */ +/* @@@ label Error Syntax error ESY0230: Expected ')', got 'else'. */ +/* @@@ label Error Syntax error ESY0227: Unexpected token 'else'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/test-if-2.js b/ets2panda/test/ast/parser/js/test-if-2.js index 56a941f110..a7c8732c66 100644 --- a/ets2panda/test/ast/parser/js/test-if-2.js +++ b/ets2panda/test/ast/parser/js/test-if-2.js @@ -15,5 +15,6 @@ if(/* @@ label */) -/* @@@ label Error SyntaxError: Unexpected token ')'. */ -/* @@? 20:1 Error SyntaxError: Unexpected token 'end of stream'. */ + +/* @@@ label Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 20:78 Error Syntax error ESY0227: Unexpected token 'end of stream'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/test-import-decl.js b/ets2panda/test/ast/parser/js/test-import-decl.js index c4238d2201..928bb99c0f 100644 --- a/ets2panda/test/ast/parser/js/test-import-decl.js +++ b/ets2panda/test/ast/parser/js/test-import-decl.js @@ -23,5 +23,6 @@ import a from /* @@ label */"bar"/* @@ label1 */; import {c, d as e, f } from "bar" import "foobar"; -/* @@@ label Error SyntaxError: Unexpected token, expected 'from'. */ -/* @@@ label1 Error SyntaxError: Unexpected token, expected string literal. */ + +/* @@@ label Error Syntax error ESY0228: Unexpected token, expected 'from'. */ +/* @@@ label1 Error Syntax error ESY0151: Unexpected token, expected string literal. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/test-imported-decl1.js b/ets2panda/test/ast/parser/js/test-imported-decl1.js index 7189810d14..00323683b6 100644 --- a/ets2panda/test/ast/parser/js/test-imported-decl1.js +++ b/ets2panda/test/ast/parser/js/test-imported-decl1.js @@ -20,4 +20,5 @@ flags: [module] import * as b from "foo" import {/* @@ label */b} from "bar" -/* @@@ label Error SyntaxError: Variable 'b' has already been declared. */ + +/* @@@ label Error Syntax error ESY0000: Variable 'b' has already been declared. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/test-labelled-statement1.js b/ets2panda/test/ast/parser/js/test-labelled-statement1.js index 5ad2a83d1f..3e110bbb4e 100644 --- a/ets2panda/test/ast/parser/js/test-labelled-statement1.js +++ b/ets2panda/test/ast/parser/js/test-labelled-statement1.js @@ -17,4 +17,5 @@ a: /* @@ label */a: 2; -/* @@@ label Error SyntaxError: Label already declared. */ + +/* @@@ label Error Syntax error ESY0214: Label already declared. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/test-labelled-statement2.js b/ets2panda/test/ast/parser/js/test-labelled-statement2.js index eb1914fa40..2bed022827 100644 --- a/ets2panda/test/ast/parser/js/test-labelled-statement2.js +++ b/ets2panda/test/ast/parser/js/test-labelled-statement2.js @@ -21,6 +21,7 @@ while(true) a+=10/* @@ label1 */!! /* @@ label2 */} -/* @@@ label Error SyntaxError: Undefined label. */ -/* @@@ label1 Error SyntaxError: Unexpected token '!'. */ -/* @@@ label2 Error SyntaxError: Unexpected token '}'. */ + +/* @@@ label Error Syntax error ESY0162: Undefined label. */ +/* @@@ label1 Error Syntax error ESY0227: Unexpected token '!'. */ +/* @@@ label2 Error Syntax error ESY0227: Unexpected token '}'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/test-let-redeclaration.js b/ets2panda/test/ast/parser/js/test-let-redeclaration.js index 82ad1aa312..91d56ffc1a 100644 --- a/ets2panda/test/ast/parser/js/test-let-redeclaration.js +++ b/ets2panda/test/ast/parser/js/test-let-redeclaration.js @@ -18,4 +18,5 @@ let a; let b; let /* @@ label */a; -/* @@@ label Error SyntaxError: Variable 'a' has already been declared. */ + +/* @@@ label Error Syntax error ESY0000: Variable 'a' has already been declared. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/test-member-expression-1.js b/ets2panda/test/ast/parser/js/test-member-expression-1.js index 332e76d609..05ca522ab4 100644 --- a/ets2panda/test/ast/parser/js/test-member-expression-1.js +++ b/ets2panda/test/ast/parser/js/test-member-expression-1.js @@ -15,8 +15,7 @@ a.(b) -/* @@? 17:3 Error SyntaxError: Identifier expected, got '('. */ -/* @@? 17:4 Error SyntaxError: Unexpected token 'b'. */ -/* @@? 17:5 Error SyntaxError: Unexpected token ')'. */ -/* @@? 17:5 Error SyntaxError: Unexpected token ')'. */ -/* @@? 17:5 Error SyntaxError: Unexpected token ')'. */ + +/* @@? 17:3 Error Syntax error ESY0224: Identifier expected, got '('. */ +/* @@? 17:4 Error Syntax error ESY0227: Unexpected token 'b'. */ +/* @@? 17:5 Error Syntax error ESY0227: Unexpected token ')'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/test-member-expression-2.js b/ets2panda/test/ast/parser/js/test-member-expression-2.js index 531e2aea05..ef9e2a57db 100644 --- a/ets2panda/test/ast/parser/js/test-member-expression-2.js +++ b/ets2panda/test/ast/parser/js/test-member-expression-2.js @@ -15,4 +15,5 @@ a[b -/* @@? 19:1 Error SyntaxError: Unexpected token, expected ']'. */ + +/* @@? 19:76 Error Syntax error ESY0228: Unexpected token, expected ']'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/test-member-expression-3.js b/ets2panda/test/ast/parser/js/test-member-expression-3.js index dde6060bd0..61eaf874fd 100644 --- a/ets2panda/test/ast/parser/js/test-member-expression-3.js +++ b/ets2panda/test/ast/parser/js/test-member-expression-3.js @@ -15,4 +15,5 @@ "sfs".b[/* @@ label */] -/* @@@ label Error SyntaxError: Unexpected token ']'. */ + +/* @@@ label Error Syntax error ESY0227: Unexpected token ']'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/test-missing-catch-argument.js b/ets2panda/test/ast/parser/js/test-missing-catch-argument.js index 948556a5fc..0cbabaf0ef 100644 --- a/ets2panda/test/ast/parser/js/test-missing-catch-argument.js +++ b/ets2panda/test/ast/parser/js/test-missing-catch-argument.js @@ -27,4 +27,5 @@ finally } -/* @@@ label Error SyntaxError: Unexpected token ')'. */ + +/* @@@ label Error Syntax error ESY0227: Unexpected token ')'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/test-multi-line-string.js b/ets2panda/test/ast/parser/js/test-multi-line-string.js index ba0a2b04bd..7b836ff05c 100644 --- a/ets2panda/test/ast/parser/js/test-multi-line-string.js +++ b/ets2panda/test/ast/parser/js/test-multi-line-string.js @@ -19,5 +19,6 @@ /* @@ label1 */ " -/* @@? 17:1 Error SyntaxError: Newline is not allowed in strings */ -/* @@@ label1 Error SyntaxError: Newline is not allowed in strings */ + +/* @@? 17:1 Error Syntax error ESY0265: Newline is not allowed in strings */ +/* @@@ label1 Error Syntax error ESY0265: Newline is not allowed in strings */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/test-multiple-update-expression.js b/ets2panda/test/ast/parser/js/test-multiple-update-expression.js index 12f31ae413..36821f720a 100644 --- a/ets2panda/test/ast/parser/js/test-multiple-update-expression.js +++ b/ets2panda/test/ast/parser/js/test-multiple-update-expression.js @@ -15,4 +15,5 @@ a++ /* @@ label */++b; -/* @@@ label Error SyntaxError: Unexpected token '++'. */ + +/* @@@ label Error Syntax error ESY0227: Unexpected token '++'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/test-nullish-coalescing1.js b/ets2panda/test/ast/parser/js/test-nullish-coalescing1.js index 79129a23d0..802de1e976 100644 --- a/ets2panda/test/ast/parser/js/test-nullish-coalescing1.js +++ b/ets2panda/test/ast/parser/js/test-nullish-coalescing1.js @@ -15,4 +15,5 @@ (null ?? null || null/* @@ label */) -/* @@@ label Error SyntaxError: Nullish coalescing operator ?? requires parens when mixing with logical operators. */ + +/* @@@ label Error Syntax error ESY0059: Nullish coalescing operator ?? requires parens when mixing with logical operators. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/test-nullish-coalescing2.js b/ets2panda/test/ast/parser/js/test-nullish-coalescing2.js index 02ecbbf34b..17d4a35cc5 100644 --- a/ets2panda/test/ast/parser/js/test-nullish-coalescing2.js +++ b/ets2panda/test/ast/parser/js/test-nullish-coalescing2.js @@ -15,4 +15,5 @@ (null && null ?? null/* @@ label */) -/* @@@ label Error SyntaxError: Nullish coalescing operator ?? requires parens when mixing with logical operators. */ + +/* @@@ label Error Syntax error ESY0059: Nullish coalescing operator ?? requires parens when mixing with logical operators. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/test-numeric-separator1.js b/ets2panda/test/ast/parser/js/test-numeric-separator1.js index 3aa59dc009..55d9563c0b 100644 --- a/ets2panda/test/ast/parser/js/test-numeric-separator1.js +++ b/ets2panda/test/ast/parser/js/test-numeric-separator1.js @@ -15,5 +15,6 @@ 1__1 -/* @@? 17:1 Error SyntaxError: Invalid numeric separator. */ -/* @@? 17:1 Error SyntaxError: Numeric separators are not allowed at the end of numeric literals. */ + +/* @@? 17:1 Error Syntax error ESY0254: Invalid numeric separator. */ +/* @@? 17:1 Error Syntax error ESY0250: Numeric separators are not allowed at the end of numeric literals. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/test-numeric-separator2.js b/ets2panda/test/ast/parser/js/test-numeric-separator2.js index 9d599954e0..13202697d6 100644 --- a/ets2panda/test/ast/parser/js/test-numeric-separator2.js +++ b/ets2panda/test/ast/parser/js/test-numeric-separator2.js @@ -15,4 +15,5 @@ 1111_ -/* @@? 17:1 Error SyntaxError: Numeric separators are not allowed at the end of numeric literals. */ + +/* @@? 17:1 Error Syntax error ESY0250: Numeric separators are not allowed at the end of numeric literals. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/test-object-expression1.js b/ets2panda/test/ast/parser/js/test-object-expression1.js index b81d871649..24c4dd58fc 100644 --- a/ets2panda/test/ast/parser/js/test-object-expression1.js +++ b/ets2panda/test/ast/parser/js/test-object-expression1.js @@ -18,4 +18,5 @@ a = { set a(b,c){} /* @@ label */} -/* @@@ label Error SyntaxError: Setter must have exactly one formal parameter. */ + +/* @@@ label Error Syntax error ESY0063: Setter must have exactly one formal parameter. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/test-object-expression2.js b/ets2panda/test/ast/parser/js/test-object-expression2.js index 673247be37..b5731930f9 100644 --- a/ets2panda/test/ast/parser/js/test-object-expression2.js +++ b/ets2panda/test/ast/parser/js/test-object-expression2.js @@ -17,9 +17,10 @@ a = { get a[b](){}, } -/* @@? 18:8 Error SyntaxError: Unexpected token, expected '('. */ -/* @@? 18:10 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 18:10 Error SyntaxError: Unexpected token, expected '{'. */ -/* @@? 18:13 Error SyntaxError: Unexpected token, expected '=>'. */ -/* @@? 18:14 Error SyntaxError: Unexpected token '}'. */ -/* @@? 18:15 Error SyntaxError: Getter must not have formal parameters. */ + +/* @@? 18:8 Error Syntax error ESY0228: Unexpected token, expected '('. */ +/* @@? 18:10 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 18:10 Error Syntax error ESY0228: Unexpected token, expected '{'. */ +/* @@? 18:13 Error Syntax error ESY0228: Unexpected token, expected '=>'. */ +/* @@? 18:14 Error Syntax error ESY0227: Unexpected token '}'. */ +/* @@? 18:15 Error Syntax error ESY0058: Getter must not have formal parameters. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/test-object-expression3.js b/ets2panda/test/ast/parser/js/test-object-expression3.js index 44f9f8159a..08e4f4b7c9 100644 --- a/ets2panda/test/ast/parser/js/test-object-expression3.js +++ b/ets2panda/test/ast/parser/js/test-object-expression3.js @@ -17,4 +17,5 @@ a = { a/* @@ label */"foo", } -/* @@@ label Error SyntaxError: Unexpected token. */ + +/* @@@ label Error Syntax error ESY0016: Unexpected token. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/test-object-expression4.js b/ets2panda/test/ast/parser/js/test-object-expression4.js index 7ca28c46e6..50e58cb03c 100644 --- a/ets2panda/test/ast/parser/js/test-object-expression4.js +++ b/ets2panda/test/ast/parser/js/test-object-expression4.js @@ -18,4 +18,5 @@ a = { /* @@ label */if, } -/* @@@ label Error SyntaxError: Unexpected token, expected an identifier. */ + +/* @@@ label Error Syntax error ESY0112: Unexpected token, expected an identifier. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/test-object-expression5.js b/ets2panda/test/ast/parser/js/test-object-expression5.js index 88182b2aca..6ea019422e 100644 --- a/ets2panda/test/ast/parser/js/test-object-expression5.js +++ b/ets2panda/test/ast/parser/js/test-object-expression5.js @@ -17,4 +17,5 @@ var a = { a(){super/* @@ label */()} } -/* @@@ label Error SyntaxError: Unexpected super keyword. */ + +/* @@@ label Error Syntax error ESY0061: Unexpected super keyword. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/test-object-proto.js b/ets2panda/test/ast/parser/js/test-object-proto.js index 779e712ae2..aa4a63daec 100644 --- a/ets2panda/test/ast/parser/js/test-object-proto.js +++ b/ets2panda/test/ast/parser/js/test-object-proto.js @@ -24,4 +24,5 @@ var a = { *__proto__(){}, /* @@ label */__proto__: 8, } -/* @@@ label Error SyntaxError: Duplicate __proto__ fields are not allowed in object literals */ + +/* @@@ label Error Syntax error ESY0000: Duplicate __proto__ fields are not allowed in object literals */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/test-one-default-export-allowed.js b/ets2panda/test/ast/parser/js/test-one-default-export-allowed.js index be17513d09..e6093bb32b 100644 --- a/ets2panda/test/ast/parser/js/test-one-default-export-allowed.js +++ b/ets2panda/test/ast/parser/js/test-one-default-export-allowed.js @@ -19,4 +19,5 @@ flags: [module] export default a = 1; export default /* @@ label */b = 2; -/* @@@ label Error SyntaxError: Variable '*default*' has already been declared. */ + +/* @@@ label Error Syntax error ESY0000: Variable '*default*' has already been declared. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/test-optional-chain.js b/ets2panda/test/ast/parser/js/test-optional-chain.js index cdfd98b73f..30b7715909 100644 --- a/ets2panda/test/ast/parser/js/test-optional-chain.js +++ b/ets2panda/test/ast/parser/js/test-optional-chain.js @@ -15,4 +15,5 @@ a?.a?.a?./* @@ label */`` -/* @@@ label Error SyntaxError: Tagged Template Literals are not allowed in optionalChain. */ + +/* @@@ label Error Syntax error ESY0056: Tagged Template Literals are not allowed in optionalChain. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/test-private-field1.js b/ets2panda/test/ast/parser/js/test-private-field1.js index dd35ab34c9..eefaf2a02d 100644 --- a/ets2panda/test/ast/parser/js/test-private-field1.js +++ b/ets2panda/test/ast/parser/js/test-private-field1.js @@ -15,5 +15,6 @@ #a -/* @@? 20:1 Error SyntaxError: Unexpected private identifier. */ -/* @@? 20:1 Error SyntaxError: Unexpected token 'end of stream'. */ + +/* @@? 20:78 Error Syntax error ESY0047: Unexpected private identifier. */ +/* @@? 20:78 Error Syntax error ESY0227: Unexpected token 'end of stream'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/test-private-field10.js b/ets2panda/test/ast/parser/js/test-private-field10.js index e8861c6d35..9e5d4c66bb 100644 --- a/ets2panda/test/ast/parser/js/test-private-field10.js +++ b/ets2panda/test/ast/parser/js/test-private-field10.js @@ -22,6 +22,7 @@ class A { /* @@ label1 */} } -/* @@@ label Error SyntaxError: Unexpected private identifier. */ -/* @@@ label1 Error SyntaxError: Expected ')', got '}'. */ -/* @@@ label1 Error SyntaxError: Unexpected token '}'. */ + +/* @@@ label Error Syntax error ESY0047: Unexpected private identifier. */ +/* @@@ label1 Error Syntax error ESY0230: Expected ')', got '}'. */ +/* @@@ label1 Error Syntax error ESY0227: Unexpected token '}'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/test-private-field11.js b/ets2panda/test/ast/parser/js/test-private-field11.js index 997b776d42..abd21a4e9a 100644 --- a/ets2panda/test/ast/parser/js/test-private-field11.js +++ b/ets2panda/test/ast/parser/js/test-private-field11.js @@ -22,5 +22,6 @@ class A { } } -/* @@@ label Error SyntaxError: Unexpected private identifier. */ -/* @@@ label1 Error SyntaxError: Unexpected token '}'. */ + +/* @@@ label Error Syntax error ESY0047: Unexpected private identifier. */ +/* @@@ label1 Error Syntax error ESY0227: Unexpected token '}'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/test-private-field12.js b/ets2panda/test/ast/parser/js/test-private-field12.js index 58ab28d14b..2e4954af36 100644 --- a/ets2panda/test/ast/parser/js/test-private-field12.js +++ b/ets2panda/test/ast/parser/js/test-private-field12.js @@ -20,4 +20,5 @@ class A { let b = new A(); b./* @@ label */#a; -/* @@@ label Error SyntaxError: Private field 'a' must be declared in an enclosing class */ + +/* @@@ label Error Syntax error ESY0000: Private field 'a' must be declared in an enclosing class */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/test-private-field13.js b/ets2panda/test/ast/parser/js/test-private-field13.js index 81c16a2085..13ade90ebb 100644 --- a/ets2panda/test/ast/parser/js/test-private-field13.js +++ b/ets2panda/test/ast/parser/js/test-private-field13.js @@ -23,4 +23,5 @@ class B extends A { } } -/* @@@ label Error SyntaxError: Private field 'a' must be declared in an enclosing class */ + +/* @@@ label Error Syntax error ESY0000: Private field 'a' must be declared in an enclosing class */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/test-private-field14.js b/ets2panda/test/ast/parser/js/test-private-field14.js index 24b21c4580..593138d5a7 100644 --- a/ets2panda/test/ast/parser/js/test-private-field14.js +++ b/ets2panda/test/ast/parser/js/test-private-field14.js @@ -18,4 +18,5 @@ class A { get #a() { } /* @@ label */} -/* @@@ label Error SyntaxError: Private field has already been declared. */ + +/* @@@ label Error Syntax error ESY0154: Private field has already been declared. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/test-private-field15.js b/ets2panda/test/ast/parser/js/test-private-field15.js index b292a8428c..3c18847272 100644 --- a/ets2panda/test/ast/parser/js/test-private-field15.js +++ b/ets2panda/test/ast/parser/js/test-private-field15.js @@ -19,4 +19,5 @@ class A { #a; /* @@ label */} -/* @@@ label Error SyntaxError: Private field has already been declared. */ + +/* @@@ label Error Syntax error ESY0154: Private field has already been declared. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/test-private-field16.js b/ets2panda/test/ast/parser/js/test-private-field16.js index a58effdc72..3aa687b6b0 100644 --- a/ets2panda/test/ast/parser/js/test-private-field16.js +++ b/ets2panda/test/ast/parser/js/test-private-field16.js @@ -17,4 +17,5 @@ class A extends function () { x = this./* @@ label */#foo } { #foo; } -/* @@@ label Error SyntaxError: Private field 'foo' must be declared in an enclosing class */ + +/* @@@ label Error Syntax error ESY0000: Private field 'foo' must be declared in an enclosing class */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/test-private-field2.js b/ets2panda/test/ast/parser/js/test-private-field2.js index c02d9744d7..b4293be73e 100644 --- a/ets2panda/test/ast/parser/js/test-private-field2.js +++ b/ets2panda/test/ast/parser/js/test-private-field2.js @@ -18,4 +18,5 @@ class A { #a; /* @@ label */} -/* @@@ label Error SyntaxError: Private field has already been declared. */ + +/* @@@ label Error Syntax error ESY0154: Private field has already been declared. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/test-private-field3.js b/ets2panda/test/ast/parser/js/test-private-field3.js index b771d6c46e..e1cac5e8c4 100644 --- a/ets2panda/test/ast/parser/js/test-private-field3.js +++ b/ets2panda/test/ast/parser/js/test-private-field3.js @@ -17,4 +17,5 @@ class A { # /* @@ label */a; } -/* @@@ label Error SyntaxError: Unexpected token in private field. */ + +/* @@@ label Error Syntax error ESY0160: Unexpected token in private field. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/test-private-field4.js b/ets2panda/test/ast/parser/js/test-private-field4.js index aaafa582fd..f2a50ed849 100644 --- a/ets2panda/test/ast/parser/js/test-private-field4.js +++ b/ets2panda/test/ast/parser/js/test-private-field4.js @@ -17,5 +17,6 @@ class A { #5; } -/* @@? 17:6 Error SyntaxError: Unexpected token in private field. */ -/* @@? 17:6 Error SyntaxError: Private identifier name can not be number. */ + +/* @@? 17:6 Error Syntax error ESY0160: Unexpected token in private field. */ +/* @@? 17:6 Error Syntax error ESY0269: Private identifier name can not be number. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/test-private-field5.js b/ets2panda/test/ast/parser/js/test-private-field5.js index 42d887f366..9d6b86197f 100644 --- a/ets2panda/test/ast/parser/js/test-private-field5.js +++ b/ets2panda/test/ast/parser/js/test-private-field5.js @@ -17,5 +17,6 @@ class A { #"\"bar\""; } -/* @@? 17:6 Error SyntaxError: Unexpected token in private field. */ -/* @@? 17:6 Error SyntaxError: Private identifier name can not be string. */ + +/* @@? 17:6 Error Syntax error ESY0160: Unexpected token in private field. */ +/* @@? 17:6 Error Syntax error ESY0268: Private identifier name can not be string. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/test-private-field6.js b/ets2panda/test/ast/parser/js/test-private-field6.js index 61ad4ec580..5bc7e3c7eb 100644 --- a/ets2panda/test/ast/parser/js/test-private-field6.js +++ b/ets2panda/test/ast/parser/js/test-private-field6.js @@ -17,5 +17,6 @@ class A { ##; } -/* @@? 17:6 Error SyntaxError: Unexpected token in private field. */ -/* @@? 17:6 Error SyntaxError: Unexpected token. */ + +/* @@? 17:6 Error Syntax error ESY0160: Unexpected token in private field. */ +/* @@? 17:6 Error Syntax error ESY0016: Unexpected token. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/test-private-field7.js b/ets2panda/test/ast/parser/js/test-private-field7.js index 89b26dfd6e..1fe3ae9fc3 100644 --- a/ets2panda/test/ast/parser/js/test-private-field7.js +++ b/ets2panda/test/ast/parser/js/test-private-field7.js @@ -18,6 +18,7 @@ class A { } -/* @@? 17:6 Error SyntaxError: Unexpected token in private field. */ -/* @@? 17:6 Error SyntaxError: Unexpected token. */ -/* @@? 17:7 Error SyntaxError: Unexpected token, expected ';'. */ + +/* @@? 17:6 Error Syntax error ESY0160: Unexpected token in private field. */ +/* @@? 17:6 Error Syntax error ESY0016: Unexpected token. */ +/* @@? 17:7 Error Syntax error ESY0228: Unexpected token, expected ';'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/test-private-field8.js b/ets2panda/test/ast/parser/js/test-private-field8.js index 0f59c9ee68..c04d54ec2c 100644 --- a/ets2panda/test/ast/parser/js/test-private-field8.js +++ b/ets2panda/test/ast/parser/js/test-private-field8.js @@ -20,4 +20,5 @@ class A { } } -/* @@@ label Error SyntaxError: Private fields can not be deleted. */ + +/* @@@ label Error Syntax error ESY0070: Private fields can not be deleted. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/test-private-field9.js b/ets2panda/test/ast/parser/js/test-private-field9.js index 2ac3526e83..54d8d45dd4 100644 --- a/ets2panda/test/ast/parser/js/test-private-field9.js +++ b/ets2panda/test/ast/parser/js/test-private-field9.js @@ -17,4 +17,5 @@ class A { #constructor() { } } -/* @@? 17:6 Error SyntaxError: Private identifier can not be constructor. */ + +/* @@? 17:6 Error Syntax error ESY0267: Private identifier can not be constructor. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/test-super-expression.js b/ets2panda/test/ast/parser/js/test-super-expression.js index d795b94196..3d7a078350 100644 --- a/ets2panda/test/ast/parser/js/test-super-expression.js +++ b/ets2panda/test/ast/parser/js/test-super-expression.js @@ -15,4 +15,5 @@ super/* @@ label */; -/* @@@ label Error SyntaxError: Unexpected super keyword. */ + +/* @@@ label Error Syntax error ESY0061: Unexpected super keyword. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/test-switch-1.js b/ets2panda/test/ast/parser/js/test-switch-1.js index 2fb0a42d31..dcc270e602 100644 --- a/ets2panda/test/ast/parser/js/test-switch-1.js +++ b/ets2panda/test/ast/parser/js/test-switch-1.js @@ -16,9 +16,9 @@ switch -/* @@@ label Error SyntaxError: Expected '(', got 'end of stream'. */ -/* @@@ label Error SyntaxError: Unexpected token 'end of stream'. */ -/* @@@ label Error SyntaxError: Expected ')', got 'end of stream'. */ -/* @@@ label Error SyntaxError: Expected '{', got 'end of stream'. */ -/* @@@ label Error SyntaxError: Expected '}', got 'end of stream'. */ -/* @@ label */ \ No newline at end of file + +/* @@ label *//* @@? 24:79 Error Syntax error ESY0230: Expected '(', got 'end of stream'. */ +/* @@? 24:79 Error Syntax error ESY0227: Unexpected token 'end of stream'. */ +/* @@? 24:79 Error Syntax error ESY0230: Expected ')', got 'end of stream'. */ +/* @@? 24:79 Error Syntax error ESY0230: Expected '{', got 'end of stream'. */ +/* @@? 24:79 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/test-switch-2.js b/ets2panda/test/ast/parser/js/test-switch-2.js index 626f257980..4c97ee1ed7 100644 --- a/ets2panda/test/ast/parser/js/test-switch-2.js +++ b/ets2panda/test/ast/parser/js/test-switch-2.js @@ -18,8 +18,8 @@ switch /* @@ label */{ } -/* @@@ label Error SyntaxError: Expected '(', got '{'. */ -/* @@@ label1 Error SyntaxError: Expected ')', got 'end of stream'. */ -/* @@@ label1 Error SyntaxError: Expected '{', got 'end of stream'. */ -/* @@@ label1 Error SyntaxError: Expected '}', got 'end of stream'. */ -/* @@ label1 */ \ No newline at end of file + +/* @@ label1 *//* @@@ label Error Syntax error ESY0230: Expected '(', got '{'. */ +/* @@? 25:79 Error Syntax error ESY0230: Expected ')', got 'end of stream'. */ +/* @@? 25:79 Error Syntax error ESY0230: Expected '{', got 'end of stream'. */ +/* @@? 25:79 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/test-switch-3.js b/ets2panda/test/ast/parser/js/test-switch-3.js index e7f19e9a55..c7134e1060 100644 --- a/ets2panda/test/ast/parser/js/test-switch-3.js +++ b/ets2panda/test/ast/parser/js/test-switch-3.js @@ -18,4 +18,5 @@ switch (/* @@ label */) { } -/* @@@ label Error SyntaxError: Unexpected token ')'. */ + +/* @@@ label Error Syntax error ESY0227: Unexpected token ')'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/test-switch-4.js b/ets2panda/test/ast/parser/js/test-switch-4.js index 69f096163e..aba7847df0 100644 --- a/ets2panda/test/ast/parser/js/test-switch-4.js +++ b/ets2panda/test/ast/parser/js/test-switch-4.js @@ -20,5 +20,6 @@ switch (alma) { alma +=10; } -/* @@@ label Error SyntaxError: Unexpected token 'identification literal', expected 'case' or 'default'. */ -/* @@@ label Error SyntaxError: Expected ':', got 'identification literal'. */ + +/* @@@ label Error Syntax error ESY0231: Unexpected token 'identification literal', expected 'case' or 'default'. */ +/* @@@ label Error Syntax error ESY0230: Expected ':', got 'identification literal'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/test-switch-5.js b/ets2panda/test/ast/parser/js/test-switch-5.js index 97f728907c..743ffb75ef 100644 --- a/ets2panda/test/ast/parser/js/test-switch-5.js +++ b/ets2panda/test/ast/parser/js/test-switch-5.js @@ -19,4 +19,5 @@ switch (alma) { /* @@ label */default: } -/* @@@ label Error SyntaxError: Multiple default clauses. */ + +/* @@@ label Error Syntax error ESY0171: Multiple default clauses. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/test-switch-6.js b/ets2panda/test/ast/parser/js/test-switch-6.js index 0d312b32b4..5617698c97 100644 --- a/ets2panda/test/ast/parser/js/test-switch-6.js +++ b/ets2panda/test/ast/parser/js/test-switch-6.js @@ -17,4 +17,5 @@ switch (a) { case 1: AnimationPlaybackEvent() /* @@ label */case 2: } -/* @@@ label Error SyntaxError: Unexpected token 'case'. */ + +/* @@@ label Error Syntax error ESY0227: Unexpected token 'case'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/test-template-literal-1.js b/ets2panda/test/ast/parser/js/test-template-literal-1.js index ddae8ff487..e6cf5ac4ff 100644 --- a/ets2panda/test/ast/parser/js/test-template-literal-1.js +++ b/ets2panda/test/ast/parser/js/test-template-literal-1.js @@ -13,9 +13,10 @@ * limitations under the License. */ -/* @@? 21:1 Error SyntaxError: Unexpected token, expected '`'. */ -/* @@? 21:2 Error SyntaxError: Unterminated string. */ -/* @@? 21:2 Error SyntaxError: Unexpected token, expected '${' or '`' */ -/* @@? 21:2 Error SyntaxError: Unexpected token, expected '`'. */ + ` +/* @@? 18:1 Error Syntax error ESY0228: Unexpected token, expected '`'. */ +/* @@? 18:2 Error Syntax error ESY0253: Unterminated string. */ +/* @@? 18:2 Error Syntax error ESY0259: Unexpected token, expected '${' or '`' */ +/* @@? 18:2 Error Syntax error ESY0228: Unexpected token, expected '`'. */'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/test-template-literal-2.js b/ets2panda/test/ast/parser/js/test-template-literal-2.js index 95d1e9b201..78591bd03d 100644 --- a/ets2panda/test/ast/parser/js/test-template-literal-2.js +++ b/ets2panda/test/ast/parser/js/test-template-literal-2.js @@ -16,4 +16,5 @@ fa`${/* @@ label */}` -/* @@@ label Error SyntaxError: Unexpected token '}'. */ + +/* @@@ label Error Syntax error ESY0227: Unexpected token '}'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/test-throw-statement-without-expression.js b/ets2panda/test/ast/parser/js/test-throw-statement-without-expression.js index cd50ab1ba6..3cb25407fc 100644 --- a/ets2panda/test/ast/parser/js/test-throw-statement-without-expression.js +++ b/ets2panda/test/ast/parser/js/test-throw-statement-without-expression.js @@ -16,4 +16,5 @@ throw /* @@ label */; -/* @@@ label Error SyntaxError: Unexpected token ';'. */ + +/* @@@ label Error Syntax error ESY0227: Unexpected token ';'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/test-try-catch-lexical-declaration.js b/ets2panda/test/ast/parser/js/test-try-catch-lexical-declaration.js index 8bbd196735..e749eee90b 100644 --- a/ets2panda/test/ast/parser/js/test-try-catch-lexical-declaration.js +++ b/ets2panda/test/ast/parser/js/test-try-catch-lexical-declaration.js @@ -27,4 +27,5 @@ finally } -/* @@@ label Error SyntaxError: Variable 'e' has already been declared. */ + +/* @@@ label Error Syntax error ESY0000: Variable 'e' has already been declared. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/test-try-without-catch-and-finally.js b/ets2panda/test/ast/parser/js/test-try-without-catch-and-finally.js index e2a08c6a96..a3ff3240de 100644 --- a/ets2panda/test/ast/parser/js/test-try-without-catch-and-finally.js +++ b/ets2panda/test/ast/parser/js/test-try-without-catch-and-finally.js @@ -16,5 +16,5 @@ try { } -/* @@@ label Error SyntaxError: Missing catch or finally clause. */ -/* @@ label */ \ No newline at end of file + +/* @@ label *//* @@? 20:91 Error Syntax error ESY0169: Missing catch or finally clause. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/test-use-strict-1.js b/ets2panda/test/ast/parser/js/test-use-strict-1.js index 2989a7dd81..59ee5ef681 100644 --- a/ets2panda/test/ast/parser/js/test-use-strict-1.js +++ b/ets2panda/test/ast/parser/js/test-use-strict-1.js @@ -18,4 +18,5 @@ var a = 078; -/* @@? 19:9 Error SyntaxError: Implicit octal literal not allowed. */ + +/* @@? 19:9 Error Syntax error ESY0257: Implicit octal literal not allowed. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/test-use-strict-2.js b/ets2panda/test/ast/parser/js/test-use-strict-2.js index 49fd16e93e..00052703f2 100644 --- a/ets2panda/test/ast/parser/js/test-use-strict-2.js +++ b/ets2panda/test/ast/parser/js/test-use-strict-2.js @@ -18,5 +18,6 @@ /* @@ label */with (o) /* @@ label1 */{} -/* @@@ label Error SyntaxError: 'With' is deprecated and not supported any more. */ -/* @@@ label1 Error SyntaxError: Unexpected token '{'. */ + +/* @@@ label Error Syntax error ESY0161: 'With' is deprecated and not supported any more. */ +/* @@@ label1 Error Syntax error ESY0227: Unexpected token '{'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/test-wrong-function-decl-1.js b/ets2panda/test/ast/parser/js/test-wrong-function-decl-1.js index 1ea7c667cc..0e586965e8 100644 --- a/ets2panda/test/ast/parser/js/test-wrong-function-decl-1.js +++ b/ets2panda/test/ast/parser/js/test-wrong-function-decl-1.js @@ -16,9 +16,9 @@ function f/* @@ label */{/* @@ label1 */} -/* @@@ label Error SyntaxError: Unexpected token, expected '('. */ -/* @@@ label1 Error SyntaxError: Unexpected token. */ -/* @@@ label1 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@@ label1 Error SyntaxError: Unexpected token, expected '{'. */ -/* @@@ label2 Error SyntaxError: Expected '}', got 'end of stream'. */ -/* @@ label2 */ \ No newline at end of file + +/* @@ label2 *//* @@@ label Error Syntax error ESY0228: Unexpected token, expected '('. */ +/* @@@ label1 Error Syntax error ESY0016: Unexpected token. */ +/* @@@ label1 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@@ label1 Error Syntax error ESY0228: Unexpected token, expected '{'. */ +/* @@? 24:79 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/test-wrong-function-decl-2.js b/ets2panda/test/ast/parser/js/test-wrong-function-decl-2.js index 3437156257..2d9c8efee4 100644 --- a/ets2panda/test/ast/parser/js/test-wrong-function-decl-2.js +++ b/ets2panda/test/ast/parser/js/test-wrong-function-decl-2.js @@ -16,6 +16,6 @@ function f(a,b,c)/* @@ label */; -/* @@@ label Error SyntaxError: Unexpected token, expected '{'. */ -/* @@@ label1 Error SyntaxError: Expected '}', got 'end of stream'. */ -/* @@ label1 */ \ No newline at end of file + +/* @@ label1 *//* @@@ label Error Syntax error ESY0228: Unexpected token, expected '{'. */ +/* @@? 21:79 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/test-wrong-function-decl-3.js b/ets2panda/test/ast/parser/js/test-wrong-function-decl-3.js index b0af0f4cf6..953ee65ba2 100644 --- a/ets2panda/test/ast/parser/js/test-wrong-function-decl-3.js +++ b/ets2panda/test/ast/parser/js/test-wrong-function-decl-3.js @@ -18,5 +18,6 @@ function f(p1, p2, p3) { a[; } -/* @@? 18:5 Error SyntaxError: Unexpected token ';'. */ -/* @@? 18:5 Error SyntaxError: Unexpected token, expected ']'. */ + +/* @@? 18:5 Error Syntax error ESY0227: Unexpected token ';'. */ +/* @@? 18:5 Error Syntax error ESY0228: Unexpected token, expected ']'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/test_yield.js b/ets2panda/test/ast/parser/js/test_yield.js index 172fafb5af..e5fe850105 100644 --- a/ets2panda/test/ast/parser/js/test_yield.js +++ b/ets2panda/test/ast/parser/js/test_yield.js @@ -15,4 +15,5 @@ function* g(x = yield) {} -/* @@? 16:17 Error SyntaxError: Yield is not allowed in generator parameters. */ + +/* @@? 16:17 Error Syntax error ESY0054: Yield is not allowed in generator parameters. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/this-expression.js b/ets2panda/test/ast/parser/js/this-expression.js index 884e651960..b81c42df4b 100644 --- a/ets2panda/test/ast/parser/js/this-expression.js +++ b/ets2panda/test/ast/parser/js/this-expression.js @@ -16,5 +16,6 @@ this./* @@ label */"foo"; -/* @@@ label Error SyntaxError: Identifier expected, got 'string literal'. */ -/* @@@ label Error SyntaxError: Number, string or computed value property name 'foo' is not allowed, use classes to access data by property names that are identifiers */ + +/* @@@ label Error Syntax error ESY0315: Number, string or computed value property name 'foo' is not allowed, use classes to access data by property names that are identifiers */ +/* @@@ label Error Syntax error ESY0224: Identifier expected, got 'string literal'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/trailing_comma_1.js b/ets2panda/test/ast/parser/js/trailing_comma_1.js index 888adab493..012c15638c 100644 --- a/ets2panda/test/ast/parser/js/trailing_comma_1.js +++ b/ets2panda/test/ast/parser/js/trailing_comma_1.js @@ -36,15 +36,15 @@ foo(a[0] /* @@ label6 */a[1]/* @@ label7 */) foo(/* @@ label8 */,) -/* @@@ label Error SyntaxError: Rest parameter must be the last formal parameter. */ -/* @@@ label1 Error SyntaxError: Unexpected token, expected '{'. */ -/* @@@ label2 Error SyntaxError: Unexpected token. */ -/* @@@ label3 Error SyntaxError: Unexpected token ','. */ -/* @@@ label4 Error SyntaxError: Unexpected token ','. */ -/* @@@ label5 Error SyntaxError: Unexpected token ','. */ -/* @@@ label6 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@@ label6 Error SyntaxError: Unexpected token 'a'. */ -/* @@@ label7 Error SyntaxError: Unexpected token ')'. */ -/* @@@ label8 Error SyntaxError: Unexpected token ','. */ -/* @@@ label9 Error SyntaxError: Expected '}', got 'end of stream'. */ -/* @@ label9 */ \ No newline at end of file + +/* @@ label9 *//* @@@ label Error Syntax error ESY0067: Rest parameter must be the last formal parameter. */ +/* @@@ label1 Error Syntax error ESY0228: Unexpected token, expected '{'. */ +/* @@@ label2 Error Syntax error ESY0016: Unexpected token. */ +/* @@@ label3 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@@ label4 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@@ label5 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@@ label6 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@@ label6 Error Syntax error ESY0227: Unexpected token 'a'. */ +/* @@@ label7 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@@ label8 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 50:79 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/trailing_comma_2.js b/ets2panda/test/ast/parser/js/trailing_comma_2.js index fa3316363b..ff50cc3f71 100644 --- a/ets2panda/test/ast/parser/js/trailing_comma_2.js +++ b/ets2panda/test/ast/parser/js/trailing_comma_2.js @@ -19,4 +19,5 @@ class C { let a = new C(12,) -/* @@@ label1 Error SyntaxError: Unexpected token, expected ';'. */ + +/* @@@ label1 Error Syntax error ESY0228: Unexpected token, expected ';'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/unexpected_token_1.js b/ets2panda/test/ast/parser/js/unexpected_token_1.js index d0132c02e2..8ca8977d5a 100644 --- a/ets2panda/test/ast/parser/js/unexpected_token_1.js +++ b/ets2panda/test/ast/parser/js/unexpected_token_1.js @@ -16,6 +16,6 @@ class A /* @@ label */} -/* @@@ label Error SyntaxError: Expected '{', got '}'. */ -/* @@@ label1 Error SyntaxError: Expected '}', got 'end of stream'. */ -/* @@ label1 */ \ No newline at end of file + +/* @@ label1 *//* @@@ label Error Syntax error ESY0230: Expected '{', got '}'. */ +/* @@? 21:79 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/unexpected_token_10.js b/ets2panda/test/ast/parser/js/unexpected_token_10.js index 753eb9b612..83c8f06852 100644 --- a/ets2panda/test/ast/parser/js/unexpected_token_10.js +++ b/ets2panda/test/ast/parser/js/unexpected_token_10.js @@ -22,8 +22,5 @@ function foobar( ){} -/* @@? 21:9 Error SyntaxError: Unexpected token, expected ')'. */ -/* @@? 1:1 Node { - "type": "Program" -} *//* @@? 21:9 Error SyntaxError: Unexpected token, expected ')'. */ -/* @@? 21:9 Error SyntaxError: Unexpected token, expected ')'. */ + +/* @@? 21:9 Error Syntax error ESY0228: Unexpected token, expected ')'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/unexpected_token_2.js b/ets2panda/test/ast/parser/js/unexpected_token_2.js index dc3a13f5b5..1f2e760525 100644 --- a/ets2panda/test/ast/parser/js/unexpected_token_2.js +++ b/ets2panda/test/ast/parser/js/unexpected_token_2.js @@ -15,4 +15,5 @@ !(!(((a || b))); -/* @@? 16:16 Error SyntaxError: Expected ')', got ';'. */ + +/* @@? 16:16 Error Syntax error ESY0230: Expected ')', got ';'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/unexpected_token_3.js b/ets2panda/test/ast/parser/js/unexpected_token_3.js index 59018135dc..a9dc4d2fd0 100644 --- a/ets2panda/test/ast/parser/js/unexpected_token_3.js +++ b/ets2panda/test/ast/parser/js/unexpected_token_3.js @@ -15,11 +15,10 @@ (...a*b+c)/(d)-e; -/* @@? 16:6 Error SyntaxError: Rest parameter must be the last formal parameter. */ -/* @@? 16:6 Error SyntaxError: Unexpected token, expected '=>'. */ -/* @@? 16:10 Error SyntaxError: Unexpected token ')'. */ -/* @@? 16:10 Error SyntaxError: Unexpected token ')'. */ -/* @@? 16:10 Error SyntaxError: Unexpected token ')'. */ -/* @@? 16:12 Error SyntaxError: Unterminated RegExp. */ -/* @@? 16:18 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 16:18 Error SyntaxError: Unexpected token 'end of stream'. */ + +/* @@? 16:6 Error Syntax error ESY0067: Rest parameter must be the last formal parameter. */ +/* @@? 16:6 Error Syntax error ESY0228: Unexpected token, expected '=>'. */ +/* @@? 16:10 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 16:12 Error Syntax error ESY0260: Unterminated RegExp. */ +/* @@? 16:18 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 16:18 Error Syntax error ESY0227: Unexpected token 'end of stream'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/unexpected_token_4.js b/ets2panda/test/ast/parser/js/unexpected_token_4.js index d2c8f1b4b7..4a8c07fe34 100644 --- a/ets2panda/test/ast/parser/js/unexpected_token_4.js +++ b/ets2panda/test/ast/parser/js/unexpected_token_4.js @@ -17,4 +17,5 @@ /* @@? 1:1 Node { "type": "Program" } */ -/* @@? 16:7 Error SyntaxError: Unexpected token, expected '=>'. */ + +/* @@? 16:7 Error Syntax error ESY0228: Unexpected token, expected '=>'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/unexpected_token_5.js b/ets2panda/test/ast/parser/js/unexpected_token_5.js index 277e2391b1..fd89fad6e9 100644 --- a/ets2panda/test/ast/parser/js/unexpected_token_5.js +++ b/ets2panda/test/ast/parser/js/unexpected_token_5.js @@ -15,7 +15,8 @@ ()a/(d)-e; -/* @@? 16:3 Error SyntaxError: Unexpected token, expected '=>'. */ -/* @@? 16:5 Error SyntaxError: Unterminated RegExp. */ -/* @@? 16:11 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 16:11 Error SyntaxError: Unexpected token 'end of stream'. */ + +/* @@? 16:3 Error Syntax error ESY0228: Unexpected token, expected '=>'. */ +/* @@? 16:5 Error Syntax error ESY0260: Unterminated RegExp. */ +/* @@? 16:11 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 16:11 Error Syntax error ESY0227: Unexpected token 'end of stream'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/unexpected_token_6.js b/ets2panda/test/ast/parser/js/unexpected_token_6.js index add8ae031a..4154f1bf1f 100644 --- a/ets2panda/test/ast/parser/js/unexpected_token_6.js +++ b/ets2panda/test/ast/parser/js/unexpected_token_6.js @@ -15,8 +15,5 @@ async(async b > b) -/* @@? 16:15 Error SyntaxError: Unexpected token, expected '=>'. */ -/* @@? 1:1 Node { - "type": "Program" -} *//* @@? 16:15 Error SyntaxError: Unexpected token, expected '=>'. */ -/* @@? 16:15 Error SyntaxError: Unexpected token, expected '=>'. */ + +/* @@? 16:15 Error Syntax error ESY0228: Unexpected token, expected '=>'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/unexpected_token_7.js b/ets2panda/test/ast/parser/js/unexpected_token_7.js index 670d0eb8b9..22dc65c928 100644 --- a/ets2panda/test/ast/parser/js/unexpected_token_7.js +++ b/ets2panda/test/ast/parser/js/unexpected_token_7.js @@ -18,8 +18,9 @@ class Foo { a: int { this.#bar = 0 -/* @@? 18:6 Error SyntaxError: Unexpected token, expected ';'. */ -/* @@? 18:12 Error SyntaxError: Unexpected token, expected ';'. */ -/* @@? 19:11 Error SyntaxError: Unexpected token, expected ';'. */ -/* @@? 26:1 Error SyntaxError: Private field has already been declared. */ -/* @@? 26:1 Error SyntaxError: Expected '}', got 'end of stream'. */ + +/* @@? 18:6 Error Syntax error ESY0228: Unexpected token, expected ';'. */ +/* @@? 18:12 Error Syntax error ESY0228: Unexpected token, expected ';'. */ +/* @@? 19:11 Error Syntax error ESY0228: Unexpected token, expected ';'. */ +/* @@? 26:79 Error Syntax error ESY0154: Private field has already been declared. */ +/* @@? 26:79 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/js/unexpected_token_8.js b/ets2panda/test/ast/parser/js/unexpected_token_8.js index d60a277cb8..8133dc52ac 100644 --- a/ets2panda/test/ast/parser/js/unexpected_token_8.js +++ b/ets2panda/test/ast/parser/js/unexpected_token_8.js @@ -18,7 +18,8 @@ class B { } -/* @@? 17:17 Error SyntaxError: Unexpected token, expected ';'. */ + /* @@? 1:1 Node { "type": "Program" } */ +/* @@? 17:17 Error Syntax error ESY0228: Unexpected token, expected ']'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/InvalidExpressions.ts b/ets2panda/test/ast/parser/ts/InvalidExpressions.ts index a833ab8f08..af41366ba3 100644 --- a/ets2panda/test/ast/parser/ts/InvalidExpressions.ts +++ b/ets2panda/test/ast/parser/ts/InvalidExpressions.ts @@ -30,27 +30,23 @@ let x = new Type(a, ...); let x = new Type(1, 2, ; // This expression should be the last to test EOS. -/* @@? 17:1 Error SyntaxError: expected '=>' on the same line after an argument list, got line terminator. */ -/* @@? 20:10 Error SyntaxError: Expected expression, got '=>'. */ -/* @@? 20:10 Error SyntaxError: expected '=>' on the same line after an argument list, got line terminator. */ -/* @@? 22:13 Error SyntaxError: Unexpected token. */ -/* @@? 22:20 Error SyntaxError: Unexpected token. */ -/* @@? 22:24 Error SyntaxError: Unexpected token ':'. */ -/* @@? 22:24 Error SyntaxError: Unexpected token ':'. */ -/* @@? 22:24 Error SyntaxError: Unexpected token ':'. */ -/* @@? 22:30 Error SyntaxError: Unexpected token ')'. */ -/* @@? 22:30 Error SyntaxError: Unexpected token ')'. */ -/* @@? 22:30 Error SyntaxError: Unexpected token ')'. */ -/* @@? 22:30 Error SyntaxError: Unexpected token ')'. */ -/* @@? 22:32 Error SyntaxError: Unexpected token '=>'. */ -/* @@? 24:3 Error SyntaxError: Unexpected token '#'. */ -/* @@? 24:5 Error SyntaxError: Unexpected token in private field. */ -/* @@? 24:5 Error SyntaxError: Unexpected token '19'. */ -/* @@? 25:2 Error SyntaxError: Unexpected token '#'. */ -/* @@? 25:7 Error SyntaxError: Unexpected private identifier. */ -/* @@? 27:1 Error SyntaxError: Unexpected token 'let'. */ -/* @@? 27:13 Error SyntaxError: 'new.Target' is not allowed here. */ -/* @@? 28:30 Error SyntaxError: Cannot use new with import(...). */ -/* @@? 29:24 Error SyntaxError: Unexpected token ')'. */ -/* @@? 30:24 Error SyntaxError: Unexpected token ';'. */ -/* @@? 30:24 Error SyntaxError: Unexpected token, expected ',' or ')'. */ + +/* @@? 17:1 Error Syntax error ESY0195: expected '=>' on the same line after an argument list, got line terminator. */ +/* @@? 20:10 Error Syntax error ESY0052: Expected expression, got '=>'. */ +/* @@? 20:10 Error Syntax error ESY0195: expected '=>' on the same line after an argument list, got line terminator. */ +/* @@? 22:13 Error Syntax error ESY0000: Unexpected token. */ +/* @@? 22:20 Error Syntax error ESY0000: Unexpected token. */ +/* @@? 22:24 Error Syntax error ESY0227: Unexpected token ':'. */ +/* @@? 22:30 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 22:32 Error Syntax error ESY0227: Unexpected token '=>'. */ +/* @@? 24:3 Error Syntax error ESY0227: Unexpected token '#'. */ +/* @@? 24:5 Error Syntax error ESY0160: Unexpected token in private field. */ +/* @@? 24:5 Error Syntax error ESY0227: Unexpected token '19'. */ +/* @@? 25:2 Error Syntax error ESY0227: Unexpected token '#'. */ +/* @@? 25:7 Error Syntax error ESY0047: Unexpected private identifier. */ +/* @@? 27:1 Error Syntax error ESY0227: Unexpected token 'let'. */ +/* @@? 27:13 Error Syntax error ESY0073: 'new.Target' is not allowed here. */ +/* @@? 28:30 Error Syntax error ESY0060: Cannot use new with import(...). */ +/* @@? 29:24 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 30:24 Error Syntax error ESY0227: Unexpected token ';'. */ +/* @@? 30:24 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/InvalidLexer.ts b/ets2panda/test/ast/parser/ts/InvalidLexer.ts index f3c25a0f3b..7002635c77 100644 --- a/ets2panda/test/ast/parser/ts/InvalidLexer.ts +++ b/ets2panda/test/ast/parser/ts/InvalidLexer.ts @@ -26,15 +26,16 @@ funct\u{0069}on `string ${expr -/* @@? 16:7 Error SyntaxError: Invalid RegExp flag */ -/* @@? 16:7 Error SyntaxError: Unexpected token: 'identification literal'. */ -/* @@? 18:8 Error SyntaxError: Invalid RegExp flag */ -/* @@? 20:5 Error SyntaxError: Unterminated RegExp */ -/* @@? 20:5 Error SyntaxError: Expected an identifier */ -/* @@? 20:5 Error SyntaxError: Unexpected token: 'identification literal'. */ -/* @@? 22:1 Error SyntaxError: Unexpected strict mode reserved keyword */ -/* @@? 24:1 Error SyntaxError: Escape sequences are not allowed in keywords */ -/* @@? 40:66 Error SyntaxError: Expected '}', got 'end of stream'. */ -/* @@? 40:66 Error SyntaxError: Unterminated string */ -/* @@? 40:66 Error SyntaxError: Unexpected token, expected '${' or '`' */ -/* @@? 40:66 Error SyntaxError: Unexpected token, expected '`' */ + +/* @@? 16:2 Error Syntax error ESY0246: Invalid RegExp flag. */ +/* @@? 16:7 Error Syntax error ESY0227: Unexpected token 'ar'. */ +/* @@? 18:2 Error Syntax error ESY0246: Invalid RegExp flag. */ +/* @@? 20:2 Error Syntax error ESY0260: Unterminated RegExp. */ +/* @@? 20:5 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 20:5 Error Syntax error ESY0227: Unexpected token 'end of stream'. */ +/* @@? 22:1 Error Syntax error ESY0264: Unexpected strict mode reserved keyword. */ +/* @@? 24:1 Error Syntax error ESY0271: Escape sequences are not allowed in keyword. */ +/* @@? 40:83 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ +/* @@? 40:83 Error Syntax error ESY0253: Unterminated string. */ +/* @@? 40:83 Error Syntax error ESY0259: Unexpected token, expected '${' or '`' */ +/* @@? 40:83 Error Syntax error ESY0228: Unexpected token, expected '`'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/InvalidParserImpl.ts b/ets2panda/test/ast/parser/ts/InvalidParserImpl.ts index b334b4420c..7cfbf6a709 100644 --- a/ets2panda/test/ast/parser/ts/InvalidParserImpl.ts +++ b/ets2panda/test/ast/parser/ts/InvalidParserImpl.ts @@ -29,5 +29,6 @@ declare class A { x: number = /* @@ label1 */3; } -/* @@@ label Error SyntaxError: A get accessor must be at least as accessible as the setter. */ -/* @@@ label1 Error SyntaxError: Initializers are not allowed in ambient contexts. */ + +/* @@@ label Error Syntax error ESY0205: A get accessor must be at least as accessible as the setter. */ +/* @@@ label1 Error Syntax error ESY0125: Initializers are not allowed in ambient contexts. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/InvalidStatements.ts b/ets2panda/test/ast/parser/ts/InvalidStatements.ts index 77b3f7d2ed..299a1339fb 100644 --- a/ets2panda/test/ast/parser/ts/InvalidStatements.ts +++ b/ets2panda/test/ast/parser/ts/InvalidStatements.ts @@ -110,55 +110,14 @@ module module2 declare namespace abc {} // This should be the last test to show the absent of the '}'. -/* @@? 20:1 Error SyntaxError: Missing catch or finally clause. */ -/* @@? 21:9 Error SyntaxError: Expected '{', got '('. */ -/* @@? 24:8 Error SyntaxError: Unexpected token ')'. */ -/* @@? 27:13 Error SyntaxError: Initializers are not allowed in ambient contexts. */ -/* @@? 31:14 Error SyntaxError: Abstract methods can only appear within an abstract class. */ -/* @@? 35:12 Error SyntaxError: Only ambient modules can use quoted names. */ -/* @@? 35:22 Error SyntaxError: Unexpected token, expected ';'. */ -/* @@? 40:5 Error SyntaxError: Duplicated identifier. */ -/* @@? 44:37 Error SyntaxError: A 'declare' modifier cannot be used in an already ambient context. */ -/* @@? 46:5 Error SyntaxError: Decorators are not valid here. */ -/* @@? 52:5 Error SyntaxError: Decorators are not valid here. */ -/* @@? 55:6 Error SyntaxError: Unexpected token, expected ';'. */ -/* @@? 55:8 Error SyntaxError: Unexpected token, expected ';'. */ -/* @@? 59:21 Error SyntaxError: Unexpected token, expected ';'. */ -/* @@? 61:5 Error SyntaxError: Classes may not have a field named 'constructor'. */ -/* @@? 61:16 Error SyntaxError: Unexpected token, expected '('. */ -/* @@? 64:23 Error SyntaxError: Identifier expected. */ -/* @@? 68:11 Error SyntaxError: Missing initializer in destructuring declaration. */ -/* @@? 71:5 Error SyntaxError: Expected '{', got 'identification literal'. */ -/* @@? 71:7 Error SyntaxError: Unexpected token in enum member. */ -/* @@? 72:5 Error SyntaxError: Unexpected token, expected ',' or '}'. */ -/* @@? 74:9 Error SyntaxError: Invalid left-hand side in assignment expression. */ -/* @@? 75:10 Error SyntaxError: Unexpected token ','. */ -/* @@? 79:9 Error SyntaxError: Type parameter declaration expected. */ -/* @@? 79:9 Error SyntaxError: Unexpected token, expected '>'. */ -/* @@? 79:12 Error SyntaxError: Expected '{', got '>'. */ -/* @@? 79:14 Error SyntaxError: Unexpected token. */ -/* @@? 81:22 Error SyntaxError: Required type parameters may not follow optional type parameters. */ -/* @@? 83:9 Error SyntaxError: Type parameter list cannot be empty. */ -/* @@? 86:14 Error SyntaxError: Abstract methods can only appear within an abstract class. */ -/* @@? 86:20 Error SyntaxError: Unexpected token, expected ';'. */ -/* @@? 88:13 Error SyntaxError: Unexpected modifier. */ -/* @@? 89:15 Error SyntaxError: Unexpected modifier. */ -/* @@? 89:15 Error SyntaxError: Duplicated modifier is not allowed. */ -/* @@? 91:17 Error SyntaxError: 'static' modifier cannot appear on a parameter. */ -/* @@? 94:22 Error SyntaxError: A required parameter cannot follow an optional parameter. */ -/* @@? 95:10 Error SyntaxError: 'eval' or 'arguments' can't be defined or assigned to in strict mode code. */ -/* @@? 95:29 Error SyntaxError: 'eval' or 'arguments' can't be defined or assigned to in strict mode code. */ -/* @@? 95:41 Error SyntaxError: Binding 'eval' in strict mode is invalid. */ -/* @@? 95:41 Error SyntaxError: Binding 'arguments' in strict mode is invalid. */ -/* @@? 96:18 Error SyntaxError: Unexpected '?' for parameter. */ -/* @@? 96:26 Error SyntaxError: Invalid destructuring assignment target. */ -/* @@? 96:26 Error SyntaxError: Unexpected ArrowParameter element. */ -/* @@? 96:26 Error SyntaxError: Unexpected ArrowParameter element. */ -/* @@? 98:29 Error SyntaxError: Invalid destructuring assignment target. */ -/* @@? 99:29 Error SyntaxError: Parameter cannot have question mark and initializer. */ -/* @@? 99:42 Error SyntaxError: await is not allowed in arrow function parameters. */ -/* @@? 102:13 Error SyntaxError: Initializers are not allowed in ambient contexts. */ -/* @@? 105:8 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 106:5 Error SyntaxError: Unexpected token, expected '{'. */ -/* @@? 110:5 Error SyntaxError: Unexpected token, expected '{'. */ -/* @@? 165:1 Error SyntaxError: Expected '}', got 'end of stream'. */ + +/* @@? 20:1 Error Syntax error ESY0169: Missing catch or finally clause. */ +/* @@? 21:9 Error Syntax error ESY0230: Expected '{', got '('. */ +/* @@? 24:8 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 27:13 Error Syntax error ESY0125: Initializers are not allowed in ambient contexts. */ +/* @@? 31:14 Error Syntax error ESY0184: Abstract methods can only appear within an abstract class. */ +/* @@? 35:12 Error Syntax error ESY0181: Only ambient modules can use quoted names. */ +/* @@? 35:22 Error Syntax error ESY0228: Unexpected token, expected ';'. */ +/* @@? 40:5 Error Syntax error ESY0215: Duplicated identifier. */ +/* @@? 44:37 Error Syntax error ESY0104: A 'declare' modifier cannot be used in an already ambient context. */ +/* @@? 46:5 Error Syntax error ESY0183: Decorators are not valid here. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/catch_or_finally_1.ts b/ets2panda/test/ast/parser/ts/catch_or_finally_1.ts index 8c59f19c69..609760dc72 100644 --- a/ets2panda/test/ast/parser/ts/catch_or_finally_1.ts +++ b/ets2panda/test/ast/parser/ts/catch_or_finally_1.ts @@ -19,17 +19,14 @@ try {} catch (fgf) {} aaaaaaa /* @@ label5 */{} try /* @@ label6 */[] /* @@ label7 */finally {} -/* @@? 16:22 Error SyntaxError: Missing catch or finally clause. */ -/* @@? 16:46 Error SyntaxError: Unexpected token '{'. */ -/* @@? 17:23 Error SyntaxError: Missing catch or finally clause. */ -/* @@? 17:51 Error SyntaxError: Unexpected token '{'. */ -/* @@? 17:69 Error SyntaxError: Unexpected token 'finally'. */ -/* @@? 17:69 Error SyntaxError: Unexpected token 'finally'. */ -/* @@? 18:46 Error SyntaxError: Unexpected token '{'. */ -/* @@? 20:20 Error SyntaxError: Expected '{', got '['. */ -/* @@? 20:20 Error SyntaxError: Expected '{', got '['. */ -/* @@? 20:38 Error SyntaxError: Unexpected token 'finally'. */ -/* @@? 20:38 Error SyntaxError: Unexpected token 'finally'. */ -/* @@? 20:38 Error SyntaxError: Unexpected token 'finally'. */ -/* @@? 36:1 Error SyntaxError: Expected '}', got 'end of stream'. */ -/* @@? 36:1 Error SyntaxError: Missing catch or finally clause. */ + +/* @@@ label Error Syntax error ESY0169: Missing catch or finally clause. */ +/* @@@ label1 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@@ label2 Error Syntax error ESY0169: Missing catch or finally clause. */ +/* @@@ label3 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@@ label4 Error Syntax error ESY0227: Unexpected token 'finally'. */ +/* @@@ label5 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@@ label6 Error Syntax error ESY0230: Expected '{', got '['. */ +/* @@@ label7 Error Syntax error ESY0227: Unexpected token 'finally'. */ +/* @@? 32:77 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ +/* @@? 32:77 Error Syntax error ESY0169: Missing catch or finally clause. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-as-expression.ts b/ets2panda/test/ast/parser/ts/test-as-expression.ts index 56b3171f49..c5c397099d 100644 --- a/ets2panda/test/ast/parser/ts/test-as-expression.ts +++ b/ets2panda/test/ast/parser/ts/test-as-expression.ts @@ -15,4 +15,5 @@ var a = 5 as/* @@ label */; -/* @@@ label Error SyntaxError: Type expected */ + +/* @@@ label Error Syntax error ESY0000: Type expected */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-class-constructor1.ts b/ets2panda/test/ast/parser/ts/test-class-constructor1.ts index 1ccc5e93c3..d1b6139302 100644 --- a/ets2panda/test/ast/parser/ts/test-class-constructor1.ts +++ b/ets2panda/test/ast/parser/ts/test-class-constructor1.ts @@ -19,4 +19,5 @@ class Foo { a: string; /* @@ label */constructor() { }; } -/* @@@ label Error SyntaxError: Multiple constructor implementations are not allowed. */ + +/* @@@ label Error Syntax error ESY0206: Multiple constructor implementations are not allowed. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-class-constructor2.ts b/ets2panda/test/ast/parser/ts/test-class-constructor2.ts index d189cf44ca..daf8089b0a 100644 --- a/ets2panda/test/ast/parser/ts/test-class-constructor2.ts +++ b/ets2panda/test/ast/parser/ts/test-class-constructor2.ts @@ -20,5 +20,6 @@ class Foo { b: string; /* @@ label2 */constructor(); } -/* @@@ label1 Error SyntaxError: Multiple constructor implementations are not allowed. */ -/* @@@ label2 Error SyntaxError: Multiple constructor implementations are not allowed. */ + +/* @@@ label1 Error Syntax error ESY0206: Multiple constructor implementations are not allowed. */ +/* @@@ label2 Error Syntax error ESY0206: Multiple constructor implementations are not allowed. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-class-constructor3.ts b/ets2panda/test/ast/parser/ts/test-class-constructor3.ts index ea2c133598..cb9a8030cb 100644 --- a/ets2panda/test/ast/parser/ts/test-class-constructor3.ts +++ b/ets2panda/test/ast/parser/ts/test-class-constructor3.ts @@ -17,5 +17,6 @@ class Foo { constructor ?() { }; } -/* @@? 18:5 Error SyntaxError: Classes may not have a field named 'constructor'. */ -/* @@? 18:17 Error SyntaxError: Unexpected token, expected '('. */ + +/* @@? 18:5 Error Syntax error ESY0144: Classes may not have a field named 'constructor'. */ +/* @@? 18:17 Error Syntax error ESY0228: Unexpected token, expected '('. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-class-constructor5.ts b/ets2panda/test/ast/parser/ts/test-class-constructor5.ts index bbab046f31..c2cb4829b9 100644 --- a/ets2panda/test/ast/parser/ts/test-class-constructor5.ts +++ b/ets2panda/test/ast/parser/ts/test-class-constructor5.ts @@ -18,4 +18,5 @@ class Foo { constructor() { }; /* @@ label */constructor() { }; } -/* @@@ label Error SyntaxError: Multiple constructor implementations are not allowed. */ + +/* @@@ label Error Syntax error ESY0206: Multiple constructor implementations are not allowed. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-class-definiton1.ts b/ets2panda/test/ast/parser/ts/test-class-definiton1.ts index c214c788a6..b9d5230688 100644 --- a/ets2panda/test/ast/parser/ts/test-class-definiton1.ts +++ b/ets2panda/test/ast/parser/ts/test-class-definiton1.ts @@ -17,4 +17,5 @@ class Foo { static /* @@ label */constructor() { }; } -/* @@@ label Error SyntaxError: Static modifier can not appear on a constructor */ + +/* @@@ label Error Syntax error ESY0000: Static modifier can not appear on a constructor */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-class-definiton10.ts b/ets2panda/test/ast/parser/ts/test-class-definiton10.ts index fdec147939..c387eb3779 100644 --- a/ets2panda/test/ast/parser/ts/test-class-definiton10.ts +++ b/ets2panda/test/ast/parser/ts/test-class-definiton10.ts @@ -18,4 +18,5 @@ class Foo { a() { } b() { } c() { } private static readonly declare d /* @@ label */e; } -/* @@@ label Error SyntaxError: Unexpected token, expected ';'. */ + +/* @@@ label Error Syntax error ESY0228: Unexpected token, expected ';'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-class-definiton11.ts b/ets2panda/test/ast/parser/ts/test-class-definiton11.ts index f33123bc3c..d7b2cb73a0 100644 --- a/ets2panda/test/ast/parser/ts/test-class-definiton11.ts +++ b/ets2panda/test/ast/parser/ts/test-class-definiton11.ts @@ -18,6 +18,7 @@ class Foo { const a = 3; } -/* @@? 18:11 Error SyntaxError: Unexpected token, expected ';'. */ -/* @@? 18:13 Error SyntaxError: Unexpected token. */ -/* @@? 18:15 Error SyntaxError: Unexpected token, expected ';'. */ + +/* @@? 18:11 Error Syntax error ESY0228: Unexpected token, expected ';'. */ +/* @@? 18:13 Error Syntax error ESY0016: Unexpected token. */ +/* @@? 18:15 Error Syntax error ESY0228: Unexpected token, expected ';'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-class-definiton12.ts b/ets2panda/test/ast/parser/ts/test-class-definiton12.ts index d041f867ef..4c747f8917 100644 --- a/ets2panda/test/ast/parser/ts/test-class-definiton12.ts +++ b/ets2panda/test/ast/parser/ts/test-class-definiton12.ts @@ -18,6 +18,7 @@ class Foo { var a = 3; } -/* @@? 18:9 Error SyntaxError: Unexpected token, expected ';'. */ -/* @@? 18:11 Error SyntaxError: Unexpected token. */ -/* @@? 18:13 Error SyntaxError: Unexpected token, expected ';'. */ + +/* @@? 18:9 Error Syntax error ESY0228: Unexpected token, expected ';'. */ +/* @@? 18:11 Error Syntax error ESY0016: Unexpected token. */ +/* @@? 18:13 Error Syntax error ESY0228: Unexpected token, expected ';'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-class-definiton13.ts b/ets2panda/test/ast/parser/ts/test-class-definiton13.ts index de5a5f1b3f..2aa046a302 100644 --- a/ets2panda/test/ast/parser/ts/test-class-definiton13.ts +++ b/ets2panda/test/ast/parser/ts/test-class-definiton13.ts @@ -18,6 +18,7 @@ class Foo { let a = 3; } -/* @@? 18:9 Error SyntaxError: Unexpected token, expected ';'. */ -/* @@? 18:11 Error SyntaxError: Unexpected token. */ -/* @@? 18:13 Error SyntaxError: Unexpected token, expected ';'. */ + +/* @@? 18:9 Error Syntax error ESY0228: Unexpected token, expected ';'. */ +/* @@? 18:11 Error Syntax error ESY0016: Unexpected token. */ +/* @@? 18:13 Error Syntax error ESY0228: Unexpected token, expected ';'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-class-definiton14.ts b/ets2panda/test/ast/parser/ts/test-class-definiton14.ts index 2c1ee6e93d..93dfa71ee4 100644 --- a/ets2panda/test/ast/parser/ts/test-class-definiton14.ts +++ b/ets2panda/test/ast/parser/ts/test-class-definiton14.ts @@ -18,6 +18,7 @@ class Foo { function a(); } -/* @@? 18:14 Error SyntaxError: Unexpected token, expected ';'. */ -/* @@? 18:15 Error SyntaxError: Unexpected token. */ -/* @@? 18:16 Error SyntaxError: Unexpected token, expected ';'. */ + +/* @@? 18:14 Error Syntax error ESY0228: Unexpected token, expected ';'. */ +/* @@? 18:15 Error Syntax error ESY0016: Unexpected token. */ +/* @@? 18:16 Error Syntax error ESY0228: Unexpected token, expected ';'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-class-definiton15.ts b/ets2panda/test/ast/parser/ts/test-class-definiton15.ts index c974e0fd1c..83e48bdb14 100644 --- a/ets2panda/test/ast/parser/ts/test-class-definiton15.ts +++ b/ets2panda/test/ast/parser/ts/test-class-definiton15.ts @@ -18,4 +18,5 @@ class Foo { set /* @@ label */5(k) { } private get 5() { return } } -/* @@@ label Error SyntaxError: A get accessor must be at least as accessible as the setter. */ + +/* @@@ label Error Syntax error ESY0205: A get accessor must be at least as accessible as the setter. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-class-definiton16.ts b/ets2panda/test/ast/parser/ts/test-class-definiton16.ts index 2d97cbc8dd..a54f6145d0 100644 --- a/ets2panda/test/ast/parser/ts/test-class-definiton16.ts +++ b/ets2panda/test/ast/parser/ts/test-class-definiton16.ts @@ -18,4 +18,5 @@ class Foo { private get /* @@ label */5() { return } protected set 5(k) { } } -/* @@@ label Error SyntaxError: A get accessor must be at least as accessible as the setter. */ + +/* @@@ label Error Syntax error ESY0205: A get accessor must be at least as accessible as the setter. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-class-definiton17.ts b/ets2panda/test/ast/parser/ts/test-class-definiton17.ts index 8b97572a18..992be7c25a 100644 --- a/ets2panda/test/ast/parser/ts/test-class-definiton17.ts +++ b/ets2panda/test/ast/parser/ts/test-class-definiton17.ts @@ -17,4 +17,5 @@ class Foo { abstract /* @@ label */a() } -/* @@@ label Error SyntaxError: Abstract methods can only appear within an abstract class. */ + +/* @@@ label Error Syntax error ESY0184: Abstract methods can only appear within an abstract class. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-class-definiton2.ts b/ets2panda/test/ast/parser/ts/test-class-definiton2.ts index d7fc4cecac..5562fcbe14 100644 --- a/ets2panda/test/ast/parser/ts/test-class-definiton2.ts +++ b/ets2panda/test/ast/parser/ts/test-class-definiton2.ts @@ -17,4 +17,5 @@ class Foo { private readonly [a]/* @@ label */(){} } -/* @@@ label Error SyntaxError: Class method can not be declare nor readonly */ + +/* @@@ label Error Syntax error ESY0000: Class method can not be declare nor readonly */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-class-definiton3.ts b/ets2panda/test/ast/parser/ts/test-class-definiton3.ts index 59a930fc94..7591dd8421 100644 --- a/ets2panda/test/ast/parser/ts/test-class-definiton3.ts +++ b/ets2panda/test/ast/parser/ts/test-class-definiton3.ts @@ -18,5 +18,6 @@ class Foo { static static a; } -/* @@? 18:12 Error SyntaxError: Unexpected modifier. */ -/* @@? 18:12 Error SyntaxError: Duplicated modifier is not allowed. */ + +/* @@? 18:12 Error Syntax error ESY0153: Unexpected modifier. */ +/* @@? 18:12 Error Syntax error ESY0115: Duplicated modifier is not allowed. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-class-definiton4.ts b/ets2panda/test/ast/parser/ts/test-class-definiton4.ts index aca44c435f..c238b38e35 100644 --- a/ets2panda/test/ast/parser/ts/test-class-definiton4.ts +++ b/ets2panda/test/ast/parser/ts/test-class-definiton4.ts @@ -17,4 +17,5 @@ class Foo { *b/* @@ label */; } -/* @@@ label Error SyntaxError: Expected '(' */ + +/* @@@ label Error Syntax error ESY0000: Expected '(' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-class-definiton5.ts b/ets2panda/test/ast/parser/ts/test-class-definiton5.ts index acace0fa02..5309a1cb6f 100644 --- a/ets2panda/test/ast/parser/ts/test-class-definiton5.ts +++ b/ets2panda/test/ast/parser/ts/test-class-definiton5.ts @@ -17,4 +17,5 @@ class Foo { readonly /* @@ label */static a = "foo"; } -/* @@@ label Error SyntaxError: Unexpected modifier. */ + +/* @@@ label Error Syntax error ESY0153: Unexpected modifier. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-class-definiton6.ts b/ets2panda/test/ast/parser/ts/test-class-definiton6.ts index 21f5b66d81..562bc34717 100644 --- a/ets2panda/test/ast/parser/ts/test-class-definiton6.ts +++ b/ets2panda/test/ast/parser/ts/test-class-definiton6.ts @@ -18,4 +18,5 @@ class Foo { private get /* @@ label */5() { return } set 5(k) { } } -/* @@@ label Error SyntaxError: A get accessor must be at least as accessible as the setter. */ + +/* @@@ label Error Syntax error ESY0205: A get accessor must be at least as accessible as the setter. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-class-definiton8.ts b/ets2panda/test/ast/parser/ts/test-class-definiton8.ts index 8472ae50ee..142e0a486f 100644 --- a/ets2panda/test/ast/parser/ts/test-class-definiton8.ts +++ b/ets2panda/test/ast/parser/ts/test-class-definiton8.ts @@ -18,6 +18,7 @@ declare class Foo { a() b() } -/* @@? 18:9 Error SyntaxError: Unexpected token, expected ';'. */ -/* @@? 18:10 Error SyntaxError: Unexpected token. */ -/* @@? 18:11 Error SyntaxError: Unexpected token, expected ';'. */ + +/* @@? 18:9 Error Syntax error ESY0228: Unexpected token, expected ';'. */ +/* @@? 18:10 Error Syntax error ESY0016: Unexpected token. */ +/* @@? 18:11 Error Syntax error ESY0228: Unexpected token, expected ';'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-class-definiton9.ts b/ets2panda/test/ast/parser/ts/test-class-definiton9.ts index f553f84e33..a06c0bb1e3 100644 --- a/ets2panda/test/ast/parser/ts/test-class-definiton9.ts +++ b/ets2panda/test/ast/parser/ts/test-class-definiton9.ts @@ -18,4 +18,5 @@ class Foo { a /* @@ label */b; } -/* @@@ label Error SyntaxError: Unexpected token, expected ';'. */ + +/* @@@ label Error Syntax error ESY0228: Unexpected token, expected ';'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-enum-declaration2.ts b/ets2panda/test/ast/parser/ts/test-enum-declaration2.ts index bbe0b20f43..f961c3e777 100644 --- a/ets2panda/test/ast/parser/ts/test-enum-declaration2.ts +++ b/ets2panda/test/ast/parser/ts/test-enum-declaration2.ts @@ -19,4 +19,5 @@ enum Foo { B = "foo", } -/* @@@ label Error SyntaxError: Unexpected token in enum member. */ + +/* @@@ label Error Syntax error ESY0178: Unexpected token in enum member. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-enum-declaration3.ts b/ets2panda/test/ast/parser/ts/test-enum-declaration3.ts index 65153bf5a9..41359a51fe 100644 --- a/ets2panda/test/ast/parser/ts/test-enum-declaration3.ts +++ b/ets2panda/test/ast/parser/ts/test-enum-declaration3.ts @@ -18,5 +18,6 @@ const enum Foo { G = 1, /* @@ label */2, /* @@ label1 */3 } -/* @@@ label Error SyntaxError: Unexpected token in enum member. */ -/* @@@ label1 Error SyntaxError: Unexpected token in enum member. */ + +/* @@@ label Error Syntax error ESY0178: Unexpected token in enum member. */ +/* @@@ label1 Error Syntax error ESY0178: Unexpected token in enum member. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-enum-declaration4.ts b/ets2panda/test/ast/parser/ts/test-enum-declaration4.ts index 6f12c1ed67..b234fd02ad 100644 --- a/ets2panda/test/ast/parser/ts/test-enum-declaration4.ts +++ b/ets2panda/test/ast/parser/ts/test-enum-declaration4.ts @@ -19,4 +19,5 @@ const enum Foo { enum Foo {} -/* @@? 20:6 Error SyntaxError: Variable 'Foo' has already been declared. */ + +/* @@? 20:6 Error Syntax error ESY0000: Variable 'Foo' has already been declared. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-enum-declaration5.ts b/ets2panda/test/ast/parser/ts/test-enum-declaration5.ts index e3d003fd16..b85d5d004a 100644 --- a/ets2panda/test/ast/parser/ts/test-enum-declaration5.ts +++ b/ets2panda/test/ast/parser/ts/test-enum-declaration5.ts @@ -20,4 +20,5 @@ const enum Foo { } -/* @@? 19:12 Error SyntaxError: Variable 'Foo' has already been declared. */ + +/* @@? 19:12 Error Syntax error ESY0000: Variable 'Foo' has already been declared. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-func-decl1.ts b/ets2panda/test/ast/parser/ts/test-func-decl1.ts index 3fcd175a9f..ec206d56b0 100644 --- a/ets2panda/test/ast/parser/ts/test-func-decl1.ts +++ b/ets2panda/test/ast/parser/ts/test-func-decl1.ts @@ -18,4 +18,5 @@ function foo() { this./* @@ label */#bar = "baz"; } -/* @@@ label Error SyntaxError: Private field 'bar' must be declared in an enclosing class */ + +/* @@@ label Error Syntax error ESY0000: Private field 'bar' must be declared in an enclosing class */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-func-param1.ts b/ets2panda/test/ast/parser/ts/test-func-param1.ts index f16a2aada4..c5c34c305b 100644 --- a/ets2panda/test/ast/parser/ts/test-func-param1.ts +++ b/ets2panda/test/ast/parser/ts/test-func-param1.ts @@ -17,4 +17,5 @@ function foo(a, b?, c/* @@ label */) { } -/* @@@ label Error SyntaxError: A required parameter cannot follow an optional parameter */ + +/* @@@ label Error Syntax error ESY0000: A required parameter cannot follow an optional parameter */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-func-param2.ts b/ets2panda/test/ast/parser/ts/test-func-param2.ts index 11b3e19601..e11e7567c3 100644 --- a/ets2panda/test/ast/parser/ts/test-func-param2.ts +++ b/ets2panda/test/ast/parser/ts/test-func-param2.ts @@ -18,4 +18,4 @@ function foo(a, this/* @@ label */) { } -/* @@@ label Error SyntaxError: A 'this' parameter must be the first parameter */ + diff --git a/ets2panda/test/ast/parser/ts/test-func-param3.ts b/ets2panda/test/ast/parser/ts/test-func-param3.ts index e90bfc07a9..d92cd24739 100644 --- a/ets2panda/test/ast/parser/ts/test-func-param3.ts +++ b/ets2panda/test/ast/parser/ts/test-func-param3.ts @@ -18,4 +18,4 @@ class A { constructor(this/* @@ label */) { } } -/* @@@ label Error SyntaxError: A constructor cannot have a 'this' parameter */ + diff --git a/ets2panda/test/ast/parser/ts/test-func-param4.ts b/ets2panda/test/ast/parser/ts/test-func-param4.ts index 4e104b5927..d2b5c43dba 100644 --- a/ets2panda/test/ast/parser/ts/test-func-param4.ts +++ b/ets2panda/test/ast/parser/ts/test-func-param4.ts @@ -17,4 +17,5 @@ class A { get foo(this) { return; } /* @@ label */} -/* @@@ label Error SyntaxError: Getter must not have formal parameters. */ + +/* @@@ label Error Syntax error ESY0058: Getter must not have formal parameters. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-func-param5.ts b/ets2panda/test/ast/parser/ts/test-func-param5.ts index 62eb41dd80..14e7865074 100644 --- a/ets2panda/test/ast/parser/ts/test-func-param5.ts +++ b/ets2panda/test/ast/parser/ts/test-func-param5.ts @@ -17,4 +17,5 @@ class A { constructor(constructor/* @@ label */) { } } -/* @@@ label Error SyntaxError: 'constructor' cannot be used as a parameter property name */ + +/* @@@ label Error Syntax error ESY0000: 'constructor' cannot be used as a parameter property name */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-func-param6.ts b/ets2panda/test/ast/parser/ts/test-func-param6.ts index 7f86b48c4b..cf24a54eb7 100644 --- a/ets2panda/test/ast/parser/ts/test-func-param6.ts +++ b/ets2panda/test/ast/parser/ts/test-func-param6.ts @@ -15,4 +15,5 @@ function foo([]?/* @@ label */) { } -/* @@@ label Error SyntaxError: A binding pattern parameter cannot be optional in an implementation signature. */ + +/* @@@ label Error Syntax error ESY0000: A binding pattern parameter cannot be optional in an implementation signature. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-func-param7.ts b/ets2panda/test/ast/parser/ts/test-func-param7.ts index 6c399c9c5e..1804aefcd8 100644 --- a/ets2panda/test/ast/parser/ts/test-func-param7.ts +++ b/ets2panda/test/ast/parser/ts/test-func-param7.ts @@ -15,4 +15,5 @@ function foo(...a/* @@ label */?) { } -/* @@@ label Error SyntaxError: A rest parameter cannot be optional */ + +/* @@@ label Error Syntax error ESY0000: A rest parameter cannot be optional */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-func-param8.ts b/ets2panda/test/ast/parser/ts/test-func-param8.ts index 199bf613aa..7c199bb386 100644 --- a/ets2panda/test/ast/parser/ts/test-func-param8.ts +++ b/ets2panda/test/ast/parser/ts/test-func-param8.ts @@ -15,4 +15,5 @@ function foo(a?/* @@ label */= 5) { } -/* @@@ label Error SyntaxError: Parameter cannot have question mark and initializer */ + +/* @@@ label Error Syntax error ESY0000: Parameter cannot have question mark and initializer */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-interface2.ts b/ets2panda/test/ast/parser/ts/test-interface2.ts index 9e3c4b26f6..f2a9bf24c2 100644 --- a/ets2panda/test/ast/parser/ts/test-interface2.ts +++ b/ets2panda/test/ast/parser/ts/test-interface2.ts @@ -15,5 +15,6 @@ interface /* @@ label */5 { } -/* @@@ label Error SyntaxError: Identifier expected, got 'number literal'. */ -/* @@@ label Error SyntaxError: Number, string or computed value property name '5' is not allowed, use classes to access data by property names that are identifiers */ + +/* @@@ label Error Syntax error ESY0315: Number, string or computed value property name '5' is not allowed, use classes to access data by property names that are identifiers */ +/* @@@ label Error Syntax error ESY0224: Identifier expected, got 'number literal'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-interface3.ts b/ets2panda/test/ast/parser/ts/test-interface3.ts index d1b5c8ff3c..023e2b403a 100644 --- a/ets2panda/test/ast/parser/ts/test-interface3.ts +++ b/ets2panda/test/ast/parser/ts/test-interface3.ts @@ -18,6 +18,7 @@ interface foo extends 5 { } -/* @@? 17:23 Error SyntaxError: Identifier expected. */ -/* @@? 17:23 Error SyntaxError: Unexpected token, expected ','. */ -/* @@? 17:25 Error SyntaxError: Identifier expected. */ + +/* @@? 17:23 Error Syntax error ESY0122: Identifier expected. */ +/* @@? 17:23 Error Syntax error ESY0228: Unexpected token, expected ','. */ +/* @@? 17:25 Error Syntax error ESY0122: Identifier expected. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-intersection1.ts b/ets2panda/test/ast/parser/ts/test-intersection1.ts index 5f7a74d2ee..81bd0255c0 100644 --- a/ets2panda/test/ast/parser/ts/test-intersection1.ts +++ b/ets2panda/test/ast/parser/ts/test-intersection1.ts @@ -15,4 +15,5 @@ var a: & /* @@ label */| string; -/* @@@ label Error SyntaxError: Type expected */ + +/* @@@ label Error Syntax error ESY0000: Type expected */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-intersection2.ts b/ets2panda/test/ast/parser/ts/test-intersection2.ts index 21c9d47287..8b62c4be2f 100644 --- a/ets2panda/test/ast/parser/ts/test-intersection2.ts +++ b/ets2panda/test/ast/parser/ts/test-intersection2.ts @@ -15,4 +15,5 @@ var a: & & string; -/* @@? 17:10 Error SyntaxError: Type expected */ + +/* @@? 17:10 Error Syntax error ESY0000: Type expected */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-intersection3.ts b/ets2panda/test/ast/parser/ts/test-intersection3.ts index 1033678282..73783bf131 100644 --- a/ets2panda/test/ast/parser/ts/test-intersection3.ts +++ b/ets2panda/test/ast/parser/ts/test-intersection3.ts @@ -15,4 +15,5 @@ var a: string &/* @@ label */; -/* @@@ label Error SyntaxError: Type expected */ + +/* @@@ label Error Syntax error ESY0000: Type expected */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-keyword-declare1.ts b/ets2panda/test/ast/parser/ts/test-keyword-declare1.ts index 6640a31667..e95eb632da 100644 --- a/ets2panda/test/ast/parser/ts/test-keyword-declare1.ts +++ b/ets2panda/test/ast/parser/ts/test-keyword-declare1.ts @@ -15,4 +15,5 @@ declare var a = /* @@ label */5; -/* @@@ label Error SyntaxError: Initializers are not allowed in ambient contexts. */ + +/* @@@ label Error Syntax error ESY0125: Initializers are not allowed in ambient contexts. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-keyword-declare10.ts b/ets2panda/test/ast/parser/ts/test-keyword-declare10.ts index 13ae8554e5..e05f44b62f 100644 --- a/ets2panda/test/ast/parser/ts/test-keyword-declare10.ts +++ b/ets2panda/test/ast/parser/ts/test-keyword-declare10.ts @@ -17,4 +17,5 @@ declare class Foo { public *g/* @@ label */() } -/* @@@ label Error SyntaxError: Generators are not allowed in an ambient context. */ + +/* @@@ label Error Syntax error ESY0000: Generators are not allowed in an ambient context. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-keyword-declare11.ts b/ets2panda/test/ast/parser/ts/test-keyword-declare11.ts index b535684a38..8a7d4cf8d5 100644 --- a/ets2panda/test/ast/parser/ts/test-keyword-declare11.ts +++ b/ets2panda/test/ast/parser/ts/test-keyword-declare11.ts @@ -17,4 +17,5 @@ declare class Foo { public g() /* @@ label */{ }; } -/* @@@ label Error SyntaxError: An implementation cannot be declared in ambient contexts. */ + +/* @@@ label Error Syntax error ESY0000: An implementation cannot be declared in ambient contexts. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-keyword-declare12.ts b/ets2panda/test/ast/parser/ts/test-keyword-declare12.ts index 410a1c868d..284de280d9 100644 --- a/ets2panda/test/ast/parser/ts/test-keyword-declare12.ts +++ b/ets2panda/test/ast/parser/ts/test-keyword-declare12.ts @@ -17,4 +17,5 @@ declare class Foo { private static a = /* @@ label */3; } -/* @@@ label Error SyntaxError: Initializers are not allowed in ambient contexts. */ + +/* @@@ label Error Syntax error ESY0125: Initializers are not allowed in ambient contexts. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-keyword-declare13.ts b/ets2panda/test/ast/parser/ts/test-keyword-declare13.ts index 42a17db689..ad7fd28a10 100644 --- a/ets2panda/test/ast/parser/ts/test-keyword-declare13.ts +++ b/ets2panda/test/ast/parser/ts/test-keyword-declare13.ts @@ -17,4 +17,5 @@ class Foo { private static declare a = /* @@ label */3; } -/* @@@ label Error SyntaxError: Initializers are not allowed in ambient contexts. */ + +/* @@@ label Error Syntax error ESY0125: Initializers are not allowed in ambient contexts. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-keyword-declare2.ts b/ets2panda/test/ast/parser/ts/test-keyword-declare2.ts index 5d5853b366..64ec7ece7b 100644 --- a/ets2panda/test/ast/parser/ts/test-keyword-declare2.ts +++ b/ets2panda/test/ast/parser/ts/test-keyword-declare2.ts @@ -15,4 +15,5 @@ declare let a = /* @@ label */5; -/* @@@ label Error SyntaxError: Initializers are not allowed in ambient contexts. */ + +/* @@@ label Error Syntax error ESY0125: Initializers are not allowed in ambient contexts. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-keyword-declare3.ts b/ets2panda/test/ast/parser/ts/test-keyword-declare3.ts index 67ef724d0d..eb30bf6098 100644 --- a/ets2panda/test/ast/parser/ts/test-keyword-declare3.ts +++ b/ets2panda/test/ast/parser/ts/test-keyword-declare3.ts @@ -15,4 +15,5 @@ declare /* @@ label */a = 5; -/* @@@ label Error SyntaxError: Unexpected token 'a'. */ + +/* @@@ label Error Syntax error ESY0227: Unexpected token 'a'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-keyword-declare4.ts b/ets2panda/test/ast/parser/ts/test-keyword-declare4.ts index 0afef8fac7..448a3c0a9c 100644 --- a/ets2panda/test/ast/parser/ts/test-keyword-declare4.ts +++ b/ets2panda/test/ast/parser/ts/test-keyword-declare4.ts @@ -15,4 +15,5 @@ declare function a() /* @@ label */{ }; -/* @@@ label Error SyntaxError: An implementation cannot be declared in ambient contexts. */ + +/* @@@ label Error Syntax error ESY0000: An implementation cannot be declared in ambient contexts. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-keyword-declare8.ts b/ets2panda/test/ast/parser/ts/test-keyword-declare8.ts index 6948187728..aab51eb8d0 100644 --- a/ets2panda/test/ast/parser/ts/test-keyword-declare8.ts +++ b/ets2panda/test/ast/parser/ts/test-keyword-declare8.ts @@ -17,4 +17,5 @@ declare class Foo { private static get a() /* @@ label */{ return } } -/* @@@ label Error SyntaxError: An implementation cannot be declared in ambient contexts. */ + +/* @@@ label Error Syntax error ESY0000: An implementation cannot be declared in ambient contexts. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-keyword-declare9.ts b/ets2panda/test/ast/parser/ts/test-keyword-declare9.ts index 531c13878b..6fb176542e 100644 --- a/ets2panda/test/ast/parser/ts/test-keyword-declare9.ts +++ b/ets2panda/test/ast/parser/ts/test-keyword-declare9.ts @@ -17,4 +17,5 @@ declare class Foo { public async g/* @@ label */() } -/* @@@ label Error SyntaxError: 'async' modifier cannot be used in an ambient context. */ + +/* @@@ label Error Syntax error ESY0000: 'async' modifier cannot be used in an ambient context. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-member-expression1.ts b/ets2panda/test/ast/parser/ts/test-member-expression1.ts index 5d8d1a5857..be4bfbf88c 100644 --- a/ets2panda/test/ast/parser/ts/test-member-expression1.ts +++ b/ets2panda/test/ast/parser/ts/test-member-expression1.ts @@ -17,4 +17,5 @@ var a = {foo : {bar : {baz : 5}}}; a?.foo?.bar?.baz /* @@ label */= a?.foo?.bar?.baz; -/* @@@ label Error SyntaxError: Invalid left-hand side in assignment expression. */ + +/* @@@ label Error Syntax error ESY0072: Invalid left-hand side in assignment expression. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-member-expression2.ts b/ets2panda/test/ast/parser/ts/test-member-expression2.ts index afd65877fe..c6c6725df7 100644 --- a/ets2panda/test/ast/parser/ts/test-member-expression2.ts +++ b/ets2panda/test/ast/parser/ts/test-member-expression2.ts @@ -17,4 +17,5 @@ var a = [0, 1, 2, 3, 4]; a?.[0] /* @@ label */= a?.[0]; -/* @@@ label Error SyntaxError: Invalid left-hand side in assignment expression. */ + +/* @@@ label Error Syntax error ESY0072: Invalid left-hand side in assignment expression. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-ts-conditional-type1.ts b/ets2panda/test/ast/parser/ts/test-ts-conditional-type1.ts index 8348e42b3f..8d253bddd0 100644 --- a/ets2panda/test/ast/parser/ts/test-ts-conditional-type1.ts +++ b/ets2panda/test/ast/parser/ts/test-ts-conditional-type1.ts @@ -15,4 +15,5 @@ type Foo = string extends number /* @@ label */extends string ?number: string; -/* @@@ label Error SyntaxError: '?' expected. */ + +/* @@@ label Error Syntax error ESY0000: '?' expected. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-ts-conditional-type2.ts b/ets2panda/test/ast/parser/ts/test-ts-conditional-type2.ts index fdff272c55..bf8c7b0341 100644 --- a/ets2panda/test/ast/parser/ts/test-ts-conditional-type2.ts +++ b/ets2panda/test/ast/parser/ts/test-ts-conditional-type2.ts @@ -15,4 +15,5 @@ type Foo = string extends number ? number extends /* @@ label */: string; -/* @@@ label Error SyntaxError: Type expected */ + +/* @@@ label Error Syntax error ESY0000: Type expected */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-ts-conditional-type3.ts b/ets2panda/test/ast/parser/ts/test-ts-conditional-type3.ts index b25013c521..fcd573e4f3 100644 --- a/ets2panda/test/ast/parser/ts/test-ts-conditional-type3.ts +++ b/ets2panda/test/ast/parser/ts/test-ts-conditional-type3.ts @@ -15,4 +15,5 @@ type Foo = string extends number ? number /* @@ label */string : string; -/* @@@ label Error SyntaxError: ':' expected. */ + +/* @@@ label Error Syntax error ESY0000: ':' expected. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-ts-conditional-type4.ts b/ets2panda/test/ast/parser/ts/test-ts-conditional-type4.ts index f94f025eb6..0add84c2b2 100644 --- a/ets2panda/test/ast/parser/ts/test-ts-conditional-type4.ts +++ b/ets2panda/test/ast/parser/ts/test-ts-conditional-type4.ts @@ -15,4 +15,5 @@ type Foo = string extends number ? number : string extends/* @@ label */; -/* @@@ label Error SyntaxError: Type expected */ + +/* @@@ label Error Syntax error ESY0000: Type expected */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-ts-conditional-type5.ts b/ets2panda/test/ast/parser/ts/test-ts-conditional-type5.ts index 7dd7ebaec4..4de68f9d19 100644 --- a/ets2panda/test/ast/parser/ts/test-ts-conditional-type5.ts +++ b/ets2panda/test/ast/parser/ts/test-ts-conditional-type5.ts @@ -15,4 +15,5 @@ type Foo = /* @@ label */infer string extends number ? number : string; -/* @@@ label Error SyntaxError: 'infer' declarations are only permitted in the 'extends' clause of a conditional type. */ + +/* @@@ label Error Syntax error ESY0000: 'infer' declarations are only permitted in the 'extends' clause of a conditional type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-ts-conditional-type6.ts b/ets2panda/test/ast/parser/ts/test-ts-conditional-type6.ts index 1a52162322..c19c0f4a47 100644 --- a/ets2panda/test/ast/parser/ts/test-ts-conditional-type6.ts +++ b/ets2panda/test/ast/parser/ts/test-ts-conditional-type6.ts @@ -15,4 +15,5 @@ type Foo = string extends number ? /* @@ label */infer number : string; -/* @@@ label Error SyntaxError: 'infer' declarations are only permitted in the 'extends' clause of a conditional type. */ + +/* @@@ label Error Syntax error ESY0000: 'infer' declarations are only permitted in the 'extends' clause of a conditional type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-ts-conditional-type7.ts b/ets2panda/test/ast/parser/ts/test-ts-conditional-type7.ts index 20a4868ef1..1f11019382 100644 --- a/ets2panda/test/ast/parser/ts/test-ts-conditional-type7.ts +++ b/ets2panda/test/ast/parser/ts/test-ts-conditional-type7.ts @@ -15,4 +15,5 @@ type Foo = string extends number ? number : /* @@ label */infer string; -/* @@@ label Error SyntaxError: 'infer' declarations are only permitted in the 'extends' clause of a conditional type. */ + +/* @@@ label Error Syntax error ESY0000: 'infer' declarations are only permitted in the 'extends' clause of a conditional type. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-ts-constructor-type1.ts b/ets2panda/test/ast/parser/ts/test-ts-constructor-type1.ts index d57ad8eef8..a12aa99356 100644 --- a/ets2panda/test/ast/parser/ts/test-ts-constructor-type1.ts +++ b/ets2panda/test/ast/parser/ts/test-ts-constructor-type1.ts @@ -15,4 +15,5 @@ var ctor: new (a: number, b: string)/* @@ label */; -/* @@@ label Error SyntaxError: '=>' expected */ + +/* @@@ label Error Syntax error ESY0000: '=>' expected */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-ts-constructor-type2.ts b/ets2panda/test/ast/parser/ts/test-ts-constructor-type2.ts index f1987fd942..d7370196ee 100644 --- a/ets2panda/test/ast/parser/ts/test-ts-constructor-type2.ts +++ b/ets2panda/test/ast/parser/ts/test-ts-constructor-type2.ts @@ -15,4 +15,5 @@ var ctor: abstract new (a: number, b: string)/* @@ label */; -/* @@@ label Error SyntaxError: '=>' expected */ + +/* @@@ label Error Syntax error ESY0000: '=>' expected */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-ts-constructor-type3.ts b/ets2panda/test/ast/parser/ts/test-ts-constructor-type3.ts index 4e021ae027..f37c602c71 100644 --- a/ets2panda/test/ast/parser/ts/test-ts-constructor-type3.ts +++ b/ets2panda/test/ast/parser/ts/test-ts-constructor-type3.ts @@ -15,4 +15,5 @@ var ctor1: new /* @@ label */abstract (a: number, b: string) => number; -/* @@@ label Error SyntaxError: '(' expected */ + +/* @@@ label Error Syntax error ESY0000: '(' expected */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-ts-constructor-type4.ts b/ets2panda/test/ast/parser/ts/test-ts-constructor-type4.ts index 7a88631854..d08be540e3 100644 --- a/ets2panda/test/ast/parser/ts/test-ts-constructor-type4.ts +++ b/ets2panda/test/ast/parser/ts/test-ts-constructor-type4.ts @@ -15,4 +15,5 @@ var ctor1: abstract /* @@ label */(a: number, b: string) => number; -/* @@@ label Error SyntaxError: Unexpected token '('. */ + +/* @@@ label Error Syntax error ESY0227: Unexpected token '('. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-ts-mapped-type1.ts b/ets2panda/test/ast/parser/ts/test-ts-mapped-type1.ts index 8956e942b3..bf4c6a27f6 100644 --- a/ets2panda/test/ast/parser/ts/test-ts-mapped-type1.ts +++ b/ets2panda/test/ast/parser/ts/test-ts-mapped-type1.ts @@ -15,4 +15,5 @@ type Foo = { /* @@ label */+ s readonly[prop in keyof T] }; -/* @@@ label Error SyntaxError: Unexpected token in property key */ + +/* @@@ label Error Syntax error ESY0000: Unexpected token in property key */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-ts-mapped-type2.ts b/ets2panda/test/ast/parser/ts/test-ts-mapped-type2.ts index f942fa9a45..9b8d83f2bc 100644 --- a/ets2panda/test/ast/parser/ts/test-ts-mapped-type2.ts +++ b/ets2panda/test/ast/parser/ts/test-ts-mapped-type2.ts @@ -15,4 +15,5 @@ type Foo = { readonly /* @@ label */+ [prop in keyof T] }; -/* @@@ label Error SyntaxError: Unexpected token in property key */ + +/* @@@ label Error Syntax error ESY0000: Unexpected token in property key */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-ts-mapped-type3.ts b/ets2panda/test/ast/parser/ts/test-ts-mapped-type3.ts index 1d5b12b45b..fea42263b6 100644 --- a/ets2panda/test/ast/parser/ts/test-ts-mapped-type3.ts +++ b/ets2panda/test/ast/parser/ts/test-ts-mapped-type3.ts @@ -15,4 +15,5 @@ type Foo = { readonly [prop /* @@ label */keyof T] }; -/* @@@ label Error SyntaxError: Unexpected token, expected ']' */ + +/* @@@ label Error Syntax error ESY0000: Unexpected token, expected ']' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-ts-mapped-type4.ts b/ets2panda/test/ast/parser/ts/test-ts-mapped-type4.ts index 05ec5c5229..d26453c3b7 100644 --- a/ets2panda/test/ast/parser/ts/test-ts-mapped-type4.ts +++ b/ets2panda/test/ast/parser/ts/test-ts-mapped-type4.ts @@ -15,4 +15,5 @@ type Foo = { readonly [prop in keyof T /* @@ label */+] }; -/* @@@ label Error SyntaxError: ']' expected */ + +/* @@@ label Error Syntax error ESY0000: ']' expected */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-ts-mapped-type5.ts b/ets2panda/test/ast/parser/ts/test-ts-mapped-type5.ts index d6bf102d29..1a66dcaa8d 100644 --- a/ets2panda/test/ast/parser/ts/test-ts-mapped-type5.ts +++ b/ets2panda/test/ast/parser/ts/test-ts-mapped-type5.ts @@ -15,4 +15,5 @@ type Foo = { readonly [prop in keyof T]+/* @@ label */-? }; -/* @@@ label Error SyntaxError: '?' expected. */ + +/* @@@ label Error Syntax error ESY0000: '?' expected. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-ts-mapped-type6.ts b/ets2panda/test/ast/parser/ts/test-ts-mapped-type6.ts index 73ecaca55e..75067cca12 100644 --- a/ets2panda/test/ast/parser/ts/test-ts-mapped-type6.ts +++ b/ets2panda/test/ast/parser/ts/test-ts-mapped-type6.ts @@ -15,4 +15,5 @@ type Foo = { readonly [prop in keyof T]/* @@ label */3 }; -/* @@@ label Error SyntaxError: ';' expected */ + +/* @@@ label Error Syntax error ESY0000: ';' expected */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-ts-mapped-type7.ts b/ets2panda/test/ast/parser/ts/test-ts-mapped-type7.ts index bb40875716..3599a8cd6d 100644 --- a/ets2panda/test/ast/parser/ts/test-ts-mapped-type7.ts +++ b/ets2panda/test/ast/parser/ts/test-ts-mapped-type7.ts @@ -15,4 +15,5 @@ type Foo = { readonly [prop in keyof T];/* @@ label */3 }; -/* @@@ label Error SyntaxError: '}' expected */ + +/* @@@ label Error Syntax error ESY0000: '}' expected */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-ts-parameter-property1.ts b/ets2panda/test/ast/parser/ts/test-ts-parameter-property1.ts index 11b7e20a6c..77680be6ed 100644 --- a/ets2panda/test/ast/parser/ts/test-ts-parameter-property1.ts +++ b/ets2panda/test/ast/parser/ts/test-ts-parameter-property1.ts @@ -15,4 +15,5 @@ function Foo(/* @@ label */public readonly a) { } -/* @@@ label Error SyntaxError: A parameter property is only allowed in a constructor implementation. */ + +/* @@@ label Error Syntax error ESY0000: A parameter property is only allowed in a constructor implementation. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-ts-parameter-property10.ts b/ets2panda/test/ast/parser/ts/test-ts-parameter-property10.ts index 7e3da99c0d..687b69bd8f 100644 --- a/ets2panda/test/ast/parser/ts/test-ts-parameter-property10.ts +++ b/ets2panda/test/ast/parser/ts/test-ts-parameter-property10.ts @@ -17,4 +17,5 @@ class Foo { constructor(/* @@ label */private readonly { bar } = { bar: 2 }) { }; } -/* @@@ label Error SyntaxError: A parameter property may not be declared using a binding pattern. */ + +/* @@@ label Error Syntax error ESY0000: A parameter property may not be declared using a binding pattern. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-ts-parameter-property11.ts b/ets2panda/test/ast/parser/ts/test-ts-parameter-property11.ts index 787e155e62..462fc17438 100644 --- a/ets2panda/test/ast/parser/ts/test-ts-parameter-property11.ts +++ b/ets2panda/test/ast/parser/ts/test-ts-parameter-property11.ts @@ -17,4 +17,5 @@ class Foo { constructor(/* @@ label */private readonly [bar]) { }; } -/* @@@ label Error SyntaxError: A parameter property may not be declared using a binding pattern. */ + +/* @@@ label Error Syntax error ESY0000: A parameter property may not be declared using a binding pattern. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-ts-parameter-property12.ts b/ets2panda/test/ast/parser/ts/test-ts-parameter-property12.ts index c04ef61da5..48d79fdd95 100644 --- a/ets2panda/test/ast/parser/ts/test-ts-parameter-property12.ts +++ b/ets2panda/test/ast/parser/ts/test-ts-parameter-property12.ts @@ -17,4 +17,5 @@ class Foo { constructor(/* @@ label */private readonly { bar }) { }; } -/* @@@ label Error SyntaxError: A parameter property may not be declared using a binding pattern. */ + +/* @@@ label Error Syntax error ESY0000: A parameter property may not be declared using a binding pattern. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-ts-parameter-property2.ts b/ets2panda/test/ast/parser/ts/test-ts-parameter-property2.ts index 88ff463310..5af8e64f68 100644 --- a/ets2panda/test/ast/parser/ts/test-ts-parameter-property2.ts +++ b/ets2panda/test/ast/parser/ts/test-ts-parameter-property2.ts @@ -18,4 +18,5 @@ class Foo { constructor() { }; a(/* @@ label */public a) { }; } -/* @@@ label Error SyntaxError: A parameter property is only allowed in a constructor implementation. */ + +/* @@@ label Error Syntax error ESY0000: A parameter property is only allowed in a constructor implementation. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-ts-parameter-property3.ts b/ets2panda/test/ast/parser/ts/test-ts-parameter-property3.ts index 3aa30e6259..4c54d1cd45 100644 --- a/ets2panda/test/ast/parser/ts/test-ts-parameter-property3.ts +++ b/ets2panda/test/ast/parser/ts/test-ts-parameter-property3.ts @@ -17,5 +17,6 @@ class Foo { constructor(readonly readonly readonly) { }; } -/* @@? 18:26 Error SyntaxError: Unexpected modifier. */ -/* @@? 18:26 Error SyntaxError: Duplicated modifier is not allowed. */ + +/* @@? 18:26 Error Syntax error ESY0153: Unexpected modifier. */ +/* @@? 18:26 Error Syntax error ESY0115: Duplicated modifier is not allowed. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-ts-parameter-property4.ts b/ets2panda/test/ast/parser/ts/test-ts-parameter-property4.ts index 770f3f57c2..c760186a62 100644 --- a/ets2panda/test/ast/parser/ts/test-ts-parameter-property4.ts +++ b/ets2panda/test/ast/parser/ts/test-ts-parameter-property4.ts @@ -17,4 +17,5 @@ class Foo { constructor(private /* @@ label */static readonly readonly) { }; } -/* @@@ label Error SyntaxError: 'static' modifier cannot appear on a parameter. */ + +/* @@@ label Error Syntax error ESY0232: 'static' modifier cannot appear on a parameter. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-ts-parameter-property5.ts b/ets2panda/test/ast/parser/ts/test-ts-parameter-property5.ts index 149390250b..d3ba98d114 100644 --- a/ets2panda/test/ast/parser/ts/test-ts-parameter-property5.ts +++ b/ets2panda/test/ast/parser/ts/test-ts-parameter-property5.ts @@ -17,4 +17,5 @@ class Foo { constructor(private /* @@ label */async readonly readonly) { }; } -/* @@@ label Error SyntaxError: 'async' modifier cannot appear on a parameter. */ + +/* @@@ label Error Syntax error ESY0232: 'async' modifier cannot appear on a parameter. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-ts-parameter-property6.ts b/ets2panda/test/ast/parser/ts/test-ts-parameter-property6.ts index 7f1e1e5216..03bb383d47 100644 --- a/ets2panda/test/ast/parser/ts/test-ts-parameter-property6.ts +++ b/ets2panda/test/ast/parser/ts/test-ts-parameter-property6.ts @@ -17,4 +17,5 @@ class Foo { constructor(private /* @@ label */declare readonly readonly) { }; } -/* @@@ label Error SyntaxError: 'declare' modifier cannot appear on a parameter. */ + +/* @@@ label Error Syntax error ESY0232: 'declare' modifier cannot appear on a parameter. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-ts-parameter-property7.ts b/ets2panda/test/ast/parser/ts/test-ts-parameter-property7.ts index ad1d61e322..4ae0157c1b 100644 --- a/ets2panda/test/ast/parser/ts/test-ts-parameter-property7.ts +++ b/ets2panda/test/ast/parser/ts/test-ts-parameter-property7.ts @@ -17,4 +17,5 @@ class Foo { constructor(private readonly readonly, /* @@ label */private readonly readonly) { }; } -/* @@@ label Error SyntaxError: Variable 'readonly' has already been declared. */ + +/* @@@ label Error Syntax error ESY0000: Variable 'readonly' has already been declared. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-ts-parameter-property8.ts b/ets2panda/test/ast/parser/ts/test-ts-parameter-property8.ts index 049b276d8e..41be9df91a 100644 --- a/ets2panda/test/ast/parser/ts/test-ts-parameter-property8.ts +++ b/ets2panda/test/ast/parser/ts/test-ts-parameter-property8.ts @@ -17,4 +17,5 @@ class Foo { constructor(/* @@ label */private readonly ...rest) { }; } -/* @@@ label Error SyntaxError: A parameter property cannot be declared using a rest parameter. */ + +/* @@@ label Error Syntax error ESY0000: A parameter property cannot be declared using a rest parameter. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-ts-parameter-property9.ts b/ets2panda/test/ast/parser/ts/test-ts-parameter-property9.ts index 47a2a3702a..d3f2b5bb8f 100644 --- a/ets2panda/test/ast/parser/ts/test-ts-parameter-property9.ts +++ b/ets2panda/test/ast/parser/ts/test-ts-parameter-property9.ts @@ -17,4 +17,5 @@ class Foo { constructor(/* @@ label */private readonly [bar] = [2]) { }; } -/* @@@ label Error SyntaxError: A parameter property may not be declared using a binding pattern. */ + +/* @@@ label Error Syntax error ESY0000: A parameter property may not be declared using a binding pattern. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-ts-type-predicate2.ts b/ets2panda/test/ast/parser/ts/test-ts-type-predicate2.ts index bbefc72aa7..7c6efc21d4 100644 --- a/ets2panda/test/ast/parser/ts/test-ts-type-predicate2.ts +++ b/ets2panda/test/ast/parser/ts/test-ts-type-predicate2.ts @@ -15,4 +15,5 @@ var var1: (is: number | string) => asserts is/* @@ label */; -/* @@@ label Error SyntaxError: Type expected */ + +/* @@@ label Error Syntax error ESY0000: Type expected */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-ts-type-predicate3.ts b/ets2panda/test/ast/parser/ts/test-ts-type-predicate3.ts index e64ab6ac44..cbe0aba288 100644 --- a/ets2panda/test/ast/parser/ts/test-ts-type-predicate3.ts +++ b/ets2panda/test/ast/parser/ts/test-ts-type-predicate3.ts @@ -16,5 +16,6 @@ function function1(is: number | string): asserts is is number /* @@ label */{ /* @@ label1 */return }; -/* @@@ label Error SyntaxError: Unexpected token '{'. */ -/* @@@ label1 Error SyntaxError: return keyword should be used in function body. */ + +/* @@@ label Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@@ label1 Error Syntax error ESY0163: return keyword should be used in function body. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-ts-type-predicate4.ts b/ets2panda/test/ast/parser/ts/test-ts-type-predicate4.ts index fb523ea53a..7ce338850d 100644 --- a/ets2panda/test/ast/parser/ts/test-ts-type-predicate4.ts +++ b/ets2panda/test/ast/parser/ts/test-ts-type-predicate4.ts @@ -15,4 +15,5 @@ var var1: (is: number | string) => asserts is is /* @@ label */number; -/* @@@ label Error SyntaxError: Unexpected token 'number'. */ + +/* @@@ label Error Syntax error ESY0227: Unexpected token 'number'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-ts-type-predicate5.ts b/ets2panda/test/ast/parser/ts/test-ts-type-predicate5.ts index 90738ed82a..852db4626c 100644 --- a/ets2panda/test/ast/parser/ts/test-ts-type-predicate5.ts +++ b/ets2panda/test/ast/parser/ts/test-ts-type-predicate5.ts @@ -16,5 +16,6 @@ function function1(is: number | string): asserts (number | string) /* @@ label */{ /* @@ label1 */return }; -/* @@@ label Error SyntaxError: Unexpected token '{'. */ -/* @@@ label1 Error SyntaxError: return keyword should be used in function body. */ + +/* @@@ label Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@@ label1 Error Syntax error ESY0163: return keyword should be used in function body. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-ts-type-predicate6.ts b/ets2panda/test/ast/parser/ts/test-ts-type-predicate6.ts index 203bb87d07..633c7050df 100644 --- a/ets2panda/test/ast/parser/ts/test-ts-type-predicate6.ts +++ b/ets2panda/test/ast/parser/ts/test-ts-type-predicate6.ts @@ -16,4 +16,5 @@ var var1: (is: number | string) => asserts /* @@ label */(number | string); -/* @@@ label Error SyntaxError: Unexpected token '('. */ + +/* @@@ label Error Syntax error ESY0227: Unexpected token '('. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-ts-type-predicate7.ts b/ets2panda/test/ast/parser/ts/test-ts-type-predicate7.ts index 57bdabda58..d6499d75a7 100644 --- a/ets2panda/test/ast/parser/ts/test-ts-type-predicate7.ts +++ b/ets2panda/test/ast/parser/ts/test-ts-type-predicate7.ts @@ -16,6 +16,7 @@ function function1(is: number | string): (number | string) is /* @@ label */number /* @@ label1 */{ /* @@ label2 */return }; -/* @@@ label Error SyntaxError: Unexpected token 'number'. */ -/* @@@ label1 Error SyntaxError: Unexpected token '{'. */ -/* @@@ label2 Error SyntaxError: return keyword should be used in function body. */ + +/* @@@ label Error Syntax error ESY0227: Unexpected token 'number'. */ +/* @@@ label1 Error Syntax error ESY0227: Unexpected token '{'. */ +/* @@@ label2 Error Syntax error ESY0163: return keyword should be used in function body. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-ts-type-predicate8.ts b/ets2panda/test/ast/parser/ts/test-ts-type-predicate8.ts index e85d136f33..04adf8cc8e 100644 --- a/ets2panda/test/ast/parser/ts/test-ts-type-predicate8.ts +++ b/ets2panda/test/ast/parser/ts/test-ts-type-predicate8.ts @@ -16,5 +16,6 @@ var var1: (is: number | string) => (number | string) /* @@ label */is /* @@ label1 */number; -/* @@@ label Error SyntaxError: Unexpected token 'is'. */ -/* @@@ label1 Error SyntaxError: Unexpected token 'number'. */ + +/* @@@ label Error Syntax error ESY0227: Unexpected token 'is'. */ +/* @@@ label1 Error Syntax error ESY0227: Unexpected token 'number'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-tuple-type1.ts b/ets2panda/test/ast/parser/ts/test-tuple-type1.ts index 65623f6e6f..19fd4cf232 100644 --- a/ets2panda/test/ast/parser/ts/test-tuple-type1.ts +++ b/ets2panda/test/ast/parser/ts/test-tuple-type1.ts @@ -15,4 +15,5 @@ var a: [a: number /* @@ label */string] -/* @@@ label Error SyntaxError: ',' expected. */ + +/* @@@ label Error Syntax error ESY0000: ',' expected. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-tuple-type2.ts b/ets2panda/test/ast/parser/ts/test-tuple-type2.ts index a35f749744..e6faf2631d 100644 --- a/ets2panda/test/ast/parser/ts/test-tuple-type2.ts +++ b/ets2panda/test/ast/parser/ts/test-tuple-type2.ts @@ -15,4 +15,5 @@ var a: [number, /* @@ label */a: string] -/* @@@ label Error SyntaxError: Tuple members must all have names or all not have names */ + +/* @@@ label Error Syntax error ESY0000: Tuple members must all have names or all not have names */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-tuple-type3.ts b/ets2panda/test/ast/parser/ts/test-tuple-type3.ts index 50d373ad43..8f6464eec1 100644 --- a/ets2panda/test/ast/parser/ts/test-tuple-type3.ts +++ b/ets2panda/test/ast/parser/ts/test-tuple-type3.ts @@ -15,4 +15,5 @@ var a: [/* @@ label */?number] -/* @@@ label Error SyntaxError: Type expected */ + +/* @@@ label Error Syntax error ESY0000: Type expected */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-tuple-type4.ts b/ets2panda/test/ast/parser/ts/test-tuple-type4.ts index 96b803c26c..6f436d0187 100644 --- a/ets2panda/test/ast/parser/ts/test-tuple-type4.ts +++ b/ets2panda/test/ast/parser/ts/test-tuple-type4.ts @@ -15,4 +15,5 @@ var a: [a?: number, b/* @@ label */: string] -/* @@@ label Error SyntaxError: A required element cannot follow an optional element */ + +/* @@@ label Error Syntax error ESY0000: A required element cannot follow an optional element */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-type-alias1.ts b/ets2panda/test/ast/parser/ts/test-type-alias1.ts index 56857f2956..3cfbc173f7 100644 --- a/ets2panda/test/ast/parser/ts/test-type-alias1.ts +++ b/ets2panda/test/ast/parser/ts/test-type-alias1.ts @@ -15,4 +15,5 @@ type /* @@ label */5 = number; -/* @@@ label Error SyntaxError: Identifier expected */ + +/* @@@ label Error Syntax error ESY0000: Identifier expected */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-type-alias2.ts b/ets2panda/test/ast/parser/ts/test-type-alias2.ts index 29a44170b2..fd610f218d 100644 --- a/ets2panda/test/ast/parser/ts/test-type-alias2.ts +++ b/ets2panda/test/ast/parser/ts/test-type-alias2.ts @@ -15,4 +15,5 @@ type bar /* @@ label */number; -/* @@@ label Error SyntaxError: '=' expected */ + +/* @@@ label Error Syntax error ESY0000: '=' expected */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-type-alias3.ts b/ets2panda/test/ast/parser/ts/test-type-alias3.ts index 58b78a4eda..8f2bb23154 100644 --- a/ets2panda/test/ast/parser/ts/test-type-alias3.ts +++ b/ets2panda/test/ast/parser/ts/test-type-alias3.ts @@ -15,4 +15,5 @@ type foo = /* @@ label */; -/* @@@ label Error SyntaxError: Type expected */ + +/* @@@ label Error Syntax error ESY0000: Type expected */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-type-literal1.ts b/ets2panda/test/ast/parser/ts/test-type-literal1.ts index b89c916aef..cd7e1dfd2b 100644 --- a/ets2panda/test/ast/parser/ts/test-type-literal1.ts +++ b/ets2panda/test/ast/parser/ts/test-type-literal1.ts @@ -15,4 +15,5 @@ var a: { [a /* @@ label */} -/* @@@ label Error SyntaxError: Unexpected token, expected ']' */ + +/* @@@ label Error Syntax error ESY0000: Unexpected token, expected ']' */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-type-literal2.ts b/ets2panda/test/ast/parser/ts/test-type-literal2.ts index c34c624295..df169b587c 100644 --- a/ets2panda/test/ast/parser/ts/test-type-literal2.ts +++ b/ets2panda/test/ast/parser/ts/test-type-literal2.ts @@ -16,5 +16,6 @@ var a: { new a()} -/* @@? 17:14 Error SyntaxError: Unexpected token, expected ','. */ -/* @@? 17:14 Error SyntaxError: Unexpected token in property key */ + +/* @@? 17:14 Error Syntax error ESY0000: Unexpected token in property key */ +/* @@? 17:14 Error Syntax error ESY0228: Unexpected token, expected ','. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-type-literal3.ts b/ets2panda/test/ast/parser/ts/test-type-literal3.ts index 67cb855452..da0845587d 100644 --- a/ets2panda/test/ast/parser/ts/test-type-literal3.ts +++ b/ets2panda/test/ast/parser/ts/test-type-literal3.ts @@ -15,4 +15,5 @@ var a: { a /* @@ label */new ()} -/* @@@ label Error SyntaxError: Unexpected token, expected ','. */ + +/* @@@ label Error Syntax error ESY0228: Unexpected token, expected ','. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-type-query1.ts b/ets2panda/test/ast/parser/ts/test-type-query1.ts index 4c318a3be3..24325b50ba 100644 --- a/ets2panda/test/ast/parser/ts/test-type-query1.ts +++ b/ets2panda/test/ast/parser/ts/test-type-query1.ts @@ -15,4 +15,5 @@ var a: typeof /* @@ label */5; -/* @@@ label Error SyntaxError: Identifier expected. */ + +/* @@@ label Error Syntax error ESY0000: Identifier expected. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test-type-query2.ts b/ets2panda/test/ast/parser/ts/test-type-query2.ts index 0d818a460f..1ebed45c15 100644 --- a/ets2panda/test/ast/parser/ts/test-type-query2.ts +++ b/ets2panda/test/ast/parser/ts/test-type-query2.ts @@ -15,5 +15,5 @@ var a: typeof -/* @@@ label Error SyntaxError: Identifier expected. */ -/* @@ label */ \ No newline at end of file + +/* @@ label *//* @@? 19:79 Error Syntax error ESY0000: Identifier expected. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test_class_constructor.ts b/ets2panda/test/ast/parser/ts/test_class_constructor.ts index d525f7e842..8dbdd8a202 100644 --- a/ets2panda/test/ast/parser/ts/test_class_constructor.ts +++ b/ets2panda/test/ast/parser/ts/test_class_constructor.ts @@ -17,4 +17,5 @@ class MyClass { /* @@ label */"constructor" = 42; } -/* @@@ label Error SyntaxError: Classes may not have a field named 'constructor'. */ + +/* @@@ label Error Syntax error ESY0144: Classes may not have a field named 'constructor'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test_decorator1.ts b/ets2panda/test/ast/parser/ts/test_decorator1.ts index b9f36f8cb8..db65aca8c0 100644 --- a/ets2panda/test/ast/parser/ts/test_decorator1.ts +++ b/ets2panda/test/ast/parser/ts/test_decorator1.ts @@ -15,4 +15,5 @@ function foo(/* @@ label */@dec a) { }; -/* @@@ label Error SyntaxError: Decorators are not valid here */ + +/* @@@ label Error Syntax error ESY0000: Decorators are not valid here */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test_decorator2.ts b/ets2panda/test/ast/parser/ts/test_decorator2.ts index 529242eebe..7c76191d9a 100644 --- a/ets2panda/test/ast/parser/ts/test_decorator2.ts +++ b/ets2panda/test/ast/parser/ts/test_decorator2.ts @@ -18,4 +18,5 @@ class Foo { } -/* @@@ label Error SyntaxError: Decorators are not valid here */ + +/* @@@ label Error Syntax error ESY0000: Decorators are not valid here */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test_decorator4.ts b/ets2panda/test/ast/parser/ts/test_decorator4.ts index 8f9f96b6bd..3b1af4c220 100644 --- a/ets2panda/test/ast/parser/ts/test_decorator4.ts +++ b/ets2panda/test/ast/parser/ts/test_decorator4.ts @@ -17,4 +17,5 @@ class Foo { /* @@ label */@dec a(); } -/* @@@ label Error SyntaxError: A decorator can only decorate a method implementation, not an overload. */ + +/* @@@ label Error Syntax error ESY0000: A decorator can only decorate a method implementation, not an overload. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test_decorator5.ts b/ets2panda/test/ast/parser/ts/test_decorator5.ts index c03cf07a95..00bdf5f342 100644 --- a/ets2panda/test/ast/parser/ts/test_decorator5.ts +++ b/ets2panda/test/ast/parser/ts/test_decorator5.ts @@ -17,4 +17,5 @@ class Foo { /* @@ label */@dec constructor() { }; } -/* @@@ label Error SyntaxError: Decorators are not valid here. */ + +/* @@@ label Error Syntax error ESY0183: Decorators are not valid here. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test_decorator6.ts b/ets2panda/test/ast/parser/ts/test_decorator6.ts index 05ca31aae0..48dc445b68 100644 --- a/ets2panda/test/ast/parser/ts/test_decorator6.ts +++ b/ets2panda/test/ast/parser/ts/test_decorator6.ts @@ -18,5 +18,6 @@ class Foo { /* @@ label */@dec [a: number]: /* @@ label1 */string; } -/* @@@ label Error SyntaxError: Decorators are not valid here. */ -/* @@@ label1 Error SyntaxError: An index signature must have a type annotation */ + +/* @@@ label1 Error Syntax error ESY0000: An index signature must have a type annotation */ +/* @@@ label Error Syntax error ESY0183: Decorators are not valid here. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test_decorator7.ts b/ets2panda/test/ast/parser/ts/test_decorator7.ts index 46fab91f86..f783f22d76 100644 --- a/ets2panda/test/ast/parser/ts/test_decorator7.ts +++ b/ets2panda/test/ast/parser/ts/test_decorator7.ts @@ -17,4 +17,5 @@ /* @@ label */@bar export default function foo() { } -/* @@@ label Error SyntaxError: Decorators are not valid here */ + +/* @@@ label Error Syntax error ESY0000: Decorators are not valid here */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test_decorator8.ts b/ets2panda/test/ast/parser/ts/test_decorator8.ts index 5b8940b432..42d2948099 100644 --- a/ets2panda/test/ast/parser/ts/test_decorator8.ts +++ b/ets2panda/test/ast/parser/ts/test_decorator8.ts @@ -17,4 +17,5 @@ /* @@ label */@bar export function foo() { } -/* @@@ label Error SyntaxError: Decorators are not valid here */ + +/* @@@ label Error Syntax error ESY0000: Decorators are not valid here */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test_generators.ts b/ets2panda/test/ast/parser/ts/test_generators.ts index 06fe8230f5..18c15c6757 100644 --- a/ets2panda/test/ast/parser/ts/test_generators.ts +++ b/ets2panda/test/ast/parser/ts/test_generators.ts @@ -18,5 +18,6 @@ a: yield 1; } -/* @@@ label Error SyntaxError: In strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement. */ -/* @@@ label Error SyntaxError: Generators can only be declared at the top level or inside a block. */ + +/* @@@ label Error Syntax error ESY0198: In strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement. */ +/* @@@ label Error Syntax error ESY0173: Generators can only be declared at the top level or inside a block. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test_insufficient_param.ts b/ets2panda/test/ast/parser/ts/test_insufficient_param.ts index 41ee6d2676..c88c32b9fd 100644 --- a/ets2panda/test/ast/parser/ts/test_insufficient_param.ts +++ b/ets2panda/test/ast/parser/ts/test_insufficient_param.ts @@ -15,4 +15,5 @@ async (()=> {}, a) /* @@ label */=> expression; -/* @@@ label Error SyntaxError: Insufficient formal parameter in arrow function. */ + +/* @@@ label Error Syntax error ESY0064: Insufficient formal parameter in arrow function. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test_invalid_left_side.ts b/ets2panda/test/ast/parser/ts/test_invalid_left_side.ts index 555dfa4bbc..288ab5139c 100644 --- a/ets2panda/test/ast/parser/ts/test_invalid_left_side.ts +++ b/ets2panda/test/ast/parser/ts/test_invalid_left_side.ts @@ -15,4 +15,5 @@ ({ a: 1 } = {})/* @@ label */; -/* @@@ label Error SyntaxError: Invalid left-hand side in assignment expression. */ + +/* @@@ label Error Syntax error ESY0072: Invalid left-hand side in assignment expression. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test_lexical_dec_not_allowed_async_function.ts b/ets2panda/test/ast/parser/ts/test_lexical_dec_not_allowed_async_function.ts index b1817950d8..7c0dd24d11 100644 --- a/ets2panda/test/ast/parser/ts/test_lexical_dec_not_allowed_async_function.ts +++ b/ets2panda/test/ast/parser/ts/test_lexical_dec_not_allowed_async_function.ts @@ -15,4 +15,5 @@ while (true) async /* @@ label */function a() { }; -/* @@@ label Error SyntaxError: Lexical declaration is not allowed in single statement context. */ + +/* @@@ label Error Syntax error ESY0175: Lexical declaration is not allowed in single statement context. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test_lexical_dec_not_allowed_class.ts b/ets2panda/test/ast/parser/ts/test_lexical_dec_not_allowed_class.ts index 823d5add6d..d91fa90f97 100644 --- a/ets2panda/test/ast/parser/ts/test_lexical_dec_not_allowed_class.ts +++ b/ets2panda/test/ast/parser/ts/test_lexical_dec_not_allowed_class.ts @@ -15,4 +15,5 @@ while (true) /* @@ label */class a { }; -/* @@@ label Error SyntaxError: Lexical declaration is not allowed in single statement context. */ + +/* @@@ label Error Syntax error ESY0175: Lexical declaration is not allowed in single statement context. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test_module1.ts b/ets2panda/test/ast/parser/ts/test_module1.ts index 7d5b5e89bd..b3d5c12a4e 100644 --- a/ets2panda/test/ast/parser/ts/test_module1.ts +++ b/ets2panda/test/ast/parser/ts/test_module1.ts @@ -17,4 +17,5 @@ declare module Foo { /* @@ label */declare var a; } -/* @@@ label Error SyntaxError: A 'declare' modifier cannot be used in an already ambient context. */ + +/* @@@ label Error Syntax error ESY0104: A 'declare' modifier cannot be used in an already ambient context. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test_module2.ts b/ets2panda/test/ast/parser/ts/test_module2.ts index 84c40c4ac3..01d9c4504b 100644 --- a/ets2panda/test/ast/parser/ts/test_module2.ts +++ b/ets2panda/test/ast/parser/ts/test_module2.ts @@ -17,4 +17,5 @@ export declare module Foo { /* @@ label */declare var a; } -/* @@@ label Error SyntaxError: A 'declare' modifier cannot be used in an already ambient context. */ + +/* @@@ label Error Syntax error ESY0104: A 'declare' modifier cannot be used in an already ambient context. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test_module3.ts b/ets2panda/test/ast/parser/ts/test_module3.ts index 3860d86a14..a89bd4b476 100644 --- a/ets2panda/test/ast/parser/ts/test_module3.ts +++ b/ets2panda/test/ast/parser/ts/test_module3.ts @@ -17,4 +17,5 @@ declare module Foo { export /* @@ label */declare var a; } -/* @@@ label Error SyntaxError: A 'declare' modifier cannot be used in an already ambient context. */ + +/* @@@ label Error Syntax error ESY0104: A 'declare' modifier cannot be used in an already ambient context. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test_module4.ts b/ets2panda/test/ast/parser/ts/test_module4.ts index 18bb793180..989d7b2189 100644 --- a/ets2panda/test/ast/parser/ts/test_module4.ts +++ b/ets2panda/test/ast/parser/ts/test_module4.ts @@ -17,4 +17,5 @@ export declare module Foo { export /* @@ label */declare var a; } -/* @@@ label Error SyntaxError: A 'declare' modifier cannot be used in an already ambient context. */ + +/* @@@ label Error Syntax error ESY0104: A 'declare' modifier cannot be used in an already ambient context. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test_module5.ts b/ets2panda/test/ast/parser/ts/test_module5.ts index 7356e6b147..095e9fd37e 100644 --- a/ets2panda/test/ast/parser/ts/test_module5.ts +++ b/ets2panda/test/ast/parser/ts/test_module5.ts @@ -17,4 +17,5 @@ declare module "foo" { import a = require(/* @@ label */bar); } -/* @@@ label Error SyntaxError: String literal expected. */ + +/* @@@ label Error Syntax error ESY0000: String literal expected. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test_module6.ts b/ets2panda/test/ast/parser/ts/test_module6.ts index 7c30c6bf5e..fa8a817b7a 100644 --- a/ets2panda/test/ast/parser/ts/test_module6.ts +++ b/ets2panda/test/ast/parser/ts/test_module6.ts @@ -17,4 +17,5 @@ declare module "foo" { import a = require("bar"/* @@ label */[0]); } -/* @@@ label Error SyntaxError: ')' expected. */ + +/* @@@ label Error Syntax error ESY0000: ')' expected. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test_rest_param_not_last.ts b/ets2panda/test/ast/parser/ts/test_rest_param_not_last.ts index 074a68340c..0d032ff3e8 100644 --- a/ets2panda/test/ast/parser/ts/test_rest_param_not_last.ts +++ b/ets2panda/test/ast/parser/ts/test_rest_param_not_last.ts @@ -14,4 +14,5 @@ */ const /* @@ label */[...rest, x] = [1, 2, 3]; -/* @@@ label Error SyntaxError: Rest parameter must be the last formal parameter. */ + +/* @@@ label Error Syntax error ESY0067: Rest parameter must be the last formal parameter. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test_restparam_id_in_dec_context.ts b/ets2panda/test/ast/parser/ts/test_restparam_id_in_dec_context.ts index 327c4c4735..25c5893fec 100644 --- a/ets2panda/test/ast/parser/ts/test_restparam_id_in_dec_context.ts +++ b/ets2panda/test/ast/parser/ts/test_restparam_id_in_dec_context.ts @@ -15,4 +15,5 @@ function f({ ...{ x } /* @@ label */}) {} -/* @@@ label Error SyntaxError: RestParameter must be followed by an identifier in declaration contexts */ + +/* @@@ label Error Syntax error ESY0156: RestParameter must be followed by an identifier in declaration contexts */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test_static_property_prototype.ts b/ets2panda/test/ast/parser/ts/test_static_property_prototype.ts index 2b09f42bf3..cb9570fdd0 100644 --- a/ets2panda/test/ast/parser/ts/test_static_property_prototype.ts +++ b/ets2panda/test/ast/parser/ts/test_static_property_prototype.ts @@ -17,4 +17,5 @@ class MyClass { static /* @@ label */prototype = {}; } -/* @@@ label Error SyntaxError: Classes may not have static property named prototype. */ + +/* @@@ label Error Syntax error ESY0155: Classes may not have static property named prototype. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test_strict_mode_func.ts b/ets2panda/test/ast/parser/ts/test_strict_mode_func.ts index 7f8e7cd258..7a6f4384ec 100644 --- a/ets2panda/test/ast/parser/ts/test_strict_mode_func.ts +++ b/ets2panda/test/ast/parser/ts/test_strict_mode_func.ts @@ -16,4 +16,5 @@ a: /* @@ label */function foo() { } -/* @@@ label Error SyntaxError: In strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement. */ + +/* @@@ label Error Syntax error ESY0198: In strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test_this_type1.ts b/ets2panda/test/ast/parser/ts/test_this_type1.ts index be642e88bc..83c00d738e 100644 --- a/ets2panda/test/ast/parser/ts/test_this_type1.ts +++ b/ets2panda/test/ast/parser/ts/test_this_type1.ts @@ -15,4 +15,5 @@ var a: /* @@ label */this; -/* @@@ label Error SyntaxError: A 'this' type is available only in a non-static member of a class or interface. */ + +/* @@@ label Error Syntax error ESY0000: A 'this' type is available only in a non-static member of a class or interface. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test_this_type2.ts b/ets2panda/test/ast/parser/ts/test_this_type2.ts index 723834f278..366b36dd63 100644 --- a/ets2panda/test/ast/parser/ts/test_this_type2.ts +++ b/ets2panda/test/ast/parser/ts/test_this_type2.ts @@ -17,4 +17,5 @@ class A { static a: number | /* @@ label */this; } -/* @@@ label Error SyntaxError: A 'this' type is available only in a non-static member of a class or interface. */ + +/* @@@ label Error Syntax error ESY0000: A 'this' type is available only in a non-static member of a class or interface. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test_unexpected_token.ts b/ets2panda/test/ast/parser/ts/test_unexpected_token.ts index a611c1c8f5..056cc50c3d 100644 --- a/ets2panda/test/ast/parser/ts/test_unexpected_token.ts +++ b/ets2panda/test/ast/parser/ts/test_unexpected_token.ts @@ -17,4 +17,5 @@ const obj = { /* @@ label */+: 1 }; -/* @@@ label Error SyntaxError: Unexpected token. */ + +/* @@@ label Error Syntax error ESY0016: Unexpected token. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/test_yield_escaped.ts b/ets2panda/test/ast/parser/ts/test_yield_escaped.ts index 32f77654e0..80f3bf13f3 100644 --- a/ets2panda/test/ast/parser/ts/test_yield_escaped.ts +++ b/ets2panda/test/ast/parser/ts/test_yield_escaped.ts @@ -18,8 +18,9 @@ function* gen() { var /* @@ label */yi\u0065ld /* @@ label1 */= 123; } -/* @@@ label Error SyntaxError: Escape sequences are not allowed in keyword. */ -/* @@@ label Error SyntaxError: Unexpected token. */ -/* @@@ label Error SyntaxError: Unexpected token 'yield'. */ -/* @@@ label Error SyntaxError: Unexpected identifier. */ -/* @@@ label1 Error SyntaxError: Unexpected token '='. */ + +/* @@@ label Error Syntax error ESY0271: Escape sequences are not allowed in keyword. */ +/* @@@ label Error Syntax error ESY0016: Unexpected token. */ +/* @@@ label Error Syntax error ESY0227: Unexpected token 'yield'. */ +/* @@@ label Error Syntax error ESY0045: Unexpected identifier. */ +/* @@@ label1 Error Syntax error ESY0227: Unexpected token '='. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/trailing_comma_1.ts b/ets2panda/test/ast/parser/ts/trailing_comma_1.ts index 9d968c5565..c18075c266 100644 --- a/ets2panda/test/ast/parser/ts/trailing_comma_1.ts +++ b/ets2panda/test/ast/parser/ts/trailing_comma_1.ts @@ -17,4 +17,5 @@ function foo(...number: int[]/* @@ label */,): int { return number[0] } -/* @@@ label Error SyntaxError: A rest parameter must be last in parameter list */ + +/* @@@ label Error Syntax error ESY0000: A rest parameter must be last in parameter list */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/trailing_comma_2.ts b/ets2panda/test/ast/parser/ts/trailing_comma_2.ts index 7eb947a903..94db357827 100644 --- a/ets2panda/test/ast/parser/ts/trailing_comma_2.ts +++ b/ets2panda/test/ast/parser/ts/trailing_comma_2.ts @@ -19,4 +19,5 @@ class C { let a = new C(12,) // OK -/* @@@ label1 Error SyntaxError: Unexpected token, expected ';'. */ + +/* @@@ label1 Error Syntax error ESY0228: Unexpected token, expected ';'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/trailing_comma_3.ts b/ets2panda/test/ast/parser/ts/trailing_comma_3.ts index c30d5c3a7b..f9048b21db 100644 --- a/ets2panda/test/ast/parser/ts/trailing_comma_3.ts +++ b/ets2panda/test/ast/parser/ts/trailing_comma_3.ts @@ -17,4 +17,5 @@ function foo3(/* @@ label */, number: int): int { return number } -/* @@@ label Error SyntaxError: Unexpected token, expected an identifier. */ + +/* @@@ label Error Syntax error ESY0000: Unexpected token, expected an identifier. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/trailing_comma_4.ts b/ets2panda/test/ast/parser/ts/trailing_comma_4.ts index 9518bba08f..f53d018f4e 100644 --- a/ets2panda/test/ast/parser/ts/trailing_comma_4.ts +++ b/ets2panda/test/ast/parser/ts/trailing_comma_4.ts @@ -27,10 +27,11 @@ foo(,a[0]) foo(a[0] a[1]) foo(,) -/* @@? 24:10 Error SyntaxError: Unexpected token ','. */ -/* @@? 25:10 Error SyntaxError: Unexpected token ','. */ -/* @@? 26:5 Error SyntaxError: Unexpected token ','. */ -/* @@? 27:10 Error SyntaxError: Unexpected token, expected ',' or ')'. */ -/* @@? 27:10 Error SyntaxError: Unexpected token 'a'. */ -/* @@? 27:14 Error SyntaxError: Unexpected token ')'. */ -/* @@? 28:5 Error SyntaxError: Unexpected token ','. */ + +/* @@? 24:10 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 25:10 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 26:5 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 27:10 Error Syntax error ESY0229: Unexpected token, expected ',' or ')'. */ +/* @@? 27:10 Error Syntax error ESY0227: Unexpected token 'a'. */ +/* @@? 27:14 Error Syntax error ESY0227: Unexpected token ')'. */ +/* @@? 28:5 Error Syntax error ESY0227: Unexpected token ','. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/unexpected_token_1.ts b/ets2panda/test/ast/parser/ts/unexpected_token_1.ts index 95d73ea9c1..e544772441 100644 --- a/ets2panda/test/ast/parser/ts/unexpected_token_1.ts +++ b/ets2panda/test/ast/parser/ts/unexpected_token_1.ts @@ -16,4 +16,5 @@ try {} catch (e: Error /* @@ label */{} finally {} -/* @@@ label Error SyntaxError: Unexpected token '{', expected ')'. */ + +/* @@@ label Error Syntax error ESY0230: Expected ')', got '{'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/unexpected_token_10.ts b/ets2panda/test/ast/parser/ts/unexpected_token_10.ts index 4c56f59de6..35f92273fd 100644 --- a/ets2panda/test/ast/parser/ts/unexpected_token_10.ts +++ b/ets2panda/test/ast/parser/ts/unexpected_token_10.ts @@ -18,4 +18,5 @@ declare namespace a /* @@ label */let a: int; } -/* @@@ label Error SyntaxError: Unexpected token, expected '{'. */ + +/* @@@ label Error Syntax error ESY0228: Unexpected token, expected '{'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/unexpected_token_11.ts b/ets2panda/test/ast/parser/ts/unexpected_token_11.ts index 7bcdfead13..1c88a398e0 100644 --- a/ets2panda/test/ast/parser/ts/unexpected_token_11.ts +++ b/ets2panda/test/ast/parser/ts/unexpected_token_11.ts @@ -19,5 +19,6 @@ class Foo { /* @@ label */constructor/* @@ label1 */?() { }; } -/* @@@ label Error SyntaxError: Classes may not have a field named 'constructor'. */ -/* @@@ label1 Error SyntaxError: Unexpected token, expected '('. */ + +/* @@@ label Error Syntax error ESY0144: Classes may not have a field named 'constructor'. */ +/* @@@ label1 Error Syntax error ESY0228: Unexpected token, expected '('. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/unexpected_token_12.ts b/ets2panda/test/ast/parser/ts/unexpected_token_12.ts index 3f98921b89..f53d965da7 100644 --- a/ets2panda/test/ast/parser/ts/unexpected_token_12.ts +++ b/ets2panda/test/ast/parser/ts/unexpected_token_12.ts @@ -17,8 +17,5 @@ class Foo { bar! = Int } -/* @@? 17:8 Error SyntaxError: Unexpected token, expected ';'. */ -/* @@? 1:1 Node { - "type": "Program" -} */ -/* @@? 17:8 Error SyntaxError: Unexpected token, expected ';'. */ + +/* @@? 17:8 Error Syntax error ESY0228: Unexpected token, expected ';'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/unexpected_token_13.ts b/ets2panda/test/ast/parser/ts/unexpected_token_13.ts index a0326ee542..3dd6bffea1 100644 --- a/ets2panda/test/ast/parser/ts/unexpected_token_13.ts +++ b/ets2panda/test/ast/parser/ts/unexpected_token_13.ts @@ -17,8 +17,5 @@ function printMagicIndex(arr) { console.log(arr?.[42}); } -/* @@? 17:23 Error SyntaxError: Unexpected token, expected ']'. */ -/* @@? 1:1 Node { - "type": "Program" -} */ -/* @@? 17:23 Error SyntaxError: Unexpected token, expected ']'. */ + +/* @@? 17:23 Error Syntax error ESY0228: Unexpected token, expected ']'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/unexpected_token_14.ts b/ets2panda/test/ast/parser/ts/unexpected_token_14.ts index 781564443d..fb5ac660e4 100644 --- a/ets2panda/test/ast/parser/ts/unexpected_token_14.ts +++ b/ets2panda/test/ast/parser/ts/unexpected_token_14.ts @@ -16,7 +16,7 @@ export { a as 6, c} from "foo" -/* @@? 16:15 Error SyntaxError: Unexpected token, expected an identifier. */ + /* @@? 1:1 Node { "type": "Program" -} */ \ No newline at end of file +} *//* @@? 16:15 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/unexpected_token_15.ts b/ets2panda/test/ast/parser/ts/unexpected_token_15.ts index dcc9d19089..48aef48a81 100644 --- a/ets2panda/test/ast/parser/ts/unexpected_token_15.ts +++ b/ets2panda/test/ast/parser/ts/unexpected_token_15.ts @@ -15,7 +15,8 @@ declare module "foo" -/* @@? 22:1 Error SyntaxError: Unexpected token, expected ';'. */ + /* @@? 1:1 Node { "type": "Program" } */ +/* @@? 22:76 Error Syntax error ESY0228: Unexpected token, expected ';'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/unexpected_token_16.ts b/ets2panda/test/ast/parser/ts/unexpected_token_16.ts index 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..a8434db83b 100644 --- a/ets2panda/test/ast/parser/ts/unexpected_token_17.ts +++ b/ets2panda/test/ast/parser/ts/unexpected_token_17.ts @@ -18,10 +18,11 @@ abstract /* @@ label */foo/* @@ label1 */(1 /* @@ label2 */> 0/* @@ label3 */) / } -/* @@@ label Error SyntaxError: Abstract methods can only appear within an abstract class. */ -/* @@@ label1 Error SyntaxError: Expected '{', got '('. */ -/* @@@ label2 Error SyntaxError: Unexpected token, expected ';'. */ -/* @@@ label3 Error SyntaxError: Unexpected token, expected ';'. */ -/* @@@ label4 Error SyntaxError: Unexpected token. */ -/* @@@ label5 Error SyntaxError: Unexpected token, expected ';'. */ -/* @@@ label6 Error SyntaxError: Unexpected token, expected an identifier. */ + +/* @@@ label6 Error Syntax error ESY0000: Unexpected token, expected an identifier. */ +/* @@@ label Error Syntax error ESY0184: Abstract methods can only appear within an abstract class. */ +/* @@@ label1 Error Syntax error ESY0230: Expected '{', got '('. */ +/* @@@ label2 Error Syntax error ESY0228: Unexpected token, expected ';'. */ +/* @@@ label3 Error Syntax error ESY0228: Unexpected token, expected ';'. */ +/* @@@ label4 Error Syntax error ESY0016: Unexpected token. */ +/* @@@ label5 Error Syntax error ESY0228: Unexpected token, expected ';'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/unexpected_token_2.ts b/ets2panda/test/ast/parser/ts/unexpected_token_2.ts index 31b139aadf..261dbcb72e 100644 --- a/ets2panda/test/ast/parser/ts/unexpected_token_2.ts +++ b/ets2panda/test/ast/parser/ts/unexpected_token_2.ts @@ -16,4 +16,5 @@ try {} catch (e: Error) {} finally /* @@ label */} -/* @@@ label Error SyntaxError: Expected '{', got '}'. */ + +/* @@@ label Error Syntax error ESY0230: Expected '{', got '}'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/unexpected_token_3.ts b/ets2panda/test/ast/parser/ts/unexpected_token_3.ts index f16aadec69..a4de39527d 100644 --- a/ets2panda/test/ast/parser/ts/unexpected_token_3.ts +++ b/ets2panda/test/ast/parser/ts/unexpected_token_3.ts @@ -16,8 +16,5 @@ function 8274() -/* @@? 17:10 Error SyntaxError: Unexpected token, expected function identifier. */ -/* @@? 1:1 Node { - "type": "Program" -} */ -/* @@? 17:10 Error SyntaxError: Unexpected token, expected function identifier. */ + +/* @@? 17:10 Error Syntax error ESY0147: Unexpected token, expected function identifier. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/unexpected_token_4.ts b/ets2panda/test/ast/parser/ts/unexpected_token_4.ts index 8fc4d10d94..40bbf12504 100644 --- a/ets2panda/test/ast/parser/ts/unexpected_token_4.ts +++ b/ets2panda/test/ast/parser/ts/unexpected_token_4.ts @@ -16,9 +16,10 @@ import {^7foo} from "." -/* @@? 17:9 Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@? 17:10 Error SyntaxError: Unexpected token, expected ',' or '}'. */ -/* @@? 17:10 Error SyntaxError: Unexpected token, expected 'from'. */ -/* @@? 17:11 Error SyntaxError: Unexpected token, expected string literal. */ -/* @@? 17:14 Error SyntaxError: Unexpected token '}'. */ -/* @@? 17:21 Error SyntaxError: Unexpected token '.'. */ + +/* @@? 17:9 Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@? 17:10 Error Syntax error ESY0229: Unexpected token, expected ',' or '}'. */ +/* @@? 17:10 Error Syntax error ESY0228: Unexpected token, expected 'from'. */ +/* @@? 17:11 Error Syntax error ESY0151: Unexpected token, expected string literal. */ +/* @@? 17:14 Error Syntax error ESY0227: Unexpected token '}'. */ +/* @@? 17:21 Error Syntax error ESY0227: Unexpected token '.'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/unexpected_token_5.ts b/ets2panda/test/ast/parser/ts/unexpected_token_5.ts index 9bba340e00..9cc2822eda 100644 --- a/ets2panda/test/ast/parser/ts/unexpected_token_5.ts +++ b/ets2panda/test/ast/parser/ts/unexpected_token_5.ts @@ -16,5 +16,6 @@ import foo -/* @@? 21:1 Error SyntaxError: Unexpected token, expected 'from'. */ -/* @@? 21:1 Error SyntaxError: Unexpected token, expected string literal. */ + +/* @@? 21:87 Error Syntax error ESY0228: Unexpected token, expected 'from'. */ +/* @@? 21:87 Error Syntax error ESY0151: Unexpected token, expected string literal. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/unexpected_token_6.ts b/ets2panda/test/ast/parser/ts/unexpected_token_6.ts index b5f57ff54a..1a30b88a5c 100644 --- a/ets2panda/test/ast/parser/ts/unexpected_token_6.ts +++ b/ets2panda/test/ast/parser/ts/unexpected_token_6.ts @@ -17,5 +17,5 @@ import foo frm from -/* @@@ label Error SyntaxError: Unexpected token, expected string literal. */ -/* @@ label */ \ No newline at end of file + +/* @@ label *//* @@? 21:102 Error Syntax error ESY0151: Unexpected token, expected string literal. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/unexpected_token_7.ts b/ets2panda/test/ast/parser/ts/unexpected_token_7.ts index d8bc503952..ab392060d8 100644 --- a/ets2panda/test/ast/parser/ts/unexpected_token_7.ts +++ b/ets2panda/test/ast/parser/ts/unexpected_token_7.ts @@ -17,7 +17,8 @@ export {hehe^, foo} -/* @@? 17:13 Error SyntaxError: Unexpected token, expected ',' or '}'. */ -/* @@? 17:13 Error SyntaxError: Unexpected token '^'. */ -/* @@? 17:14 Error SyntaxError: Unexpected token ','. */ -/* @@? 17:19 Error SyntaxError: Unexpected token '}'. */ + +/* @@? 17:13 Error Syntax error ESY0229: Unexpected token, expected ',' or '}'. */ +/* @@? 17:13 Error Syntax error ESY0227: Unexpected token '^'. */ +/* @@? 17:14 Error Syntax error ESY0227: Unexpected token ','. */ +/* @@? 17:19 Error Syntax error ESY0227: Unexpected token '}'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/unexpected_token_8.ts b/ets2panda/test/ast/parser/ts/unexpected_token_8.ts index 61db49560d..143ad2f5d3 100644 --- a/ets2panda/test/ast/parser/ts/unexpected_token_8.ts +++ b/ets2panda/test/ast/parser/ts/unexpected_token_8.ts @@ -17,6 +17,6 @@ class B {} class A extends B -/* @@@ label Error SyntaxError: Expected '{', got 'end of stream'. */ -/* @@@ label Error SyntaxError: Expected '}', got 'end of stream'. */ -/* @@ label */ \ No newline at end of file + +/* @@ label *//* @@? 22:79 Error Syntax error ESY0230: Expected '{', got 'end of stream'. */ +/* @@? 22:79 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ \ No newline at end of file diff --git a/ets2panda/test/ast/parser/ts/unexpected_token_9.ts b/ets2panda/test/ast/parser/ts/unexpected_token_9.ts index f3f09596da..eefa639ced 100644 --- a/ets2panda/test/ast/parser/ts/unexpected_token_9.ts +++ b/ets2panda/test/ast/parser/ts/unexpected_token_9.ts @@ -18,7 +18,7 @@ declare namespace /* @@ label */^/* @@ label1 */a { let a: int; } -/* @@@ label Error SyntaxError: Unexpected token, expected an identifier. */ -/* @@@ label1 Error SyntaxError: Unexpected token, expected '{'. */ -/* @@@ label2 Error SyntaxError: Expected '}', got 'end of stream'. */ -/* @@ label2 */ \ No newline at end of file + +/* @@ label2 *//* @@@ label Error Syntax error ESY0112: Unexpected token, expected an identifier. */ +/* @@@ label1 Error Syntax error ESY0228: Unexpected token, expected '{'. */ +/* @@? 24:79 Error Syntax error ESY0230: Expected '}', got 'end of stream'. */ \ No newline at end of file diff --git a/ets2panda/test/compiler/ets/ConditionalExpressionCallVoidNeg-expected.txt b/ets2panda/test/compiler/ets/ConditionalExpressionCallVoidNeg-expected.txt index 52549502c8..27d489fd02 100644 --- a/ets2panda/test/compiler/ets/ConditionalExpressionCallVoidNeg-expected.txt +++ b/ets2panda/test/compiler/ets/ConditionalExpressionCallVoidNeg-expected.txt @@ -497,4 +497,4 @@ } } } -TypeError: Cannot use type 'void' as value. [ConditionalExpressionCallVoidNeg.ets:20:17] +[ConditionalExpressionCallVoidNeg.ets:20:17] Semantic error ESE0078: Cannot use type 'void' as value. diff --git a/ets2panda/test/compiler/ets/FunctionType2-expected.txt b/ets2panda/test/compiler/ets/FunctionType2-expected.txt index bad59cb121..e2e61343fe 100644 --- a/ets2panda/test/compiler/ets/FunctionType2-expected.txt +++ b/ets2panda/test/compiler/ets/FunctionType2-expected.txt @@ -684,4 +684,4 @@ } } } -TypeError: Variable 'func' is used before being assigned. [FunctionType2.ets:23:11] +[FunctionType2.ets:23:11] Semantic error ESE0375: Variable 'func' is used before being assigned. diff --git a/ets2panda/test/compiler/ets/abstractNewClassInstanceExpression-expected.txt b/ets2panda/test/compiler/ets/abstractNewClassInstanceExpression-expected.txt index aa97c23421..021c5e1e30 100644 --- a/ets2panda/test/compiler/ets/abstractNewClassInstanceExpression-expected.txt +++ b/ets2panda/test/compiler/ets/abstractNewClassInstanceExpression-expected.txt @@ -986,10 +986,10 @@ } } } -TypeError: A is abstract therefore cannot be instantiated. [abstractNewClassInstanceExpression.ets:26:14] -SyntaxError: Unexpected token '{'. [abstractNewClassInstanceExpression.ets:26:22] -TypeError: Method foo(): void in B not overriding any method [abstractNewClassInstanceExpression.ets:27:21] -SyntaxError: Label must be followed by a loop statement. [abstractNewClassInstanceExpression.ets:32:11] -SyntaxError: Class cannot be used as object. [abstractNewClassInstanceExpression.ets:32:11] -SyntaxError: Unexpected token '{'. [abstractNewClassInstanceExpression.ets:32:23] -SyntaxError: Unexpected token '}'. [abstractNewClassInstanceExpression.ets:35:1] +[abstractNewClassInstanceExpression.ets:26:14] Semantic error ESE0052: A is abstract therefore cannot be instantiated. +[abstractNewClassInstanceExpression.ets:26:22] Syntax error ESY0227: Unexpected token '{'. +[abstractNewClassInstanceExpression.ets:27:21] Semantic error ESE0136: Method foo(): void in B not overriding any method +[abstractNewClassInstanceExpression.ets:32:11] Syntax error ESY0038: Label must be followed by a loop statement. +[abstractNewClassInstanceExpression.ets:32:11] Syntax error ESY0318: Class cannot be used as object. +[abstractNewClassInstanceExpression.ets:32:23] Syntax error ESY0227: Unexpected token '{'. +[abstractNewClassInstanceExpression.ets:35:1] Syntax error ESY0227: Unexpected token '}'. diff --git a/ets2panda/test/compiler/ets/catch-soft-keyword-expected.txt b/ets2panda/test/compiler/ets/catch-soft-keyword-expected.txt index 689d8a583f..79bcbf24af 100644 --- a/ets2panda/test/compiler/ets/catch-soft-keyword-expected.txt +++ b/ets2panda/test/compiler/ets/catch-soft-keyword-expected.txt @@ -913,4 +913,4 @@ } } } -Warning: The catch statement with type annotation is deprecated, use catch(e). [catch-soft-keyword.ets:26:19] +[catch-soft-keyword.ets:26:19] Warning W33781: The catch statement with type annotation is deprecated, use catch(e). diff --git a/ets2panda/test/compiler/ets/catchParamScope-expected.txt b/ets2panda/test/compiler/ets/catchParamScope-expected.txt index 5ef16e9c33..b02ff65889 100644 --- a/ets2panda/test/compiler/ets/catchParamScope-expected.txt +++ b/ets2panda/test/compiler/ets/catchParamScope-expected.txt @@ -719,4 +719,4 @@ } } } -Warning: The catch statement with type annotation is deprecated, use catch(e). [catchParamScope.ets:22:25] +[catchParamScope.ets:22:25] Warning W33781: The catch statement with type annotation is deprecated, use catch(e). diff --git a/ets2panda/test/compiler/ets/dynamic-equality-expected.txt b/ets2panda/test/compiler/ets/dynamic-equality-expected.txt index fecd0a6f63..ec99bfc8cb 100644 --- a/ets2panda/test/compiler/ets/dynamic-equality-expected.txt +++ b/ets2panda/test/compiler/ets/dynamic-equality-expected.txt @@ -586,6 +586,6 @@ } } } -TypeError: Cannot find import: dynamic_import_tests [dynamic-equality.ets:20:19] -TypeError: Unresolved reference A [dynamic-equality.ets:23:13] -TypeError: This expression is not callable. [dynamic-equality.ets:24:13] +[dynamic-equality.ets:20:19] Semantic error ESE0360: Cannot find import: dynamic_import_tests +[dynamic-equality.ets:23:13] Semantic error ESE0143: Unresolved reference A +[dynamic-equality.ets:24:13] Semantic error ESE0289: This expression is not callable. diff --git a/ets2panda/test/compiler/ets/dynamicJsImport-expected.txt b/ets2panda/test/compiler/ets/dynamicJsImport-expected.txt index 6758890456..716f8a1e9a 100644 --- a/ets2panda/test/compiler/ets/dynamicJsImport-expected.txt +++ b/ets2panda/test/compiler/ets/dynamicJsImport-expected.txt @@ -876,9 +876,9 @@ } } } -TypeError: Cannot find import: dynamic_import_tests [dynamicJsImport.ets:20:25] -TypeError: Cannot find import: dynamic_import_tests [dynamicJsImport.ets:21:19] -TypeError: Cannot find type 'B'. [dynamicJsImport.ets:24:12] -TypeError: Cannot find type 'B'. [dynamicJsImport.ets:24:20] -TypeError: Indexed access is not supported for such expression type. [dynamicJsImport.ets:26:13] -TypeError: This expression is not callable. [dynamicJsImport.ets:27:5] +[dynamicJsImport.ets:20:25] Semantic error ESE0360: Cannot find import: dynamic_import_tests +[dynamicJsImport.ets:21:19] Semantic error ESE0360: Cannot find import: dynamic_import_tests +[dynamicJsImport.ets:24:12] Semantic error ESE0371: Cannot find type 'B'. +[dynamicJsImport.ets:24:20] Semantic error ESE0371: Cannot find type 'B'. +[dynamicJsImport.ets:26:13] Semantic error ESE0252: Indexed access is not supported for such expression type. +[dynamicJsImport.ets:27:5] Semantic error ESE0289: This expression is not callable. diff --git a/ets2panda/test/compiler/ets/dynamicLambda-expected.txt b/ets2panda/test/compiler/ets/dynamicLambda-expected.txt index 95b5d0209e..33f216926b 100644 --- a/ets2panda/test/compiler/ets/dynamicLambda-expected.txt +++ b/ets2panda/test/compiler/ets/dynamicLambda-expected.txt @@ -957,6 +957,6 @@ } } } -TypeError: Cannot find import: dynamic_import_tests [dynamicLambda.ets:20:19] -TypeError: Cannot find type 'A'. [dynamicLambda.ets:23:17] -TypeError: This expression is not callable. [dynamicLambda.ets:25:15] +[dynamicLambda.ets:20:19] Semantic error ESE0360: Cannot find import: dynamic_import_tests +[dynamicLambda.ets:23:17] Semantic error ESE0371: Cannot find type 'A'. +[dynamicLambda.ets:25:15] Semantic error ESE0289: This expression is not callable. diff --git a/ets2panda/test/compiler/ets/dynamicLambdaJSValue-expected.txt b/ets2panda/test/compiler/ets/dynamicLambdaJSValue-expected.txt index 296165a9a9..bc57f93a04 100644 --- a/ets2panda/test/compiler/ets/dynamicLambdaJSValue-expected.txt +++ b/ets2panda/test/compiler/ets/dynamicLambdaJSValue-expected.txt @@ -1084,6 +1084,6 @@ } } } -TypeError: Cannot find import: dynamic_import_tests [dynamicLambdaJSValue.ets:20:19] -TypeError: Cannot find type 'A'. [dynamicLambdaJSValue.ets:23:17] -TypeError: Type '(x: Int, y: Int) => Int' cannot be assigned to type 'JSValue' [dynamicLambdaJSValue.ets:24:22] +[dynamicLambdaJSValue.ets:20:19] Semantic error ESE0360: Cannot find import: dynamic_import_tests +[dynamicLambdaJSValue.ets:23:17] Semantic error ESE0371: Cannot find type 'A'. +[dynamicLambdaJSValue.ets:24:22] Semantic error ESE0318: Type '(x: Int, y: Int) => Int' cannot be assigned to type 'JSValue' diff --git a/ets2panda/test/compiler/ets/dynamicLambdaJSValueCast-expected.txt b/ets2panda/test/compiler/ets/dynamicLambdaJSValueCast-expected.txt index 2a5529ec8c..b78d1694d8 100644 --- a/ets2panda/test/compiler/ets/dynamicLambdaJSValueCast-expected.txt +++ b/ets2panda/test/compiler/ets/dynamicLambdaJSValueCast-expected.txt @@ -954,5 +954,5 @@ } } } -TypeError: Type '(x: Int) => Int' cannot be assigned to type 'JSValue' [dynamicLambdaJSValueCast.ets:17:22] -TypeError: Cannot cast type 'JSValue' to '(x: Int) => Int' [dynamicLambdaJSValueCast.ets:18:31] +[dynamicLambdaJSValueCast.ets:17:22] Semantic error ESE0318: Type '(x: Int) => Int' cannot be assigned to type 'JSValue' +[dynamicLambdaJSValueCast.ets:18:31] Semantic error ESE0326: Cannot cast type 'JSValue' to '(x: Int) => Int' diff --git a/ets2panda/test/compiler/ets/dynamicObjectLiteral-expected.txt b/ets2panda/test/compiler/ets/dynamicObjectLiteral-expected.txt index decf489697..7fa0609b13 100644 --- a/ets2panda/test/compiler/ets/dynamicObjectLiteral-expected.txt +++ b/ets2panda/test/compiler/ets/dynamicObjectLiteral-expected.txt @@ -528,5 +528,5 @@ } } } -TypeError: Cannot find import: dynamic_import_tests [dynamicObjectLiteral.ets:27:19] -TypeError: Cannot find type 'A'. [dynamicObjectLiteral.ets:30:12] +[dynamicObjectLiteral.ets:27:19] Semantic error ESE0360: Cannot find import: dynamic_import_tests +[dynamicObjectLiteral.ets:30:12] Semantic error ESE0371: Cannot find type 'A'. diff --git a/ets2panda/test/compiler/ets/dynamic_call-expected.txt b/ets2panda/test/compiler/ets/dynamic_call-expected.txt index 5c70e7ec48..b94cd1a3b7 100644 --- a/ets2panda/test/compiler/ets/dynamic_call-expected.txt +++ b/ets2panda/test/compiler/ets/dynamic_call-expected.txt @@ -688,5 +688,5 @@ } } } -TypeError: Cannot find import: dynamic_import_tests [dynamic_call.ets:20:19] -TypeError: Cannot find type 'A'. [dynamic_call.ets:23:17] +[dynamic_call.ets:20:19] Semantic error ESE0360: Cannot find import: dynamic_import_tests +[dynamic_call.ets:23:17] Semantic error ESE0371: Cannot find type 'A'. diff --git a/ets2panda/test/compiler/ets/dynamic_instanceof_error-expected.txt b/ets2panda/test/compiler/ets/dynamic_instanceof_error-expected.txt index 35066bc751..db2bbbddaf 100644 --- a/ets2panda/test/compiler/ets/dynamic_instanceof_error-expected.txt +++ b/ets2panda/test/compiler/ets/dynamic_instanceof_error-expected.txt @@ -558,5 +558,5 @@ } } } -TypeError: Cannot find import: dynamic_import_tests [dynamic_instanceof_error.ets:20:19] -TypeError: Cannot find type 'A'. [dynamic_instanceof_error.ets:24:24] +[dynamic_instanceof_error.ets:20:19] Semantic error ESE0360: Cannot find import: dynamic_import_tests +[dynamic_instanceof_error.ets:24:24] Semantic error ESE0371: Cannot find type 'A'. diff --git a/ets2panda/test/compiler/ets/func-ref-private-expected.txt b/ets2panda/test/compiler/ets/func-ref-private-expected.txt index 366e04aca1..1a330673ac 100644 --- a/ets2panda/test/compiler/ets/func-ref-private-expected.txt +++ b/ets2panda/test/compiler/ets/func-ref-private-expected.txt @@ -948,4 +948,4 @@ } } } -TypeError: Private method is used as value [func-ref-private.ets:24:19] +[func-ref-private.ets:24:19] Semantic error ESE0306: Private method is used as value diff --git a/ets2panda/test/compiler/ets/functions_with_ambiguous_rest_parameter-expected.txt b/ets2panda/test/compiler/ets/functions_with_ambiguous_rest_parameter-expected.txt index bba7486bd0..da8663869e 100644 --- a/ets2panda/test/compiler/ets/functions_with_ambiguous_rest_parameter-expected.txt +++ b/ets2panda/test/compiler/ets/functions_with_ambiguous_rest_parameter-expected.txt @@ -780,6 +780,6 @@ } } } -TypeError: Function foo with this assembly signature already declared. [functions_with_ambiguous_rest_parameter.ets:20:1] -TypeError: Call to `foo` is ambiguous [functions_with_ambiguous_rest_parameter.ets:25:5] -TypeError: Reference to foo is ambiguous [functions_with_ambiguous_rest_parameter.ets:25:5] +[functions_with_ambiguous_rest_parameter.ets:20:1] Semantic error ESE0131: Function foo with this assembly signature already declared. +[functions_with_ambiguous_rest_parameter.ets:25:5] Semantic error ESE0129: Call to `foo` is ambiguous +[functions_with_ambiguous_rest_parameter.ets:25:5] Semantic error ESE0126: Reference to foo is ambiguous diff --git a/ets2panda/test/compiler/ets/inferTypeOfArray-expected.txt b/ets2panda/test/compiler/ets/inferTypeOfArray-expected.txt index a63f52add4..1bbd267472 100644 --- a/ets2panda/test/compiler/ets/inferTypeOfArray-expected.txt +++ b/ets2panda/test/compiler/ets/inferTypeOfArray-expected.txt @@ -803,7 +803,7 @@ } } } -TypeError: Can't resolve array type [inferTypeOfArray.ets:17:9] -TypeError: Can't resolve array type [inferTypeOfArray.ets:21:9] -TypeError: Indexed access is not supported for such expression type. [inferTypeOfArray.ets:23:1] -TypeError: Indexed access is not supported for such expression type. [inferTypeOfArray.ets:24:1] +[inferTypeOfArray.ets:17:9] Semantic error ESE0301: Can't resolve array type +[inferTypeOfArray.ets:21:9] Semantic error ESE0301: Can't resolve array type +[inferTypeOfArray.ets:23:1] Semantic error ESE0252: Indexed access is not supported for such expression type. +[inferTypeOfArray.ets:24:1] Semantic error ESE0252: Indexed access is not supported for such expression type. diff --git a/ets2panda/test/compiler/ets/instanceof_dyndecl_dynvalue-expected.txt b/ets2panda/test/compiler/ets/instanceof_dyndecl_dynvalue-expected.txt index e890829623..1db72fdee5 100644 --- a/ets2panda/test/compiler/ets/instanceof_dyndecl_dynvalue-expected.txt +++ b/ets2panda/test/compiler/ets/instanceof_dyndecl_dynvalue-expected.txt @@ -617,5 +617,5 @@ } } } -TypeError: Cannot find import: dynamic_import_tests [instanceof_dyndecl_dynvalue.ets:20:19] -TypeError: Cannot find type 'A'. [instanceof_dyndecl_dynvalue.ets:24:25] +[instanceof_dyndecl_dynvalue.ets:20:19] Semantic error ESE0360: Cannot find import: dynamic_import_tests +[instanceof_dyndecl_dynvalue.ets:24:25] Semantic error ESE0371: Cannot find type 'A'. diff --git a/ets2panda/test/compiler/ets/instanceof_dynvalue_dynvalue-expected.txt b/ets2panda/test/compiler/ets/instanceof_dynvalue_dynvalue-expected.txt index 6c7b64c6b8..8aac979e54 100644 --- a/ets2panda/test/compiler/ets/instanceof_dynvalue_dynvalue-expected.txt +++ b/ets2panda/test/compiler/ets/instanceof_dynvalue_dynvalue-expected.txt @@ -584,6 +584,6 @@ } } } -TypeError: Cannot find import: dynamic_import_tests [instanceof_dynvalue_dynvalue.ets:20:22] -TypeError: Cannot find type 'B'. [instanceof_dynvalue_dynvalue.ets:22:16] -TypeError: Cannot find type 'A'. [instanceof_dynvalue_dynvalue.ets:23:25] +[instanceof_dynvalue_dynvalue.ets:20:22] Semantic error ESE0360: Cannot find import: dynamic_import_tests +[instanceof_dynvalue_dynvalue.ets:22:16] Semantic error ESE0371: Cannot find type 'B'. +[instanceof_dynvalue_dynvalue.ets:23:25] Semantic error ESE0371: Cannot find type 'A'. diff --git a/ets2panda/test/compiler/ets/instanceof_dynvalue_jsvalue-expected.txt b/ets2panda/test/compiler/ets/instanceof_dynvalue_jsvalue-expected.txt index 46eaeb81b6..0d05d86083 100644 --- a/ets2panda/test/compiler/ets/instanceof_dynvalue_jsvalue-expected.txt +++ b/ets2panda/test/compiler/ets/instanceof_dynvalue_jsvalue-expected.txt @@ -537,5 +537,5 @@ } } } -TypeError: Cannot find import: dynamic_import_tests [instanceof_dynvalue_jsvalue.ets:20:19] -TypeError: Cannot find type 'A'. [instanceof_dynvalue_jsvalue.ets:22:16] +[instanceof_dynvalue_jsvalue.ets:20:19] Semantic error ESE0360: Cannot find import: dynamic_import_tests +[instanceof_dynvalue_jsvalue.ets:22:16] Semantic error ESE0371: Cannot find type 'A'. diff --git a/ets2panda/test/compiler/ets/instanceof_etsobject_dynvalue-expected.txt b/ets2panda/test/compiler/ets/instanceof_etsobject_dynvalue-expected.txt index ae13f67544..92a9d296b2 100644 --- a/ets2panda/test/compiler/ets/instanceof_etsobject_dynvalue-expected.txt +++ b/ets2panda/test/compiler/ets/instanceof_etsobject_dynvalue-expected.txt @@ -81,157 +81,6 @@ } } }, - { - "type": "ClassDeclaration", - "definition": { - "id": { - "type": "Identifier", - "name": "B", - "loc": { - "start": { - "line": 22, - "column": 7, - "program": "instanceof_etsobject_dynvalue.ets" - }, - "end": { - "line": 22, - "column": 8, - "program": "instanceof_etsobject_dynvalue.ets" - } - } - }, - "superClass": null, - "implements": [], - "body": [ - { - "type": "MethodDefinition", - "key": { - "type": "Identifier", - "name": "constructor", - "loc": { - "start": { - "line": 22, - "column": 10, - "program": "instanceof_etsobject_dynvalue.ets" - }, - "end": { - "line": 22, - "column": 10, - "program": "instanceof_etsobject_dynvalue.ets" - } - } - }, - "kind": "constructor", - "static": false, - "optional": false, - "computed": false, - "value": { - "type": "FunctionExpression", - "function": { - "type": "ScriptFunction", - "id": { - "type": "Identifier", - "name": "constructor", - "loc": { - "start": { - "line": 22, - "column": 10, - "program": "instanceof_etsobject_dynvalue.ets" - }, - "end": { - "line": 22, - "column": 10, - "program": "instanceof_etsobject_dynvalue.ets" - } - } - }, - "generator": false, - "async": false, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "statements": [], - "loc": { - "start": { - "line": 22, - "column": 10, - "program": "instanceof_etsobject_dynvalue.ets" - }, - "end": { - "line": 22, - "column": 10, - "program": "instanceof_etsobject_dynvalue.ets" - } - } - }, - "loc": { - "start": { - "line": 22, - "column": 10, - "program": "instanceof_etsobject_dynvalue.ets" - }, - "end": { - "line": 22, - "column": 10, - "program": "instanceof_etsobject_dynvalue.ets" - } - } - }, - "loc": { - "start": { - "line": 22, - "column": 10, - "program": "instanceof_etsobject_dynvalue.ets" - }, - "end": { - "line": 22, - "column": 10, - "program": "instanceof_etsobject_dynvalue.ets" - } - } - }, - "overloads": [], - "loc": { - "start": { - "line": 1, - "column": 1, - "program": null - }, - "end": { - "line": 1, - "column": 1, - "program": null - } - } - } - ], - "loc": { - "start": { - "line": 22, - "column": 9, - "program": "instanceof_etsobject_dynvalue.ets" - }, - "end": { - "line": 24, - "column": 9, - "program": "instanceof_etsobject_dynvalue.ets" - } - } - }, - "loc": { - "start": { - "line": 22, - "column": 1, - "program": "instanceof_etsobject_dynvalue.ets" - }, - "end": { - "line": 24, - "column": 9, - "program": "instanceof_etsobject_dynvalue.ets" - } - } - }, { "type": "ClassDeclaration", "definition": { @@ -673,6 +522,157 @@ "program": "instanceof_etsobject_dynvalue.ets" } } + }, + { + "type": "ClassDeclaration", + "definition": { + "id": { + "type": "Identifier", + "name": "B", + "loc": { + "start": { + "line": 22, + "column": 7, + "program": "instanceof_etsobject_dynvalue.ets" + }, + "end": { + "line": 22, + "column": 8, + "program": "instanceof_etsobject_dynvalue.ets" + } + } + }, + "superClass": null, + "implements": [], + "body": [ + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "constructor", + "loc": { + "start": { + "line": 22, + "column": 10, + "program": "instanceof_etsobject_dynvalue.ets" + }, + "end": { + "line": 22, + "column": 10, + "program": "instanceof_etsobject_dynvalue.ets" + } + } + }, + "kind": "constructor", + "static": false, + "optional": false, + "computed": false, + "value": { + "type": "FunctionExpression", + "function": { + "type": "ScriptFunction", + "id": { + "type": "Identifier", + "name": "constructor", + "loc": { + "start": { + "line": 22, + "column": 10, + "program": "instanceof_etsobject_dynvalue.ets" + }, + "end": { + "line": 22, + "column": 10, + "program": "instanceof_etsobject_dynvalue.ets" + } + } + }, + "generator": false, + "async": false, + "expression": false, + "params": [], + "body": { + "type": "BlockStatement", + "statements": [], + "loc": { + "start": { + "line": 22, + "column": 10, + "program": "instanceof_etsobject_dynvalue.ets" + }, + "end": { + "line": 22, + "column": 10, + "program": "instanceof_etsobject_dynvalue.ets" + } + } + }, + "loc": { + "start": { + "line": 22, + "column": 10, + "program": "instanceof_etsobject_dynvalue.ets" + }, + "end": { + "line": 22, + "column": 10, + "program": "instanceof_etsobject_dynvalue.ets" + } + } + }, + "loc": { + "start": { + "line": 22, + "column": 10, + "program": "instanceof_etsobject_dynvalue.ets" + }, + "end": { + "line": 22, + "column": 10, + "program": "instanceof_etsobject_dynvalue.ets" + } + } + }, + "overloads": [], + "loc": { + "start": { + "line": 1, + "column": 1, + "program": null + }, + "end": { + "line": 1, + "column": 1, + "program": null + } + } + } + ], + "loc": { + "start": { + "line": 22, + "column": 9, + "program": "instanceof_etsobject_dynvalue.ets" + }, + "end": { + "line": 24, + "column": 9, + "program": "instanceof_etsobject_dynvalue.ets" + } + } + }, + "loc": { + "start": { + "line": 22, + "column": 1, + "program": "instanceof_etsobject_dynvalue.ets" + }, + "end": { + "line": 24, + "column": 9, + "program": "instanceof_etsobject_dynvalue.ets" + } + } } ], "loc": { @@ -688,5 +688,5 @@ } } } -TypeError: Cannot find import: dynamic_import_tests [instanceof_etsobject_dynvalue.ets:20:19] -TypeError: Cannot find type 'A'. [instanceof_etsobject_dynvalue.ets:25:25] +[instanceof_etsobject_dynvalue.ets:20:19] Semantic error ESE0360: Cannot find import: dynamic_import_tests +[instanceof_etsobject_dynvalue.ets:25:25] Semantic error ESE0371: Cannot find type 'A'. diff --git a/ets2panda/test/compiler/ets/instanceof_etsobject_jsvalue-expected.txt b/ets2panda/test/compiler/ets/instanceof_etsobject_jsvalue-expected.txt index bc4a15e5b0..9fedae54a2 100644 --- a/ets2panda/test/compiler/ets/instanceof_etsobject_jsvalue-expected.txt +++ b/ets2panda/test/compiler/ets/instanceof_etsobject_jsvalue-expected.txt @@ -1,157 +1,6 @@ { "type": "Program", "statements": [ - { - "type": "ClassDeclaration", - "definition": { - "id": { - "type": "Identifier", - "name": "A", - "loc": { - "start": { - "line": 20, - "column": 7, - "program": "instanceof_etsobject_jsvalue.ets" - }, - "end": { - "line": 20, - "column": 8, - "program": "instanceof_etsobject_jsvalue.ets" - } - } - }, - "superClass": null, - "implements": [], - "body": [ - { - "type": "MethodDefinition", - "key": { - "type": "Identifier", - "name": "constructor", - "loc": { - "start": { - "line": 20, - "column": 10, - "program": "instanceof_etsobject_jsvalue.ets" - }, - "end": { - "line": 20, - "column": 10, - "program": "instanceof_etsobject_jsvalue.ets" - } - } - }, - "kind": "constructor", - "static": false, - "optional": false, - "computed": false, - "value": { - "type": "FunctionExpression", - "function": { - "type": "ScriptFunction", - "id": { - "type": "Identifier", - "name": "constructor", - "loc": { - "start": { - "line": 20, - "column": 10, - "program": "instanceof_etsobject_jsvalue.ets" - }, - "end": { - "line": 20, - "column": 10, - "program": "instanceof_etsobject_jsvalue.ets" - } - } - }, - "generator": false, - "async": false, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "statements": [], - "loc": { - "start": { - "line": 20, - "column": 10, - "program": "instanceof_etsobject_jsvalue.ets" - }, - "end": { - "line": 20, - "column": 10, - "program": "instanceof_etsobject_jsvalue.ets" - } - } - }, - "loc": { - "start": { - "line": 20, - "column": 10, - "program": "instanceof_etsobject_jsvalue.ets" - }, - "end": { - "line": 20, - "column": 10, - "program": "instanceof_etsobject_jsvalue.ets" - } - } - }, - "loc": { - "start": { - "line": 20, - "column": 10, - "program": "instanceof_etsobject_jsvalue.ets" - }, - "end": { - "line": 20, - "column": 10, - "program": "instanceof_etsobject_jsvalue.ets" - } - } - }, - "overloads": [], - "loc": { - "start": { - "line": 1, - "column": 1, - "program": null - }, - "end": { - "line": 1, - "column": 1, - "program": null - } - } - } - ], - "loc": { - "start": { - "line": 20, - "column": 9, - "program": "instanceof_etsobject_jsvalue.ets" - }, - "end": { - "line": 22, - "column": 9, - "program": "instanceof_etsobject_jsvalue.ets" - } - } - }, - "loc": { - "start": { - "line": 20, - "column": 1, - "program": "instanceof_etsobject_jsvalue.ets" - }, - "end": { - "line": 22, - "column": 9, - "program": "instanceof_etsobject_jsvalue.ets" - } - } - }, { "type": "ClassDeclaration", "definition": { @@ -593,6 +442,157 @@ "program": "instanceof_etsobject_jsvalue.ets" } } + }, + { + "type": "ClassDeclaration", + "definition": { + "id": { + "type": "Identifier", + "name": "A", + "loc": { + "start": { + "line": 20, + "column": 7, + "program": "instanceof_etsobject_jsvalue.ets" + }, + "end": { + "line": 20, + "column": 8, + "program": "instanceof_etsobject_jsvalue.ets" + } + } + }, + "superClass": null, + "implements": [], + "body": [ + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "constructor", + "loc": { + "start": { + "line": 20, + "column": 10, + "program": "instanceof_etsobject_jsvalue.ets" + }, + "end": { + "line": 20, + "column": 10, + "program": "instanceof_etsobject_jsvalue.ets" + } + } + }, + "kind": "constructor", + "static": false, + "optional": false, + "computed": false, + "value": { + "type": "FunctionExpression", + "function": { + "type": "ScriptFunction", + "id": { + "type": "Identifier", + "name": "constructor", + "loc": { + "start": { + "line": 20, + "column": 10, + "program": "instanceof_etsobject_jsvalue.ets" + }, + "end": { + "line": 20, + "column": 10, + "program": "instanceof_etsobject_jsvalue.ets" + } + } + }, + "generator": false, + "async": false, + "expression": false, + "params": [], + "body": { + "type": "BlockStatement", + "statements": [], + "loc": { + "start": { + "line": 20, + "column": 10, + "program": "instanceof_etsobject_jsvalue.ets" + }, + "end": { + "line": 20, + "column": 10, + "program": "instanceof_etsobject_jsvalue.ets" + } + } + }, + "loc": { + "start": { + "line": 20, + "column": 10, + "program": "instanceof_etsobject_jsvalue.ets" + }, + "end": { + "line": 20, + "column": 10, + "program": "instanceof_etsobject_jsvalue.ets" + } + } + }, + "loc": { + "start": { + "line": 20, + "column": 10, + "program": "instanceof_etsobject_jsvalue.ets" + }, + "end": { + "line": 20, + "column": 10, + "program": "instanceof_etsobject_jsvalue.ets" + } + } + }, + "overloads": [], + "loc": { + "start": { + "line": 1, + "column": 1, + "program": null + }, + "end": { + "line": 1, + "column": 1, + "program": null + } + } + } + ], + "loc": { + "start": { + "line": 20, + "column": 9, + "program": "instanceof_etsobject_jsvalue.ets" + }, + "end": { + "line": 22, + "column": 9, + "program": "instanceof_etsobject_jsvalue.ets" + } + } + }, + "loc": { + "start": { + "line": 20, + "column": 1, + "program": "instanceof_etsobject_jsvalue.ets" + }, + "end": { + "line": 22, + "column": 9, + "program": "instanceof_etsobject_jsvalue.ets" + } + } } ], "loc": { diff --git a/ets2panda/test/compiler/ets/instanceof_jsvalue_dynvalue-expected.txt b/ets2panda/test/compiler/ets/instanceof_jsvalue_dynvalue-expected.txt index b0726672a7..be55cd27c0 100644 --- a/ets2panda/test/compiler/ets/instanceof_jsvalue_dynvalue-expected.txt +++ b/ets2panda/test/compiler/ets/instanceof_jsvalue_dynvalue-expected.txt @@ -537,5 +537,5 @@ } } } -TypeError: Cannot find import: dynamic_import_tests [instanceof_jsvalue_dynvalue.ets:20:19] -TypeError: Cannot find type 'A'. [instanceof_jsvalue_dynvalue.ets:23:25] +[instanceof_jsvalue_dynvalue.ets:20:19] Semantic error ESE0360: Cannot find import: dynamic_import_tests +[instanceof_jsvalue_dynvalue.ets:23:25] Semantic error ESE0371: Cannot find type 'A'. diff --git a/ets2panda/test/compiler/ets/instanceof_object_dynvalue-expected.txt b/ets2panda/test/compiler/ets/instanceof_object_dynvalue-expected.txt index 4fcde150c9..e5d6799698 100644 --- a/ets2panda/test/compiler/ets/instanceof_object_dynvalue-expected.txt +++ b/ets2panda/test/compiler/ets/instanceof_object_dynvalue-expected.txt @@ -537,5 +537,5 @@ } } } -TypeError: Cannot find import: dynamic_import_tests [instanceof_object_dynvalue.ets:20:19] -TypeError: Cannot find type 'A'. [instanceof_object_dynvalue.ets:23:25] +[instanceof_object_dynvalue.ets:20:19] Semantic error ESE0360: Cannot find import: dynamic_import_tests +[instanceof_object_dynvalue.ets:23:25] Semantic error ESE0371: Cannot find type 'A'. diff --git a/ets2panda/test/compiler/ets/instanceof_x_dyndecl-expected.txt b/ets2panda/test/compiler/ets/instanceof_x_dyndecl-expected.txt index 899f9c2a5b..f89cd36d5f 100644 --- a/ets2panda/test/compiler/ets/instanceof_x_dyndecl-expected.txt +++ b/ets2panda/test/compiler/ets/instanceof_x_dyndecl-expected.txt @@ -208,157 +208,6 @@ } } }, - { - "type": "ClassDeclaration", - "definition": { - "id": { - "type": "Identifier", - "name": "A", - "loc": { - "start": { - "line": 23, - "column": 7, - "program": "instanceof_x_dyndecl.ets" - }, - "end": { - "line": 23, - "column": 8, - "program": "instanceof_x_dyndecl.ets" - } - } - }, - "superClass": null, - "implements": [], - "body": [ - { - "type": "MethodDefinition", - "key": { - "type": "Identifier", - "name": "constructor", - "loc": { - "start": { - "line": 23, - "column": 10, - "program": "instanceof_x_dyndecl.ets" - }, - "end": { - "line": 23, - "column": 10, - "program": "instanceof_x_dyndecl.ets" - } - } - }, - "kind": "constructor", - "static": false, - "optional": false, - "computed": false, - "value": { - "type": "FunctionExpression", - "function": { - "type": "ScriptFunction", - "id": { - "type": "Identifier", - "name": "constructor", - "loc": { - "start": { - "line": 23, - "column": 10, - "program": "instanceof_x_dyndecl.ets" - }, - "end": { - "line": 23, - "column": 10, - "program": "instanceof_x_dyndecl.ets" - } - } - }, - "generator": false, - "async": false, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "statements": [], - "loc": { - "start": { - "line": 23, - "column": 10, - "program": "instanceof_x_dyndecl.ets" - }, - "end": { - "line": 23, - "column": 10, - "program": "instanceof_x_dyndecl.ets" - } - } - }, - "loc": { - "start": { - "line": 23, - "column": 10, - "program": "instanceof_x_dyndecl.ets" - }, - "end": { - "line": 23, - "column": 10, - "program": "instanceof_x_dyndecl.ets" - } - } - }, - "loc": { - "start": { - "line": 23, - "column": 10, - "program": "instanceof_x_dyndecl.ets" - }, - "end": { - "line": 23, - "column": 10, - "program": "instanceof_x_dyndecl.ets" - } - } - }, - "overloads": [], - "loc": { - "start": { - "line": 1, - "column": 1, - "program": null - }, - "end": { - "line": 1, - "column": 1, - "program": null - } - } - } - ], - "loc": { - "start": { - "line": 23, - "column": 9, - "program": "instanceof_x_dyndecl.ets" - }, - "end": { - "line": 25, - "column": 9, - "program": "instanceof_x_dyndecl.ets" - } - } - }, - "loc": { - "start": { - "line": 23, - "column": 1, - "program": "instanceof_x_dyndecl.ets" - }, - "end": { - "line": 25, - "column": 9, - "program": "instanceof_x_dyndecl.ets" - } - } - }, { "type": "ClassDeclaration", "definition": { @@ -1960,6 +1809,157 @@ "program": "instanceof_x_dyndecl.ets" } } + }, + { + "type": "ClassDeclaration", + "definition": { + "id": { + "type": "Identifier", + "name": "A", + "loc": { + "start": { + "line": 23, + "column": 7, + "program": "instanceof_x_dyndecl.ets" + }, + "end": { + "line": 23, + "column": 8, + "program": "instanceof_x_dyndecl.ets" + } + } + }, + "superClass": null, + "implements": [], + "body": [ + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "constructor", + "loc": { + "start": { + "line": 23, + "column": 10, + "program": "instanceof_x_dyndecl.ets" + }, + "end": { + "line": 23, + "column": 10, + "program": "instanceof_x_dyndecl.ets" + } + } + }, + "kind": "constructor", + "static": false, + "optional": false, + "computed": false, + "value": { + "type": "FunctionExpression", + "function": { + "type": "ScriptFunction", + "id": { + "type": "Identifier", + "name": "constructor", + "loc": { + "start": { + "line": 23, + "column": 10, + "program": "instanceof_x_dyndecl.ets" + }, + "end": { + "line": 23, + "column": 10, + "program": "instanceof_x_dyndecl.ets" + } + } + }, + "generator": false, + "async": false, + "expression": false, + "params": [], + "body": { + "type": "BlockStatement", + "statements": [], + "loc": { + "start": { + "line": 23, + "column": 10, + "program": "instanceof_x_dyndecl.ets" + }, + "end": { + "line": 23, + "column": 10, + "program": "instanceof_x_dyndecl.ets" + } + } + }, + "loc": { + "start": { + "line": 23, + "column": 10, + "program": "instanceof_x_dyndecl.ets" + }, + "end": { + "line": 23, + "column": 10, + "program": "instanceof_x_dyndecl.ets" + } + } + }, + "loc": { + "start": { + "line": 23, + "column": 10, + "program": "instanceof_x_dyndecl.ets" + }, + "end": { + "line": 23, + "column": 10, + "program": "instanceof_x_dyndecl.ets" + } + } + }, + "overloads": [], + "loc": { + "start": { + "line": 1, + "column": 1, + "program": null + }, + "end": { + "line": 1, + "column": 1, + "program": null + } + } + } + ], + "loc": { + "start": { + "line": 23, + "column": 9, + "program": "instanceof_x_dyndecl.ets" + }, + "end": { + "line": 25, + "column": 9, + "program": "instanceof_x_dyndecl.ets" + } + } + }, + "loc": { + "start": { + "line": 23, + "column": 1, + "program": "instanceof_x_dyndecl.ets" + }, + "end": { + "line": 25, + "column": 9, + "program": "instanceof_x_dyndecl.ets" + } + } } ], "loc": { @@ -1975,5 +1975,5 @@ } } } -TypeError: Cannot find import: dynamic_import_tests [instanceof_x_dyndecl.ets:20:24] -TypeError: Cannot find type 'AValue'. [instanceof_x_dyndecl.ets:37:26] +[instanceof_x_dyndecl.ets:20:24] Semantic error ESE0360: Cannot find import: dynamic_import_tests +[instanceof_x_dyndecl.ets:37:26] Semantic error ESE0371: Cannot find type 'AValue'. diff --git a/ets2panda/test/compiler/ets/instanceof_x_etstype-expected.txt b/ets2panda/test/compiler/ets/instanceof_x_etstype-expected.txt index 80a344fa7b..f85b75fc57 100644 --- a/ets2panda/test/compiler/ets/instanceof_x_etstype-expected.txt +++ b/ets2panda/test/compiler/ets/instanceof_x_etstype-expected.txt @@ -166,16 +166,16 @@ "definition": { "id": { "type": "Identifier", - "name": "A", + "name": "ETSGLOBAL", "loc": { "start": { - "line": 23, - "column": 7, + "line": 1, + "column": 1, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 23, - "column": 8, + "line": 1, + "column": 1, "program": "instanceof_x_etstype.ets" } } @@ -187,22 +187,23 @@ "type": "MethodDefinition", "key": { "type": "Identifier", - "name": "constructor", + "name": "main", "loc": { "start": { - "line": 23, - "column": 10, - "program": "instanceof_x_etstype.ets" + "line": 1, + "column": 1, + "program": null }, "end": { - "line": 23, - "column": 10, - "program": "instanceof_x_etstype.ets" + "line": 1, + "column": 1, + "program": null } } }, - "kind": "constructor", - "static": false, + "kind": "method", + "accessibility": "public", + "static": true, "optional": false, "computed": false, "value": { @@ -211,17 +212,17 @@ "type": "ScriptFunction", "id": { "type": "Identifier", - "name": "constructor", + "name": "main", "loc": { "start": { - "line": 23, - "column": 10, - "program": "instanceof_x_etstype.ets" + "line": 1, + "column": 1, + "program": null }, "end": { - "line": 23, - "column": 10, - "program": "instanceof_x_etstype.ets" + "line": 1, + "column": 1, + "program": null } } }, @@ -234,39 +235,39 @@ "statements": [], "loc": { "start": { - "line": 23, - "column": 10, + "line": 1, + "column": 1, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 23, - "column": 10, + "line": 1, + "column": 1, "program": "instanceof_x_etstype.ets" } } }, "loc": { "start": { - "line": 23, - "column": 10, + "line": 1, + "column": 1, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 23, - "column": 10, + "line": 1, + "column": 1, "program": "instanceof_x_etstype.ets" } } }, "loc": { "start": { - "line": 23, - "column": 10, + "line": 1, + "column": 1, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 23, - "column": 10, + "line": 1, + "column": 1, "program": "instanceof_x_etstype.ets" } } @@ -276,84 +277,36 @@ "start": { "line": 1, "column": 1, - "program": null + "program": "instanceof_x_etstype.ets" }, "end": { "line": 1, "column": 1, - "program": null + "program": "instanceof_x_etstype.ets" } } - } - ], - "loc": { - "start": { - "line": 23, - "column": 9, - "program": "instanceof_x_etstype.ets" }, - "end": { - "line": 24, - "column": 6, - "program": "instanceof_x_etstype.ets" - } - } - }, - "loc": { - "start": { - "line": 23, - "column": 1, - "program": "instanceof_x_etstype.ets" - }, - "end": { - "line": 24, - "column": 6, - "program": "instanceof_x_etstype.ets" - } - } - }, - { - "type": "ClassDeclaration", - "definition": { - "id": { - "type": "Identifier", - "name": "B", - "loc": { - "start": { - "line": 24, - "column": 7, - "program": "instanceof_x_etstype.ets" - }, - "end": { - "line": 24, - "column": 8, - "program": "instanceof_x_etstype.ets" - } - } - }, - "superClass": null, - "implements": [], - "body": [ { "type": "MethodDefinition", "key": { "type": "Identifier", - "name": "constructor", + "name": "fn_object", "loc": { "start": { - "line": 24, + "line": 26, "column": 10, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 24, - "column": 10, + "line": 26, + "column": 19, "program": "instanceof_x_etstype.ets" } } }, - "kind": "constructor", - "static": false, + "kind": "method", + "accessibility": "public", + "static": true, "optional": false, "computed": false, "value": { @@ -362,16 +315,16 @@ "type": "ScriptFunction", "id": { "type": "Identifier", - "name": "constructor", + "name": "fn_object", "loc": { "start": { - "line": 24, + "line": 26, "column": 10, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 24, - "column": 10, + "line": 26, + "column": 19, "program": "instanceof_x_etstype.ets" } } @@ -379,197 +332,232 @@ "generator": false, "async": false, "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "statements": [], + "params": [ + { + "type": "ETSParameterExpression", + "name": { + "type": "Identifier", + "name": "o", + "typeAnnotation": { + "type": "ETSTypeReference", + "part": { + "type": "ETSTypeReferencePart", + "name": { + "type": "Identifier", + "name": "Object", + "loc": { + "start": { + "line": 26, + "column": 23, + "program": "instanceof_x_etstype.ets" + }, + "end": { + "line": 26, + "column": 29, + "program": "instanceof_x_etstype.ets" + } + } + }, + "loc": { + "start": { + "line": 26, + "column": 23, + "program": "instanceof_x_etstype.ets" + }, + "end": { + "line": 26, + "column": 29, + "program": "instanceof_x_etstype.ets" + } + } + }, + "loc": { + "start": { + "line": 26, + "column": 23, + "program": "instanceof_x_etstype.ets" + }, + "end": { + "line": 26, + "column": 29, + "program": "instanceof_x_etstype.ets" + } + } + }, + "loc": { + "start": { + "line": 26, + "column": 20, + "program": "instanceof_x_etstype.ets" + }, + "end": { + "line": 26, + "column": 29, + "program": "instanceof_x_etstype.ets" + } + } + }, + "loc": { + "start": { + "line": 26, + "column": 20, + "program": "instanceof_x_etstype.ets" + }, + "end": { + "line": 26, + "column": 29, + "program": "instanceof_x_etstype.ets" + } + } + } + ], + "returnType": { + "type": "ETSPrimitiveType", "loc": { "start": { - "line": 24, - "column": 10, + "line": 26, + "column": 32, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 24, - "column": 10, + "line": 26, + "column": 39, "program": "instanceof_x_etstype.ets" } } }, - "loc": { - "start": { - "line": 24, - "column": 10, - "program": "instanceof_x_etstype.ets" - }, - "end": { - "line": 24, - "column": 10, - "program": "instanceof_x_etstype.ets" - } - } - }, - "loc": { - "start": { - "line": 24, - "column": 10, - "program": "instanceof_x_etstype.ets" - }, - "end": { - "line": 24, - "column": 10, - "program": "instanceof_x_etstype.ets" - } - } - }, - "overloads": [], - "loc": { - "start": { - "line": 1, - "column": 1, - "program": null - }, - "end": { - "line": 1, - "column": 1, - "program": null - } - } - } - ], - "loc": { - "start": { - "line": 24, - "column": 9, - "program": "instanceof_x_etstype.ets" - }, - "end": { - "line": 26, - "column": 9, - "program": "instanceof_x_etstype.ets" - } - } - }, - "loc": { - "start": { - "line": 24, - "column": 1, - "program": "instanceof_x_etstype.ets" - }, - "end": { - "line": 26, - "column": 9, - "program": "instanceof_x_etstype.ets" - } - } - }, - { - "type": "ClassDeclaration", - "definition": { - "id": { - "type": "Identifier", - "name": "ETSGLOBAL", - "loc": { - "start": { - "line": 1, - "column": 1, - "program": "instanceof_x_etstype.ets" - }, - "end": { - "line": 1, - "column": 1, - "program": "instanceof_x_etstype.ets" - } - } - }, - "superClass": null, - "implements": [], - "body": [ - { - "type": "MethodDefinition", - "key": { - "type": "Identifier", - "name": "main", - "loc": { - "start": { - "line": 1, - "column": 1, - "program": null - }, - "end": { - "line": 1, - "column": 1, - "program": null - } - } - }, - "kind": "method", - "accessibility": "public", - "static": true, - "optional": false, - "computed": false, - "value": { - "type": "FunctionExpression", - "function": { - "type": "ScriptFunction", - "id": { - "type": "Identifier", - "name": "main", - "loc": { - "start": { - "line": 1, - "column": 1, - "program": null - }, - "end": { - "line": 1, - "column": 1, - "program": null - } - } - }, - "generator": false, - "async": false, - "expression": false, - "params": [], "body": { "type": "BlockStatement", - "statements": [], + "statements": [ + { + "type": "ReturnStatement", + "argument": { + "type": "BinaryExpression", + "operator": "instanceof", + "left": { + "type": "Identifier", + "name": "o", + "loc": { + "start": { + "line": 27, + "column": 12, + "program": "instanceof_x_etstype.ets" + }, + "end": { + "line": 27, + "column": 13, + "program": "instanceof_x_etstype.ets" + } + } + }, + "right": { + "type": "ETSTypeReference", + "part": { + "type": "ETSTypeReferencePart", + "name": { + "type": "Identifier", + "name": "B", + "loc": { + "start": { + "line": 27, + "column": 25, + "program": "instanceof_x_etstype.ets" + }, + "end": { + "line": 27, + "column": 26, + "program": "instanceof_x_etstype.ets" + } + } + }, + "loc": { + "start": { + "line": 27, + "column": 25, + "program": "instanceof_x_etstype.ets" + }, + "end": { + "line": 27, + "column": 26, + "program": "instanceof_x_etstype.ets" + } + } + }, + "loc": { + "start": { + "line": 27, + "column": 25, + "program": "instanceof_x_etstype.ets" + }, + "end": { + "line": 27, + "column": 26, + "program": "instanceof_x_etstype.ets" + } + } + }, + "loc": { + "start": { + "line": 27, + "column": 12, + "program": "instanceof_x_etstype.ets" + }, + "end": { + "line": 27, + "column": 26, + "program": "instanceof_x_etstype.ets" + } + } + }, + "loc": { + "start": { + "line": 27, + "column": 5, + "program": "instanceof_x_etstype.ets" + }, + "end": { + "line": 27, + "column": 27, + "program": "instanceof_x_etstype.ets" + } + } + } + ], "loc": { "start": { - "line": 1, - "column": 1, + "line": 26, + "column": 40, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 1, - "column": 1, + "line": 28, + "column": 2, "program": "instanceof_x_etstype.ets" } } }, "loc": { "start": { - "line": 1, - "column": 1, + "line": 26, + "column": 10, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 1, - "column": 1, + "line": 28, + "column": 2, "program": "instanceof_x_etstype.ets" } } }, "loc": { "start": { - "line": 1, - "column": 1, + "line": 26, + "column": 10, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 1, - "column": 1, + "line": 28, + "column": 2, "program": "instanceof_x_etstype.ets" } } @@ -577,13 +565,13 @@ "overloads": [], "loc": { "start": { - "line": 1, + "line": 26, "column": 1, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 1, - "column": 1, + "line": 28, + "column": 2, "program": "instanceof_x_etstype.ets" } } @@ -592,16 +580,16 @@ "type": "MethodDefinition", "key": { "type": "Identifier", - "name": "fn_object", + "name": "fn_ets_object", "loc": { "start": { - "line": 26, + "line": 30, "column": 10, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 26, - "column": 19, + "line": 30, + "column": 23, "program": "instanceof_x_etstype.ets" } } @@ -617,16 +605,16 @@ "type": "ScriptFunction", "id": { "type": "Identifier", - "name": "fn_object", + "name": "fn_ets_object", "loc": { "start": { - "line": 26, + "line": 30, "column": 10, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 26, - "column": 19, + "line": 30, + "column": 23, "program": "instanceof_x_etstype.ets" } } @@ -646,68 +634,68 @@ "type": "ETSTypeReferencePart", "name": { "type": "Identifier", - "name": "Object", + "name": "A", "loc": { "start": { - "line": 26, - "column": 23, + "line": 30, + "column": 27, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 26, - "column": 29, + "line": 30, + "column": 28, "program": "instanceof_x_etstype.ets" } } }, "loc": { "start": { - "line": 26, - "column": 23, + "line": 30, + "column": 27, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 26, - "column": 29, + "line": 30, + "column": 28, "program": "instanceof_x_etstype.ets" } } }, "loc": { "start": { - "line": 26, - "column": 23, + "line": 30, + "column": 27, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 26, - "column": 29, + "line": 30, + "column": 28, "program": "instanceof_x_etstype.ets" } } }, "loc": { "start": { - "line": 26, - "column": 20, + "line": 30, + "column": 24, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 26, - "column": 29, + "line": 30, + "column": 28, "program": "instanceof_x_etstype.ets" } } }, "loc": { "start": { - "line": 26, - "column": 20, + "line": 30, + "column": 24, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 26, - "column": 29, + "line": 30, + "column": 28, "program": "instanceof_x_etstype.ets" } } @@ -717,13 +705,13 @@ "type": "ETSPrimitiveType", "loc": { "start": { - "line": 26, - "column": 32, + "line": 30, + "column": 31, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 26, - "column": 39, + "line": 30, + "column": 38, "program": "instanceof_x_etstype.ets" } } @@ -741,12 +729,12 @@ "name": "o", "loc": { "start": { - "line": 27, + "line": 31, "column": 12, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 27, + "line": 31, "column": 13, "program": "instanceof_x_etstype.ets" } @@ -761,12 +749,12 @@ "name": "B", "loc": { "start": { - "line": 27, + "line": 31, "column": 25, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 27, + "line": 31, "column": 26, "program": "instanceof_x_etstype.ets" } @@ -774,12 +762,12 @@ }, "loc": { "start": { - "line": 27, + "line": 31, "column": 25, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 27, + "line": 31, "column": 26, "program": "instanceof_x_etstype.ets" } @@ -787,12 +775,12 @@ }, "loc": { "start": { - "line": 27, + "line": 31, "column": 25, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 27, + "line": 31, "column": 26, "program": "instanceof_x_etstype.ets" } @@ -800,12 +788,12 @@ }, "loc": { "start": { - "line": 27, + "line": 31, "column": 12, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 27, + "line": 31, "column": 26, "program": "instanceof_x_etstype.ets" } @@ -813,12 +801,12 @@ }, "loc": { "start": { - "line": 27, + "line": 31, "column": 5, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 27, + "line": 31, "column": 27, "program": "instanceof_x_etstype.ets" } @@ -827,12 +815,12 @@ ], "loc": { "start": { - "line": 26, - "column": 40, + "line": 30, + "column": 39, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 28, + "line": 32, "column": 2, "program": "instanceof_x_etstype.ets" } @@ -840,12 +828,12 @@ }, "loc": { "start": { - "line": 26, + "line": 30, "column": 10, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 28, + "line": 32, "column": 2, "program": "instanceof_x_etstype.ets" } @@ -853,12 +841,12 @@ }, "loc": { "start": { - "line": 26, + "line": 30, "column": 10, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 28, + "line": 32, "column": 2, "program": "instanceof_x_etstype.ets" } @@ -867,12 +855,12 @@ "overloads": [], "loc": { "start": { - "line": 26, + "line": 30, "column": 1, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 28, + "line": 32, "column": 2, "program": "instanceof_x_etstype.ets" } @@ -882,16 +870,16 @@ "type": "MethodDefinition", "key": { "type": "Identifier", - "name": "fn_ets_object", + "name": "fn_jsvalue", "loc": { "start": { - "line": 30, + "line": 34, "column": 10, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 30, - "column": 23, + "line": 34, + "column": 20, "program": "instanceof_x_etstype.ets" } } @@ -907,16 +895,16 @@ "type": "ScriptFunction", "id": { "type": "Identifier", - "name": "fn_ets_object", + "name": "fn_jsvalue", "loc": { "start": { - "line": 30, + "line": 34, "column": 10, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 30, - "column": 23, + "line": 34, + "column": 20, "program": "instanceof_x_etstype.ets" } } @@ -936,68 +924,68 @@ "type": "ETSTypeReferencePart", "name": { "type": "Identifier", - "name": "A", + "name": "JSValue", "loc": { "start": { - "line": 30, - "column": 27, + "line": 34, + "column": 24, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 30, - "column": 28, + "line": 34, + "column": 31, "program": "instanceof_x_etstype.ets" } } }, "loc": { "start": { - "line": 30, - "column": 27, + "line": 34, + "column": 24, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 30, - "column": 28, + "line": 34, + "column": 31, "program": "instanceof_x_etstype.ets" } } }, "loc": { "start": { - "line": 30, - "column": 27, + "line": 34, + "column": 24, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 30, - "column": 28, + "line": 34, + "column": 31, "program": "instanceof_x_etstype.ets" } } }, "loc": { "start": { - "line": 30, - "column": 24, + "line": 34, + "column": 21, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 30, - "column": 28, + "line": 34, + "column": 31, "program": "instanceof_x_etstype.ets" } } }, "loc": { "start": { - "line": 30, - "column": 24, + "line": 34, + "column": 21, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 30, - "column": 28, + "line": 34, + "column": 31, "program": "instanceof_x_etstype.ets" } } @@ -1007,13 +995,13 @@ "type": "ETSPrimitiveType", "loc": { "start": { - "line": 30, - "column": 31, + "line": 34, + "column": 34, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 30, - "column": 38, + "line": 34, + "column": 41, "program": "instanceof_x_etstype.ets" } } @@ -1031,12 +1019,12 @@ "name": "o", "loc": { "start": { - "line": 31, + "line": 35, "column": 12, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 31, + "line": 35, "column": 13, "program": "instanceof_x_etstype.ets" } @@ -1051,12 +1039,12 @@ "name": "B", "loc": { "start": { - "line": 31, + "line": 35, "column": 25, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 31, + "line": 35, "column": 26, "program": "instanceof_x_etstype.ets" } @@ -1064,12 +1052,12 @@ }, "loc": { "start": { - "line": 31, + "line": 35, "column": 25, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 31, + "line": 35, "column": 26, "program": "instanceof_x_etstype.ets" } @@ -1077,12 +1065,12 @@ }, "loc": { "start": { - "line": 31, + "line": 35, "column": 25, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 31, + "line": 35, "column": 26, "program": "instanceof_x_etstype.ets" } @@ -1090,12 +1078,12 @@ }, "loc": { "start": { - "line": 31, + "line": 35, "column": 12, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 31, + "line": 35, "column": 26, "program": "instanceof_x_etstype.ets" } @@ -1103,12 +1091,12 @@ }, "loc": { "start": { - "line": 31, + "line": 35, "column": 5, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 31, + "line": 35, "column": 27, "program": "instanceof_x_etstype.ets" } @@ -1117,12 +1105,12 @@ ], "loc": { "start": { - "line": 30, - "column": 39, + "line": 34, + "column": 42, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 32, + "line": 36, "column": 2, "program": "instanceof_x_etstype.ets" } @@ -1130,12 +1118,12 @@ }, "loc": { "start": { - "line": 30, + "line": 34, "column": 10, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 32, + "line": 36, "column": 2, "program": "instanceof_x_etstype.ets" } @@ -1143,12 +1131,12 @@ }, "loc": { "start": { - "line": 30, + "line": 34, "column": 10, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 32, + "line": 36, "column": 2, "program": "instanceof_x_etstype.ets" } @@ -1157,12 +1145,12 @@ "overloads": [], "loc": { "start": { - "line": 30, + "line": 34, "column": 1, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 32, + "line": 36, "column": 2, "program": "instanceof_x_etstype.ets" } @@ -1172,16 +1160,16 @@ "type": "MethodDefinition", "key": { "type": "Identifier", - "name": "fn_jsvalue", + "name": "fn_dyn_value", "loc": { "start": { - "line": 34, + "line": 38, "column": 10, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 34, - "column": 20, + "line": 38, + "column": 22, "program": "instanceof_x_etstype.ets" } } @@ -1197,16 +1185,16 @@ "type": "ScriptFunction", "id": { "type": "Identifier", - "name": "fn_jsvalue", + "name": "fn_dyn_value", "loc": { "start": { - "line": 34, + "line": 38, "column": 10, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 34, - "column": 20, + "line": 38, + "column": 22, "program": "instanceof_x_etstype.ets" } } @@ -1226,68 +1214,68 @@ "type": "ETSTypeReferencePart", "name": { "type": "Identifier", - "name": "JSValue", + "name": "AValue", "loc": { "start": { - "line": 34, - "column": 24, + "line": 38, + "column": 26, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 34, - "column": 31, + "line": 38, + "column": 32, "program": "instanceof_x_etstype.ets" } } }, "loc": { "start": { - "line": 34, - "column": 24, + "line": 38, + "column": 26, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 34, - "column": 31, + "line": 38, + "column": 32, "program": "instanceof_x_etstype.ets" } } }, "loc": { "start": { - "line": 34, - "column": 24, + "line": 38, + "column": 26, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 34, - "column": 31, + "line": 38, + "column": 32, "program": "instanceof_x_etstype.ets" } } }, "loc": { "start": { - "line": 34, - "column": 21, + "line": 38, + "column": 23, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 34, - "column": 31, + "line": 38, + "column": 32, "program": "instanceof_x_etstype.ets" } } }, "loc": { "start": { - "line": 34, - "column": 21, + "line": 38, + "column": 23, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 34, - "column": 31, + "line": 38, + "column": 32, "program": "instanceof_x_etstype.ets" } } @@ -1297,13 +1285,13 @@ "type": "ETSPrimitiveType", "loc": { "start": { - "line": 34, - "column": 34, + "line": 38, + "column": 35, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 34, - "column": 41, + "line": 38, + "column": 42, "program": "instanceof_x_etstype.ets" } } @@ -1321,12 +1309,12 @@ "name": "o", "loc": { "start": { - "line": 35, + "line": 39, "column": 12, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 35, + "line": 39, "column": 13, "program": "instanceof_x_etstype.ets" } @@ -1341,12 +1329,12 @@ "name": "B", "loc": { "start": { - "line": 35, + "line": 39, "column": 25, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 35, + "line": 39, "column": 26, "program": "instanceof_x_etstype.ets" } @@ -1354,12 +1342,12 @@ }, "loc": { "start": { - "line": 35, + "line": 39, "column": 25, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 35, + "line": 39, "column": 26, "program": "instanceof_x_etstype.ets" } @@ -1367,12 +1355,12 @@ }, "loc": { "start": { - "line": 35, + "line": 39, "column": 25, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 35, + "line": 39, "column": 26, "program": "instanceof_x_etstype.ets" } @@ -1380,12 +1368,12 @@ }, "loc": { "start": { - "line": 35, + "line": 39, "column": 12, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 35, + "line": 39, "column": 26, "program": "instanceof_x_etstype.ets" } @@ -1393,12 +1381,12 @@ }, "loc": { "start": { - "line": 35, + "line": 39, "column": 5, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 35, + "line": 39, "column": 27, "program": "instanceof_x_etstype.ets" } @@ -1407,12 +1395,12 @@ ], "loc": { "start": { - "line": 34, - "column": 42, + "line": 38, + "column": 43, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 36, + "line": 40, "column": 2, "program": "instanceof_x_etstype.ets" } @@ -1420,12 +1408,12 @@ }, "loc": { "start": { - "line": 34, + "line": 38, "column": 10, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 36, + "line": 40, "column": 2, "program": "instanceof_x_etstype.ets" } @@ -1433,12 +1421,12 @@ }, "loc": { "start": { - "line": 34, + "line": 38, "column": 10, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 36, + "line": 40, "column": 2, "program": "instanceof_x_etstype.ets" } @@ -1447,12 +1435,12 @@ "overloads": [], "loc": { "start": { - "line": 34, + "line": 38, "column": 1, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 36, + "line": 40, "column": 2, "program": "instanceof_x_etstype.ets" } @@ -1462,16 +1450,16 @@ "type": "MethodDefinition", "key": { "type": "Identifier", - "name": "fn_dyn_value", + "name": "fn_dyn_decl", "loc": { "start": { - "line": 38, + "line": 42, "column": 10, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 38, - "column": 22, + "line": 42, + "column": 21, "program": "instanceof_x_etstype.ets" } } @@ -1487,16 +1475,16 @@ "type": "ScriptFunction", "id": { "type": "Identifier", - "name": "fn_dyn_value", + "name": "fn_dyn_decl", "loc": { "start": { - "line": 38, + "line": 42, "column": 10, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 38, - "column": 22, + "line": 42, + "column": 21, "program": "instanceof_x_etstype.ets" } } @@ -1516,68 +1504,68 @@ "type": "ETSTypeReferencePart", "name": { "type": "Identifier", - "name": "AValue", + "name": "ADeclared", "loc": { "start": { - "line": 38, - "column": 26, + "line": 42, + "column": 25, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 38, - "column": 32, + "line": 42, + "column": 34, "program": "instanceof_x_etstype.ets" } } }, "loc": { "start": { - "line": 38, - "column": 26, + "line": 42, + "column": 25, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 38, - "column": 32, + "line": 42, + "column": 34, "program": "instanceof_x_etstype.ets" } } }, "loc": { "start": { - "line": 38, - "column": 26, + "line": 42, + "column": 25, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 38, - "column": 32, + "line": 42, + "column": 34, "program": "instanceof_x_etstype.ets" } } }, "loc": { "start": { - "line": 38, - "column": 23, + "line": 42, + "column": 22, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 38, - "column": 32, + "line": 42, + "column": 34, "program": "instanceof_x_etstype.ets" } } }, "loc": { "start": { - "line": 38, - "column": 23, + "line": 42, + "column": 22, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 38, - "column": 32, + "line": 42, + "column": 34, "program": "instanceof_x_etstype.ets" } } @@ -1587,13 +1575,13 @@ "type": "ETSPrimitiveType", "loc": { "start": { - "line": 38, - "column": 35, + "line": 42, + "column": 37, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 38, - "column": 42, + "line": 42, + "column": 44, "program": "instanceof_x_etstype.ets" } } @@ -1611,12 +1599,12 @@ "name": "o", "loc": { "start": { - "line": 39, + "line": 43, "column": 12, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 39, + "line": 43, "column": 13, "program": "instanceof_x_etstype.ets" } @@ -1631,12 +1619,12 @@ "name": "B", "loc": { "start": { - "line": 39, + "line": 43, "column": 25, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 39, + "line": 43, "column": 26, "program": "instanceof_x_etstype.ets" } @@ -1644,12 +1632,12 @@ }, "loc": { "start": { - "line": 39, + "line": 43, "column": 25, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 39, + "line": 43, "column": 26, "program": "instanceof_x_etstype.ets" } @@ -1657,12 +1645,12 @@ }, "loc": { "start": { - "line": 39, + "line": 43, "column": 25, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 39, + "line": 43, "column": 26, "program": "instanceof_x_etstype.ets" } @@ -1670,12 +1658,12 @@ }, "loc": { "start": { - "line": 39, + "line": 43, "column": 12, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 39, + "line": 43, "column": 26, "program": "instanceof_x_etstype.ets" } @@ -1683,12 +1671,12 @@ }, "loc": { "start": { - "line": 39, + "line": 43, "column": 5, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 39, + "line": 43, "column": 27, "program": "instanceof_x_etstype.ets" } @@ -1697,12 +1685,12 @@ ], "loc": { "start": { - "line": 38, - "column": 43, + "line": 42, + "column": 45, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 40, + "line": 44, "column": 2, "program": "instanceof_x_etstype.ets" } @@ -1710,12 +1698,12 @@ }, "loc": { "start": { - "line": 38, + "line": 42, "column": 10, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 40, + "line": 44, "column": 2, "program": "instanceof_x_etstype.ets" } @@ -1723,12 +1711,12 @@ }, "loc": { "start": { - "line": 38, + "line": 42, "column": 10, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 40, + "line": 44, "column": 2, "program": "instanceof_x_etstype.ets" } @@ -1737,38 +1725,237 @@ "overloads": [], "loc": { "start": { - "line": 38, + "line": 42, "column": 1, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 40, + "line": 44, "column": 2, "program": "instanceof_x_etstype.ets" } } + } + ], + "loc": { + "start": { + "line": 1, + "column": 1, + "program": "instanceof_x_etstype.ets" + }, + "end": { + "line": 1, + "column": 1, + "program": "instanceof_x_etstype.ets" + } + } + }, + "loc": { + "start": { + "line": 1, + "column": 1, + "program": "instanceof_x_etstype.ets" + }, + "end": { + "line": 1, + "column": 1, + "program": "instanceof_x_etstype.ets" + } + } + }, + { + "type": "ClassDeclaration", + "definition": { + "id": { + "type": "Identifier", + "name": "A", + "loc": { + "start": { + "line": 23, + "column": 7, + "program": "instanceof_x_etstype.ets" + }, + "end": { + "line": 23, + "column": 8, + "program": "instanceof_x_etstype.ets" + } + } + }, + "superClass": null, + "implements": [], + "body": [ + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "constructor", + "loc": { + "start": { + "line": 23, + "column": 10, + "program": "instanceof_x_etstype.ets" + }, + "end": { + "line": 23, + "column": 10, + "program": "instanceof_x_etstype.ets" + } + } + }, + "kind": "constructor", + "static": false, + "optional": false, + "computed": false, + "value": { + "type": "FunctionExpression", + "function": { + "type": "ScriptFunction", + "id": { + "type": "Identifier", + "name": "constructor", + "loc": { + "start": { + "line": 23, + "column": 10, + "program": "instanceof_x_etstype.ets" + }, + "end": { + "line": 23, + "column": 10, + "program": "instanceof_x_etstype.ets" + } + } + }, + "generator": false, + "async": false, + "expression": false, + "params": [], + "body": { + "type": "BlockStatement", + "statements": [], + "loc": { + "start": { + "line": 23, + "column": 10, + "program": "instanceof_x_etstype.ets" + }, + "end": { + "line": 23, + "column": 10, + "program": "instanceof_x_etstype.ets" + } + } + }, + "loc": { + "start": { + "line": 23, + "column": 10, + "program": "instanceof_x_etstype.ets" + }, + "end": { + "line": 23, + "column": 10, + "program": "instanceof_x_etstype.ets" + } + } + }, + "loc": { + "start": { + "line": 23, + "column": 10, + "program": "instanceof_x_etstype.ets" + }, + "end": { + "line": 23, + "column": 10, + "program": "instanceof_x_etstype.ets" + } + } + }, + "overloads": [], + "loc": { + "start": { + "line": 1, + "column": 1, + "program": null + }, + "end": { + "line": 1, + "column": 1, + "program": null + } + } + } + ], + "loc": { + "start": { + "line": 23, + "column": 9, + "program": "instanceof_x_etstype.ets" }, + "end": { + "line": 24, + "column": 6, + "program": "instanceof_x_etstype.ets" + } + } + }, + "loc": { + "start": { + "line": 23, + "column": 1, + "program": "instanceof_x_etstype.ets" + }, + "end": { + "line": 24, + "column": 6, + "program": "instanceof_x_etstype.ets" + } + } + }, + { + "type": "ClassDeclaration", + "definition": { + "id": { + "type": "Identifier", + "name": "B", + "loc": { + "start": { + "line": 24, + "column": 7, + "program": "instanceof_x_etstype.ets" + }, + "end": { + "line": 24, + "column": 8, + "program": "instanceof_x_etstype.ets" + } + } + }, + "superClass": null, + "implements": [], + "body": [ { "type": "MethodDefinition", "key": { "type": "Identifier", - "name": "fn_dyn_decl", + "name": "constructor", "loc": { "start": { - "line": 42, + "line": 24, "column": 10, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 42, - "column": 21, + "line": 24, + "column": 10, "program": "instanceof_x_etstype.ets" } } }, - "kind": "method", - "accessibility": "public", - "static": true, + "kind": "constructor", + "static": false, "optional": false, "computed": false, "value": { @@ -1777,16 +1964,16 @@ "type": "ScriptFunction", "id": { "type": "Identifier", - "name": "fn_dyn_decl", + "name": "constructor", "loc": { "start": { - "line": 42, + "line": 24, "column": 10, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 42, - "column": 21, + "line": 24, + "column": 10, "program": "instanceof_x_etstype.ets" } } @@ -1794,232 +1981,45 @@ "generator": false, "async": false, "expression": false, - "params": [ - { - "type": "ETSParameterExpression", - "name": { - "type": "Identifier", - "name": "o", - "typeAnnotation": { - "type": "ETSTypeReference", - "part": { - "type": "ETSTypeReferencePart", - "name": { - "type": "Identifier", - "name": "ADeclared", - "loc": { - "start": { - "line": 42, - "column": 25, - "program": "instanceof_x_etstype.ets" - }, - "end": { - "line": 42, - "column": 34, - "program": "instanceof_x_etstype.ets" - } - } - }, - "loc": { - "start": { - "line": 42, - "column": 25, - "program": "instanceof_x_etstype.ets" - }, - "end": { - "line": 42, - "column": 34, - "program": "instanceof_x_etstype.ets" - } - } - }, - "loc": { - "start": { - "line": 42, - "column": 25, - "program": "instanceof_x_etstype.ets" - }, - "end": { - "line": 42, - "column": 34, - "program": "instanceof_x_etstype.ets" - } - } - }, - "loc": { - "start": { - "line": 42, - "column": 22, - "program": "instanceof_x_etstype.ets" - }, - "end": { - "line": 42, - "column": 34, - "program": "instanceof_x_etstype.ets" - } - } - }, - "loc": { - "start": { - "line": 42, - "column": 22, - "program": "instanceof_x_etstype.ets" - }, - "end": { - "line": 42, - "column": 34, - "program": "instanceof_x_etstype.ets" - } - } - } - ], - "returnType": { - "type": "ETSPrimitiveType", - "loc": { - "start": { - "line": 42, - "column": 37, - "program": "instanceof_x_etstype.ets" - }, - "end": { - "line": 42, - "column": 44, - "program": "instanceof_x_etstype.ets" - } - } - }, + "params": [], "body": { "type": "BlockStatement", - "statements": [ - { - "type": "ReturnStatement", - "argument": { - "type": "BinaryExpression", - "operator": "instanceof", - "left": { - "type": "Identifier", - "name": "o", - "loc": { - "start": { - "line": 43, - "column": 12, - "program": "instanceof_x_etstype.ets" - }, - "end": { - "line": 43, - "column": 13, - "program": "instanceof_x_etstype.ets" - } - } - }, - "right": { - "type": "ETSTypeReference", - "part": { - "type": "ETSTypeReferencePart", - "name": { - "type": "Identifier", - "name": "B", - "loc": { - "start": { - "line": 43, - "column": 25, - "program": "instanceof_x_etstype.ets" - }, - "end": { - "line": 43, - "column": 26, - "program": "instanceof_x_etstype.ets" - } - } - }, - "loc": { - "start": { - "line": 43, - "column": 25, - "program": "instanceof_x_etstype.ets" - }, - "end": { - "line": 43, - "column": 26, - "program": "instanceof_x_etstype.ets" - } - } - }, - "loc": { - "start": { - "line": 43, - "column": 25, - "program": "instanceof_x_etstype.ets" - }, - "end": { - "line": 43, - "column": 26, - "program": "instanceof_x_etstype.ets" - } - } - }, - "loc": { - "start": { - "line": 43, - "column": 12, - "program": "instanceof_x_etstype.ets" - }, - "end": { - "line": 43, - "column": 26, - "program": "instanceof_x_etstype.ets" - } - } - }, - "loc": { - "start": { - "line": 43, - "column": 5, - "program": "instanceof_x_etstype.ets" - }, - "end": { - "line": 43, - "column": 27, - "program": "instanceof_x_etstype.ets" - } - } - } - ], + "statements": [], "loc": { "start": { - "line": 42, - "column": 45, + "line": 24, + "column": 10, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 44, - "column": 2, + "line": 24, + "column": 10, "program": "instanceof_x_etstype.ets" } } }, "loc": { "start": { - "line": 42, + "line": 24, "column": 10, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 44, - "column": 2, + "line": 24, + "column": 10, "program": "instanceof_x_etstype.ets" } } }, "loc": { "start": { - "line": 42, + "line": 24, "column": 10, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 44, - "column": 2, + "line": 24, + "column": 10, "program": "instanceof_x_etstype.ets" } } @@ -2027,40 +2027,40 @@ "overloads": [], "loc": { "start": { - "line": 42, + "line": 1, "column": 1, - "program": "instanceof_x_etstype.ets" + "program": null }, "end": { - "line": 44, - "column": 2, - "program": "instanceof_x_etstype.ets" + "line": 1, + "column": 1, + "program": null } } } ], "loc": { "start": { - "line": 1, - "column": 1, + "line": 24, + "column": 9, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 1, - "column": 1, + "line": 26, + "column": 9, "program": "instanceof_x_etstype.ets" } } }, "loc": { "start": { - "line": 1, + "line": 24, "column": 1, "program": "instanceof_x_etstype.ets" }, "end": { - "line": 1, - "column": 1, + "line": 26, + "column": 9, "program": "instanceof_x_etstype.ets" } } @@ -2079,5 +2079,5 @@ } } } -TypeError: Cannot find import: dynamic_import_tests [instanceof_x_etstype.ets:20:24] -TypeError: Cannot find type 'AValue'. [instanceof_x_etstype.ets:38:26] +[instanceof_x_etstype.ets:20:24] Semantic error ESE0360: Cannot find import: dynamic_import_tests +[instanceof_x_etstype.ets:38:26] Semantic error ESE0371: Cannot find type 'AValue'. diff --git a/ets2panda/test/compiler/ets/instanceof_x_object-expected.txt b/ets2panda/test/compiler/ets/instanceof_x_object-expected.txt index 7452015f13..27550a88af 100644 --- a/ets2panda/test/compiler/ets/instanceof_x_object-expected.txt +++ b/ets2panda/test/compiler/ets/instanceof_x_object-expected.txt @@ -161,157 +161,6 @@ } } }, - { - "type": "ClassDeclaration", - "definition": { - "id": { - "type": "Identifier", - "name": "A", - "loc": { - "start": { - "line": 23, - "column": 7, - "program": "instanceof_x_object.ets" - }, - "end": { - "line": 23, - "column": 8, - "program": "instanceof_x_object.ets" - } - } - }, - "superClass": null, - "implements": [], - "body": [ - { - "type": "MethodDefinition", - "key": { - "type": "Identifier", - "name": "constructor", - "loc": { - "start": { - "line": 23, - "column": 10, - "program": "instanceof_x_object.ets" - }, - "end": { - "line": 23, - "column": 10, - "program": "instanceof_x_object.ets" - } - } - }, - "kind": "constructor", - "static": false, - "optional": false, - "computed": false, - "value": { - "type": "FunctionExpression", - "function": { - "type": "ScriptFunction", - "id": { - "type": "Identifier", - "name": "constructor", - "loc": { - "start": { - "line": 23, - "column": 10, - "program": "instanceof_x_object.ets" - }, - "end": { - "line": 23, - "column": 10, - "program": "instanceof_x_object.ets" - } - } - }, - "generator": false, - "async": false, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "statements": [], - "loc": { - "start": { - "line": 23, - "column": 10, - "program": "instanceof_x_object.ets" - }, - "end": { - "line": 23, - "column": 10, - "program": "instanceof_x_object.ets" - } - } - }, - "loc": { - "start": { - "line": 23, - "column": 10, - "program": "instanceof_x_object.ets" - }, - "end": { - "line": 23, - "column": 10, - "program": "instanceof_x_object.ets" - } - } - }, - "loc": { - "start": { - "line": 23, - "column": 10, - "program": "instanceof_x_object.ets" - }, - "end": { - "line": 23, - "column": 10, - "program": "instanceof_x_object.ets" - } - } - }, - "overloads": [], - "loc": { - "start": { - "line": 1, - "column": 1, - "program": null - }, - "end": { - "line": 1, - "column": 1, - "program": null - } - } - } - ], - "loc": { - "start": { - "line": 23, - "column": 9, - "program": "instanceof_x_object.ets" - }, - "end": { - "line": 25, - "column": 9, - "program": "instanceof_x_object.ets" - } - } - }, - "loc": { - "start": { - "line": 23, - "column": 1, - "program": "instanceof_x_object.ets" - }, - "end": { - "line": 25, - "column": 9, - "program": "instanceof_x_object.ets" - } - } - }, { "type": "ClassDeclaration", "definition": { @@ -1913,6 +1762,157 @@ "program": "instanceof_x_object.ets" } } + }, + { + "type": "ClassDeclaration", + "definition": { + "id": { + "type": "Identifier", + "name": "A", + "loc": { + "start": { + "line": 23, + "column": 7, + "program": "instanceof_x_object.ets" + }, + "end": { + "line": 23, + "column": 8, + "program": "instanceof_x_object.ets" + } + } + }, + "superClass": null, + "implements": [], + "body": [ + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "constructor", + "loc": { + "start": { + "line": 23, + "column": 10, + "program": "instanceof_x_object.ets" + }, + "end": { + "line": 23, + "column": 10, + "program": "instanceof_x_object.ets" + } + } + }, + "kind": "constructor", + "static": false, + "optional": false, + "computed": false, + "value": { + "type": "FunctionExpression", + "function": { + "type": "ScriptFunction", + "id": { + "type": "Identifier", + "name": "constructor", + "loc": { + "start": { + "line": 23, + "column": 10, + "program": "instanceof_x_object.ets" + }, + "end": { + "line": 23, + "column": 10, + "program": "instanceof_x_object.ets" + } + } + }, + "generator": false, + "async": false, + "expression": false, + "params": [], + "body": { + "type": "BlockStatement", + "statements": [], + "loc": { + "start": { + "line": 23, + "column": 10, + "program": "instanceof_x_object.ets" + }, + "end": { + "line": 23, + "column": 10, + "program": "instanceof_x_object.ets" + } + } + }, + "loc": { + "start": { + "line": 23, + "column": 10, + "program": "instanceof_x_object.ets" + }, + "end": { + "line": 23, + "column": 10, + "program": "instanceof_x_object.ets" + } + } + }, + "loc": { + "start": { + "line": 23, + "column": 10, + "program": "instanceof_x_object.ets" + }, + "end": { + "line": 23, + "column": 10, + "program": "instanceof_x_object.ets" + } + } + }, + "overloads": [], + "loc": { + "start": { + "line": 1, + "column": 1, + "program": null + }, + "end": { + "line": 1, + "column": 1, + "program": null + } + } + } + ], + "loc": { + "start": { + "line": 23, + "column": 9, + "program": "instanceof_x_object.ets" + }, + "end": { + "line": 25, + "column": 9, + "program": "instanceof_x_object.ets" + } + } + }, + "loc": { + "start": { + "line": 23, + "column": 1, + "program": "instanceof_x_object.ets" + }, + "end": { + "line": 25, + "column": 9, + "program": "instanceof_x_object.ets" + } + } } ], "loc": { @@ -1928,5 +1928,5 @@ } } } -TypeError: Cannot find import: dynamic_import_tests [instanceof_x_object.ets:20:24] -TypeError: Cannot find type 'AValue'. [instanceof_x_object.ets:37:26] +[instanceof_x_object.ets:20:24] Semantic error ESE0360: Cannot find import: dynamic_import_tests +[instanceof_x_object.ets:37:26] Semantic error ESE0371: Cannot find type 'AValue'. diff --git a/ets2panda/test/compiler/ets/requiredType_11-expected.txt b/ets2panda/test/compiler/ets/requiredType_11-expected.txt index 928d444bf5..6a916cfe06 100644 --- a/ets2panda/test/compiler/ets/requiredType_11-expected.txt +++ b/ets2panda/test/compiler/ets/requiredType_11-expected.txt @@ -1200,4 +1200,4 @@ } } } -TypeError: T in Required must be a class or an interface type. [requiredType_11.ets:21:18] +[requiredType_11.ets:21:18] Semantic error ESE124644: T in Required must be a class or an interface type. diff --git a/ets2panda/test/compiler/ets/requiredType_9-expected.txt b/ets2panda/test/compiler/ets/requiredType_9-expected.txt index 09a5ac2972..5286988a07 100644 --- a/ets2panda/test/compiler/ets/requiredType_9-expected.txt +++ b/ets2panda/test/compiler/ets/requiredType_9-expected.txt @@ -1600,5 +1600,5 @@ } } } -TypeError: T in Required must be a class or an interface type. [requiredType_9.ets:22:19] -TypeError: T in Required must be a class or an interface type. [requiredType_9.ets:23:19] +[requiredType_9.ets:22:19] Semantic error ESE124644: T in Required must be a class or an interface type. +[requiredType_9.ets:23:19] Semantic error ESE124644: T in Required must be a class or an interface type. diff --git a/ets2panda/test/compiler/ets/tryDefaultCatches-expected.txt b/ets2panda/test/compiler/ets/tryDefaultCatches-expected.txt index 6ac688c6b1..0d28fdc950 100644 --- a/ets2panda/test/compiler/ets/tryDefaultCatches-expected.txt +++ b/ets2panda/test/compiler/ets/tryDefaultCatches-expected.txt @@ -435,4 +435,4 @@ } } } -Warning: The catch statement with type annotation is deprecated, use catch(e). [tryDefaultCatches.ets:19:15] +[tryDefaultCatches.ets:19:15] Warning W33781: The catch statement with type annotation is deprecated, use catch(e). diff --git a/ets2panda/test/parser/as/test_class_method-expected.txt b/ets2panda/test/parser/as/test_class_method-expected.txt index 843ef4bf1b..5abbe7f401 100644 --- a/ets2panda/test/parser/as/test_class_method-expected.txt +++ b/ets2panda/test/parser/as/test_class_method-expected.txt @@ -145,8 +145,8 @@ "type": "Identifier", "name": "a", "typeAnnotation": { - "type": "TSTypeReference", - "typeName": { + "type": "NamedType", + "name": { "type": "Identifier", "name": "i32", "loc": { @@ -162,6 +162,7 @@ } } }, + "isNullable": false, "loc": { "start": { "line": 18, @@ -190,8 +191,8 @@ } ], "returnType": { - "type": "TSTypeReference", - "typeName": { + "type": "NamedType", + "name": { "type": "Identifier", "name": "i32", "loc": { @@ -207,6 +208,7 @@ } } }, + "isNullable": false, "loc": { "start": { "line": 18, @@ -317,3 +319,4 @@ } } } +Warning W0025: Not matching extensions! Sourcefile: ts, Manual(used): as diff --git a/ets2panda/test/parser/as/test_class_property-expected.txt b/ets2panda/test/parser/as/test_class_property-expected.txt index 7630be5b95..60cbf42676 100644 --- a/ets2panda/test/parser/as/test_class_property-expected.txt +++ b/ets2panda/test/parser/as/test_class_property-expected.txt @@ -150,8 +150,8 @@ "optional": false, "computed": false, "typeAnnotation": { - "type": "TSTypeReference", - "typeName": { + "type": "NamedType", + "name": { "type": "Identifier", "name": "i32", "loc": { @@ -167,6 +167,7 @@ } } }, + "isNullable": false, "loc": { "start": { "line": 18, @@ -235,3 +236,4 @@ } } } +Warning W0025: Not matching extensions! Sourcefile: ts, Manual(used): as diff --git a/ets2panda/test/parser/as/test_decorators1-expected.txt b/ets2panda/test/parser/as/test_decorators1-expected.txt index 2f688ddaa4..0299fad2fe 100644 --- a/ets2panda/test/parser/as/test_decorators1-expected.txt +++ b/ets2panda/test/parser/as/test_decorators1-expected.txt @@ -1,151 +1,2 @@ -{ - "type": "Program", - "statements": [ - { - "type": "FunctionDeclaration", - "decorators": [ - { - "type": "Decorator", - "expression": { - "type": "Identifier", - "name": "inline", - "decorators": [], - "loc": { - "start": { - "line": 17, - "column": 2, - "program": "test_decorators1.ts" - }, - "end": { - "line": 17, - "column": 8, - "program": "test_decorators1.ts" - } - } - }, - "loc": { - "start": { - "line": 17, - "column": 1, - "program": "test_decorators1.ts" - }, - "end": { - "line": 17, - "column": 8, - "program": "test_decorators1.ts" - } - } - } - ], - "function": { - "type": "ScriptFunction", - "id": { - "type": "Identifier", - "name": "foo", - "decorators": [], - "loc": { - "start": { - "line": 18, - "column": 10, - "program": "test_decorators1.ts" - }, - "end": { - "line": 18, - "column": 13, - "program": "test_decorators1.ts" - } - } - }, - "generator": false, - "async": false, - "expression": false, - "params": [], - "returnType": { - "type": "NamedType", - "name": { - "type": "Identifier", - "name": "void", - "decorators": [], - "loc": { - "start": { - "line": 18, - "column": 17, - "program": "test_decorators1.ts" - }, - "end": { - "line": 18, - "column": 21, - "program": "test_decorators1.ts" - } - } - }, - "isNullable": false, - "loc": { - "start": { - "line": 18, - "column": 17, - "program": "test_decorators1.ts" - }, - "end": { - "line": 18, - "column": 21, - "program": "test_decorators1.ts" - } - } - }, - "body": { - "type": "BlockStatement", - "statements": [], - "loc": { - "start": { - "line": 18, - "column": 22, - "program": "test_decorators1.ts" - }, - "end": { - "line": 19, - "column": 2, - "program": "test_decorators1.ts" - } - } - }, - "loc": { - "start": { - "line": 18, - "column": 1, - "program": "test_decorators1.ts" - }, - "end": { - "line": 19, - "column": 2, - "program": "test_decorators1.ts" - } - } - }, - "loc": { - "start": { - "line": 18, - "column": 1, - "program": "test_decorators1.ts" - }, - "end": { - "line": 19, - "column": 2, - "program": "test_decorators1.ts" - } - } - } - ], - "loc": { - "start": { - "line": 1, - "column": 1, - "program": "test_decorators1.ts" - }, - "end": { - "line": 20, - "column": 1, - "program": "test_decorators1.ts" - } - } -} +[test_decorators1.ts:17:1] Syntax error ESY0000: Decorators are not valid here +Warning W0025: Not matching extensions! Sourcefile: ts, Manual(used): as diff --git a/ets2panda/test/parser/as/test_decorators4-expected.txt b/ets2panda/test/parser/as/test_decorators4-expected.txt index eb82cf15bb..3dd59a68ca 100644 --- a/ets2panda/test/parser/as/test_decorators4-expected.txt +++ b/ets2panda/test/parser/as/test_decorators4-expected.txt @@ -1,271 +1 @@ -{ - "type": "Program", - "statements": [ - { - "type": "ClassDeclaration", - "definition": { - "id": { - "type": "Identifier", - "name": "Foo", - "loc": { - "start": { - "line": 17, - "column": 7, - "program": "test_decorators4.ts" - }, - "end": { - "line": 17, - "column": 10, - "program": "test_decorators4.ts" - } - } - }, - "superClass": null, - "implements": [], - "constructor": { - "type": "MethodDefinition", - "key": { - "type": "Identifier", - "name": "constructor", - "loc": { - "start": { - "line": 17, - "column": 12, - "program": "test_decorators4.ts" - }, - "end": { - "line": 17, - "column": 12, - "program": "test_decorators4.ts" - } - } - }, - "kind": "constructor", - "static": false, - "optional": false, - "computed": false, - "value": { - "type": "FunctionExpression", - "function": { - "type": "ScriptFunction", - "id": null, - "generator": false, - "async": false, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "statements": [], - "loc": { - "start": { - "line": 17, - "column": 12, - "program": "test_decorators4.ts" - }, - "end": { - "line": 17, - "column": 12, - "program": "test_decorators4.ts" - } - } - }, - "loc": { - "start": { - "line": 17, - "column": 12, - "program": "test_decorators4.ts" - }, - "end": { - "line": 17, - "column": 12, - "program": "test_decorators4.ts" - } - } - }, - "loc": { - "start": { - "line": 17, - "column": 12, - "program": "test_decorators4.ts" - }, - "end": { - "line": 17, - "column": 12, - "program": "test_decorators4.ts" - } - } - }, - "overloads": [], - "loc": { - "start": { - "line": 1, - "column": 1, - "program": null - }, - "end": { - "line": 1, - "column": 1, - "program": null - } - } - }, - "body": [ - { - "type": "MethodDefinition", - "key": { - "type": "Identifier", - "name": "a", - "loc": { - "start": { - "line": 19, - "column": 5, - "program": "test_decorators4.ts" - }, - "end": { - "line": 19, - "column": 6, - "program": "test_decorators4.ts" - } - } - }, - "kind": "method", - "static": false, - "optional": false, - "computed": false, - "value": { - "type": "FunctionExpression", - "function": { - "type": "ScriptFunction", - "id": null, - "generator": false, - "async": false, - "expression": false, - "params": [], - "returnType": { - "type": "TSTypeReference", - "typeName": { - "type": "Identifier", - "name": "i32", - "loc": { - "start": { - "line": 19, - "column": 10, - "program": "test_decorators4.ts" - }, - "end": { - "line": 19, - "column": 13, - "program": "test_decorators4.ts" - } - } - }, - "loc": { - "start": { - "line": 19, - "column": 10, - "program": "test_decorators4.ts" - }, - "end": { - "line": 19, - "column": 13, - "program": "test_decorators4.ts" - } - } - }, - "body": { - "type": "BlockStatement", - "statements": [], - "loc": { - "start": { - "line": 19, - "column": 14, - "program": "test_decorators4.ts" - }, - "end": { - "line": 19, - "column": 17, - "program": "test_decorators4.ts" - } - } - }, - "loc": { - "start": { - "line": 19, - "column": 6, - "program": "test_decorators4.ts" - }, - "end": { - "line": 19, - "column": 17, - "program": "test_decorators4.ts" - } - } - }, - "loc": { - "start": { - "line": 19, - "column": 6, - "program": "test_decorators4.ts" - }, - "end": { - "line": 19, - "column": 17, - "program": "test_decorators4.ts" - } - } - }, - "overloads": [], - "loc": { - "start": { - "line": 18, - "column": 5, - "program": "test_decorators4.ts" - }, - "end": { - "line": 19, - "column": 17, - "program": "test_decorators4.ts" - } - } - } - ], - "loc": { - "start": { - "line": 17, - "column": 11, - "program": "test_decorators4.ts" - }, - "end": { - "line": 21, - "column": 1, - "program": "test_decorators4.ts" - } - } - }, - "loc": { - "start": { - "line": 17, - "column": 1, - "program": "test_decorators4.ts" - }, - "end": { - "line": 21, - "column": 1, - "program": "test_decorators4.ts" - } - } - } - ], - "loc": { - "start": { - "line": 1, - "column": 1, - "program": "test_decorators4.ts" - }, - "end": { - "line": 21, - "column": 1, - "program": "test_decorators4.ts" - } - } -} +Warning W0025: Not matching extensions! Sourcefile: ts, Manual(used): as diff --git a/ets2panda/test/parser/as/test_interface-expected.txt b/ets2panda/test/parser/as/test_interface-expected.txt index 2d1cb7d5f5..d1a3bcdae8 100644 --- a/ets2panda/test/parser/as/test_interface-expected.txt +++ b/ets2panda/test/parser/as/test_interface-expected.txt @@ -14,7 +14,6 @@ "key": { "type": "Identifier", "name": "a", - "decorators": [], "loc": { "start": { "line": 18, @@ -33,7 +32,6 @@ "name": { "type": "Identifier", "name": "u8", - "decorators": [], "loc": { "start": { "line": 18, @@ -82,7 +80,6 @@ "key": { "type": "Identifier", "name": "b", - "decorators": [], "loc": { "start": { "line": 19, @@ -101,7 +98,6 @@ "name": { "type": "Identifier", "name": "Array", - "decorators": [], "loc": { "start": { "line": 19, @@ -123,7 +119,6 @@ "name": { "type": "Identifier", "name": "i32", - "decorators": [], "loc": { "start": { "line": 19, @@ -199,7 +194,6 @@ "key": { "type": "Identifier", "name": "c", - "decorators": [], "loc": { "start": { "line": 20, @@ -228,7 +222,6 @@ "name": { "type": "Identifier", "name": "Array", - "decorators": [], "loc": { "start": { "line": 20, @@ -250,7 +243,6 @@ "name": { "type": "Identifier", "name": "i64", - "decorators": [], "loc": { "start": { "line": 20, @@ -306,7 +298,6 @@ } } }, - "decorators": [], "loc": { "start": { "line": 20, @@ -328,7 +319,6 @@ "name": { "type": "Identifier", "name": "void", - "decorators": [], "loc": { "start": { "line": 20, @@ -356,7 +346,6 @@ } } }, - "decorators": [], "loc": { "start": { "line": 20, @@ -376,7 +365,6 @@ "name": { "type": "Identifier", "name": "u64", - "decorators": [], "loc": { "start": { "line": 20, @@ -417,7 +405,6 @@ } } }, - "decorators": [], "loc": { "start": { "line": 20, @@ -439,7 +426,6 @@ "name": { "type": "Identifier", "name": "Array", - "decorators": [], "loc": { "start": { "line": 20, @@ -461,7 +447,6 @@ "name": { "type": "Identifier", "name": "u8", - "decorators": [], "loc": { "start": { "line": 20, @@ -518,7 +503,6 @@ } }, "optional": true, - "decorators": [], "loc": { "start": { "line": 20, @@ -538,7 +522,6 @@ "name": { "type": "Identifier", "name": "bool", - "decorators": [], "loc": { "start": { "line": 20, @@ -586,7 +569,6 @@ "key": { "type": "Identifier", "name": "k", - "decorators": [], "loc": { "start": { "line": 21, @@ -609,7 +591,6 @@ "name": { "type": "Identifier", "name": "v128", - "decorators": [], "loc": { "start": { "line": 21, @@ -637,7 +618,6 @@ } } }, - "decorators": [], "loc": { "start": { "line": 21, @@ -660,7 +640,6 @@ "name": { "type": "Identifier", "name": "R", - "decorators": [], "loc": { "start": { "line": 21, @@ -692,7 +671,6 @@ "name": { "type": "Identifier", "name": "U", - "decorators": [], "loc": { "start": { "line": 21, @@ -738,7 +716,6 @@ "name": { "type": "Identifier", "name": "i8", - "decorators": [], "loc": { "start": { "line": 21, @@ -789,7 +766,6 @@ "name": { "type": "Identifier", "name": "i8", - "decorators": [], "loc": { "start": { "line": 22, @@ -817,7 +793,6 @@ } } }, - "decorators": [], "loc": { "start": { "line": 22, @@ -836,7 +811,6 @@ "name": { "type": "Identifier", "name": "v128", - "decorators": [], "loc": { "start": { "line": 22, @@ -895,7 +869,6 @@ "id": { "type": "Identifier", "name": "foo", - "decorators": [], "loc": { "start": { "line": 17, @@ -918,7 +891,6 @@ "name": { "type": "Identifier", "name": "T", - "decorators": [], "loc": { "start": { "line": 17, @@ -937,7 +909,6 @@ "name": { "type": "Identifier", "name": "i32", - "decorators": [], "loc": { "start": { "line": 17, @@ -983,7 +954,6 @@ "name": { "type": "Identifier", "name": "Z", - "decorators": [], "loc": { "start": { "line": 17, @@ -1002,7 +972,6 @@ "name": { "type": "Identifier", "name": "externref", - "decorators": [], "loc": { "start": { "line": 17, @@ -1084,3 +1053,4 @@ } } } +Warning W0025: Not matching extensions! Sourcefile: ts, Manual(used): as diff --git a/ets2panda/test/parser/as/test_object_literal-expected.txt b/ets2panda/test/parser/as/test_object_literal-expected.txt index ed6592dc6a..e39f1aecc8 100644 --- a/ets2panda/test/parser/as/test_object_literal-expected.txt +++ b/ets2panda/test/parser/as/test_object_literal-expected.txt @@ -79,7 +79,7 @@ { "type": "Property", "method": false, - "shorthand": false, + "shorthand": true, "computed": false, "key": { "type": "StringLiteral", @@ -285,4 +285,4 @@ } } } -TypeError: Block-scoped variable 'a' used before its declaration [test_object_literal.ts:17:5] +Warning W0025: Not matching extensions! Sourcefile: ts, Manual(used): as diff --git a/ets2panda/test/parser/as/test_type_annotation-expected.txt b/ets2panda/test/parser/as/test_type_annotation-expected.txt index 429ae2cd6d..c368aa8e46 100644 --- a/ets2panda/test/parser/as/test_type_annotation-expected.txt +++ b/ets2panda/test/parser/as/test_type_annotation-expected.txt @@ -10,13 +10,29 @@ "type": "Identifier", "name": "a", "typeAnnotation": { - "type": "TSUnionType", - "types": [ - { - "type": "TSArrayType", - "elementType": { - "type": "TSTypeReference", - "typeName": { + "type": "NamedType", + "name": { + "type": "Identifier", + "name": "Array", + "loc": { + "start": { + "line": 17, + "column": 16, + "program": "test_type_annotation.ts" + }, + "end": { + "line": 17, + "column": 20, + "program": "test_type_annotation.ts" + } + } + }, + "typeParameters": { + "type": "TSTypeParameterInstantiation", + "params": [ + { + "type": "NamedType", + "name": { "type": "Identifier", "name": "i32", "loc": { @@ -32,6 +48,7 @@ } } }, + "isNullable": false, "loc": { "start": { "line": 17, @@ -44,37 +61,22 @@ "program": "test_type_annotation.ts" } } - }, - "annotations": [], - "loc": { - "start": { - "line": 17, - "column": 8, - "program": "test_type_annotation.ts" - }, - "end": { - "line": 17, - "column": 13, - "program": "test_type_annotation.ts" - } } - }, - { - "type": "TSNullKeyword", - "loc": { - "start": { - "line": 17, - "column": 16, - "program": "test_type_annotation.ts" - }, - "end": { - "line": 17, - "column": 20, - "program": "test_type_annotation.ts" - } + ], + "loc": { + "start": { + "line": 1, + "column": 1, + "program": null + }, + "end": { + "line": 1, + "column": 1, + "program": null } } - ], + }, + "isNullable": true, "loc": { "start": { "line": 17, @@ -145,8 +147,8 @@ "type": "Identifier", "name": "a", "typeAnnotation": { - "type": "TSTypeReference", - "typeName": { + "type": "NamedType", + "name": { "type": "Identifier", "name": "i8", "loc": { @@ -162,6 +164,7 @@ } } }, + "isNullable": false, "loc": { "start": { "line": 18, @@ -192,10 +195,10 @@ "type": "Identifier", "name": "b", "typeAnnotation": { - "type": "TSLiteralType", - "literal": { - "type": "BooleanLiteral", - "value": true, + "type": "NamedType", + "name": { + "type": "Identifier", + "name": "bool", "loc": { "start": { "line": 18, @@ -209,6 +212,7 @@ } } }, + "isNullable": false, "loc": { "start": { "line": 18, @@ -237,39 +241,73 @@ } ], "returnType": { - "type": "TSArrayType", - "elementType": { - "type": "TSTypeReference", - "typeName": { - "type": "Identifier", - "name": "i64", - "loc": { - "start": { - "line": 18, - "column": 28, - "program": "test_type_annotation.ts" + "type": "NamedType", + "name": { + "type": "Identifier", + "name": "Array", + "loc": { + "start": { + "line": 19, + "column": 1, + "program": "test_type_annotation.ts" + }, + "end": { + "line": 19, + "column": 4, + "program": "test_type_annotation.ts" + } + } + }, + "typeParameters": { + "type": "TSTypeParameterInstantiation", + "params": [ + { + "type": "NamedType", + "name": { + "type": "Identifier", + "name": "i64", + "loc": { + "start": { + "line": 18, + "column": 28, + "program": "test_type_annotation.ts" + }, + "end": { + "line": 18, + "column": 31, + "program": "test_type_annotation.ts" + } + } }, - "end": { - "line": 18, - "column": 31, - "program": "test_type_annotation.ts" + "isNullable": false, + "loc": { + "start": { + "line": 18, + "column": 28, + "program": "test_type_annotation.ts" + }, + "end": { + "line": 18, + "column": 31, + "program": "test_type_annotation.ts" + } } } - }, + ], "loc": { "start": { - "line": 18, - "column": 28, - "program": "test_type_annotation.ts" + "line": 1, + "column": 1, + "program": null }, "end": { - "line": 18, - "column": 31, - "program": "test_type_annotation.ts" + "line": 1, + "column": 1, + "program": null } } }, - "annotations": [], + "isNullable": false, "loc": { "start": { "line": 18, @@ -277,8 +315,8 @@ "program": "test_type_annotation.ts" }, "end": { - "line": 18, - "column": 33, + "line": 19, + "column": 4, "program": "test_type_annotation.ts" } } @@ -290,8 +328,8 @@ "program": "test_type_annotation.ts" }, "end": { - "line": 18, - "column": 33, + "line": 19, + "column": 4, "program": "test_type_annotation.ts" } } @@ -347,29 +385,143 @@ "type": "Identifier", "name": "c", "typeAnnotation": { - "type": "TSArrayType", - "elementType": { - "type": "TSArrayType", - "elementType": { - "type": "TSArrayType", - "elementType": { - "type": "TSTypeReference", - "typeName": { + "type": "NamedType", + "name": { + "type": "Identifier", + "name": "Array", + "loc": { + "start": { + "line": 20, + "column": 1, + "program": "test_type_annotation.ts" + }, + "end": { + "line": 20, + "column": 4, + "program": "test_type_annotation.ts" + } + } + }, + "typeParameters": { + "type": "TSTypeParameterInstantiation", + "params": [ + { + "type": "NamedType", + "name": { "type": "Identifier", - "name": "u64", + "name": "Array", "loc": { "start": { "line": 19, - "column": 8, + "column": 15, "program": "test_type_annotation.ts" }, "end": { "line": 19, - "column": 11, + "column": 16, "program": "test_type_annotation.ts" } } }, + "typeParameters": { + "type": "TSTypeParameterInstantiation", + "params": [ + { + "type": "NamedType", + "name": { + "type": "Identifier", + "name": "Array", + "loc": { + "start": { + "line": 19, + "column": 13, + "program": "test_type_annotation.ts" + }, + "end": { + "line": 19, + "column": 14, + "program": "test_type_annotation.ts" + } + } + }, + "typeParameters": { + "type": "TSTypeParameterInstantiation", + "params": [ + { + "type": "NamedType", + "name": { + "type": "Identifier", + "name": "u64", + "loc": { + "start": { + "line": 19, + "column": 8, + "program": "test_type_annotation.ts" + }, + "end": { + "line": 19, + "column": 11, + "program": "test_type_annotation.ts" + } + } + }, + "isNullable": false, + "loc": { + "start": { + "line": 19, + "column": 8, + "program": "test_type_annotation.ts" + }, + "end": { + "line": 19, + "column": 11, + "program": "test_type_annotation.ts" + } + } + } + ], + "loc": { + "start": { + "line": 1, + "column": 1, + "program": null + }, + "end": { + "line": 1, + "column": 1, + "program": null + } + } + }, + "isNullable": false, + "loc": { + "start": { + "line": 19, + "column": 8, + "program": "test_type_annotation.ts" + }, + "end": { + "line": 19, + "column": 14, + "program": "test_type_annotation.ts" + } + } + } + ], + "loc": { + "start": { + "line": 1, + "column": 1, + "program": null + }, + "end": { + "line": 1, + "column": 1, + "program": null + } + } + }, + "isNullable": false, "loc": { "start": { "line": 19, @@ -378,40 +530,26 @@ }, "end": { "line": 19, - "column": 11, + "column": 16, "program": "test_type_annotation.ts" } } - }, - "annotations": [], - "loc": { - "start": { - "line": 19, - "column": 8, - "program": "test_type_annotation.ts" - }, - "end": { - "line": 19, - "column": 13, - "program": "test_type_annotation.ts" - } } - }, - "annotations": [], + ], "loc": { "start": { - "line": 19, - "column": 8, - "program": "test_type_annotation.ts" + "line": 1, + "column": 1, + "program": null }, "end": { - "line": 19, - "column": 15, - "program": "test_type_annotation.ts" + "line": 1, + "column": 1, + "program": null } } }, - "annotations": [], + "isNullable": false, "loc": { "start": { "line": 19, @@ -419,8 +557,8 @@ "program": "test_type_annotation.ts" }, "end": { - "line": 19, - "column": 17, + "line": 20, + "column": 4, "program": "test_type_annotation.ts" } } @@ -488,7 +626,24 @@ "type": "Identifier", "name": "b", "typeAnnotation": { - "type": "TSVoidKeyword", + "type": "NamedType", + "name": { + "type": "Identifier", + "name": "void", + "loc": { + "start": { + "line": 20, + "column": 16, + "program": "test_type_annotation.ts" + }, + "end": { + "line": 20, + "column": 20, + "program": "test_type_annotation.ts" + } + } + }, + "isNullable": false, "loc": { "start": { "line": 20, @@ -519,8 +674,8 @@ "type": "Identifier", "name": "c", "typeAnnotation": { - "type": "TSTypeReference", - "typeName": { + "type": "NamedType", + "name": { "type": "Identifier", "name": "i32", "loc": { @@ -536,6 +691,7 @@ } } }, + "isNullable": false, "loc": { "start": { "line": 20, @@ -565,39 +721,73 @@ } ], "returnType": { - "type": "TSArrayType", - "elementType": { - "type": "TSTypeReference", - "typeName": { - "type": "Identifier", - "name": "u8", - "loc": { - "start": { - "line": 20, - "column": 34, - "program": "test_type_annotation.ts" - }, - "end": { - "line": 20, - "column": 36, - "program": "test_type_annotation.ts" - } - } - }, + "type": "NamedType", + "name": { + "type": "Identifier", + "name": "Array", "loc": { "start": { "line": 20, - "column": 34, + "column": 38, "program": "test_type_annotation.ts" }, "end": { "line": 20, - "column": 36, + "column": 39, "program": "test_type_annotation.ts" } } }, - "annotations": [], + "typeParameters": { + "type": "TSTypeParameterInstantiation", + "params": [ + { + "type": "NamedType", + "name": { + "type": "Identifier", + "name": "u8", + "loc": { + "start": { + "line": 20, + "column": 34, + "program": "test_type_annotation.ts" + }, + "end": { + "line": 20, + "column": 36, + "program": "test_type_annotation.ts" + } + } + }, + "isNullable": false, + "loc": { + "start": { + "line": 20, + "column": 34, + "program": "test_type_annotation.ts" + }, + "end": { + "line": 20, + "column": 36, + "program": "test_type_annotation.ts" + } + } + } + ], + "loc": { + "start": { + "line": 1, + "column": 1, + "program": null + }, + "end": { + "line": 1, + "column": 1, + "program": null + } + } + }, + "isNullable": false, "loc": { "start": { "line": 20, @@ -606,7 +796,7 @@ }, "end": { "line": 20, - "column": 38, + "column": 39, "program": "test_type_annotation.ts" } } @@ -619,7 +809,7 @@ }, "end": { "line": 20, - "column": 38, + "column": 39, "program": "test_type_annotation.ts" } } @@ -641,13 +831,29 @@ "type": "Identifier", "name": "b", "typeAnnotation": { - "type": "TSUnionType", - "types": [ - { - "type": "TSArrayType", - "elementType": { - "type": "TSTypeReference", - "typeName": { + "type": "NamedType", + "name": { + "type": "Identifier", + "name": "Array", + "loc": { + "start": { + "line": 20, + "column": 51, + "program": "test_type_annotation.ts" + }, + "end": { + "line": 20, + "column": 55, + "program": "test_type_annotation.ts" + } + } + }, + "typeParameters": { + "type": "TSTypeParameterInstantiation", + "params": [ + { + "type": "NamedType", + "name": { "type": "Identifier", "name": "i64", "loc": { @@ -663,6 +869,7 @@ } } }, + "isNullable": false, "loc": { "start": { "line": 20, @@ -675,37 +882,22 @@ "program": "test_type_annotation.ts" } } - }, - "annotations": [], - "loc": { - "start": { - "line": 20, - "column": 43, - "program": "test_type_annotation.ts" - }, - "end": { - "line": 20, - "column": 48, - "program": "test_type_annotation.ts" - } } - }, - { - "type": "TSNullKeyword", - "loc": { - "start": { - "line": 20, - "column": 51, - "program": "test_type_annotation.ts" - }, - "end": { - "line": 20, - "column": 55, - "program": "test_type_annotation.ts" - } + ], + "loc": { + "start": { + "line": 1, + "column": 1, + "program": null + }, + "end": { + "line": 1, + "column": 1, + "program": null } } - ], + }, + "isNullable": true, "loc": { "start": { "line": 20, @@ -734,13 +926,29 @@ } ], "returnType": { - "type": "TSUnionType", - "types": [ - { - "type": "TSArrayType", - "elementType": { - "type": "TSTypeReference", - "typeName": { + "type": "NamedType", + "name": { + "type": "Identifier", + "name": "Array", + "loc": { + "start": { + "line": 20, + "column": 67, + "program": "test_type_annotation.ts" + }, + "end": { + "line": 20, + "column": 71, + "program": "test_type_annotation.ts" + } + } + }, + "typeParameters": { + "type": "TSTypeParameterInstantiation", + "params": [ + { + "type": "NamedType", + "name": { "type": "Identifier", "name": "u8", "loc": { @@ -756,6 +964,7 @@ } } }, + "isNullable": false, "loc": { "start": { "line": 20, @@ -768,37 +977,22 @@ "program": "test_type_annotation.ts" } } - }, - "annotations": [], - "loc": { - "start": { - "line": 20, - "column": 60, - "program": "test_type_annotation.ts" - }, - "end": { - "line": 20, - "column": 64, - "program": "test_type_annotation.ts" - } } - }, - { - "type": "TSNullKeyword", - "loc": { - "start": { - "line": 20, - "column": 67, - "program": "test_type_annotation.ts" - }, - "end": { - "line": 20, - "column": 71, - "program": "test_type_annotation.ts" - } + ], + "loc": { + "start": { + "line": 1, + "column": 1, + "program": null + }, + "end": { + "line": 1, + "column": 1, + "program": null } } - ], + }, + "isNullable": true, "loc": { "start": { "line": 20, @@ -881,4 +1075,4 @@ } } } -TypeError: Cannot find name i32 [test_type_annotation.ts:17:8] +Warning W0025: Not matching extensions! Sourcefile: ts, Manual(used): as diff --git a/ets2panda/test/parser/ets/dynamic_import_tests/dynamic_decl_import-expected.txt b/ets2panda/test/parser/ets/dynamic_import_tests/dynamic_decl_import-expected.txt index 1504892bcc..b57c66ea62 100644 --- a/ets2panda/test/parser/ets/dynamic_import_tests/dynamic_decl_import-expected.txt +++ b/ets2panda/test/parser/ets/dynamic_import_tests/dynamic_decl_import-expected.txt @@ -180,106 +180,44 @@ "definition": { "id": { "type": "Identifier", - "name": "B", + "name": "ETSGLOBAL", "loc": { "start": { - "line": 22, - "column": 7, + "line": 1, + "column": 1, "program": "dynamic_decl_import.ets" }, "end": { - "line": 22, - "column": 8, + "line": 1, + "column": 1, "program": "dynamic_decl_import.ets" } } }, "superClass": null, - "implements": [ - { - "type": "TSClassImplements", - "expression": { - "type": "ETSTypeReference", - "part": { - "type": "ETSTypeReferencePart", - "name": { - "type": "Identifier", - "name": "I", - "loc": { - "start": { - "line": 22, - "column": 20, - "program": "dynamic_decl_import.ets" - }, - "end": { - "line": 22, - "column": 21, - "program": "dynamic_decl_import.ets" - } - } - }, - "loc": { - "start": { - "line": 22, - "column": 20, - "program": "dynamic_decl_import.ets" - }, - "end": { - "line": 22, - "column": 21, - "program": "dynamic_decl_import.ets" - } - } - }, - "loc": { - "start": { - "line": 22, - "column": 20, - "program": "dynamic_decl_import.ets" - }, - "end": { - "line": 22, - "column": 21, - "program": "dynamic_decl_import.ets" - } - } - }, - "loc": { - "start": { - "line": 22, - "column": 20, - "program": "dynamic_decl_import.ets" - }, - "end": { - "line": 22, - "column": 23, - "program": "dynamic_decl_import.ets" - } - } - } - ], + "implements": [], "body": [ { "type": "MethodDefinition", "key": { "type": "Identifier", - "name": "f1", + "name": "main", "loc": { "start": { - "line": 23, - "column": 14, + "line": 31, + "column": 10, "program": "dynamic_decl_import.ets" }, "end": { - "line": 23, - "column": 16, + "line": 31, + "column": 14, "program": "dynamic_decl_import.ets" } } }, "kind": "method", "accessibility": "public", - "static": false, + "static": true, "optional": false, "computed": false, "value": { @@ -288,16 +226,16 @@ "type": "ScriptFunction", "id": { "type": "Identifier", - "name": "f1", + "name": "main", "loc": { "start": { - "line": 23, - "column": 14, + "line": 31, + "column": 10, "program": "dynamic_decl_import.ets" }, "end": { - "line": 23, - "column": 16, + "line": 31, + "column": 14, "program": "dynamic_decl_import.ets" } } @@ -305,625 +243,18 @@ "generator": false, "async": false, "expression": false, - "params": [ - { - "type": "ETSParameterExpression", - "name": { - "type": "Identifier", - "name": "p", - "typeAnnotation": { - "type": "ETSTypeReference", - "part": { - "type": "ETSTypeReferencePart", - "name": { - "type": "Identifier", - "name": "string", - "loc": { - "start": { - "line": 23, - "column": 20, - "program": "dynamic_decl_import.ets" - }, - "end": { - "line": 23, - "column": 26, - "program": "dynamic_decl_import.ets" - } - } - }, - "loc": { - "start": { - "line": 23, - "column": 20, - "program": "dynamic_decl_import.ets" - }, - "end": { - "line": 23, - "column": 26, - "program": "dynamic_decl_import.ets" - } - } - }, - "loc": { - "start": { - "line": 23, - "column": 20, - "program": "dynamic_decl_import.ets" - }, - "end": { - "line": 23, - "column": 26, - "program": "dynamic_decl_import.ets" - } - } - }, - "loc": { - "start": { - "line": 23, - "column": 17, - "program": "dynamic_decl_import.ets" - }, - "end": { - "line": 23, - "column": 26, - "program": "dynamic_decl_import.ets" - } - } - }, - "loc": { - "start": { - "line": 23, - "column": 17, - "program": "dynamic_decl_import.ets" - }, - "end": { - "line": 23, - "column": 26, - "program": "dynamic_decl_import.ets" - } - } - } - ], + "params": [], "returnType": { "type": "ETSPrimitiveType", "loc": { "start": { - "line": 23, - "column": 29, + "line": 31, + "column": 18, "program": "dynamic_decl_import.ets" }, "end": { - "line": 23, - "column": 35, - "program": "dynamic_decl_import.ets" - } - } - }, - "body": { - "type": "BlockStatement", - "statements": [ - { - "type": "ReturnStatement", - "argument": { - "type": "NumberLiteral", - "value": 10, - "loc": { - "start": { - "line": 24, - "column": 16, - "program": "dynamic_decl_import.ets" - }, - "end": { - "line": 24, - "column": 18, - "program": "dynamic_decl_import.ets" - } - } - }, - "loc": { - "start": { - "line": 24, - "column": 9, - "program": "dynamic_decl_import.ets" - }, - "end": { - "line": 24, - "column": 19, - "program": "dynamic_decl_import.ets" - } - } - } - ], - "loc": { - "start": { - "line": 23, - "column": 36, - "program": "dynamic_decl_import.ets" - }, - "end": { - "line": 25, - "column": 6, - "program": "dynamic_decl_import.ets" - } - } - }, - "loc": { - "start": { - "line": 23, - "column": 16, - "program": "dynamic_decl_import.ets" - }, - "end": { - "line": 25, - "column": 6, - "program": "dynamic_decl_import.ets" - } - } - }, - "loc": { - "start": { - "line": 23, - "column": 16, - "program": "dynamic_decl_import.ets" - }, - "end": { - "line": 25, - "column": 6, - "program": "dynamic_decl_import.ets" - } - } - }, - "overloads": [], - "loc": { - "start": { - "line": 23, - "column": 14, - "program": "dynamic_decl_import.ets" - }, - "end": { - "line": 25, - "column": 6, - "program": "dynamic_decl_import.ets" - } - } - }, - { - "type": "MethodDefinition", - "key": { - "type": "Identifier", - "name": "f2", - "loc": { - "start": { - "line": 26, - "column": 14, - "program": "dynamic_decl_import.ets" - }, - "end": { - "line": 26, - "column": 16, - "program": "dynamic_decl_import.ets" - } - } - }, - "kind": "method", - "accessibility": "public", - "static": false, - "optional": false, - "computed": false, - "value": { - "type": "FunctionExpression", - "function": { - "type": "ScriptFunction", - "id": { - "type": "Identifier", - "name": "f2", - "loc": { - "start": { - "line": 26, - "column": 14, - "program": "dynamic_decl_import.ets" - }, - "end": { - "line": 26, - "column": 16, - "program": "dynamic_decl_import.ets" - } - } - }, - "generator": false, - "async": false, - "expression": false, - "params": [ - { - "type": "ETSParameterExpression", - "name": { - "type": "Identifier", - "name": "p", - "typeAnnotation": { - "type": "ETSPrimitiveType", - "loc": { - "start": { - "line": 26, - "column": 20, - "program": "dynamic_decl_import.ets" - }, - "end": { - "line": 26, - "column": 26, - "program": "dynamic_decl_import.ets" - } - } - }, - "loc": { - "start": { - "line": 26, - "column": 17, - "program": "dynamic_decl_import.ets" - }, - "end": { - "line": 26, - "column": 26, - "program": "dynamic_decl_import.ets" - } - } - }, - "loc": { - "start": { - "line": 26, - "column": 17, - "program": "dynamic_decl_import.ets" - }, - "end": { - "line": 26, - "column": 26, - "program": "dynamic_decl_import.ets" - } - } - } - ], - "returnType": { - "type": "ETSTypeReference", - "part": { - "type": "ETSTypeReferencePart", - "name": { - "type": "Identifier", - "name": "string", - "loc": { - "start": { - "line": 26, - "column": 29, - "program": "dynamic_decl_import.ets" - }, - "end": { - "line": 26, - "column": 35, - "program": "dynamic_decl_import.ets" - } - } - }, - "loc": { - "start": { - "line": 26, - "column": 29, - "program": "dynamic_decl_import.ets" - }, - "end": { - "line": 26, - "column": 35, - "program": "dynamic_decl_import.ets" - } - } - }, - "loc": { - "start": { - "line": 26, - "column": 29, - "program": "dynamic_decl_import.ets" - }, - "end": { - "line": 26, - "column": 35, - "program": "dynamic_decl_import.ets" - } - } - }, - "body": { - "type": "BlockStatement", - "statements": [ - { - "type": "ReturnStatement", - "argument": { - "type": "StringLiteral", - "value": "abc", - "loc": { - "start": { - "line": 27, - "column": 16, - "program": "dynamic_decl_import.ets" - }, - "end": { - "line": 27, - "column": 21, - "program": "dynamic_decl_import.ets" - } - } - }, - "loc": { - "start": { - "line": 27, - "column": 9, - "program": "dynamic_decl_import.ets" - }, - "end": { - "line": 27, - "column": 21, - "program": "dynamic_decl_import.ets" - } - } - } - ], - "loc": { - "start": { - "line": 26, - "column": 36, - "program": "dynamic_decl_import.ets" - }, - "end": { - "line": 28, - "column": 6, - "program": "dynamic_decl_import.ets" - } - } - }, - "loc": { - "start": { - "line": 26, - "column": 16, - "program": "dynamic_decl_import.ets" - }, - "end": { - "line": 28, - "column": 6, - "program": "dynamic_decl_import.ets" - } - } - }, - "loc": { - "start": { - "line": 26, - "column": 16, - "program": "dynamic_decl_import.ets" - }, - "end": { - "line": 28, - "column": 6, - "program": "dynamic_decl_import.ets" - } - } - }, - "overloads": [], - "loc": { - "start": { - "line": 26, - "column": 14, - "program": "dynamic_decl_import.ets" - }, - "end": { - "line": 28, - "column": 6, - "program": "dynamic_decl_import.ets" - } - } - }, - { - "type": "MethodDefinition", - "key": { - "type": "Identifier", - "name": "constructor", - "loc": { - "start": { - "line": 22, - "column": 23, - "program": "dynamic_decl_import.ets" - }, - "end": { - "line": 22, - "column": 23, - "program": "dynamic_decl_import.ets" - } - } - }, - "kind": "constructor", - "static": false, - "optional": false, - "computed": false, - "value": { - "type": "FunctionExpression", - "function": { - "type": "ScriptFunction", - "id": { - "type": "Identifier", - "name": "constructor", - "loc": { - "start": { - "line": 22, - "column": 23, - "program": "dynamic_decl_import.ets" - }, - "end": { - "line": 22, - "column": 23, - "program": "dynamic_decl_import.ets" - } - } - }, - "generator": false, - "async": false, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "statements": [], - "loc": { - "start": { - "line": 22, - "column": 23, - "program": "dynamic_decl_import.ets" - }, - "end": { - "line": 22, - "column": 23, - "program": "dynamic_decl_import.ets" - } - } - }, - "loc": { - "start": { - "line": 22, - "column": 23, - "program": "dynamic_decl_import.ets" - }, - "end": { - "line": 22, - "column": 23, - "program": "dynamic_decl_import.ets" - } - } - }, - "loc": { - "start": { - "line": 22, - "column": 23, - "program": "dynamic_decl_import.ets" - }, - "end": { - "line": 22, - "column": 23, - "program": "dynamic_decl_import.ets" - } - } - }, - "overloads": [], - "loc": { - "start": { - "line": 1, - "column": 1, - "program": null - }, - "end": { - "line": 1, - "column": 1, - "program": null - } - } - } - ], - "loc": { - "start": { - "line": 22, - "column": 22, - "program": "dynamic_decl_import.ets" - }, - "end": { - "line": 31, - "column": 9, - "program": "dynamic_decl_import.ets" - } - } - }, - "loc": { - "start": { - "line": 22, - "column": 1, - "program": "dynamic_decl_import.ets" - }, - "end": { - "line": 31, - "column": 9, - "program": "dynamic_decl_import.ets" - } - } - }, - { - "type": "ClassDeclaration", - "definition": { - "id": { - "type": "Identifier", - "name": "ETSGLOBAL", - "loc": { - "start": { - "line": 1, - "column": 1, - "program": "dynamic_decl_import.ets" - }, - "end": { - "line": 1, - "column": 1, - "program": "dynamic_decl_import.ets" - } - } - }, - "superClass": null, - "implements": [], - "body": [ - { - "type": "MethodDefinition", - "key": { - "type": "Identifier", - "name": "main", - "loc": { - "start": { - "line": 31, - "column": 10, - "program": "dynamic_decl_import.ets" - }, - "end": { - "line": 31, - "column": 14, - "program": "dynamic_decl_import.ets" - } - } - }, - "kind": "method", - "accessibility": "public", - "static": true, - "optional": false, - "computed": false, - "value": { - "type": "FunctionExpression", - "function": { - "type": "ScriptFunction", - "id": { - "type": "Identifier", - "name": "main", - "loc": { - "start": { - "line": 31, - "column": 10, - "program": "dynamic_decl_import.ets" - }, - "end": { - "line": 31, - "column": 14, - "program": "dynamic_decl_import.ets" - } - } - }, - "generator": false, - "async": false, - "expression": false, - "params": [], - "returnType": { - "type": "ETSPrimitiveType", - "loc": { - "start": { - "line": 31, - "column": 18, - "program": "dynamic_decl_import.ets" - }, - "end": { - "line": 31, - "column": 22, + "line": 31, + "column": 22, "program": "dynamic_decl_import.ets" } } @@ -1514,174 +845,741 @@ }, "loc": { "start": { - "line": 36, + "line": 36, + "column": 5, + "program": "dynamic_decl_import.ets" + }, + "end": { + "line": 36, + "column": 16, + "program": "dynamic_decl_import.ets" + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "object": { + "type": "Identifier", + "name": "A", + "loc": { + "start": { + "line": 37, + "column": 5, + "program": "dynamic_decl_import.ets" + }, + "end": { + "line": 37, + "column": 6, + "program": "dynamic_decl_import.ets" + } + } + }, + "property": { + "type": "Identifier", + "name": "f2", + "loc": { + "start": { + "line": 37, + "column": 7, + "program": "dynamic_decl_import.ets" + }, + "end": { + "line": 37, + "column": 9, + "program": "dynamic_decl_import.ets" + } + } + }, + "computed": false, + "optional": false, + "loc": { + "start": { + "line": 37, + "column": 5, + "program": "dynamic_decl_import.ets" + }, + "end": { + "line": 37, + "column": 9, + "program": "dynamic_decl_import.ets" + } + } + }, + "right": { + "type": "Identifier", + "name": "f2", + "loc": { + "start": { + "line": 37, + "column": 12, + "program": "dynamic_decl_import.ets" + }, + "end": { + "line": 37, + "column": 14, + "program": "dynamic_decl_import.ets" + } + } + }, + "loc": { + "start": { + "line": 37, + "column": 5, + "program": "dynamic_decl_import.ets" + }, + "end": { + "line": 37, + "column": 14, + "program": "dynamic_decl_import.ets" + } + } + }, + "loc": { + "start": { + "line": 37, + "column": 5, + "program": "dynamic_decl_import.ets" + }, + "end": { + "line": 37, + "column": 14, + "program": "dynamic_decl_import.ets" + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "foo", + "loc": { + "start": { + "line": 39, + "column": 5, + "program": "dynamic_decl_import.ets" + }, + "end": { + "line": 39, + "column": 8, + "program": "dynamic_decl_import.ets" + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "obj", + "loc": { + "start": { + "line": 39, + "column": 9, + "program": "dynamic_decl_import.ets" + }, + "end": { + "line": 39, + "column": 12, + "program": "dynamic_decl_import.ets" + } + } + } + ], + "optional": false, + "loc": { + "start": { + "line": 39, + "column": 5, + "program": "dynamic_decl_import.ets" + }, + "end": { + "line": 39, + "column": 13, + "program": "dynamic_decl_import.ets" + } + } + }, + "loc": { + "start": { + "line": 39, "column": 5, "program": "dynamic_decl_import.ets" }, "end": { - "line": 36, - "column": 16, + "line": 39, + "column": 13, "program": "dynamic_decl_import.ets" } } + } + ], + "loc": { + "start": { + "line": 31, + "column": 23, + "program": "dynamic_decl_import.ets" }, - { - "type": "ExpressionStatement", - "expression": { - "type": "AssignmentExpression", - "operator": "=", - "left": { - "type": "MemberExpression", - "object": { - "type": "Identifier", - "name": "A", - "loc": { - "start": { - "line": 37, - "column": 5, - "program": "dynamic_decl_import.ets" - }, - "end": { - "line": 37, - "column": 6, - "program": "dynamic_decl_import.ets" - } - } - }, - "property": { + "end": { + "line": 40, + "column": 2, + "program": "dynamic_decl_import.ets" + } + } + }, + "loc": { + "start": { + "line": 31, + "column": 10, + "program": "dynamic_decl_import.ets" + }, + "end": { + "line": 40, + "column": 2, + "program": "dynamic_decl_import.ets" + } + } + }, + "loc": { + "start": { + "line": 31, + "column": 10, + "program": "dynamic_decl_import.ets" + }, + "end": { + "line": 40, + "column": 2, + "program": "dynamic_decl_import.ets" + } + } + }, + "overloads": [], + "loc": { + "start": { + "line": 31, + "column": 1, + "program": "dynamic_decl_import.ets" + }, + "end": { + "line": 40, + "column": 2, + "program": "dynamic_decl_import.ets" + } + } + } + ], + "loc": { + "start": { + "line": 1, + "column": 1, + "program": "dynamic_decl_import.ets" + }, + "end": { + "line": 1, + "column": 1, + "program": "dynamic_decl_import.ets" + } + } + }, + "loc": { + "start": { + "line": 1, + "column": 1, + "program": "dynamic_decl_import.ets" + }, + "end": { + "line": 1, + "column": 1, + "program": "dynamic_decl_import.ets" + } + } + }, + { + "type": "ClassDeclaration", + "definition": { + "id": { + "type": "Identifier", + "name": "B", + "loc": { + "start": { + "line": 22, + "column": 7, + "program": "dynamic_decl_import.ets" + }, + "end": { + "line": 22, + "column": 8, + "program": "dynamic_decl_import.ets" + } + } + }, + "superClass": null, + "implements": [ + { + "type": "TSClassImplements", + "expression": { + "type": "ETSTypeReference", + "part": { + "type": "ETSTypeReferencePart", + "name": { + "type": "Identifier", + "name": "I", + "loc": { + "start": { + "line": 22, + "column": 20, + "program": "dynamic_decl_import.ets" + }, + "end": { + "line": 22, + "column": 21, + "program": "dynamic_decl_import.ets" + } + } + }, + "loc": { + "start": { + "line": 22, + "column": 20, + "program": "dynamic_decl_import.ets" + }, + "end": { + "line": 22, + "column": 21, + "program": "dynamic_decl_import.ets" + } + } + }, + "loc": { + "start": { + "line": 22, + "column": 20, + "program": "dynamic_decl_import.ets" + }, + "end": { + "line": 22, + "column": 21, + "program": "dynamic_decl_import.ets" + } + } + }, + "loc": { + "start": { + "line": 22, + "column": 20, + "program": "dynamic_decl_import.ets" + }, + "end": { + "line": 22, + "column": 23, + "program": "dynamic_decl_import.ets" + } + } + } + ], + "body": [ + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "f1", + "loc": { + "start": { + "line": 23, + "column": 14, + "program": "dynamic_decl_import.ets" + }, + "end": { + "line": 23, + "column": 16, + "program": "dynamic_decl_import.ets" + } + } + }, + "kind": "method", + "accessibility": "public", + "static": false, + "optional": false, + "computed": false, + "value": { + "type": "FunctionExpression", + "function": { + "type": "ScriptFunction", + "id": { + "type": "Identifier", + "name": "f1", + "loc": { + "start": { + "line": 23, + "column": 14, + "program": "dynamic_decl_import.ets" + }, + "end": { + "line": 23, + "column": 16, + "program": "dynamic_decl_import.ets" + } + } + }, + "generator": false, + "async": false, + "expression": false, + "params": [ + { + "type": "ETSParameterExpression", + "name": { + "type": "Identifier", + "name": "p", + "typeAnnotation": { + "type": "ETSTypeReference", + "part": { + "type": "ETSTypeReferencePart", + "name": { "type": "Identifier", - "name": "f2", + "name": "string", "loc": { "start": { - "line": 37, - "column": 7, + "line": 23, + "column": 20, "program": "dynamic_decl_import.ets" }, "end": { - "line": 37, - "column": 9, + "line": 23, + "column": 26, "program": "dynamic_decl_import.ets" } } }, - "computed": false, - "optional": false, "loc": { "start": { - "line": 37, - "column": 5, + "line": 23, + "column": 20, "program": "dynamic_decl_import.ets" }, "end": { - "line": 37, - "column": 9, + "line": 23, + "column": 26, "program": "dynamic_decl_import.ets" } } }, - "right": { - "type": "Identifier", - "name": "f2", - "loc": { - "start": { - "line": 37, - "column": 12, - "program": "dynamic_decl_import.ets" - }, - "end": { - "line": 37, - "column": 14, - "program": "dynamic_decl_import.ets" - } + "loc": { + "start": { + "line": 23, + "column": 20, + "program": "dynamic_decl_import.ets" + }, + "end": { + "line": 23, + "column": 26, + "program": "dynamic_decl_import.ets" } + } + }, + "loc": { + "start": { + "line": 23, + "column": 17, + "program": "dynamic_decl_import.ets" }, + "end": { + "line": 23, + "column": 26, + "program": "dynamic_decl_import.ets" + } + } + }, + "loc": { + "start": { + "line": 23, + "column": 17, + "program": "dynamic_decl_import.ets" + }, + "end": { + "line": 23, + "column": 26, + "program": "dynamic_decl_import.ets" + } + } + } + ], + "returnType": { + "type": "ETSPrimitiveType", + "loc": { + "start": { + "line": 23, + "column": 29, + "program": "dynamic_decl_import.ets" + }, + "end": { + "line": 23, + "column": 35, + "program": "dynamic_decl_import.ets" + } + } + }, + "body": { + "type": "BlockStatement", + "statements": [ + { + "type": "ReturnStatement", + "argument": { + "type": "NumberLiteral", + "value": 10, "loc": { "start": { - "line": 37, - "column": 5, + "line": 24, + "column": 16, "program": "dynamic_decl_import.ets" }, "end": { - "line": 37, - "column": 14, + "line": 24, + "column": 18, + "program": "dynamic_decl_import.ets" + } + } + }, + "loc": { + "start": { + "line": 24, + "column": 9, + "program": "dynamic_decl_import.ets" + }, + "end": { + "line": 24, + "column": 19, + "program": "dynamic_decl_import.ets" + } + } + } + ], + "loc": { + "start": { + "line": 23, + "column": 36, + "program": "dynamic_decl_import.ets" + }, + "end": { + "line": 25, + "column": 6, + "program": "dynamic_decl_import.ets" + } + } + }, + "loc": { + "start": { + "line": 23, + "column": 16, + "program": "dynamic_decl_import.ets" + }, + "end": { + "line": 25, + "column": 6, + "program": "dynamic_decl_import.ets" + } + } + }, + "loc": { + "start": { + "line": 23, + "column": 16, + "program": "dynamic_decl_import.ets" + }, + "end": { + "line": 25, + "column": 6, + "program": "dynamic_decl_import.ets" + } + } + }, + "overloads": [], + "loc": { + "start": { + "line": 23, + "column": 14, + "program": "dynamic_decl_import.ets" + }, + "end": { + "line": 25, + "column": 6, + "program": "dynamic_decl_import.ets" + } + } + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "f2", + "loc": { + "start": { + "line": 26, + "column": 14, + "program": "dynamic_decl_import.ets" + }, + "end": { + "line": 26, + "column": 16, + "program": "dynamic_decl_import.ets" + } + } + }, + "kind": "method", + "accessibility": "public", + "static": false, + "optional": false, + "computed": false, + "value": { + "type": "FunctionExpression", + "function": { + "type": "ScriptFunction", + "id": { + "type": "Identifier", + "name": "f2", + "loc": { + "start": { + "line": 26, + "column": 14, + "program": "dynamic_decl_import.ets" + }, + "end": { + "line": 26, + "column": 16, + "program": "dynamic_decl_import.ets" + } + } + }, + "generator": false, + "async": false, + "expression": false, + "params": [ + { + "type": "ETSParameterExpression", + "name": { + "type": "Identifier", + "name": "p", + "typeAnnotation": { + "type": "ETSPrimitiveType", + "loc": { + "start": { + "line": 26, + "column": 20, + "program": "dynamic_decl_import.ets" + }, + "end": { + "line": 26, + "column": 26, "program": "dynamic_decl_import.ets" } } }, "loc": { "start": { - "line": 37, - "column": 5, + "line": 26, + "column": 17, + "program": "dynamic_decl_import.ets" + }, + "end": { + "line": 26, + "column": 26, + "program": "dynamic_decl_import.ets" + } + } + }, + "loc": { + "start": { + "line": 26, + "column": 17, + "program": "dynamic_decl_import.ets" + }, + "end": { + "line": 26, + "column": 26, + "program": "dynamic_decl_import.ets" + } + } + } + ], + "returnType": { + "type": "ETSTypeReference", + "part": { + "type": "ETSTypeReferencePart", + "name": { + "type": "Identifier", + "name": "string", + "loc": { + "start": { + "line": 26, + "column": 29, "program": "dynamic_decl_import.ets" }, "end": { - "line": 37, - "column": 14, + "line": 26, + "column": 35, "program": "dynamic_decl_import.ets" } } }, + "loc": { + "start": { + "line": 26, + "column": 29, + "program": "dynamic_decl_import.ets" + }, + "end": { + "line": 26, + "column": 35, + "program": "dynamic_decl_import.ets" + } + } + }, + "loc": { + "start": { + "line": 26, + "column": 29, + "program": "dynamic_decl_import.ets" + }, + "end": { + "line": 26, + "column": 35, + "program": "dynamic_decl_import.ets" + } + } + }, + "body": { + "type": "BlockStatement", + "statements": [ { - "type": "ExpressionStatement", - "expression": { - "type": "CallExpression", - "callee": { - "type": "Identifier", - "name": "foo", - "loc": { - "start": { - "line": 39, - "column": 5, - "program": "dynamic_decl_import.ets" - }, - "end": { - "line": 39, - "column": 8, - "program": "dynamic_decl_import.ets" - } - } - }, - "arguments": [ - { - "type": "Identifier", - "name": "obj", - "loc": { - "start": { - "line": 39, - "column": 9, - "program": "dynamic_decl_import.ets" - }, - "end": { - "line": 39, - "column": 12, - "program": "dynamic_decl_import.ets" - } - } - } - ], - "optional": false, + "type": "ReturnStatement", + "argument": { + "type": "StringLiteral", + "value": "abc", "loc": { "start": { - "line": 39, - "column": 5, + "line": 27, + "column": 16, "program": "dynamic_decl_import.ets" }, "end": { - "line": 39, - "column": 13, + "line": 27, + "column": 21, "program": "dynamic_decl_import.ets" } } }, "loc": { "start": { - "line": 39, - "column": 5, + "line": 27, + "column": 9, "program": "dynamic_decl_import.ets" }, "end": { - "line": 39, - "column": 13, + "line": 27, + "column": 21, "program": "dynamic_decl_import.ets" } } @@ -1689,39 +1587,39 @@ ], "loc": { "start": { - "line": 31, - "column": 23, + "line": 26, + "column": 36, "program": "dynamic_decl_import.ets" }, "end": { - "line": 40, - "column": 2, + "line": 28, + "column": 6, "program": "dynamic_decl_import.ets" } } }, "loc": { "start": { - "line": 31, - "column": 10, + "line": 26, + "column": 16, "program": "dynamic_decl_import.ets" }, "end": { - "line": 40, - "column": 2, + "line": 28, + "column": 6, "program": "dynamic_decl_import.ets" } } }, "loc": { "start": { - "line": 31, - "column": 10, + "line": 26, + "column": 16, "program": "dynamic_decl_import.ets" }, "end": { - "line": 40, - "column": 2, + "line": 28, + "column": 6, "program": "dynamic_decl_import.ets" } } @@ -1729,40 +1627,142 @@ "overloads": [], "loc": { "start": { - "line": 31, - "column": 1, + "line": 26, + "column": 14, "program": "dynamic_decl_import.ets" }, "end": { - "line": 40, - "column": 2, + "line": 28, + "column": 6, "program": "dynamic_decl_import.ets" } } + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "constructor", + "loc": { + "start": { + "line": 22, + "column": 23, + "program": "dynamic_decl_import.ets" + }, + "end": { + "line": 22, + "column": 23, + "program": "dynamic_decl_import.ets" + } + } + }, + "kind": "constructor", + "static": false, + "optional": false, + "computed": false, + "value": { + "type": "FunctionExpression", + "function": { + "type": "ScriptFunction", + "id": { + "type": "Identifier", + "name": "constructor", + "loc": { + "start": { + "line": 22, + "column": 23, + "program": "dynamic_decl_import.ets" + }, + "end": { + "line": 22, + "column": 23, + "program": "dynamic_decl_import.ets" + } + } + }, + "generator": false, + "async": false, + "expression": false, + "params": [], + "body": { + "type": "BlockStatement", + "statements": [], + "loc": { + "start": { + "line": 22, + "column": 23, + "program": "dynamic_decl_import.ets" + }, + "end": { + "line": 22, + "column": 23, + "program": "dynamic_decl_import.ets" + } + } + }, + "loc": { + "start": { + "line": 22, + "column": 23, + "program": "dynamic_decl_import.ets" + }, + "end": { + "line": 22, + "column": 23, + "program": "dynamic_decl_import.ets" + } + } + }, + "loc": { + "start": { + "line": 22, + "column": 23, + "program": "dynamic_decl_import.ets" + }, + "end": { + "line": 22, + "column": 23, + "program": "dynamic_decl_import.ets" + } + } + }, + "overloads": [], + "loc": { + "start": { + "line": 1, + "column": 1, + "program": null + }, + "end": { + "line": 1, + "column": 1, + "program": null + } + } } ], "loc": { "start": { - "line": 1, - "column": 1, + "line": 22, + "column": 22, "program": "dynamic_decl_import.ets" }, "end": { - "line": 1, - "column": 1, + "line": 31, + "column": 9, "program": "dynamic_decl_import.ets" } } }, "loc": { "start": { - "line": 1, + "line": 22, "column": 1, "program": "dynamic_decl_import.ets" }, "end": { - "line": 1, - "column": 1, + "line": 31, + "column": 9, "program": "dynamic_decl_import.ets" } } @@ -1781,5 +1781,5 @@ } } } -TypeError: B is not abstract and does not implement getter for s property in I [dynamic_decl_import.ets:22:22] -TypeError: class B can not implements interface I which is from dynamic declaration file. [dynamic_decl_import.ets:22:22] +[dynamic_decl_import.ets:22:22] Semantic error ESE0188: B is not abstract and does not implement getter for s property in I +[dynamic_decl_import.ets:22:22] Semantic error ESE24143: class B can not implements interface I which is from dynamic declaration file. diff --git a/ets2panda/test/parser/ets/dynamic_import_tests/dynamic_iface_decl_bad-expected.txt b/ets2panda/test/parser/ets/dynamic_import_tests/dynamic_iface_decl_bad-expected.txt index e95dcaf92a..f5fa50aa86 100644 --- a/ets2panda/test/parser/ets/dynamic_import_tests/dynamic_iface_decl_bad-expected.txt +++ b/ets2panda/test/parser/ets/dynamic_import_tests/dynamic_iface_decl_bad-expected.txt @@ -86,105 +86,44 @@ "definition": { "id": { "type": "Identifier", - "name": "A", + "name": "ETSGLOBAL", "loc": { "start": { - "line": 22, - "column": 7, + "line": 1, + "column": 1, "program": "dynamic_iface_decl_bad.ets" }, "end": { - "line": 22, - "column": 8, + "line": 1, + "column": 1, "program": "dynamic_iface_decl_bad.ets" } } }, "superClass": null, - "implements": [ - { - "type": "TSClassImplements", - "expression": { - "type": "ETSTypeReference", - "part": { - "type": "ETSTypeReferencePart", - "name": { - "type": "Identifier", - "name": "I", - "loc": { - "start": { - "line": 22, - "column": 20, - "program": "dynamic_iface_decl_bad.ets" - }, - "end": { - "line": 22, - "column": 21, - "program": "dynamic_iface_decl_bad.ets" - } - } - }, - "loc": { - "start": { - "line": 22, - "column": 20, - "program": "dynamic_iface_decl_bad.ets" - }, - "end": { - "line": 22, - "column": 21, - "program": "dynamic_iface_decl_bad.ets" - } - } - }, - "loc": { - "start": { - "line": 22, - "column": 20, - "program": "dynamic_iface_decl_bad.ets" - }, - "end": { - "line": 22, - "column": 21, - "program": "dynamic_iface_decl_bad.ets" - } - } - }, - "loc": { - "start": { - "line": 22, - "column": 20, - "program": "dynamic_iface_decl_bad.ets" - }, - "end": { - "line": 22, - "column": 23, - "program": "dynamic_iface_decl_bad.ets" - } - } - } - ], + "implements": [], "body": [ { "type": "MethodDefinition", "key": { "type": "Identifier", - "name": "constructor", + "name": "main", "loc": { "start": { - "line": 22, - "column": 23, - "program": "dynamic_iface_decl_bad.ets" + "line": 1, + "column": 1, + "program": null }, "end": { - "line": 22, - "column": 23, - "program": "dynamic_iface_decl_bad.ets" + "line": 1, + "column": 1, + "program": null } } }, - "kind": "constructor", - "static": false, + "kind": "method", + "accessibility": "public", + "static": true, "optional": false, "computed": false, "value": { @@ -193,17 +132,17 @@ "type": "ScriptFunction", "id": { "type": "Identifier", - "name": "constructor", + "name": "main", "loc": { "start": { - "line": 22, - "column": 23, - "program": "dynamic_iface_decl_bad.ets" + "line": 1, + "column": 1, + "program": null }, "end": { - "line": 22, - "column": 23, - "program": "dynamic_iface_decl_bad.ets" + "line": 1, + "column": 1, + "program": null } } }, @@ -216,39 +155,39 @@ "statements": [], "loc": { "start": { - "line": 22, - "column": 23, + "line": 1, + "column": 1, "program": "dynamic_iface_decl_bad.ets" }, "end": { - "line": 22, - "column": 23, + "line": 1, + "column": 1, "program": "dynamic_iface_decl_bad.ets" } } }, "loc": { "start": { - "line": 22, - "column": 23, + "line": 1, + "column": 1, "program": "dynamic_iface_decl_bad.ets" }, "end": { - "line": 22, - "column": 23, + "line": 1, + "column": 1, "program": "dynamic_iface_decl_bad.ets" } } }, "loc": { "start": { - "line": 22, - "column": 23, + "line": 1, + "column": 1, "program": "dynamic_iface_decl_bad.ets" }, "end": { - "line": 22, - "column": 23, + "line": 1, + "column": 1, "program": "dynamic_iface_decl_bad.ets" } } @@ -258,38 +197,38 @@ "start": { "line": 1, "column": 1, - "program": null + "program": "dynamic_iface_decl_bad.ets" }, "end": { "line": 1, "column": 1, - "program": null + "program": "dynamic_iface_decl_bad.ets" } } } ], "loc": { "start": { - "line": 22, - "column": 22, + "line": 1, + "column": 1, "program": "dynamic_iface_decl_bad.ets" }, "end": { - "line": 24, - "column": 2, + "line": 1, + "column": 1, "program": "dynamic_iface_decl_bad.ets" } } }, "loc": { "start": { - "line": 22, + "line": 1, "column": 1, "program": "dynamic_iface_decl_bad.ets" }, "end": { - "line": 24, - "column": 2, + "line": 1, + "column": 1, "program": "dynamic_iface_decl_bad.ets" } } @@ -299,44 +238,105 @@ "definition": { "id": { "type": "Identifier", - "name": "ETSGLOBAL", + "name": "A", "loc": { "start": { - "line": 1, - "column": 1, + "line": 22, + "column": 7, "program": "dynamic_iface_decl_bad.ets" }, "end": { - "line": 1, - "column": 1, + "line": 22, + "column": 8, "program": "dynamic_iface_decl_bad.ets" } } }, "superClass": null, - "implements": [], + "implements": [ + { + "type": "TSClassImplements", + "expression": { + "type": "ETSTypeReference", + "part": { + "type": "ETSTypeReferencePart", + "name": { + "type": "Identifier", + "name": "I", + "loc": { + "start": { + "line": 22, + "column": 20, + "program": "dynamic_iface_decl_bad.ets" + }, + "end": { + "line": 22, + "column": 21, + "program": "dynamic_iface_decl_bad.ets" + } + } + }, + "loc": { + "start": { + "line": 22, + "column": 20, + "program": "dynamic_iface_decl_bad.ets" + }, + "end": { + "line": 22, + "column": 21, + "program": "dynamic_iface_decl_bad.ets" + } + } + }, + "loc": { + "start": { + "line": 22, + "column": 20, + "program": "dynamic_iface_decl_bad.ets" + }, + "end": { + "line": 22, + "column": 21, + "program": "dynamic_iface_decl_bad.ets" + } + } + }, + "loc": { + "start": { + "line": 22, + "column": 20, + "program": "dynamic_iface_decl_bad.ets" + }, + "end": { + "line": 22, + "column": 23, + "program": "dynamic_iface_decl_bad.ets" + } + } + } + ], "body": [ { "type": "MethodDefinition", "key": { "type": "Identifier", - "name": "main", + "name": "constructor", "loc": { "start": { - "line": 1, - "column": 1, - "program": null + "line": 22, + "column": 23, + "program": "dynamic_iface_decl_bad.ets" }, "end": { - "line": 1, - "column": 1, - "program": null + "line": 22, + "column": 23, + "program": "dynamic_iface_decl_bad.ets" } } }, - "kind": "method", - "accessibility": "public", - "static": true, + "kind": "constructor", + "static": false, "optional": false, "computed": false, "value": { @@ -345,17 +345,17 @@ "type": "ScriptFunction", "id": { "type": "Identifier", - "name": "main", + "name": "constructor", "loc": { "start": { - "line": 1, - "column": 1, - "program": null + "line": 22, + "column": 23, + "program": "dynamic_iface_decl_bad.ets" }, "end": { - "line": 1, - "column": 1, - "program": null + "line": 22, + "column": 23, + "program": "dynamic_iface_decl_bad.ets" } } }, @@ -368,39 +368,39 @@ "statements": [], "loc": { "start": { - "line": 1, - "column": 1, + "line": 22, + "column": 23, "program": "dynamic_iface_decl_bad.ets" }, "end": { - "line": 1, - "column": 1, + "line": 22, + "column": 23, "program": "dynamic_iface_decl_bad.ets" } } }, "loc": { "start": { - "line": 1, - "column": 1, + "line": 22, + "column": 23, "program": "dynamic_iface_decl_bad.ets" }, "end": { - "line": 1, - "column": 1, + "line": 22, + "column": 23, "program": "dynamic_iface_decl_bad.ets" } } }, "loc": { "start": { - "line": 1, - "column": 1, + "line": 22, + "column": 23, "program": "dynamic_iface_decl_bad.ets" }, "end": { - "line": 1, - "column": 1, + "line": 22, + "column": 23, "program": "dynamic_iface_decl_bad.ets" } } @@ -410,38 +410,38 @@ "start": { "line": 1, "column": 1, - "program": "dynamic_iface_decl_bad.ets" + "program": null }, "end": { "line": 1, "column": 1, - "program": "dynamic_iface_decl_bad.ets" + "program": null } } } ], "loc": { "start": { - "line": 1, - "column": 1, + "line": 22, + "column": 22, "program": "dynamic_iface_decl_bad.ets" }, "end": { - "line": 1, - "column": 1, + "line": 24, + "column": 2, "program": "dynamic_iface_decl_bad.ets" } } }, "loc": { "start": { - "line": 1, + "line": 22, "column": 1, "program": "dynamic_iface_decl_bad.ets" }, "end": { - "line": 1, - "column": 1, + "line": 24, + "column": 2, "program": "dynamic_iface_decl_bad.ets" } } @@ -460,5 +460,5 @@ } } } -TypeError: A is not abstract and does not override abstract method f1(p: String): Double in I [dynamic_iface_decl_bad.ets:22:22] -TypeError: class A can not implements interface I which is from dynamic declaration file. [dynamic_iface_decl_bad.ets:22:22] +[dynamic_iface_decl_bad.ets:22:22] Semantic error ESE0190: A is not abstract and does not override abstract method f1(p: String): Double in I +[dynamic_iface_decl_bad.ets:22:22] Semantic error ESE24143: class A can not implements interface I which is from dynamic declaration file. diff --git a/ets2panda/test/parser/ets/dynamic_import_tests/modules/instanceof-expected.txt b/ets2panda/test/parser/ets/dynamic_import_tests/modules/instanceof-expected.txt index fc76bf75e5..0d226767c1 100644 --- a/ets2panda/test/parser/ets/dynamic_import_tests/modules/instanceof-expected.txt +++ b/ets2panda/test/parser/ets/dynamic_import_tests/modules/instanceof-expected.txt @@ -1,6 +1,54 @@ { "type": "Program", "statements": [ + { + "type": "ClassDeclaration", + "definition": { + "id": { + "type": "Identifier", + "name": "ETSGLOBAL", + "loc": { + "start": { + "line": 1, + "column": 1, + "program": "instanceof.ets" + }, + "end": { + "line": 1, + "column": 1, + "program": "instanceof.ets" + } + } + }, + "superClass": null, + "implements": [], + "body": [], + "loc": { + "start": { + "line": 1, + "column": 1, + "program": "instanceof.ets" + }, + "end": { + "line": 1, + "column": 1, + "program": "instanceof.ets" + } + } + }, + "loc": { + "start": { + "line": 1, + "column": 1, + "program": "instanceof.ets" + }, + "end": { + "line": 1, + "column": 1, + "program": "instanceof.ets" + } + } + }, { "type": "ClassDeclaration", "definition": { @@ -302,54 +350,6 @@ "program": "instanceof.ets" } } - }, - { - "type": "ClassDeclaration", - "definition": { - "id": { - "type": "Identifier", - "name": "ETSGLOBAL", - "loc": { - "start": { - "line": 1, - "column": 1, - "program": "instanceof.ets" - }, - "end": { - "line": 1, - "column": 1, - "program": "instanceof.ets" - } - } - }, - "superClass": null, - "implements": [], - "body": [], - "loc": { - "start": { - "line": 1, - "column": 1, - "program": "instanceof.ets" - }, - "end": { - "line": 1, - "column": 1, - "program": "instanceof.ets" - } - } - }, - "loc": { - "start": { - "line": 1, - "column": 1, - "program": "instanceof.ets" - }, - "end": { - "line": 1, - "column": 1, - "program": "instanceof.ets" - } - } } ], "loc": { diff --git a/ets2panda/test/parser/ets/import_tests/import_several_2-expected.txt b/ets2panda/test/parser/ets/import_tests/import_several_2-expected.txt index 982735de84..68d25a8c84 100755 --- a/ets2panda/test/parser/ets/import_tests/import_several_2-expected.txt +++ b/ets2panda/test/parser/ets/import_tests/import_several_2-expected.txt @@ -382,3 +382,4 @@ } } } +[import_several_2.ets:16:14] Warning W125428: 'foo' has already imported diff --git a/ets2panda/test/parser/ets/import_tests/import_several_7-expected.txt b/ets2panda/test/parser/ets/import_tests/import_several_7-expected.txt index a8eb8a7897..a15f7fdcfd 100755 --- a/ets2panda/test/parser/ets/import_tests/import_several_7-expected.txt +++ b/ets2panda/test/parser/ets/import_tests/import_several_7-expected.txt @@ -564,3 +564,4 @@ } } } +[import_several_7.ets:16:21] Warning W32596: 'foo' is explicitly used with alias several times diff --git a/ets2panda/test/parser/ets/import_tests/packages/var-duplication/subpackage_module_1-expected.txt b/ets2panda/test/parser/ets/import_tests/packages/var-duplication/subpackage_module_1-expected.txt index ff444fa8a9..3b28bdee0a 100644 --- a/ets2panda/test/parser/ets/import_tests/packages/var-duplication/subpackage_module_1-expected.txt +++ b/ets2panda/test/parser/ets/import_tests/packages/var-duplication/subpackage_module_1-expected.txt @@ -325,4 +325,4 @@ } } } -TypeError: Variable 'a' has already been declared. [subpackage_module_2.ets:19:12] +[subpackage_module_2.ets:19:12] Semantic error ESE0351: Variable 'a' has already been declared. diff --git a/ets2panda/test/parser/ets/import_tests/packages/var-duplication/subpackage_module_2-expected.txt b/ets2panda/test/parser/ets/import_tests/packages/var-duplication/subpackage_module_2-expected.txt index ff49dbefde..13b2432c6a 100644 --- a/ets2panda/test/parser/ets/import_tests/packages/var-duplication/subpackage_module_2-expected.txt +++ b/ets2panda/test/parser/ets/import_tests/packages/var-duplication/subpackage_module_2-expected.txt @@ -325,4 +325,4 @@ } } } -TypeError: Variable 'a' has already been declared. [subpackage_module_1.ets:19:12] +[subpackage_module_1.ets:19:12] Semantic error ESE0351: Variable 'a' has already been declared. diff --git a/ets2panda/test/parser/ets/instanceof-expected.txt b/ets2panda/test/parser/ets/instanceof-expected.txt index ad0878f219..3ecb29df70 100644 --- a/ets2panda/test/parser/ets/instanceof-expected.txt +++ b/ets2panda/test/parser/ets/instanceof-expected.txt @@ -930,4 +930,4 @@ } } } -Warning: Type parameter is erased from type 'Array' when used in instanceof expression. [instanceof.ets:1:1] +[instanceof.ets:1:1] Warning W0015: Type parameter is erased from type 'Array' when used in instanceof expression. diff --git a/ets2panda/test/parser/ets/interfaces-expected.txt b/ets2panda/test/parser/ets/interfaces-expected.txt index 826fb2699d..f60d6f67ee 100644 --- a/ets2panda/test/parser/ets/interfaces-expected.txt +++ b/ets2panda/test/parser/ets/interfaces-expected.txt @@ -1346,4 +1346,4 @@ } } } -TypeError: 'nopnop' is an instance property of 'I0' [interfaces.ets:22:28] +[interfaces.ets:22:28] Semantic error ESE0208: 'nopnop' is an instance property of 'I0' diff --git a/ets2panda/test/parser/ets/literals-expected.txt b/ets2panda/test/parser/ets/literals-expected.txt index 69f3b15827..e904f7fdcf 100644 --- a/ets2panda/test/parser/ets/literals-expected.txt +++ b/ets2panda/test/parser/ets/literals-expected.txt @@ -1448,4 +1448,4 @@ } } } -TypeError: Can't resolve array type [literals.ets:35:15] +[literals.ets:35:15] Semantic error ESE0301: Can't resolve array type diff --git a/ets2panda/test/parser/ets/re_export/import_10-expected.txt b/ets2panda/test/parser/ets/re_export/import_10-expected.txt index fab1f541b7..d2d1eecb24 100644 --- a/ets2panda/test/parser/ets/re_export/import_10-expected.txt +++ b/ets2panda/test/parser/ets/re_export/import_10-expected.txt @@ -262,4 +262,4 @@ } } } -TypeError: Ambiguous export 'foo' [re_export_4.ets:16:8] +[re_export_4.ets:16:8] Semantic error ESE0362: Ambiguous export 'foo' diff --git a/ets2panda/test/parser/ets/re_export/re_export_4-expected.txt b/ets2panda/test/parser/ets/re_export/re_export_4-expected.txt index 83bc4e0efb..486afe3752 100644 --- a/ets2panda/test/parser/ets/re_export/re_export_4-expected.txt +++ b/ets2panda/test/parser/ets/re_export/re_export_4-expected.txt @@ -357,4 +357,4 @@ } } } -TypeError: Ambiguous export 'foo' [re_export_4.ets:16:8] +[re_export_4.ets:16:8] Semantic error ESE0362: Ambiguous export 'foo' diff --git a/ets2panda/test/parser/ets/switch2-expected.txt b/ets2panda/test/parser/ets/switch2-expected.txt index d74844750a..55bde82ff3 100644 --- a/ets2panda/test/parser/ets/switch2-expected.txt +++ b/ets2panda/test/parser/ets/switch2-expected.txt @@ -713,6 +713,6 @@ } } } -TypeError: Switch case type 'int' is not comparable to discriminant type 'byte' [switch2.ets:21:8] -TypeError: Switch case type 'int' is not comparable to discriminant type 'byte' [switch2.ets:22:8] -TypeError: Switch case type 'int' is not comparable to discriminant type 'byte' [switch2.ets:25:8] +[switch2.ets:21:8] Semantic error ESE0262: Switch case type 'int' is not comparable to discriminant type 'byte' +[switch2.ets:22:8] Semantic error ESE0262: Switch case type 'int' is not comparable to discriminant type 'byte' +[switch2.ets:25:8] Semantic error ESE0262: Switch case type 'int' is not comparable to discriminant type 'byte' diff --git a/ets2panda/test/parser/ets/switch_char_compare_num-expected.txt b/ets2panda/test/parser/ets/switch_char_compare_num-expected.txt index 713d9a69ea..8a7f5f2bf7 100644 --- a/ets2panda/test/parser/ets/switch_char_compare_num-expected.txt +++ b/ets2panda/test/parser/ets/switch_char_compare_num-expected.txt @@ -364,4 +364,4 @@ } } } -TypeError: Switch case type 'int' is not comparable to discriminant type 'char' [switch_char_compare_num.ets:21:14] +[switch_char_compare_num.ets:21:14] Semantic error ESE0262: Switch case type 'int' is not comparable to discriminant type 'char' diff --git a/ets2panda/test/parser/ets/test_jsvalue_get_double-expected.txt b/ets2panda/test/parser/ets/test_jsvalue_get_double-expected.txt index 18767c6050..04e560f119 100644 --- a/ets2panda/test/parser/ets/test_jsvalue_get_double-expected.txt +++ b/ets2panda/test/parser/ets/test_jsvalue_get_double-expected.txt @@ -304,4 +304,4 @@ } } } -TypeError: Type 'JSValue' cannot be assigned to type 'Double' [test_jsvalue_get_double.ets:17:21] +[test_jsvalue_get_double.ets:17:21] Semantic error ESE0318: Type 'JSValue' cannot be assigned to type 'Double' diff --git a/ets2panda/test/parser/ets/test_jsvalue_get_property_1-expected.txt b/ets2panda/test/parser/ets/test_jsvalue_get_property_1-expected.txt index 1872e38149..9ba1c0cac9 100644 --- a/ets2panda/test/parser/ets/test_jsvalue_get_property_1-expected.txt +++ b/ets2panda/test/parser/ets/test_jsvalue_get_property_1-expected.txt @@ -335,4 +335,4 @@ } } } -TypeError: Property 'prop_name' does not exist on type 'JSValue' [test_jsvalue_get_property_1.ets:17:23] +[test_jsvalue_get_property_1.ets:17:23] Semantic error ESE0087: Property 'prop_name' does not exist on type 'JSValue' diff --git a/ets2panda/test/parser/ets/test_jsvalue_get_property_2-expected.txt b/ets2panda/test/parser/ets/test_jsvalue_get_property_2-expected.txt index ba25d79ccd..d627a4825a 100644 --- a/ets2panda/test/parser/ets/test_jsvalue_get_property_2-expected.txt +++ b/ets2panda/test/parser/ets/test_jsvalue_get_property_2-expected.txt @@ -335,4 +335,4 @@ } } } -TypeError: Property 'prop_name_1' does not exist on type 'JSValue' [test_jsvalue_get_property_2.ets:17:23] +[test_jsvalue_get_property_2.ets:17:23] Semantic error ESE0087: Property 'prop_name_1' does not exist on type 'JSValue' diff --git a/ets2panda/test/parser/ets/test_jsvalue_set_double-expected.txt b/ets2panda/test/parser/ets/test_jsvalue_set_double-expected.txt index ec60fb2752..efaccee96b 100644 --- a/ets2panda/test/parser/ets/test_jsvalue_set_double-expected.txt +++ b/ets2panda/test/parser/ets/test_jsvalue_set_double-expected.txt @@ -445,4 +445,4 @@ } } } -TypeError: Type 'Double' cannot be assigned to type 'JSValue' [test_jsvalue_set_double.ets:18:9] +[test_jsvalue_set_double.ets:18:9] Semantic error ESE0318: Type 'Double' cannot be assigned to type 'JSValue' diff --git a/ets2panda/test/parser/ets/test_type_alias6-expected.txt b/ets2panda/test/parser/ets/test_type_alias6-expected.txt index 23c786fedf..ae1650de4c 100644 --- a/ets2panda/test/parser/ets/test_type_alias6-expected.txt +++ b/ets2panda/test/parser/ets/test_type_alias6-expected.txt @@ -267,5 +267,5 @@ } } } -TypeError: Variable 'x' has already been declared. [test_type_alias6.ets:17:5] -TypeError: Type name 'x' used in the wrong context [test_type_alias6.ets:17:5] +[test_type_alias6.ets:17:5] Semantic error ESE0351: Variable 'x' has already been declared. +[test_type_alias6.ets:17:5] Semantic error ESE0144: Type name 'x' used in the wrong context diff --git a/ets2panda/test/parser/ets/type_alias_1-expected.txt b/ets2panda/test/parser/ets/type_alias_1-expected.txt index 2c757add14..6979a689e8 100644 --- a/ets2panda/test/parser/ets/type_alias_1-expected.txt +++ b/ets2panda/test/parser/ets/type_alias_1-expected.txt @@ -423,4 +423,4 @@ } } } -TypeError: Variable 'Matrix' has already been declared. [type_alias_1.ets:18:5] +[type_alias_1.ets:18:5] Semantic error ESE0351: Variable 'Matrix' has already been declared. diff --git a/ets2panda/test/parser/js/test-conditional-expression-expected.txt b/ets2panda/test/parser/js/test-conditional-expression-expected.txt index bd941ea332..2399eaee92 100644 --- a/ets2panda/test/parser/js/test-conditional-expression-expected.txt +++ b/ets2panda/test/parser/js/test-conditional-expression-expected.txt @@ -439,7 +439,7 @@ "loc": { "start": { "line": 25, - "column": 1, + "column": 6, "program": "test-conditional-expression.js" }, "end": { @@ -484,7 +484,7 @@ "loc": { "start": { "line": 25, - "column": 1, + "column": 6, "program": "test-conditional-expression.js" }, "end": { diff --git a/ets2panda/test/parser/js/test-private-field-expected.txt b/ets2panda/test/parser/js/test-private-field-expected.txt index 2dda79cd02..1d8f94ea2d 100644 --- a/ets2panda/test/parser/js/test-private-field-expected.txt +++ b/ets2panda/test/parser/js/test-private-field-expected.txt @@ -698,7 +698,7 @@ "start": { "line": 1, "column": 1, - "program": null + "program": "test-private-field.js" }, "end": { "line": 24, diff --git a/ets2panda/test/parser/ts/test-func-param-expected.txt b/ets2panda/test/parser/ts/test-func-param-expected.txt index 6c34035c35..c1ae3afced 100644 --- a/ets2panda/test/parser/ts/test-func-param-expected.txt +++ b/ets2panda/test/parser/ts/test-func-param-expected.txt @@ -2568,4 +2568,3 @@ } } } -TypeError: Parameter b implicitly has any type. [test-func-param.ts:19:31] diff --git a/ets2panda/test/parser/ts/test-keyword-declare-expected.txt b/ets2panda/test/parser/ts/test-keyword-declare-expected.txt index 320bfdef5b..ac0ba03e0e 100644 --- a/ets2panda/test/parser/ts/test-keyword-declare-expected.txt +++ b/ets2panda/test/parser/ts/test-keyword-declare-expected.txt @@ -1372,4 +1372,3 @@ } } } -TypeError: Variable var1 implicitly has an any type. [test-keyword-declare.ts:17:5] diff --git a/ets2panda/test/parser/ts/test-keyword-declare7-expected.txt b/ets2panda/test/parser/ts/test-keyword-declare7-expected.txt index 33d600634e..468e079474 100644 --- a/ets2panda/test/parser/ts/test-keyword-declare7-expected.txt +++ b/ets2panda/test/parser/ts/test-keyword-declare7-expected.txt @@ -211,4 +211,3 @@ } } } -TypeError: Function implementation is missing or not immediately following the declaration. [test-keyword-declare7.ts:17:18] diff --git a/ets2panda/test/parser/ts/test-tuple-type-expected.txt b/ets2panda/test/parser/ts/test-tuple-type-expected.txt index 7705c1da37..137233782a 100644 --- a/ets2panda/test/parser/ts/test-tuple-type-expected.txt +++ b/ets2panda/test/parser/ts/test-tuple-type-expected.txt @@ -1034,4 +1034,3 @@ } } } -TypeError: Cannot find name A [test-tuple-type.ts:21:9] diff --git a/ets2panda/test/parser/ts/test-type-literal-expected.txt b/ets2panda/test/parser/ts/test-type-literal-expected.txt index 6dd28129a9..a84c17f007 100644 --- a/ets2panda/test/parser/ts/test-type-literal-expected.txt +++ b/ets2panda/test/parser/ts/test-type-literal-expected.txt @@ -1123,4 +1123,3 @@ } } } -TypeError: Parameter k implicitly has any type. [test-type-literal.ts:17:70] diff --git a/ets2panda/test/parser/ts/test_decorator-expected.txt b/ets2panda/test/parser/ts/test_decorator-expected.txt index a9628fae87..e69de29bb2 100644 --- a/ets2panda/test/parser/ts/test_decorator-expected.txt +++ b/ets2panda/test/parser/ts/test_decorator-expected.txt @@ -1,865 +0,0 @@ -{ - "type": "Program", - "statements": [ - { - "type": "ClassDeclaration", - "definition": { - "id": { - "type": "Identifier", - "name": "Baz", - "decorators": [], - "loc": { - "start": { - "line": 18, - "column": 7, - "program": "test_decorator.ts" - }, - "end": { - "line": 18, - "column": 10, - "program": "test_decorator.ts" - } - } - }, - "superClass": null, - "implements": [], - "constructor": { - "type": "MethodDefinition", - "key": { - "type": "Identifier", - "name": "constructor", - "decorators": [], - "loc": { - "start": { - "line": 27, - "column": 5, - "program": "test_decorator.ts" - }, - "end": { - "line": 27, - "column": 16, - "program": "test_decorator.ts" - } - } - }, - "kind": "constructor", - "static": false, - "optional": false, - "computed": false, - "value": { - "type": "FunctionExpression", - "function": { - "type": "ScriptFunction", - "id": null, - "generator": false, - "async": false, - "expression": false, - "params": [ - { - "type": "Identifier", - "name": "a", - "typeAnnotation": { - "type": "TSAnyKeyword", - "loc": { - "start": { - "line": 27, - "column": 23, - "program": "test_decorator.ts" - }, - "end": { - "line": 27, - "column": 26, - "program": "test_decorator.ts" - } - } - }, - "decorators": [ - { - "type": "Decorator", - "expression": { - "type": "Identifier", - "name": "g", - "decorators": [], - "loc": { - "start": { - "line": 27, - "column": 18, - "program": "test_decorator.ts" - }, - "end": { - "line": 27, - "column": 19, - "program": "test_decorator.ts" - } - } - }, - "loc": { - "start": { - "line": 27, - "column": 17, - "program": "test_decorator.ts" - }, - "end": { - "line": 27, - "column": 19, - "program": "test_decorator.ts" - } - } - } - ], - "loc": { - "start": { - "line": 27, - "column": 20, - "program": "test_decorator.ts" - }, - "end": { - "line": 27, - "column": 21, - "program": "test_decorator.ts" - } - } - } - ], - "body": { - "type": "BlockStatement", - "statements": [], - "loc": { - "start": { - "line": 27, - "column": 28, - "program": "test_decorator.ts" - }, - "end": { - "line": 27, - "column": 31, - "program": "test_decorator.ts" - } - } - }, - "loc": { - "start": { - "line": 27, - "column": 16, - "program": "test_decorator.ts" - }, - "end": { - "line": 27, - "column": 31, - "program": "test_decorator.ts" - } - } - }, - "loc": { - "start": { - "line": 27, - "column": 16, - "program": "test_decorator.ts" - }, - "end": { - "line": 27, - "column": 31, - "program": "test_decorator.ts" - } - } - }, - "overloads": [], - "decorators": [], - "loc": { - "start": { - "line": 27, - "column": 5, - "program": "test_decorator.ts" - }, - "end": { - "line": 27, - "column": 31, - "program": "test_decorator.ts" - } - } - }, - "body": [ - { - "type": "MethodDefinition", - "key": { - "type": "Identifier", - "name": "a", - "decorators": [], - "loc": { - "start": { - "line": 19, - "column": 5, - "program": "test_decorator.ts" - }, - "end": { - "line": 19, - "column": 6, - "program": "test_decorator.ts" - } - } - }, - "kind": "method", - "static": false, - "optional": false, - "computed": false, - "value": { - "type": "FunctionExpression", - "function": { - "type": "ScriptFunction", - "id": null, - "generator": false, - "async": false, - "expression": false, - "params": [], - "loc": { - "start": { - "line": 19, - "column": 6, - "program": "test_decorator.ts" - }, - "end": { - "line": 19, - "column": 9, - "program": "test_decorator.ts" - } - } - }, - "loc": { - "start": { - "line": 19, - "column": 6, - "program": "test_decorator.ts" - }, - "end": { - "line": 19, - "column": 9, - "program": "test_decorator.ts" - } - } - }, - "overloads": [], - "decorators": [], - "loc": { - "start": { - "line": 19, - "column": 5, - "program": "test_decorator.ts" - }, - "end": { - "line": 19, - "column": 9, - "program": "test_decorator.ts" - } - } - }, - { - "type": "MethodDefinition", - "key": { - "type": "Identifier", - "name": "a", - "decorators": [], - "loc": { - "start": { - "line": 21, - "column": 5, - "program": "test_decorator.ts" - }, - "end": { - "line": 21, - "column": 6, - "program": "test_decorator.ts" - } - } - }, - "kind": "method", - "static": false, - "optional": false, - "computed": false, - "value": { - "type": "FunctionExpression", - "function": { - "type": "ScriptFunction", - "id": null, - "generator": false, - "async": false, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "statements": [], - "loc": { - "start": { - "line": 21, - "column": 9, - "program": "test_decorator.ts" - }, - "end": { - "line": 21, - "column": 12, - "program": "test_decorator.ts" - } - } - }, - "loc": { - "start": { - "line": 21, - "column": 6, - "program": "test_decorator.ts" - }, - "end": { - "line": 21, - "column": 12, - "program": "test_decorator.ts" - } - } - }, - "loc": { - "start": { - "line": 21, - "column": 6, - "program": "test_decorator.ts" - }, - "end": { - "line": 21, - "column": 12, - "program": "test_decorator.ts" - } - } - }, - "overloads": [], - "decorators": [ - { - "type": "Decorator", - "expression": { - "type": "Identifier", - "name": "c", - "decorators": [], - "loc": { - "start": { - "line": 20, - "column": 6, - "program": "test_decorator.ts" - }, - "end": { - "line": 20, - "column": 7, - "program": "test_decorator.ts" - } - } - }, - "loc": { - "start": { - "line": 20, - "column": 5, - "program": "test_decorator.ts" - }, - "end": { - "line": 20, - "column": 7, - "program": "test_decorator.ts" - } - } - } - ], - "loc": { - "start": { - "line": 20, - "column": 5, - "program": "test_decorator.ts" - }, - "end": { - "line": 21, - "column": 12, - "program": "test_decorator.ts" - } - } - }, - { - "type": "ClassProperty", - "key": { - "type": "Identifier", - "name": "c", - "decorators": [], - "loc": { - "start": { - "line": 23, - "column": 5, - "program": "test_decorator.ts" - }, - "end": { - "line": 23, - "column": 6, - "program": "test_decorator.ts" - } - } - }, - "static": false, - "readonly": false, - "declare": false, - "optional": false, - "computed": false, - "typeAnnotation": { - "type": "TSNumberKeyword", - "loc": { - "start": { - "line": 23, - "column": 8, - "program": "test_decorator.ts" - }, - "end": { - "line": 23, - "column": 14, - "program": "test_decorator.ts" - } - } - }, - "definite": false, - "decorators": [ - { - "type": "Decorator", - "expression": { - "type": "Identifier", - "name": "d", - "decorators": [], - "loc": { - "start": { - "line": 22, - "column": 6, - "program": "test_decorator.ts" - }, - "end": { - "line": 22, - "column": 7, - "program": "test_decorator.ts" - } - } - }, - "loc": { - "start": { - "line": 22, - "column": 5, - "program": "test_decorator.ts" - }, - "end": { - "line": 22, - "column": 7, - "program": "test_decorator.ts" - } - } - } - ], - "loc": { - "start": { - "line": 22, - "column": 5, - "program": "test_decorator.ts" - }, - "end": { - "line": 23, - "column": 6, - "program": "test_decorator.ts" - } - } - }, - { - "type": "MethodDefinition", - "key": { - "type": "Identifier", - "name": "b", - "decorators": [], - "loc": { - "start": { - "line": 25, - "column": 9, - "program": "test_decorator.ts" - }, - "end": { - "line": 25, - "column": 10, - "program": "test_decorator.ts" - } - } - }, - "kind": "set", - "static": false, - "optional": false, - "computed": false, - "value": { - "type": "FunctionExpression", - "function": { - "type": "ScriptFunction", - "id": null, - "generator": false, - "async": false, - "expression": false, - "params": [ - { - "type": "Identifier", - "name": "f", - "decorators": [], - "loc": { - "start": { - "line": 25, - "column": 11, - "program": "test_decorator.ts" - }, - "end": { - "line": 25, - "column": 12, - "program": "test_decorator.ts" - } - } - } - ], - "body": { - "type": "BlockStatement", - "statements": [], - "loc": { - "start": { - "line": 25, - "column": 14, - "program": "test_decorator.ts" - }, - "end": { - "line": 25, - "column": 17, - "program": "test_decorator.ts" - } - } - }, - "loc": { - "start": { - "line": 25, - "column": 10, - "program": "test_decorator.ts" - }, - "end": { - "line": 25, - "column": 17, - "program": "test_decorator.ts" - } - } - }, - "loc": { - "start": { - "line": 25, - "column": 10, - "program": "test_decorator.ts" - }, - "end": { - "line": 25, - "column": 17, - "program": "test_decorator.ts" - } - } - }, - "overloads": [], - "decorators": [ - { - "type": "Decorator", - "expression": { - "type": "CallExpression", - "callee": { - "type": "Identifier", - "name": "e", - "decorators": [], - "loc": { - "start": { - "line": 24, - "column": 6, - "program": "test_decorator.ts" - }, - "end": { - "line": 24, - "column": 7, - "program": "test_decorator.ts" - } - } - }, - "arguments": [], - "optional": false, - "loc": { - "start": { - "line": 24, - "column": 6, - "program": "test_decorator.ts" - }, - "end": { - "line": 24, - "column": 9, - "program": "test_decorator.ts" - } - } - }, - "loc": { - "start": { - "line": 24, - "column": 5, - "program": "test_decorator.ts" - }, - "end": { - "line": 24, - "column": 9, - "program": "test_decorator.ts" - } - } - } - ], - "loc": { - "start": { - "line": 24, - "column": 5, - "program": "test_decorator.ts" - }, - "end": { - "line": 25, - "column": 17, - "program": "test_decorator.ts" - } - } - }, - { - "type": "MethodDefinition", - "key": { - "type": "Identifier", - "name": "b", - "decorators": [], - "loc": { - "start": { - "line": 26, - "column": 9, - "program": "test_decorator.ts" - }, - "end": { - "line": 26, - "column": 10, - "program": "test_decorator.ts" - } - } - }, - "kind": "get", - "static": false, - "optional": false, - "computed": false, - "value": { - "type": "FunctionExpression", - "function": { - "type": "ScriptFunction", - "id": null, - "generator": false, - "async": false, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "statements": [ - { - "type": "ReturnStatement", - "argument": { - "type": "NumberLiteral", - "value": 1, - "loc": { - "start": { - "line": 26, - "column": 22, - "program": "test_decorator.ts" - }, - "end": { - "line": 26, - "column": 23, - "program": "test_decorator.ts" - } - } - }, - "loc": { - "start": { - "line": 26, - "column": 15, - "program": "test_decorator.ts" - }, - "end": { - "line": 26, - "column": 24, - "program": "test_decorator.ts" - } - } - } - ], - "loc": { - "start": { - "line": 26, - "column": 13, - "program": "test_decorator.ts" - }, - "end": { - "line": 26, - "column": 26, - "program": "test_decorator.ts" - } - } - }, - "loc": { - "start": { - "line": 26, - "column": 10, - "program": "test_decorator.ts" - }, - "end": { - "line": 26, - "column": 26, - "program": "test_decorator.ts" - } - } - }, - "loc": { - "start": { - "line": 26, - "column": 10, - "program": "test_decorator.ts" - }, - "end": { - "line": 26, - "column": 26, - "program": "test_decorator.ts" - } - } - }, - "overloads": [], - "decorators": [], - "loc": { - "start": { - "line": 26, - "column": 5, - "program": "test_decorator.ts" - }, - "end": { - "line": 26, - "column": 26, - "program": "test_decorator.ts" - } - } - } - ], - "loc": { - "start": { - "line": 18, - "column": 11, - "program": "test_decorator.ts" - }, - "end": { - "line": 29, - "column": 1, - "program": "test_decorator.ts" - } - } - }, - "decorators": [ - { - "type": "Decorator", - "expression": { - "type": "Identifier", - "name": "foo", - "decorators": [], - "loc": { - "start": { - "line": 17, - "column": 2, - "program": "test_decorator.ts" - }, - "end": { - "line": 17, - "column": 5, - "program": "test_decorator.ts" - } - } - }, - "loc": { - "start": { - "line": 17, - "column": 1, - "program": "test_decorator.ts" - }, - "end": { - "line": 17, - "column": 5, - "program": "test_decorator.ts" - } - } - }, - { - "type": "Decorator", - "expression": { - "type": "CallExpression", - "callee": { - "type": "Identifier", - "name": "bar", - "decorators": [], - "loc": { - "start": { - "line": 17, - "column": 7, - "program": "test_decorator.ts" - }, - "end": { - "line": 17, - "column": 10, - "program": "test_decorator.ts" - } - } - }, - "arguments": [], - "optional": false, - "loc": { - "start": { - "line": 17, - "column": 7, - "program": "test_decorator.ts" - }, - "end": { - "line": 17, - "column": 12, - "program": "test_decorator.ts" - } - } - }, - "loc": { - "start": { - "line": 17, - "column": 6, - "program": "test_decorator.ts" - }, - "end": { - "line": 17, - "column": 12, - "program": "test_decorator.ts" - } - } - } - ], - "loc": { - "start": { - "line": 18, - "column": 1, - "program": "test_decorator.ts" - }, - "end": { - "line": 29, - "column": 1, - "program": "test_decorator.ts" - } - } - } - ], - "loc": { - "start": { - "line": 1, - "column": 1, - "program": "test_decorator.ts" - }, - "end": { - "line": 29, - "column": 1, - "program": "test_decorator.ts" - } - } -} diff --git a/ets2panda/test/parser/ts/test_decorator3-expected.txt b/ets2panda/test/parser/ts/test_decorator3-expected.txt index 8bff613181..e69de29bb2 100644 --- a/ets2panda/test/parser/ts/test_decorator3-expected.txt +++ b/ets2panda/test/parser/ts/test_decorator3-expected.txt @@ -1,452 +0,0 @@ -{ - "type": "Program", - "statements": [ - { - "type": "ClassDeclaration", - "definition": { - "id": { - "type": "Identifier", - "name": "Foo", - "decorators": [], - "loc": { - "start": { - "line": 18, - "column": 7, - "program": "test_decorator3.ts" - }, - "end": { - "line": 18, - "column": 10, - "program": "test_decorator3.ts" - } - } - }, - "superClass": null, - "implements": [], - "constructor": { - "type": "MethodDefinition", - "key": { - "type": "Identifier", - "name": "constructor", - "decorators": [], - "loc": { - "start": { - "line": 18, - "column": 12, - "program": "test_decorator3.ts" - }, - "end": { - "line": 18, - "column": 12, - "program": "test_decorator3.ts" - } - } - }, - "kind": "constructor", - "static": false, - "optional": false, - "computed": false, - "value": { - "type": "FunctionExpression", - "function": { - "type": "ScriptFunction", - "id": null, - "generator": false, - "async": false, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "statements": [], - "loc": { - "start": { - "line": 18, - "column": 12, - "program": "test_decorator3.ts" - }, - "end": { - "line": 18, - "column": 12, - "program": "test_decorator3.ts" - } - } - }, - "loc": { - "start": { - "line": 18, - "column": 12, - "program": "test_decorator3.ts" - }, - "end": { - "line": 18, - "column": 12, - "program": "test_decorator3.ts" - } - } - }, - "loc": { - "start": { - "line": 18, - "column": 12, - "program": "test_decorator3.ts" - }, - "end": { - "line": 18, - "column": 12, - "program": "test_decorator3.ts" - } - } - }, - "overloads": [], - "decorators": [], - "loc": { - "start": { - "line": 1, - "column": 1, - "program": null - }, - "end": { - "line": 1, - "column": 1, - "program": null - } - } - }, - "body": [ - { - "type": "MethodDefinition", - "key": { - "type": "Identifier", - "name": "baz", - "decorators": [], - "loc": { - "start": { - "line": 19, - "column": 14, - "program": "test_decorator3.ts" - }, - "end": { - "line": 19, - "column": 17, - "program": "test_decorator3.ts" - } - } - }, - "kind": "set", - "static": false, - "optional": false, - "computed": false, - "value": { - "type": "FunctionExpression", - "function": { - "type": "ScriptFunction", - "id": null, - "generator": false, - "async": false, - "expression": false, - "params": [ - { - "type": "Identifier", - "name": "a", - "decorators": [], - "loc": { - "start": { - "line": 19, - "column": 18, - "program": "test_decorator3.ts" - }, - "end": { - "line": 19, - "column": 19, - "program": "test_decorator3.ts" - } - } - } - ], - "body": { - "type": "BlockStatement", - "statements": [], - "loc": { - "start": { - "line": 19, - "column": 21, - "program": "test_decorator3.ts" - }, - "end": { - "line": 19, - "column": 24, - "program": "test_decorator3.ts" - } - } - }, - "loc": { - "start": { - "line": 19, - "column": 17, - "program": "test_decorator3.ts" - }, - "end": { - "line": 19, - "column": 24, - "program": "test_decorator3.ts" - } - } - }, - "loc": { - "start": { - "line": 19, - "column": 17, - "program": "test_decorator3.ts" - }, - "end": { - "line": 19, - "column": 24, - "program": "test_decorator3.ts" - } - } - }, - "overloads": [], - "decorators": [ - { - "type": "Decorator", - "expression": { - "type": "Identifier", - "name": "dec", - "decorators": [], - "loc": { - "start": { - "line": 19, - "column": 6, - "program": "test_decorator3.ts" - }, - "end": { - "line": 19, - "column": 9, - "program": "test_decorator3.ts" - } - } - }, - "loc": { - "start": { - "line": 19, - "column": 5, - "program": "test_decorator3.ts" - }, - "end": { - "line": 19, - "column": 9, - "program": "test_decorator3.ts" - } - } - } - ], - "loc": { - "start": { - "line": 19, - "column": 5, - "program": "test_decorator3.ts" - }, - "end": { - "line": 19, - "column": 24, - "program": "test_decorator3.ts" - } - } - }, - { - "type": "MethodDefinition", - "key": { - "type": "Identifier", - "name": "baz", - "decorators": [], - "loc": { - "start": { - "line": 20, - "column": 14, - "program": "test_decorator3.ts" - }, - "end": { - "line": 20, - "column": 17, - "program": "test_decorator3.ts" - } - } - }, - "kind": "get", - "static": false, - "optional": false, - "computed": false, - "value": { - "type": "FunctionExpression", - "function": { - "type": "ScriptFunction", - "id": null, - "generator": false, - "async": false, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "statements": [], - "loc": { - "start": { - "line": 20, - "column": 20, - "program": "test_decorator3.ts" - }, - "end": { - "line": 20, - "column": 23, - "program": "test_decorator3.ts" - } - } - }, - "loc": { - "start": { - "line": 20, - "column": 17, - "program": "test_decorator3.ts" - }, - "end": { - "line": 20, - "column": 23, - "program": "test_decorator3.ts" - } - } - }, - "loc": { - "start": { - "line": 20, - "column": 17, - "program": "test_decorator3.ts" - }, - "end": { - "line": 20, - "column": 23, - "program": "test_decorator3.ts" - } - } - }, - "overloads": [], - "decorators": [ - { - "type": "Decorator", - "expression": { - "type": "Identifier", - "name": "dec", - "decorators": [], - "loc": { - "start": { - "line": 20, - "column": 6, - "program": "test_decorator3.ts" - }, - "end": { - "line": 20, - "column": 9, - "program": "test_decorator3.ts" - } - } - }, - "loc": { - "start": { - "line": 20, - "column": 5, - "program": "test_decorator3.ts" - }, - "end": { - "line": 20, - "column": 9, - "program": "test_decorator3.ts" - } - } - } - ], - "loc": { - "start": { - "line": 20, - "column": 5, - "program": "test_decorator3.ts" - }, - "end": { - "line": 20, - "column": 23, - "program": "test_decorator3.ts" - } - } - } - ], - "loc": { - "start": { - "line": 18, - "column": 11, - "program": "test_decorator3.ts" - }, - "end": { - "line": 21, - "column": 2, - "program": "test_decorator3.ts" - } - } - }, - "decorators": [ - { - "type": "Decorator", - "expression": { - "type": "Identifier", - "name": "bar", - "decorators": [], - "loc": { - "start": { - "line": 17, - "column": 2, - "program": "test_decorator3.ts" - }, - "end": { - "line": 17, - "column": 5, - "program": "test_decorator3.ts" - } - } - }, - "loc": { - "start": { - "line": 17, - "column": 1, - "program": "test_decorator3.ts" - }, - "end": { - "line": 17, - "column": 5, - "program": "test_decorator3.ts" - } - } - } - ], - "loc": { - "start": { - "line": 18, - "column": 1, - "program": "test_decorator3.ts" - }, - "end": { - "line": 21, - "column": 2, - "program": "test_decorator3.ts" - } - } - } - ], - "loc": { - "start": { - "line": 1, - "column": 1, - "program": "test_decorator3.ts" - }, - "end": { - "line": 21, - "column": 2, - "program": "test_decorator3.ts" - } - } -} diff --git a/ets2panda/test/parser/ts/test_generic-expected.txt b/ets2panda/test/parser/ts/test_generic-expected.txt index eced1f8ca9..b80307b6c0 100644 --- a/ets2panda/test/parser/ts/test_generic-expected.txt +++ b/ets2panda/test/parser/ts/test_generic-expected.txt @@ -7900,4 +7900,3 @@ } } } -TypeError: This reference refers to a value, but is being used as a type here. Did you mean to use 'typeof'? [test_generic.ts:17:59] diff --git a/ets2panda/test/tsconfig/test-config/incorrect-include/expected.json b/ets2panda/test/tsconfig/test-config/incorrect-include/expected.json index 8dd7ddc8c1..650b113f88 100644 --- a/ets2panda/test/tsconfig/test-config/incorrect-include/expected.json +++ b/ets2panda/test/tsconfig/test-config/incorrect-include/expected.json @@ -1,5 +1,5 @@ { "returncode": 1, - "stdout": "Fatal error: Invalid ArkTsConfig: incorrect-include/arktsconfig.json\nArkTS config error: The 'include' must have array type\n", + "stdout": "Fatal error F0013: Invalid ArkTsConfig: incorrect-include/arktsconfig.json\nArkTS config error EAC0010: The 'include' must have array type\n", "stderr": "" } diff --git a/ets2panda/util/diagnostic.cpp b/ets2panda/util/diagnostic.cpp index 1f3f8e0790..e8fd5f722a 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 fafbd06075..46164a0070 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 bb8e6f39ec..8c7987a949 100644 --- a/ets2panda/util/diagnostic/semantic.yaml +++ b/ets2panda/util/diagnostic/semantic.yaml @@ -1472,7 +1472,7 @@ semantic: - name: VOID_VALUE id: 78 - message: "Cannot use type 'void' as value. " + message: "Cannot use type 'void' as value." - name: WRONG_OPERAND_TYPE_FOR_BINARY_EXPRESSION id: 346 diff --git a/ets2panda/util/diagnostic/warning.yaml b/ets2panda/util/diagnostic/warning.yaml index dcb80bf69a..ba5eb35300 100644 --- a/ets2panda/util/diagnostic/warning.yaml +++ b/ets2panda/util/diagnostic/warning.yaml @@ -25,10 +25,19 @@ warning: id: 4 message: "Boost Equality Statement. Change sides of binary expression." +- name: DUPLICATE_ALIAS + id: 32596 + message: "'{}' is explicitly used with alias several times" + - name: DUPLICATE_EXPORT_ALIASES id: 73 message: "Duplicated export aliases for '{}'." + +- name: DUPLICATE_IMPORT + id: 125428 + message: "'{}' has already imported" + - name: DUPLICATE_SIGS id: 12 message: "Detect duplicate signatures, use '{}{}' to replace" diff --git a/ets2panda/util/diagnosticEngine.cpp b/ets2panda/util/diagnosticEngine.cpp index 82e2ad43f4..2ade8c8f13 100644 --- a/ets2panda/util/diagnosticEngine.cpp +++ b/ets2panda/util/diagnosticEngine.cpp @@ -24,16 +24,20 @@ namespace ark::es2panda::util { void CLIDiagnosticPrinter::Print(const DiagnosticBase &diagnostic, std::ostream &out) const { - out << DiagnosticTypeToString(diagnostic.Type()) << ": " << diagnostic.Message(); + // Message collected and printed once to avoid spliting printed message in case multithreading execution + std::ostringstream stream; if (!diagnostic.File().empty()) { - out << " [" << util::BaseName(diagnostic.File()) << ":" << diagnostic.Line() << ":" << diagnostic.Offset() - << "]"; + stream << "[" << util::BaseName(diagnostic.File()) << ":" << diagnostic.Line() << ":" << diagnostic.Offset() + << "] "; } - out << std::endl; + stream << DiagnosticTypeToString(diagnostic.Type()) << " " << diagnostic.ToStringUniqueNumber() << ": " + << diagnostic.Message() << std::endl; + out << stream.str(); } void CLIDiagnosticPrinter::Print(const DiagnosticBase &diagnostic) const { + // NOTE(pronai) test harness is not prepared for cerr Print(diagnostic, std::cout); } diff --git a/ets2panda/util/helpers.cpp b/ets2panda/util/helpers.cpp index d493f7b99b..c1f04162a8 100644 --- a/ets2panda/util/helpers.cpp +++ b/ets2panda/util/helpers.cpp @@ -460,7 +460,7 @@ std::vector Helpers::CollectBindingNames(varbinder::VarBinder } void Helpers::CheckImportedName(const ArenaVector &specifiers, - const ir::ImportSpecifier *specifier, const std::string &fileName) + const ir::ImportSpecifier *specifier, DiagnosticEngine &diagnosticEngine) { auto newIdentName = specifier->Imported()->Name(); auto newAliasName = specifier->Local()->Name(); @@ -470,19 +470,16 @@ void Helpers::CheckImportedName(const ArenaVector &specif auto savedIdentName = it->Imported()->Name(); auto savedAliasName = it->Local()->Name(); if (savedIdentName == savedAliasName && savedAliasName == newIdentName) { - message << "Warning: '" << newIdentName << "' has already imported "; + diagnosticEngine.LogDiagnostic(diagnostic::DUPLICATE_IMPORT, DiagnosticMessageParams {newIdentName}, + specifier->Start()); break; } if (savedIdentName == newIdentName && newAliasName != savedAliasName) { - message << "Warning: '" << newIdentName << "' is explicitly used with alias several times "; + diagnosticEngine.LogDiagnostic(diagnostic::DUPLICATE_ALIAS, DiagnosticMessageParams {newIdentName}, + specifier->Start()); break; } } - - if (message.rdbuf()->in_avail() > 0) { - std::cerr << message.str() << "[" << fileName.c_str() << ":" << specifier->Start().line << ":" - << specifier->Start().index << "]" << std::endl; - } } void Helpers::CheckDefaultImportedName(const ArenaVector &specifiers, diff --git a/ets2panda/util/helpers.h b/ets2panda/util/helpers.h index 16de466560..3c946262aa 100644 --- a/ets2panda/util/helpers.h +++ b/ets2panda/util/helpers.h @@ -155,7 +155,7 @@ public: static std::vector CollectBindingNames(varbinder::VarBinder *vb, ir::Expression *node); static util::StringView FunctionName(ArenaAllocator *allocator, const ir::ScriptFunction *func); static void CheckImportedName(const ArenaVector &specifiers, - const ir::ImportSpecifier *specifier, const std::string &fileName); + const ir::ImportSpecifier *specifier, DiagnosticEngine &diagnosticEngine); static void CheckDefaultImportedName(const ArenaVector &specifiers, const ir::ImportDefaultSpecifier *specifier, const std::string &fileName); static void CheckDefaultImport(const ArenaVector &statements); diff --git a/ets2panda/util/options.cpp b/ets2panda/util/options.cpp index 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