1# Copyright (c) 2025 Huawei Device Co., Ltd. 2# Licensed under the Apache License, Version 2.0 (the "License"); 3# you may not use this file except in compliance with the License. 4# You may obtain a copy of the License at 5# 6# http://www.apache.org/licenses/LICENSE-2.0 7# 8# Unless required by applicable law or agreed to in writing, software 9# distributed under the License is distributed on an "AS IS" BASIS, 10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11# See the License for the specific language governing permissions and 12# limitations under the License. 13 14semantic: 15- name: ASYNC_FUNCTION_RETURN_TYPE 16 id: 1 17 message: Return type of async function must be 'Promise'. 18 19- name: NO_CALL_SIGNATURE 20 id: 2 21 message: Type '{}' has no call signatures. 22 23- name: INVALID_ANNOTATION_RETENTION 24 id: 3 25 message: Annotation '@Retention' can only be applied to annotation declarations. 26 27- name: ANNOTATION_POLICY_INVALID 28 id: 4 29 message: Invalid value for 'policy' field. The policy must be one of the following:'SOURCE', 'CLASS', or 'RUNTIME'. 30 31- name: ANNOTATION_ON_LAMBDA_LOCAL_TYPE 32 id: 5 33 message: Annotations without 'SOURCE' cannot be used on lambda expressions, local declarations, or types. 34 35- name: STANDARD_ANNOTATION_REQUIRED 36 id: 6 37 message: Only standard annotations are allowed to be applied on annotations. 38 39- name: TYPE_PARAMETER_AS_ARRAY_ELEMENT_TYPE 40 id: 7 41 message: Cannot use array creation expression with type parameter. 42 43- name: VOID_IN_LOGIC 44 id: 9 45 message: "An expression of type 'void' cannot be tested for truthiness" 46 47- name: POSSIBLY_NULLISH 48 id: 10 49 message: "Value is possibly nullish." 50 51- name: ILLEGAL_UNARY_OP 52 id: 11 53 message: "Illegal unary operator." 54 55- name: ANNOTATION_FIELD_NONLITERAL 56 id: 12 57 message: "Invalid value for annotation field, expected a constant literal." 58 59- name: EXCEPTION_REDECLARATION 60 id: 13 61 message: "Redeclaration of exception type" 62 63- name: STATIC_INIT_IN_NESTED_CLASS 64 id: 14 65 message: "Static initializer is not allowed in inner class." 66 67- name: NATIVE_WITHOUT_RETURN 68 id: 15 69 message: "'Native' method should have explicit return type" 70 71- name: FUNC_EXPR_INVALID 72 id: 16 73 message: "Invalid function expression" 74 75- name: FUNCTION_WITHOUT_BODY 76 id: 17 77 message: "Only abstract or native methods can't have body." 78 79- name: MISSING_RETURN_TYPE 80 id: 18 81 message: "Native and Declare methods should have explicit return type." 82 83- name: ABSTRACT_IN_CONCRETE 84 id: 19 85 message: "Non abstract class has abstract method." 86 87- name: UNSUPPORTED_CLASS_LITERAL 88 id: 20 89 message: "Class literal is not yet supported." 90 91- name: INVALID_DOT_CLASS 92 id: 21 93 message: "Invalid .class reference" 94 95- name: ARRAY_OF_NEVER 96 id: 22 97 message: "Cannot use array creation expression with never type." 98 99- name: ASYNC_DOESNT_PROMISE 100 id: 23 101 message: "Return type of async lambda must be 'Promise'" 102 103- name: ARRAY_LENGTH_MODIFICATION 104 id: 24 105 message: "Setting the length of an array is not permitted" 106 107- name: ASSIGNMENT_INVALID_LHS 108 id: 25 109 message: "Invalid left-hand side of assignment expression" 110 111- name: ABSTRACT_CALL 112 id: 26 113 message: "Cannot call abstract method!" 114 115- name: READONLY_CALL 116 id: 27 117 message: "Cannot call readonly type methods." 118 119- name: TEMPLATE_COUNT_MISMATCH 120 id: 28 121 message: "Invalid string template expression" 122 123- name: ASSERT_MESSAGE_NOT_STRING 124 id: 30 125 message: "Assert message must be string" 126 127- name: RETURN_THIS_OUTSIDE_METHOD 128 id: 31 129 message: "Only extension function or a class method can return 'this'" 130 131- name: RETURN_WITHOUT_VALUE 132 id: 32 133 message: "Missing return value." 134 135- name: NON_VOID_RETURN_IN_CONSTRUCTOR 136 id: 33 137 message: "Return statement with expression isn't allowed in constructor." 138 139- name: CATCH_DEFAULT_NOT_LAST 140 id: 34 141 message: "Default catch clause should be the last in the try statement" 142 143- name: ENUM_TYPE_INVALID 144 id: 35 145 message: "Invalid enumeration value type." 146 147- name: AMBIENT_ANNOT_FIELD_INIT_MISMATCH 148 id: 36 149 message: "The initial value does not match the expected value." 150 151- name: AMBIENT_ANNOT_IMPL_OF_UNDEFINED_FIELD 152 id: 37 153 message: "Field '{}' is not defined in the ambient annotation '{}'" 154 155- name: AMBIENT_ANNOT_FIELD_TYPE_MISMATCH 156 id: 38 157 message: "Field '{}' has a type mismatch with the ambient annotation '{}'." 158 159- name: AMBIENT_ANNOT_FIELD_MISMATCH 160 id: 39 161 message: "Initializer for field '{}' does not match the expected definition in the ambient annotation '{}'." 162 163- name: AMBIENT_ANNOT_FIELD_MISSING_IMPL 164 id: 40 165 message: "Field '{}' in annotation '{}' is declared in the ambient declaration but missing in the implementation." 166 167- name: ANNOT_DUPLICATE 168 id: 41 169 message: "Duplicate annotations are not allowed. The annotation '{}' has already been applied to this element." 170 171- name: ANNOT_FIELD_INVALID_TYPE 172 id: 42 173 message: "Invalid annotation field type. Only numeric, boolean, string, enum, or arrays of these types are permitted for annotation fields." 174 175- name: ANNOT_MULTIPLE_FIELD 176 id: 43 177 message: "Annotation '{}' requires multiple fields to be specified." 178 179- name: ANNOT_FIELD_NO_VAL 180 id: 44 181 message: "The required field '{}' must be specified. Fields without default values cannot be omitted." 182 183- name: ANNOT_PROP_UNDEFINED 184 id: 45 185 message: "The parameter '{}' does not match any declared property in the annotation '{}'." 186 187- name: TYPE_MISMATCH_AT_IDX 188 id: 46 189 message: "Type '{}' is not compatible with type '{}' at index {}" 190 191- name: ABSTRACT_METHOD_INVALID_MODIFIER 192 id: 47 193 message: "Invalid method modifier(s): an abstract method can't have private, override, static, final or native modifier." 194 195- name: FINAL_METHOD_INVALID_MODIFIER 196 id: 48 197 message: "Invalid method modifier(s): a final method can't have abstract or static modifier." 198 199- name: SPREAD_OF_INVALID_TYPE 200 id: 49 201 message: "Spread expression can be applied only to array or tuple type, but '{}' is provided" 202 203- name: ABSTRACT_CLASS_AS_ARRAY_ELEMENT_TYPE 204 id: 50 205 message: "Cannot use array creation expression with abstract classes and interfaces." 206 207- name: NON_SUPERTYPE_OF_UNDEFINED_AS_ARRAY_ELEMENT_TYPE 208 id: 51 209 message: "Cannot use array creation expression with non-constructable element type which is non-assignable from undefined." 210 211- name: ABSTRACT_INSTANTIATION 212 id: 52 213 message: "{} is abstract therefore cannot be instantiated." 214 215- name: NONLITERAL_INSTANTIATION 216 id: 53 217 message: "Required type can be instantiated only with object literal" 218 219- name: ARRAY_ELEMENT_UNASSIGNABLE 220 id: 54 221 message: "Array element type '{}' is not assignable to explicit type '{}'" 222 223- name: INVALID_SPREAD_IN_TUPLE 224 id: 55 225 message: "'{}' cannot be spread in tuple." 226 227- name: TUPLE_SIZE_MISMATCH 228 id: 56 229 message: "Too many elements in array initializer for tuple with size of {}" 230 231- name: TUPLE_UNASSIGNABLE_ARRAY 232 id: 57 233 message: "Array initializer's type is not assignable to tuple type at index: {}" 234 235- name: READONLY_ARRAYLIKE_MODIFICATION 236 id: 58 237 message: "Cannot modify an array or tuple content that has the readonly parameter" 238 239- name: EXTENSION_ACCESSOR_INVALID_CALL 240 id: 59 241 message: "Extension accessor can't be used as a method call or function call." 242 243- name: UNCALLABLE_TYPE 244 id: 60 245 message: "Type '{}' has no call signatures." 246 247- name: AMBIGUOUS_REFERENCE 248 id: 61 249 message: "Ambiguous reference to '{}'" 250 251- name: CLASS_COMPOSITE_UNKNOWN_TYPE 252 id: 62 253 message: "need to specify target type for class composite" 254 255- name: CLASS_COMPOSITE_INVALID_TARGET 256 id: 63 257 message: "Target type for class composite needs to be an object type, found '{}'" 258 259- name: OBJECT_LITERAL_NOT_KV 260 id: 64 261 message: "The object literal properties must be key-value pairs" 262 263- name: UNDEFINED_PROPERTY 264 id: 65 265 message: "type {} has no property named {}" 266 267- name: OPERAND_NOT_NUMERIC 268 id: 66 269 message: "Bad operand type, the type of the operand must be numeric type." 270 271- name: NOT_AN_ANNOTATION 272 id: 67 273 message: "'{}' is not an annotation." 274 275- name: ANNOTATION_ARG_COUNT_MISMATCH 276 id: 68 277 message: "The number of arguments provided for the annotation exceeds the number of fields defined." 278 279- name: ITERATOR_ELEMENT_TYPE_MISMATCH 280 id: 69 281 message: "Source element type '{}' is not assignable to the loop iterator type '{}'." 282 283- name: NONEXISTENT_TYPE 284 id: 70 285 message: "'{}' type does not exist." 286 287- name: ANNOTATION_UNUSED_GENERIC_ALIAS 288 id: 71 289 message: "Type alias generic parameter '{}' is not used in type annotation" 290 291- name: UNEXPECTED_ARRAY 292 id: 72 293 message: "Expected type for array literal should be an array type, got {}" 294 295- name: CLASS_COMPOSITE_INVALID_KEY 296 id: 73 297 message: "key in class composite should be either identifier or string literal" 298 299- name: OBJECT_LITERAL_METHOD_KEY 300 id: 74 301 message: "Method '{}' cannot be used as a key of object literal." 302 303- name: FOROF_CANT_INFER_SOURCE 304 id: 75 305 message: "Cannot determine source expression type in the 'for-of' statement." 306 307- name: FOROF_SOURCE_NONITERABLE 308 id: 76 309 message: "'For-of' statement source expression is not of iterable type." 310 311- name: STATIC_METHOD_INVALID_MODIFIER 312 id: 77 313 message: "Invalid method modifier(s): a static method can't have abstract, final or override modifier." 314 315- name: VOID_VALUE 316 id: 78 317 message: "Cannot use type 'void' as value. " 318 319- name: EXTENSION_NAME_CONFLICT_WITH_FIELD 320 id: 79 321 message: "The extension accessor or extension function '{}' has the same name with field of class {}" 322 323- name: EXTENSION_NAME_CONFLICT_WITH_METHOD 324 id: 80 325 message: "The extension accessor '{}' has the same name with method in class {}" 326 327- name: EXTENSION_FUNC_NAME_CONFLICT_WITH_METH 328 id: 81 329 message: "The extension function '{}' has the same name with public method in class {}" 330 331- name: EXTENSION_FUNC_ON_INEXETENSIBLE 332 id: 82 333 message: "Extension function can only defined for class, interface or array." 334 335- name: UNEXPECTED_FUNC_BODY 336 id: 83 337 message: "Native, Abstract and Declare methods cannot have body." 338 339- name: NATIVE_WITH_BODY 340 id: 84 341 message: "Native constructor declaration cannot have a body." 342 343- name: SETTER_NONVOID 344 id: 85 345 message: "Setter must have void return type" 346 347- name: GETTER_VOID 348 id: 86 349 message: "Getter must return a value" 350 351- name: PROPERTY_NONEXISTENT 352 id: 87 353 message: "Property '{}' does not exist on type '{}'" 354 355- name: MAIN_BAD_RETURN 356 id: 88 357 message: "Bad return type, main enable only void or int type." 358 359- name: UNEXPECTED_VALUE_RETURN 360 id: 89 361 message: "Unexpected return value, enclosing method return type is void." 362 363- name: RETURN_TYPE_MISMATCH 364 id: 90 365 message: "Return statement type is not compatible with the enclosing method's return type." 366 367- name: ARROW_TYPE_MISMATCH 368 id: 91 369 message: "Type '{}' is not compatible with the enclosing method's return type '{}'" 370 371- name: MIXED_VOID_NONVOID 372 id: 92 373 message: "All return statements in the function should be empty or have a value." 374 375- name: UNEXPECTED_VOID 376 id: 93 377 message: "'{}' shouldn't have void return type." 378 379- name: UNEXPECTED_NONVOID 380 id: 94 381 message: "'{}' should have void return type." 382 383- name: MISSING_RETURN_TYPE_2 384 id: 95 385 message: "'{}' doesn't have return type." 386 387- name: RETURN_ISNT_ITERATOR 388 id: 96 389 message: "The return type of '{}' must be a type that implements Iterator interface." 390 391- name: INVALID_CONST_ASSIGNMENT 392 id: 97 393 message: "Cannot assign a value to a constant variable {}" 394 395- name: INVALID_READONLY_ASSIGNMENT 396 id: 98 397 message: "Cannot assign a value to a readonly variable {}" 398 399- name: ITERATOR_TYPE_ABSENT 400 id: 99 401 message: "Cannot obtain iterator type in 'for-of' statement." 402 403- name: OBJ_LIT_PROPERTY_REDECLARATION 404 id: 100 405 message: "An object literal cannot have multiple properties with the same name." 406 407- name: INIT_DOESNT_COMPLETE 408 id: 101 409 message: "Initializer must be able to complete normally." 410 411- name: EXTEND_DYNAMIC 412 id: 102 413 message: "Class {} shouldn't extend dynamic class." 414 415- name: MISSING_RETURN_STMT 416 id: 103 417 message: "Function with a non void return type must return a value." 418 419- name: NONRETURNING_PATHS 420 id: 104 421 message: "Not all code paths return a value." 422 423- name: BINOP_INVALID_TYPE 424 id: 105 425 message: "Operator '{}' cannot be applied to types '{}' and '{}'." 426 427- name: BINOP_ON_UNION 428 id: 106 429 message: "Bad operand type: multiple types left in the normalized union type ({}). Unions are not allowed in binary expressions except equality." 430 431- name: OP_NONNUMERIC 432 id: 107 433 message: "Bad operand type, the types of the operands must be numeric type." 434 435- name: BINOP_NONARITHMETIC_TYPE 436 id: 108 437 message: "Bad operand type, the types of the operands must be numeric type, enum or String." 438 439- name: BINOP_UNION 440 id: 109 441 message: "Bad operand type, unions are not allowed in binary expressions except equality." 442 443- name: BINOP_NOT_LOGICAL 444 id: 110 445 message: "Bad operand type, the types of the operands must be of possible condition type." 446 447- name: BINOP_NOT_REFERENCE 448 id: 111 449 message: "Both operands have to be reference types" 450 451- name: BINOP_DYN_UNIMPLEMENTED 452 id: 112 453 message: "Unimplemented case in dynamic type comparison." 454 455- name: BINOP_MISMATCHED_ENUMS 456 id: 113 457 message: "Bad operand type, the types of the operands must be the same enum type." 458 459- name: BINOP_INCOMPARABLE 460 id: 114 461 message: "Bad operand type, the types of the operands must be numeric, same enumeration, or boolean type." 462 463- name: BINOP_NOT_SAME 464 id: 115 465 message: "Bad operand type, the types of the operands must be same type." 466 467- name: INSTANCEOF_NOT_TYPE 468 id: 116 469 message: "Right-hand side of instanceof expression must represent a type." 470 471- name: COALESCE_NOT_REF 472 id: 117 473 message: "Left-hand side of nullish-coalescing expression must be a reference type." 474 475- name: BINOP_UNEXPECTED_ERROR 476 id: 118 477 message: "Unexpected type error in binary expression" 478 479- name: ANALYSIS_ERRORS 480 id: 119 481 message: "There were errors during assign analysis ({})" 482 483- name: INFERENCE_TYPE_INCOMPAT 484 id: 120 485 message: "{} is not compatible with type {}" 486 487- name: SPREAD_ONTO_SINGLE_PARAM 488 id: 121 489 message: "Spread argument cannot be passed for ordinary parameter." 490 491- name: ARG_IS_CLASS_ID 492 id: 122 493 message: "Class name can't be the argument of function or method." 494 495- name: MULTIPLE_SPREADS 496 id: 123 497 message: "Spread argument for the rest parameter can be only one." 498 499- name: PARAM_COUNT_MISMATCH 500 id: 124 501 message: "Expected {} arguments, got {}." 502 503- name: NO_SUCH_PARAMLESS_CTOR 504 id: 125 505 message: "No matching parameterless constructor" 506 507- name: AMBIGUOUS_FUNC_REF 508 id: 126 509 message: "Reference to {} is ambiguous" 510 511- name: NO_MATCHING_SIG 512 id: 127 513 message: "No matching {} signature for {}" 514 515- name: NO_MATCHING_SIG_2 516 id: 128 517 message: "No matching {} signature" 518 519- name: AMBIGUOUS_CALL_2 520 id: 129 521 message: "Call to `{}` is ambiguous " 522 523- name: FUNCTION_REDECL_BY_TYPE_SIG 524 id: 130 525 message: "Function {} is already declared." 526 527- name: FUNCTION_REDECL_BY_ASM_SIG 528 id: 131 529 message: "Function {} with this assembly signature already declared." 530 531- name: INFER_FAILURE_FUNC_PARAM 532 id: 132 533 message: "The type of parameter '{}' cannot be inferred" 534 535- name: MAIN_INVALID_ARG_COUNT 536 id: 133 537 message: "0 or 1 argument are allowed" 538 539- name: MAIN_WITH_REST 540 id: 134 541 message: "Rest parameter is not allowed in the 'main' function." 542 543- name: MAIN_PARAM_NOT_ARR_OF_STRING 544 id: 135 545 message: "Only 'FixedArray<string>' type argument is allowed." 546 547- name: OVERRIDE_DOESNT_OVERRIDE 548 id: 136 549 message: "Method {}{} in {} not overriding any method" 550 551- name: SIG_UNAVAILABLE 552 id: 137 553 message: "Signature is not available here." 554 555- name: THIS_OUTSIDE_METHOD_CTX 556 id: 138 557 message: "Cannot reference 'this' in this context." 558 559- name: SIG_INVISIBLE 560 id: 139 561 message: "Signature {}{} is not visible here." 562 563- name: NO_SUCH_SIG_WITH_TRAILING_LAMBDA 564 id: 140 565 message: "No matching call signature with trailing lambda" 566 567- name: CANNOT_OVERRIDE 568 id: 141 569 message: "{}{} in {} cannot override {}{} in {} because {}" 570 571- name: AMBIGUOUS_CALL 572 id: 142 573 message: "Call to `{}` is ambiguous as `2` versions of `{}` are available: `{}{}` and `{}{}`" 574 575- name: UNRESOLVED_REF 576 id: 143 577 message: "Unresolved reference {}" 578 579- name: ID_IN_WRONG_CTX 580 id: 144 581 message: "{} name '{}' used in the wrong context" 582 583- name: PROP_ACCESS_WITHOUT_THIS 584 id: 145 585 message: "Property '{}' must be accessed through 'this'" 586 587- name: PROPERTY_CAPTURE 588 id: 146 589 message: "Property '{}' of enclosing class '{}' is not allowed to be captured from the local class '{}'" 590 591- name: PROPERTY_CAPTURE_IN_STATIC 592 id: 147 593 message: "Not allowed to capture variable '{}' in static method" 594 595- name: INVALID_EXPR_IN_RETURN 596 id: 148 597 message: "Invalid return statement expression" 598 599- name: INVALID_RETURN_FUNC_EXPR 600 id: 149 601 message: "Invalid return function expression" 602 603- name: RETURN_DIFFERENT_PRIM 604 id: 150 605 message: "Function cannot have different primitive return types, require '{}', found '{}'" 606 607- name: MEMBER_OF_OBJECT_LIT 608 id: 151 609 message: "Class composite must be constructed separately before referring their members." 610 611- name: TYPE_MISMATCH_ENUM 612 id: 152 613 message: "Cannot assign type '{}' for variable {}." 614 615- name: INIT_IN_AMBIENT 616 id: 153 617 message: "Initializers are not allowed in ambient contexts: {}" 618 619- name: AMBIGUOUS_FUNC_INIT 620 id: 154 621 message: "Ambiguous function initialization because of multiple overloads" 622 623- name: GENERIC_ALIAS_WITHOUT_PARAMS 624 id: 155 625 message: "Type alias declaration is generic, but too few type arguments were provided" 626 627- name: NON_GENERIC_ALIAS_WITH_PARAMS 628 id: 156 629 message: "Type alias declaration is not generic, but type parameters were provided" 630 631- name: GENERIC_ALIAS_PARAM_COUNT_MISMATCH 632 id: 157 633 message: "Wrong number of type parameters for generic type alias" 634 635- name: NAMESPACE_AS_TYPE 636 id: 158 637 message: "Namespace '{}' cannot be used as a type." 638 639- name: ANNOTATION_AS_TYPE 640 id: 159 641 message: "Annotations cannot be used as a type." 642 643- name: FUNCTION_REDECLERATION 644 id: 160 645 message: "Function '{}{}' is redeclared with different signature '{}{}'" 646 647- name: FLOW_REDIRECTION_INVALID_CTX 648 id: 161 649 message: "Control flow redirection statement can not be used out of loop or switch statement." 650 651- name: ENUM_INVALID_DISCRIMINANT 652 id: 162 653 message: "Incompatible types. Found: {}, required: char , byte , short , int, long , Char , Byte , Short , Int, Long , String or an enum type" 654 655- name: NOT_CONSTANT 656 id: 163 657 message: "Constant expression required" 658 659- name: SWITCH_CASE_INVALID_TYPE 660 id: 164 661 message: "Unexpected type {}" 662 663- name: SWITCH_CASE_DUPLICATE 664 id: 165 665 message: "Case duplicate" 666 667- name: SWITCH_CASE_VAR_DUPLICATE_VAL 668 id: 166 669 message: "Variable has same value with another switch case" 670 671- name: INVALID_TYPE_PARAM 672 id: 168 673 message: "Type '{}' is not valid for generic type arguments" 674 675- name: NOT_GENERIC 676 id: 169 677 message: "Type '{}' is not generic." 678 679- name: GENERIC_WITHOUT_TYPE_PARAMS 680 id: 170 681 message: "Type '{}' is generic but type argument were not provided." 682 683- name: GENERIC_TYPE_PARAM_COUNT_MISMATCH 684 id: 171 685 message: "Type '{}' has {} number of type parameters, but {} type arguments were provided." 686 687- name: NO_STATIC_INVOKE 688 id: 172 689 message: "No static {} method and static {} method in {}. {}() is not allowed." 690 691- name: STATIC_PROP_INVALID_CTX 692 id: 173 693 message: "Static property '{}' must be accessed through it's class '{}'" 694 695- name: CANNOT_INFER_OBJ_LIT 696 id: 174 697 message: "Cannot infer type for {} because class composite needs an explicit target type" 698 699- name: AMBIENT_CONST_INVALID_LIT 700 id: 175 701 message: "A 'const' initializer in an ambient context must be a string or numeric literal: {}" 702 703- name: EXTENDING_UTILITY_TYPE 704 id: 176 705 message: "The super type of '{}' class is not extensible." 706 707- name: EXTENDING_STRUCT 708 id: 177 709 message: "struct {} is not extensible." 710 711- name: EXTENDING_FINAL 712 id: 178 713 message: "Cannot inherit with 'final' modifier." 714 715- name: NOT_INTERFACE 716 id: 179 717 message: "Interface expected here." 718 719- name: REPEATED_INTERFACE 720 id: 180 721 message: "Repeated interface." 722 723- name: CONFLICTING_GENERIC_INTERFACE_IMPLS 724 id: 181 725 message: "Implements generic interface '{}' with different instantiations." 726 727- name: DUPLICATE_TYPE_PARAM 728 id: 182 729 message: "Duplicate type parameter '{}'." 730 731- name: TYPE_PARAM_USE_BEFORE_DEFINE 732 id: 183 733 message: "Type Parameter {} should be defined before use." 734 735- name: TYPE_PARAM_CIRCULAR_CONSTRAINT 736 id: 184 737 message: "Type parameter '{}' has circular constraint dependency." 738 739- name: EXTENDS_NON_OBJECT 740 id: 185 741 message: "Extends constraint must be an object" 742 743- name: ABSTRACT_IS_FINAL 744 id: 186 745 message: "Cannot use both 'final' and 'abstract' modifiers." 746 747- name: INTERFACE_METHOD_COLLISION 748 id: 187 749 message: "Method '{}' is declared in {} and {} interfaces." 750 751- name: GETTER_MISSING_IMPL 752 id: 188 753 message: "{} is not abstract and does not implement getter for {} property in {}" 754 755- name: SETTER_MISSING_IMPL 756 id: 189 757 message: "{} is not abstract and does not implement setter for {} property in {}" 758 759- name: MISSING_OVERRIDE_OF_ABSTRACT_METH 760 id: 190 761 message: "{} is not abstract and does not override abstract method {}{} in {}" 762 763- name: LOCAL_CLASS_INVALID_CTX 764 id: 191 765 message: "Local classes must be defined between balanced braces" 766 767- name: CTOR_MISSING_SUPER_CALL 768 id: 192 769 message: "Must call super constructor" 770 771- name: MAYBE_DOUBLE_INIT 772 id: 193 773 message: "Variable '{}' might already have been initialized" 774 775- name: MAYBE_MISSING_INIT 776 id: 194 777 message: "Variable '{}' might not have been initialized" 778 779- name: INNER_CLASS_WITH_STATIC_METH 780 id: 195 781 message: "Inner class cannot have static methods" 782 783- name: INNER_CLASS_MUTABLE_STATIC_PROP 784 id: 196 785 message: "Inner class cannot have non-readonly static properties" 786 787- name: INDEX_NONINTEGRAL_FLOAT 788 id: 197 789 message: "Index fractional part should be zero." 790 791- name: TUPLE_INDEX_OOB 792 id: 198 793 message: "Element accessor value is out of tuple size bounds." 794 795- name: TUPLE_INDEX_NONCONST 796 id: 199 797 message: "Only constant expression allowed for element access on tuples." 798 799- name: TUPLE_INDEX_NOT_INT 800 id: 200 801 message: "Only integer type allowed for element access on tuples." 802 803- name: CTOR_CLASS_NOT_FIRST 804 id: 201 805 message: "Call to '{}' must be first statement in constructor" 806 807- name: CTOR_REF_IN_STATIC_CTX 808 id: 202 809 message: "'{}' cannot be referenced from a static context" 810 811- name: CTOR_REF_INVALID_CTX_GLOBAL 812 id: 203 813 message: "Cannot reference '{}' in this context." 814 815- name: NO_SUCH_CTOR_SIG 816 id: 204 817 message: "No matching call signature for constructor" 818 819- name: CATCH_OR_THROW_OF_INVALID_TYPE 820 id: 205 821 message: "Argument must be an instance of '{}' or '{}'" 822 823- name: NOT_EXPORTED 824 id: 206 825 message: "'{}' is not exported in '{}'" 826 827- name: PROP_IS_STATIC 828 id: 207 829 message: "'{}' is a static property of '{}'" 830 831- name: PROP_NOT_STATIC 832 id: 208 833 message: "'{}' is an instance property of '{}'" 834 835- name: ASSIGN_TO_READONLY_PROP 836 id: 209 837 message: "Cannot assign to this property because it is readonly." 838 839- name: READONLY_FIELD_MULTIPLE_INIT 840 id: 210 841 message: "Readonly field already initialized at declaration." 842 843- name: READ_FROM_WRITEONLY_PROP 844 id: 211 845 message: "Cannot read from this property because it is writeonly." 846 847- name: UNDEFINED_METHOD 848 id: 212 849 message: "Method {} does not exist on this type." 850 851- name: METHOD_WRONG_CTX 852 id: 213 853 message: "Method used in wrong context" 854 855- name: GENERIC_ERROR_OR_EXCEPTION 856 id: 214 857 message: "Generics are not allowed as '{}' or '{}' subclasses." 858 859- name: INHERITED_INTERFACE_TYPE_MISMATCH 860 id: 215 861 message: "Cannot inherit from interface {} because {} {} is inherited with a different declaration type" 862 863- name: INHERITED_CLASS_TYPE_MISMATCH 864 id: 216 865 message: "Cannot inherit from class {}, because {} {} is inherited with a different declaration type" 866 867- name: INTERFACE_PROP_NOT_PUBLIC 868 id: 217 869 message: "Interface property implementation cannot be generated as non-public" 870 871- name: METHOD_ACCESSOR_COLLISION 872 id: 218 873 message: "Method cannot use the same name as {} accessor property" 874 875- name: DUPLICATE_ACCESSOR 876 id: 219 877 message: "Duplicate accessor definition" 878 879- name: ACCESSORS_MOD_MISMATCH 880 id: 220 881 message: "Getter and setter methods must have the same accessor modifiers" 882 883- name: STATIC_METH_IN_CLASS_AND_INTERFACE 884 id: 221 885 message: "Static {} method and static {} method both exist in class/interface {} is not allowed." 886 887- name: INFER_FAIL_ON_PARAM 888 id: 222 889 message: "The type of parameter '{}' cannot be inferred." 890 891- name: UTIL_TYPE_INVALID_TYPE_PARAM_COUNT 892 id: 223 893 message: "Invalid number of type parameters for {} type, should be 1." 894 895- name: UTIL_TYPE_OF_NONREFERENCE 896 id: 224 897 message: "Only reference types can be converted to utility types." 898 899- name: UTILITY_TYPE_UNIMPLEMENTED 900 id: 225 901 message: "This utility type is not yet implemented." 902 903- name: REQUIRED_PROP_MISSING_INIT 904 id: 226 905 message: "Class property '{}' needs to be initialized for Required<{}>." 906 907- name: ARRAY_ELEMENT_INIT_TYPE_INCOMPAT 908 id: 227 909 message: "Array element at index {} with type '{}' is not compatible with the target array element type '{}'" 910 911- name: INIT_NOT_ASSIGNABLE 912 id: 228 913 message: "Type {} is not assignable to constraint type {}" 914 915- name: OVERLOADED_FUNCTION_REFERENCE 916 id: 229 917 message: "Overloaded function identifier '{}' can not be used as value" 918 919- name: ANNOT_WITHOUT_AT 920 id: 230 921 message: "Annotation missing '@' symbol before annotation name." 922 923- name: TUPLE_WRONG_NUMBER_OF_ELEMS 924 id: 231 925 message: "Initializer has {} elements, but tuple requires {}" 926 927- name: ANNOT_IS_VOID 928 id: 232 929 message: "'void' used as type annotation." 930 931- name: THIS_OR_SUPER_IN_CTOR 932 id: 235 933 message: "Using {} is not allowed in constructor" 934 935- name: INVALID_INDEX_TYPE 936 id: 236 937 message: "Type '{}' cannot be used as an index type. Only primitive or unboxable integral types can be used as index." 938 939- name: INFER_FAIL_ON_LAMBDA 940 id: 237 941 message: "Cannot infer arrow function type from context for type: '{}', consider adding type explicitly" 942 943- name: ENUM_REFERENCE_VIA_ALIAS 944 id: 238 945 message: "Cannot refer to enum members through type alias." 946 947- name: ENUMB_REFERENCE_VIA_VAR 948 id: 239 949 message: "Cannot refer to enum members through variable." 950 951- name: ENUM_CONST_MISSING_PROP 952 id: 240 953 message: "Enum constant does not have property '{}'." 954 955- name: ENUM_NO_SUCH_CONST 956 id: 241 957 message: "No enum constant named '{}' in enum '{}'" 958 959- name: ENUM_NO_SUCH_METHOD 960 id: 242 961 message: "No enum item method called '{}'" 962 963- name: ENUM_NO_SUCH_STATIC_METHOD 964 id: 243 965 message: "No enum type method called '{}'" 966 967- name: MEMBER_TYPE_MISMATCH_ACROSS_UNION 968 id: 244 969 message: "Member type must be the same for all union objects." 970 971- name: UNION_MEMBER_ILLEGAL_TYPE 972 id: 245 973 message: "Type {} is illegal in union member expression." 974 975- name: MISSING_EXTENSION_ACCESSOR 976 id: 246 977 message: "Can't find the extension accessor." 978 979- name: NEGATIVE_INDEX 980 id: 247 981 message: "Index value cannot be less than zero." 982 983- name: INDEX_NEGATIVE_OR_FRACTIONAL 984 id: 248 985 message: "Index value cannot be less than zero or fractional." 986 987- name: INDEX_OOB 988 id: 249 989 message: "Index value cannot be greater than or equal to the array size." 990 991- name: NO_INDEX_ACCESS_METHOD 992 id: 250 993 message: "Object type doesn't have proper index access method." 994 995- name: MISSING_INDEX_ACCESSOR_WITH_SIG 996 id: 251 997 message: "Cannot find index access method with the required signature." 998 999- name: INDEX_ON_INVALID_TYPE 1000 id: 252 1001 message: "Indexed access is not supported for such expression type." 1002 1003- name: MISSING_INIT_FOR_PARAM 1004 id: 253 1005 message: "Expected initializer for parameter {}." 1006 1007- name: INFER_FAIL_FOR_LAMBDA_SIG 1008 id: 254 1009 message: "Cannot deduce call signature" 1010 1011- name: AMBIGUOUS_UNION_TYPE_OP 1012 id: 255 1013 message: "Ambiguous union type operation" 1014 1015- name: INTERFACE_WITH_METHOD 1016 id: 256 1017 message: "Interface has methods" 1018 1019- name: ABSTRACT_METH_IN_ABSTRACT_CLASS 1020 id: 257 1021 message: "Abstract class has abstract method {}" 1022 1023- name: MISSING_ITERATOR_METHOD 1024 id: 258 1025 message: "Object type doesn't have proper iterator method." 1026 1027- name: MISSING_ITERATOR_METHOD_WITH_SIG 1028 id: 259 1029 message: "Cannot find iterator method with the required signature." 1030 1031- name: ITERATOR_MISSING_NEXT 1032 id: 260 1033 message: "Iterator object doesn't have proper next method." 1034 1035- name: ITERATOR_DOESNT_RETURN_ITERABLE 1036 id: 261 1037 message: "Iterator method must return an object which implements Iterator<T>" 1038 1039- name: SWITCH_CASE_TYPE_INCOMPARABLE 1040 id: 262 1041 message: "Switch case type '{}' is not comparable to discriminant type '{}'" 1042 1043- name: OBJ_LIT_PROP_NAME_COLLISION 1044 id: 263 1045 message: "An object literal cannot multiple properties with same name" 1046 1047- name: OBJ_LIT_UNKNOWN_PROP 1048 id: 264 1049 message: "Object literal may only specify known properties" 1050 1051- name: OBJ_LIT_NOT_COVERING_UNION 1052 id: 265 1053 message: "All variants of literals listed in the union type must be listed in the object literal" 1054 1055- name: PRECOND_FAILED 1056 id: 266 1057 message: "Precondition check failed for {}" 1058 1059- name: POSTCOND_FAILED 1060 id: 267 1061 message: "Postcondition check failed for {}" 1062 1063- name: INVISIBLE_INDEX_ACCESSOR 1064 id: 268 1065 message: "Index access method is not visible here." 1066 1067- name: EXTENSION_GETTER_INVALID_CTX 1068 id: 269 1069 message: "Extension getter in wrong usage" 1070 1071- name: NO_SUCH_PARAMLESS_CTOR_2 1072 id: 270 1073 message: "No Matching Parameterless Constructor, parameter count {}" 1074 1075- name: INVISIBLE_ITERATOR 1076 id: 272 1077 message: "Iterator method is not visible here." 1078 1079- name: RTYPE_PARAM_COUNT_MISMATCH 1080 id: 273 1081 message: "Expected {} type arguments, got {} ." 1082 1083- name: EXPECTED_TYPE_ARGUMENTS 1084 id: 274 1085 message: "Expected at least {} type arguments, but got {}." 1086 1087- name: INTERFACE_INSTANTIATION 1088 id: 275 1089 message: "{} is an interface therefore cannot be instantiated." 1090 1091- name: KEYOF_REFERENCE_TYPE 1092 id: 276 1093 message: "The `keyof` keyword can only be used for class or interface type." 1094 1095- name: FIXED_ARRAY_PARAM_ERROR 1096 id: 277 1097 message: "FixedArray<T> must have only one type parameter." 1098 1099- name: LOCAL_CLASS_NATIVE_METHOD 1100 id: 278 1101 message: "Local class '{}' shouldn't have native methods/constructors" 1102 1103- name: TUPLEN_NOT_IMPLEMENTED 1104 id: 279 1105 message: "Tuple types with arity >16 are not yet implemented" 1106 1107- name: PROPERTY_MAYBE_MISSING_INIT 1108 id: 280 1109 message: "Property '{}' might not have been initialized." 1110 1111- name: NOT_ALLOWED_THIS_IN_UNION_TYPE 1112 id: 281 1113 message: "A 'this' cannot be used as a part of union type." 1114 1115- name: NOT_ALLOWED_THIS_IN_TUPLE_TYPE 1116 id: 282 1117 message: "A 'this' cannot be used as a part of tuple type." 1118 1119- name: NOT_ALLOWED_THIS_IN_ARRAY_TYPE 1120 id: 283 1121 message: "A 'this' cannot be used as type of array." 1122 1123- name: TYPE_FROM_UNION_TYPE_UNSUPPORTED 1124 id: 284 1125 message: "Acquiring types for union types is not supported." 1126 1127- name: TYPE_FROM_UNRESOLVABLE_TYPE 1128 id: 285 1129 message: "Unable to resolve type." 1130 1131- name: TYPE_FROM_TUPLE_TYPE_UNSUPPORTED 1132 id: 286 1133 message: "Acquiring types for tuple types is not supported." 1134 1135- name: TYPE_FROM_STRING_LITERAL_TYPE_UNSUPPORTED 1136 id: 287 1137 message: "Acquiring types for string literal types is not supported." 1138 1139- name: STATIC_REF_TO_NONSTATIC 1140 id: 288 1141 message: "Cannot make a static reference to the non-static type {}" 1142 1143- name: EXPR_NOT_CALLABLE 1144 id: 289 1145 message: "This expression is not callable." 1146 1147- name: CALLEE_NONCONSTRUCTIBLE 1148 id: 290 1149 message: "Type '{}' is not constructible." 1150 1151- name: NO_PARAMLESS_CTOR 1152 id: 291 1153 message: "Type {} 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!" 1154 1155- name: EXPR_NONCONSTRUCTIBLE 1156 id: 292 1157 message: "This expression is not constructible." 1158 1159- name: PROP_INVISIBLE 1160 id: 293 1161 message: "Property {} is not visible here." 1162 1163- name: CLASS_OR_IFACE_AS_OBJ 1164 id: 294 1165 message: "Class or interface '{}' cannot be used as object" 1166 1167- name: NAMESPACE_CALL 1168 id: 295 1169 message: "Namespace style identifier {} is not callable." 1170 1171- name: INSTANCEOF_NONOBJECT 1172 id: 296 1173 message: "Using the 'instance of' operator with non-object type '{}'" 1174 1175- name: FIELD_REASSIGNMENT 1176 id: 297 1177 message: "Cannot reassign {} {}" 1178 1179- name: FIELD_ASSIGN_TYPE_MISMATCH 1180 id: 298 1181 message: "Cannot assign to a {} variable {}" 1182 1183- name: INVALID_TYPE_REF 1184 id: 299 1185 message: "Invalid type reference." 1186 1187- name: UNION_NONCONSTRUCTIBLE 1188 id: 300 1189 message: "The union type is not constructible." 1190 1191- name: UNRESOLVABLE_ARRAY 1192 id: 301 1193 message: "Can't resolve array type" 1194 1195- name: IMPORT_ARG_NOT_STRING 1196 id: 302 1197 message: "'import' expressions require string as argument." 1198 1199- name: AWAITED_NOT_PROMISE 1200 id: 303 1201 message: "'await' expressions require Promise object as argument." 1202 1203- name: NULLISH_CAST_TO_NONNULLISH 1204 id: 304 1205 message: "Cannot cast 'null' or 'undefined' to non-nullish type." 1206 1207- name: CAST_TO_NEVER 1208 id: 305 1209 message: "Cast to 'never' is prohibited" 1210 1211- name: PRIVATE_METHOD_AS_VALUE 1212 id: 306 1213 message: "Private method is used as value" 1214 1215- name: OVERLOADED_METHOD_AS_VALUE 1216 id: 307 1217 message: "Overloaded method is used as value" 1218 1219- name: CIRCULAR_DEPENDENCY 1220 id: 308 1221 message: "Circular dependency detected for identifier: {}" 1222 1223- name: RECURSIVE_CTOR 1224 id: 309 1225 message: "Recursive constructor invocation" 1226 1227- name: CYCLIC_INHERITANCE 1228 id: 310 1229 message: "Cyclic inheritance involving {}." 1230 1231- name: CYCLIC_ALIAS 1232 id: 311 1233 message: "Circular type alias reference" 1234 1235- name: RECURSIVE_EXTENSION 1236 id: 312 1237 message: "Type {} recursively references itself as a base type." 1238 1239- name: CYCLIC_ALIAS_2 1240 id: 313 1241 message: "Type alias {} circularly refences itself" 1242 1243- name: CYCLIC_VAR_REF 1244 id: 314 1245 message: "'{}' is referenced directly or indirectly in its own initializer ot type annotation." 1246 1247- name: IFACE_MULTIPLE_EXTENSION 1248 id: 315 1249 message: "Interface '{}' cannot simultaneously extend types '{}' and '{}'." 1250 1251- name: DIFFERENT_SUBSEQ_DECL 1252 id: 316 1253 message: "Subsequent variable declaration must have the same type. Variable '{}' must be of type '{}', but here has type '{}'." 1254 1255- name: DIFFERENT_SUBSEQ_PROP_DECL 1256 id: 317 1257 message: "Subsequent variable declaration must have the same type. Variable '{}' must be of type '{}', but here has type '{}'." 1258 1259- name: INVALID_ASSIGNMNENT 1260 id: 318 1261 message: "Type '{}' cannot be assigned to type '{}'" 1262 1263- name: PROP_INCOMPAT 1264 id: 319 1265 message: "Type '{}' is not compatible with type '{}' at property '{}'" 1266 1267- name: IFACE_INVALID_EXTENDS 1268 id: 320 1269 message: "Interface '{}' incorrectly extends interface '{}'" 1270 1271- name: INVALID_ASSIGNMNENT_2 1272 id: 321 1273 message: "Type '{}' is not assignable to type '{}'." 1274 1275- name: DISJOINT_CONVERSION 1276 id: 322 1277 message: "Conversion of type '{}' to type '{}' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first." 1278 1279- name: REST_PARAM_INCOMPAT_AT 1280 id: 323 1281 message: "Type '{}' is not compatible with rest parameter type '{}' at index {}" 1282 1283- name: PROP_ASSIGN_TO_NUMERIC_INDEX 1284 id: 324 1285 message: "Property '{}' of type '{}' is not assignable to numeric index type '{}'." 1286 1287- name: TUPLE_CONVERSION_FAILURE 1288 id: 325 1289 message: "Tuple type couldn't be converted " 1290 1291- name: INVALID_CAST 1292 id: 326 1293 message: "Cannot cast type '{}' to '{}'" 1294 1295- name: PROP_ASSIGN_TO_STRING_INDEX 1296 id: 327 1297 message: "Property '{}' of type '{}' is not assignable to string index type '{}'." 1298 1299- name: UNIMPLEMENTED_REST_TUPLE 1300 id: 328 1301 message: "Tuple types for rest arguments are not yet implemented" 1302 1303- name: REF_INVALID 1304 id: 329 1305 message: "Invalid reference '{}'." 1306 1307- name: ID_WRONG_CTX 1308 id: 330 1309 message: "Identifier '{}' is used in wrong context." 1310 1311- name: VARIANT_PARAM_INVARIAN_USE 1312 id: 331 1313 message: "Type Parameter '{}' is declared as{} but occurs in 'invariant' position." 1314 1315- name: VARIANCE_TPARAM_IN_OUT 1316 id: 332 1317 message: "Type Parameter '{}' is declared as 'in' but occurs in 'out' position." 1318 1319- name: VARIANCE_TPARAM_OUT_IN 1320 id: 333 1321 message: "Type Parameter '{}' is declared as 'out' but occurs in 'in' position." 1322 1323- name: SWITCH_ENUM_NOT_UNQUALIFIED_ENUM_CONST 1324 id: 334 1325 message: "Enum switch case must be unqualified name of an enum constant" 1326 1327- name: STATIC_UNION 1328 id: 335 1329 message: "Static union member expression cannot be interpreted." 1330 1331- name: CAST_FAIL_UNREACHABLE 1332 id: 336 1333 message: "this cast should never fail" 1334 1335- name: INTERFACE_PROPERTY_REQUIRES_SETTER 1336 id: 337 1337 message: "Cannot implement interface {}: property '{}' must have a setter, but the implementation is readonly" 1338 1339- name: READONLY_PROPERTY_REASSIGN 1340 id: 338 1341 message: "The 'Readonly' property cannot be reassigned." 1342 1343- name: ILLEGAL_NON_NULLISH_TYPE 1344 id: 339 1345 message: "Only type parameters can be used as a nonnullish type" 1346 1347- name: ERROR_ARKTS_NO_LITERAL_INITIALIZATION_WITHOUT_PARAMETERLESS_CONSTRUCTOR 1348 id: 340 1349 message: "Initialization with literals is not supported if the type has no parameterless constructor. Declare the parameterless constructor explicitly or remove parametered constructors!" 1350 1351- name: ERROR_ARKTS_NO_DECLARATION_MERGING 1352 id: 341 1353 message: "Merging declarations is not supported, please keep all definitions of classes, interfaces and enums compact in the codebase!" 1354 1355- name: ERROR_ARKTS_NO_ENUM_MIXED_TYPES 1356 id: 342 1357 message: "Enumeration members can be initialized only by compile-time expressions and initializers must be of the same type." 1358 1359- name: ERROR_ARKTS_NO_PROPERTIES_BY_INDEX 1360 id: 343 1361 message: "Indexed signatures are not allowed. Use arrays instead!" 1362 1363- name: USE_BEFORE_INIT 1364 id: 344 1365 message: "{} '{}' is used before being assigned." 1366 1367- name: TYPE_NOT_FOUND 1368 id: 345 1369 message: "Cannot find type '{}'." 1370 1371- name: INTERFACE_REDECLARED 1372 id: 346 1373 message: "Interface redeclaration is not allowed" 1374 1375- name: OVERLOADED_MAIN 1376 id: 347 1377 message: "Main overload is not enabled" 1378 1379- name: MULTIPLE_DEFAULT_EXPORTS 1380 id: 348 1381 message: "Only one default export is allowed in a module" 1382 1383- name: REDEFINITION 1384 id: 349 1385 message: "{} '{}' is already defined." 1386 1387- name: REDEFINITION_DIFF_TYPE 1388 id: 350 1389 message: "{} '{}' is already defined with different type." 1390 1391- name: VARIABLE_REDECLARED 1392 id: 351 1393 message: "Variable '{}' has already been declared." 1394 1395- name: DEFAULT_DYNAMIC_IMPORT 1396 id: 352 1397 message: "Default import is currently not implemented in dynamic import" 1398 1399- name: DEFAULT_EXPORT_DIRECT_IMPORTED 1400 id: 353 1401 message: "Use the default import syntax to import a default exported element" 1402 1403- name: IMPORTING_NONEXPORTED_TYPE 1404 id: 354 1405 message: "Cannot import '{}', imported type imports only exported types." 1406 1407- name: IMPORTED_NOT_EXPORTED 1408 id: 355 1409 message: "Imported element not exported '{}'" 1410 1411- name: IMPORT_NOT_FOUND 1412 id: 356 1413 message: "Cannot find imported element '{}'" 1414 1415- name: IMPORT_RENAMES_ANNOTATION 1416 id: 357 1417 message: "Can not rename annotation '{}' in export or import statements." 1418 1419- name: DEFAULT_IMPORT_NOT_FOUND 1420 id: 358 1421 message: "Cannot find default imported element in the target" 1422 1423- name: MODULE_INDEX_MISSING 1424 id: 359 1425 message: "Cannot find index.[ets|ts] or package module in folder: {}" 1426 1427- name: IMPORT_NOT_FOUND_2 1428 id: 360 1429 message: "Cannot find import: {}" 1430 1431- name: EXPORT_INCORRECT 1432 id: 361 1433 message: "Incorrect export '{}'" 1434 1435- name: AMBIGUOUS_EXPORT 1436 id: 362 1437 message: "Ambiguous export '{}'" 1438 1439- name: CONST_WITHOUT_INIT 1440 id: 363 1441 message: "Missing initializer in const declaration" 1442 1443- name: UNEXPECTED_STRUCT 1444 id: 364 1445 message: "Structs are only used to define UI components, it should be translated at 'plugin after parser' phase." 1446 1447- name: TEMPORAL_DEADZONE 1448 id: 365 1449 message: "Variable '{}' is accessed before it's initialization." 1450 1451- name: INVALID_CAPTURE 1452 id: 366 1453 message: "Cannot capture variable '{}'." 1454 1455- name: INVALID_EXPORT 1456 id: 367 1457 message: "Invalid exported binding" 1458 1459- name: NOT_IMPLEMENTED 1460 id: 368 1461 message: "not implemented" 1462 1463- name: ID_REDECLARED 1464 id: 369 1465 message: "Identifier '{}' has already been declared." 1466 1467- name: MERGED_DECLS 1468 id: 370 1469 message: "Merging declarations is not supported, please keep all definitions of classes, interfaces and enums compact in the codebase!" 1470 1471- name: LATE_INITIALIZATION_FIELD_HAS_INVALID_TYPE 1472 id: 371 1473 message: "Late-initialized field cannot be nullish types or possibly nullish types." 1474 1475- name: SUPER_NOT_ACCESSIBLE 1476 id: 372 1477 message: "Class field '{}' defined by the parent class is not accessible in the child class via super." 1478 1479- name: CYCLIC_TYPE_OF 1480 id: 379 1481 message: "Circular type of reference" 1482 1483- name: CYCLIC_CLASS_SUPER_TYPE 1484 id: 380 1485 message: "Class's super type is itself" 1486 1487- name: CYCLIC_CALLEE 1488 id: 381 1489 message: "Circular call function" 1490 1491- name: DYMANIC_INIT_WITH_OBJEXPR 1492 id: 382 1493 message: "Dymanic Type {} cannot be initialize with an object expression" 1494 1495- name: OVERLOAD_NAME_MUST_BE_IDENTIFIER 1496 id: 383 1497 message: "The name of overload declaration should be an identifier." 1498 1499- name: OVERLOADED_NAME_MUST_FUNCTION 1500 id: 384 1501 message: "overloaded name must refer to an accessible method." 1502 1503- name: DUPLICATE_OVERLOADED_NAME 1504 id: 385 1505 message: "Duplicate overloaded method." 1506 1507- name: OVERLOAD_SAME_ACCESS_MODIFIERS 1508 id: 386 1509 message: "Overload alias and overloaded method name must have exactly the same modifiers (public, private, protected)." 1510 1511- name: OVERLOAD_SAME_ACCESS_MODIFIERS_STATIC_ASYNC 1512 id: 387 1513 message: "Overload alias and overloaded method name must have exactly the same modifiers (static, async)." 1514 1515- name: OVERLOAD_MUST_BOTH_CONSTRUCT 1516 id: 388 1517 message: "The overload alias and the overloaded method must either both be constructors or both be non-constructors." 1518 1519- name: OVERLOADED_NAME_REFER_TO_OVERLOAD_FUNCTION 1520 id: 389 1521 message: "The overloaded name '{}' can't refer to a function with overload signatures." 1522 1523- name: OVERLOADED_NAME_MUST_ALSO_EXPORTED 1524 id: 390 1525 message: "Overload alias is exported, then overload functions must also be exported." 1526 1527- name: OVERLOADED_UNION_CALL 1528 id: 391 1529 message: "Overload declaration cannot be called by union." 1530 1531- name: OVERLOAD_MODIFIERS_ABSTRACT 1532 id: 392 1533 message: "overload declaration cannot contain abstract methods." 1534 1535- name: INVALID_RECORD_PROPERTY 1536 id: 393 1537 message: "Invalid record property" 1538 1539- name: INVALID_LAMBDA_PARAMETER 1540 id: 394 1541 message: "Invalid lambda parameter. Expected: 'identifier(: type)?', 'identifier?(: type)?' or '...identifier(: type)?'." 1542 1543- name: TYPEOF_IN_ANNOTATION 1544 id: 395 1545 message: "'typeof' is not allowed in type annotations." 1546