Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Appendix B: Diagnostics

Every diagnostic the compiler can emit, as of the pinned version: 655 in all 613 errors, 15 notes, 27 warnings.

A diagnostic's number is stable forever. Retiring one leaves its row in place rather than reusing the number, so an id in an old build log still means what it meant then. Suppress a warning with -Wno-TKOnnnn, and turn warnings into errors with -Werror.

Text like ‹arg1› marks where the compiler substitutes a name, type or path.

Source and file handling (TKO0001–TKO0099)

IdSeverityMessage
TKO0001errorcannot open source file '‹arg1›': ‹arg2›
TKO0002errorsource file '‹arg1›' is empty
TKO0003warningsource file '‹arg1›' is not valid UTF-8; bytes preserved verbatim

Driver and command line (TKO0100–TKO0199)

IdSeverityMessage
TKO0100errorunknown option '‹arg1›'
TKO0101erroroption '‹arg1›' requires an argument
TKO0102errorno input files
TKO0103errorunknown target '‹arg1›'
TKO0104error32-bit targets are not supported; x86-64 only
TKO0105warningunknown diagnostic id '‹arg1›'
TKO0106error'‹arg1›' is not a recognised value for '‹arg2›'
TKO0108error'‹arg1›' is a Windows resource script; the target is not Windows
TKO0109errorno resource compiler: ‹arg1›
TKO0110errorcompiling resource '‹arg1›' failed (exit ‹arg2›)
TKO0111errorno usable toolchain: ‹arg1›
TKO0112errorcannot write intermediate file '‹arg1›'
TKO0113errorclang failed on '‹arg1›' (exit ‹arg2›)
TKO0114error'‹arg1›' is a ‹arg2› object, which target triple '‹arg3›' does not make
TKO0115errorarchiving failed (exit ‹arg1›)
TKO0116errorlink failed (exit ‹arg1›)
TKO0117errorcannot write the diagnostics file '‹arg1›'
TKO0118error-cimport needs -cimport-out : the binding has to go somewhere
TKO0119errorimporting a C header needs libclang: ‹arg1›
TKO0120errorunable to import C header ‹arg1›
TKO0121errorcannot write the binding '‹arg1›'
TKO0122errorthe binding generated for ‹arg1› does not compile; this is a bug in the C importer
TKO0123error-pic makes position-independent code for a Unix shared library; target '‹arg1›' is not a Unix
TKO0124warningLLVM is not installed: no clang was found, so this build cannot produce code -- install LLVM 18 or newer, or set TIKO_CLANG
TKO0140errorcannot find module '‹arg1›' (searched: ‹arg2›)
TKO0141errorimport cycle: ‹arg1›
TKO0142errorrelative import '‹arg1›' leaves the package root '‹arg2›'
TKO0144errormalformed tiko.toml: ‹arg1›
TKO0145error'‹arg1›' is in module directory '‹arg2›' but does not begin with '#module'
TKO0146errordependency '‹arg1›': ‹arg2›
TKO0147errormodule directory '‹arg1›' contains no .tiko or .bas files
TKO0148errorpackage name '‹arg1›' is reserved for the toolchain
TKO0149errortwo packages named '‹arg1›': ‹arg2› and ‹arg3›
TKO0150warningmodule cache disabled: ‹arg1›
TKO0154error'‹arg1›' cannot be used with '‹arg2›'
TKO0155error'link ‹arg1›' on '#import "‹arg2›"': package '‹arg3›' links nothing
TKO0156error'link ‹arg1›': package '‹arg2›' ships no ‹arg1› link of module '‹arg3›'
TKO0157errormodule '‹arg1›' is imported with 'link ‹arg2›' here and 'link ‹arg3›' elsewhere; a program links it one way
TKO0160errorno target named '‹arg1›' (targets: ‹arg2›)
TKO0161errortarget '‹arg1›': '‹arg2›' is a module directory; modules are reached through #import, not listed
TKO0162errortarget '‹arg1›': '‹arg2›' not found
TKO0163errorno profile named '‹arg1›' (profiles: ‹arg2›)
TKO0164errorprofile '‹arg1›' inherits itself: ‹arg2›
TKO0165errortargets '‹arg1›' and '‹arg2›' write the same output '‹arg3›'
TKO0167errorcompiling '‹arg1›' crashed with exit code ‹arg2›
TKO0168error'tiko run' needs an exe target; '‹arg1›' is a ‹arg2›
TKO0170error'tiko run' runs one target; name one of: ‹arg1›
TKO0171errorcould not copy '‹arg1›' to '‹arg2›'
TKO0172errorcannot make an import library for '‹arg1›': ‹arg2›
TKO0176errormodule '‹arg1›' needs '‹arg2›' at run time, and there is no '‹arg3›'
TKO0177errorcannot write the debug symbols of '‹arg1›': ‹arg2›
TKO0178error'‹arg1›' is not allowed in a #cmdline: ‹arg2›
TKO0179error-fsanitize=address is not supported for target '‹arg1›'
TKO0195error'-app' builds an Android app; target '‹arg1›' is not android-x86_64 or android-arm64
TKO0196errorcannot build the app '‹arg1›': ‹arg2›
TKO0197error'‹arg1›': ‹arg2›
TKO0173error'tiko c2t' translates one header per run; '‹arg1›' is a second
TKO0174errorcannot read the C header '‹arg1›'
TKO0175errorthe translation of ‹arg1› does not compile; this is a bug in tiko c2t
TKO0169note'‹arg1›' is not cached: ‹arg2›
TKO0166erroranother build of '‹arg1›' is running (it holds ‹arg2›)
TKO0153error'‹arg1›' was compiled against module object '‹arg2›', which is not there; compile it again with -c
TKO0152error'--emit-tki' writes a module's interface, and needs one module directory as its input

Lexer (TKO0200–TKO0299)

IdSeverityMessage
TKO0201warningmissing closing quote in string literal
TKO0202errorunterminated block comment
TKO0203error'‹arg1›' is not followed by any digits
TKO0205warningnumeric literal is too large for its type, truncated
TKO0206warningsuffix ignored in '‹arg1›'
TKO0207errorblock string has no closing line; one must start with three quotes
TKO0208errorblock string line does not start with the closing line's indentation

Preprocessor (TKO0300–TKO0399)

IdSeverityMessage
TKO0300errorunknown directive '#‹arg1›'
TKO0301errorcannot open include file '‹arg1›'
TKO0302error'#‹arg1›' without a matching '#if'
TKO0303error'#if' has no matching '#endif'
TKO0304errorpreprocessor nesting exceeded ‹arg1› levels
TKO0305errormacro '‹arg1›' is already defined
TKO0306errormacro '‹arg1›' takes ‹arg2› argument(s)
TKO0307errorunterminated argument list for macro '‹arg1›'
TKO0308errorinvalid expression in '#‹arg1›'
TKO0309error#error: ‹arg1›
TKO0310error'#‹arg1›' is not implemented in this build
TKO0311error'#macro' without '#endmacro'
TKO0312warningunknown '#pragma ‹arg1›'
TKO0314errorbuiltin macro '‹arg1›' is not implemented in this build
TKO0315note#print ‹arg1›
TKO0316errorexpected an identifier after '#‹arg1›'
TKO0317errorunsupported language mode '‹arg1›'; tiko-lang implements "fb" only
TKO0318errorcannot pop '#pragma ‹arg1›': the stack is empty
TKO0319errorFB_UNIQUEID_POP( ‹arg1› ) has no matching push
TKO0320error'‹arg1›' has no type; tiko-lang implements #lang "fb" only, where default types and suffixes are not valid
TKO0321errorexpected a type parameter name
TKO0322errorduplicated type parameter '‹arg1›'
TKO0323error'‹arg1›' does not name a type here, so it cannot own this constructor or destructor
TKO0324errorargument ‹arg1› of '‹arg2›' must be an integer constant
TKO0325errorargument of '‹arg1›' must be a constant expression
TKO0326error'#‹arg1›' takes a library name in quotes
TKO0327errorexpected a name, STATIC or DYNAMIC, then a quoted spec after #foreignlib
TKO0328errorexpected STATIC or DYNAMIC after the #foreignlib name, ‹arg1›
TKO0329error#foreignlib found no matching library file: ‹arg1›; tried: ‹arg2›
TKO0330error#foreignlib name already bound to a different library set, ‹arg1›
TKO0331error#line takes a line number, then an optional quoted file name
TKO0332errorunexpected token after #line
TKO0333error#cmdline takes one quoted argument string
TKO0334warning#cmdline is ignored outside the first source file
TKO0335error#cinclude needs libclang: ‹arg1›
TKO0336errorunable to import C header ‹arg1›
TKO0337errorthe binding generated for ‹arg1› does not compile; this is a bug in the C importer
TKO0338error‹arg1› defines '‹arg2›', which an earlier #cinclude in this unit left opaque; #cinclude ‹arg1› first
TKO0339warning#cinclude could not write its cache entry under '‹arg1›'; the binding is used from memory
TKO0340error'public #cinclude' needs the binding cache, which -cnocache turns off: ‹arg1› is not a file an importer can include
TKO0341errorcannot open embed file '‹arg1›'
TKO0342errormalformed '#embed': ‹arg1›
TKO0344errorembed file '‹arg1›' is empty; an array cannot have no elements
TKO0345errorembed file '‹arg1›' is ‹arg2› bytes; the limit is 256 MiB
TKO0346errorembed file '‹arg1›' changed during the build: ‹arg2› bytes when read, ‹arg3› when first seen
TKO0360error'#module' must be the first directive in the file
TKO0361error'#module "‹arg1›"' does not match its directory '‹arg2›'
TKO0362error'#import' must come before any code, in the compiled file
TKO0363errorthe condition around '#import' uses '‹arg1›', which is not predefined
TKO0364errormalformed '‹arg1›': ‹arg2›
TKO0365error'#export ‹arg1›': no macro of that name is defined here
TKO0366error‹arg1› is not allowed in a module file
TKO0367error'‹arg1›' is part of module '‹arg2›' and cannot be #included
TKO0371error'‹arg1›' cannot be defined as a macro: it is ‹arg2›
TKO0369error‹arg1› is allowed only in a module file
TKO0370error‹arg1› here, but ‹arg2›
TKO0372errorthe preprocessed program exceeded ‹arg1› tokens; a macro is expanding without bound
TKO0373warning#cmdline is ignored under -z nocmdline

Parser (TKO0400–TKO0599)

IdSeverityMessage
TKO0400errorexpected an expression
TKO0401errorexpected '‹arg1›'
TKO0402errorexpected a member name after '.' or '->'
TKO0403errorexpression nesting exceeded ‹arg1› levels
TKO0404errorunexpected token after expression
TKO0405errorexpected 'end ‹arg1›'
TKO0406errorexpected an identifier
TKO0407errorinline assembly is not supported; compile that module with fbc
TKO0408errorexpected a statement
TKO0409error'‹arg1›' is not available in the fb dialect
TKO0410error'for each' with a name list takes no 'as' clause; each name is typed by its own element
TKO0411error'for each byref' cannot take a name list; bind the whole element byref instead
TKO0412error'for each' with a name list needs at least two names
TKO0413errorevery lambda capture needs an explicit 'byval' or 'byref'
TKO0414error'select channel' needs at least one case
TKO0415errorexpected receive, send, timeout or else after 'case'
TKO0416errorexpected '‹arg1›' in this 'select channel' case
TKO0417erroronly one 'case timeout' and one 'case else' are allowed
TKO0418error'select case' needs at least one 'case'
TKO0419error'is' is not allowed in a 'select case as const'
TKO0420errorexpected the end of the statement
TKO0421error'next' without a 'for': no loop is open for '‹arg1›'
TKO0422errora module constructor or destructor priority must be from 101 to 65535
TKO0423error'‹arg1›' needs '#import "std/tasks"' in this file (and -mt)
TKO0424errora typed variadic parameter is an array parameter: write '‹arg1›( ) as T ...'
TKO0425error'‹arg1›' cannot be written on the array parameter '‹arg2›': an array is always passed by descriptor
TKO0426errora destructor takes no parameters
TKO0427errora type extends one base type
TKO0428erroran interface holds only 'inherits' lines and member declarations; '‹arg1›' cannot appear in one
TKO0429error'‹arg1›' cannot be written on an interface member: every member is public and abstract
TKO0430error'implements' names an interface member, as 'IName.Member'
TKO0432errora ‹arg1› names its base with an 'inherits' line in its body, not 'extends'
TKO0433errora type names its base with 'extends' on its header; 'inherits' lines are for classes and interfaces
TKO0434erroran interface member has no body; write the body in a type that implements it
TKO0435error'‹arg1›' lines come first in the body, before any member
TKO0436errorwrite 'implements' on its own line in the body of '‹arg1›', not on its header
TKO0437errora class cannot be '‹arg1›'
TKO0438error'implements' is written on the method's declaration inside its type
TKO0598errora sub has no result type; declare it as a function to return a value
TKO0590errorstatic property '‹arg1›' is init-only: only its initialiser sets it
TKO0591errorfield '‹arg1›' cannot be read in another field's initialiser: only static members can
TKO0592errora property block's getter returns 'value', a local: it cannot return byref
TKO0593errorin a get/set block 'property' names a backing field, and this property has none: use 'value' or 'return'
TKO0594error'‹arg1›' is an auto-property: its accessors are synthesised and cannot be written by hand
TKO0595errorauto-property '‹arg1›': ‹arg2›
TKO0596errorproperty '‹arg1›' is init-only: only a constructor of '‹arg2›' may assign it
TKO0597error'swap' over the ‹arg1› property '‹arg2›' is not supported; swap through a temporary
TKO0599errorproperty '‹arg1›' has no address: its getter returns a value, not a reference

Semantic analysis (TKO0600–TKO0899)

IdSeverityMessage
TKO0860error'‹arg1›' is not public in module '‹arg2›'
TKO0862erroralias '‹arg1›' is already bound in this file (by '#import "‹arg2›"')
TKO0863erroralias '‹arg1›' conflicts with a declaration of the same name
TKO0864error'‹arg1›' belongs to imported module '‹arg2›'; only that module can define it
TKO0865note'‹arg1›' here is the procedure '‹arg2›', which hides ‹arg3›
TKO0866note'‹arg1›' is also declared here, in a header an '#import' reads
TKO0867errorconstant definitions form a cycle: ‹arg1›
TKO0869error'‹arg1›' is initialised from '‹arg2›', which is declared later
TKO0868error'‹arg1›' is module-private but appears in the public declaration of '‹arg2›'
TKO0870errorpublic '‹arg1›' has the same name as its module '‹arg2›'
TKO0600error'‹arg1›' is already declared in this scope
TKO0602error'‹arg1›' is a ‹arg2›, not a procedure
TKO0603errorcalling convention does not match the declaration of '‹arg1›'
TKO0604error#assert condition failed
TKO0605errorexpected a constant expression
TKO0606error'‹arg1›' cannot be walked by 'for each': it has no GetIterator( )
TKO0607error'‹arg1›' is not an iterator: it has no '‹arg2›'
TKO0608error'for each' over a multi-dimensional array has no defined order
TKO0609error'for each' cannot walk a fixed-length string: it carries no length
TKO0610error'for each' with a name list needs a tuple element; '‹arg1›' is not one
TKO0611error'for each' binds ‹arg1› names but the element has ‹arg2›
TKO0612errorvar-len array '‹arg1›' cannot be initialized
TKO0613errorarray '‹arg1›' is too big
TKO0614error'select case as const' needs a constant case value
TKO0615errorinvalid 'case' range: the start value is greater than the end value
TKO0616error'select case as const' spans more than ‹arg1› values
TKO0617errorcannot modify '‹arg1›': it is a constant
TKO0618errortoo many expressions in the initializer for '‹arg1›'
TKO0619error'‹arg1›' is declared inside a procedure and cannot have methods
TKO0620error'‹arg1›' has an abstract type, which cannot be instantiated
TKO0621error'‹arg1›' is marked 'override' but overrides no virtual method
TKO0622error'‹arg1›' overrides a virtual method with a different return type
TKO0623error'‹arg1›' and the virtual method it overrides disagree about 'const'
TKO0624error'‹arg1›' overrides a virtual method with a different parameter mode
TKO0625error'‹arg1›' is not accessible here
TKO0626error'‹arg1›' takes a string
TKO0627errora pointer to a derived type casts only along its own chain
TKO0628errorvar-len string '‹arg1›' has static storage and cannot be initialized
TKO0629error'delete' takes a pointer
TKO0630error'.' reaches a member of a value; this is a pointer, so use '->'
TKO0631error'->' reaches a member through a pointer to a type; this is not one
TKO0632errorno overload of '‹arg1›' matches these arguments
TKO0633error'‹arg1›' needs a constructor or destructor that is not accessible here
TKO0634errora procedure pointer cannot be dereferenced or used in arithmetic
TKO0635error'&=' concatenates, so its target must be a string
TKO0636errorparameter '‹arg1›' cannot be a fixed-length string
TKO0637erroran array is not a subscript
TKO0638errorstatic member '‹arg1›' is only allowed in a top-level type
TKO0639error'byref' belongs before 'as', not after the return type
TKO0640errora parameter default cannot name '‹arg1›', which has automatic storage
TKO0641errorthis parameter takes a whole array, not an element
TKO0642error'swap' needs two variables, not a literal or a constant
TKO0643error'‹arg1›' is byref, so its initializer needs an address
TKO0644error'‹arg1›' is byref and must be bound where it is declared
TKO0645error'‹arg1›' is virtual, but its type does not extend 'object'
TKO0646error'‹arg1›' is abstract and cannot have a body
TKO0647error'operator new' and 'operator delete' are implicitly static and cannot be virtual
TKO0648errora 'put' blend mode is a word, not a string
TKO0649erroran array name without a subscript is not a value
TKO0650errora byref result cannot return a local
TKO0651errorthe definition of '‹arg1›' disagrees with its declaration about 'byref'
TKO0652errora literal cannot be assigned to
TKO0653error'‹arg1›' and its initializer disagree about being a string
TKO0654errorthe base of '‹arg1›' has no constructor that takes no argument
TKO0655errorthe two arms of 'iif' have incompatible types
TKO0656error'‹arg1›' is extern or common and cannot be initialized
TKO0657errorthe type of '‹arg1›' has no constructor that takes no argument
TKO0658error'‹arg1›' is indexed with the wrong number of subscripts
TKO0659errordynamic array '‹arg1›' cannot be a member of a union
TKO0660errorthe call to '‹arg1›' matches more than one overload
TKO0661error'‹arg1›' was not declared as a static member variable
TKO0662error'‹arg1›' cannot reach its base type's private default constructor
TKO0663error'‹arg1›' cannot reach its base type's private destructor
TKO0664error'‹arg1›' cannot be written from a const method
TKO0665errora const method cannot call the non-const method '‹arg1›'
TKO0666errorthe type declares no '‹arg1›' to call
TKO0667errora byref result must be assigned something of exactly its type
TKO0668errora shared initialiser cannot reference '‹arg1›', which is not shared
TKO0669error'‹arg1›' adds a new name to a namespace from outside it
TKO0670errora pointer and a floating-point value do not convert into each other
TKO0671errordivision by a constant zero
TKO0672errorthe ALIAS name string is empty
TKO0673errorthe LIB name string is empty
TKO0674errorthis array bound is not known at compile time
TKO0675errora parameter default names '‹arg1›', which is not declared
TKO0676error'‹arg1›' mixes RETURN with 'FUNCTION =' over a result type that has constructors
TKO0677error'‹arg1›' is already declared with these parameter types
TKO0678errornothing may follow VIRTUAL or ABSTRACT but the procedure keyword
TKO0679errorVIRTUAL and ABSTRACT belong to a member of a type
TKO0681errora structor cannot be declared this way
TKO0682errorCONST is for a member procedure, which has a THIS to be const
TKO0683errorSTATIC is for a member procedure
TKO0684errorthis operator is implicitly STATIC and cannot be CONST
TKO0685errorthe bitfield '‹arg1›' is wider than its type
TKO0686errorthese pointer types do not convert into each other
TKO0687errora bydesc parameter takes an array of exactly its element type
TKO0688error'for each' cannot walk a ustring; index it with 'for' and 'mid' instead
TKO0689errora string does not convert to a pointer
TKO0690errorthe dynamic array field '‹arg1›' cannot have a const element type
TKO0691errorthe array field '‹arg1›' cannot take an ellipsis bound
TKO0692errorthe array '‹arg1›' cannot have a const element type
TKO0693errorbase( ) is given more values than the base type has fields
TKO0694error'‹arg1›' names neither a namespace nor a type
TKO0695error'‹arg1›' is not an array and cannot be redimensioned
TKO0696error‹arg1› is written on this definition but not on its declaration
TKO0697erroroperator '‹arg1›' must be a member of a type
TKO0698errorthis argument does not convert to the parameter's type
TKO0699errora const value cannot be passed to a non-const byref parameter
TKO0700error'[ ]' indexes a pointer, and this is not one
TKO0701erroronly a module-level definition or a static member can be a module constructor
TKO0702errora string and a number do not convert into each other
TKO0703erroroperator [] cannot be STATIC
TKO0704erroroperator [] needs an explicit result type
TKO0705error'new' of a bare zstring or wstring allocates nothing
TKO0706error'new' cannot allocate a fixed-length string
TKO0707error'not' over a pointer; compare it with 0 instead
TKO0708errorthe image target of a graphics statement must be a pointer
TKO0709errorthis type has no conversion to a pointer for a graphics statement to draw into
TKO0710errorthe byref function '‹arg1›' never sets its result
TKO0711errora byref result must be assigned something with an address
TKO0712errorthe alias on the definition of '‹arg1›' does not match its declaration
TKO0713error'‹arg1›' is a type, not a member with a value
TKO0714errorthis case value is not the kind the select subject is
TKO0715error'with' takes a UDT value, not a number or a pointer
TKO0716error'->' through a value of a type that has no operator ->
TKO0717error'base.‹arg1›( )' calls an abstract method, which has no body
TKO0718errora union cannot be unpacked by let( )
TKO0719error'erase' over this array needs a plain parameterless cdecl constructor and destructor
TKO0720errorno operator ‹arg1› compares this type
TKO0721errorthe dynamic array field '‹arg1›' must write its rank: '(any)'
TKO0722errorthe type '‹arg1›' never declared this constructor, destructor or property
TKO0723erroronly a var-len array can be redimensioned
TKO0724errora union is initialised with one value, not a group
TKO0725error'‹arg1›' has static storage and must be initialised from a constant, not a variable
TKO0726error'‹arg1›' is shared, which belongs at module level, not inside a block or procedure
TKO0727errorthe bounds of '‹arg1›' disagree with its EXTERN declaration
TKO0728error'‹arg1›' is declared EXTERN with a different number of dimensions
TKO0729error'‹arg1›' is byref and its initializer must have exactly its type
TKO0730error'‹arg1›' is a static reference and cannot be bound to a local
TKO0731errora byref procedure type must be a 'function' with an explicit result type
TKO0732error'‹arg1›' returns 'any', which is not a value
TKO0733errorevery parameter of a definition needs a name
TKO0734errorCONST is not needed on a constructor or destructor
TKO0735error'base' must be followed by '.' or an argument list
TKO0736errorthe result type of '‹arg1›' has no default constructor
TKO0737error'erase' over this array needs a default constructor
TKO0738errorno conversion between these two types
TKO0739error'‹arg1›' has no member named '‹arg2›'
TKO0740error'‹arg1›' overrides a virtual method with an array parameter of a different rank
TKO0741errora field name cannot carry a type suffix
TKO0742error'on ... goto' needs a numeric selector, not a string
TKO0743error'‹arg1›' is not declared
TKO0744error'‹arg1›' cannot be sized by 'ubound' inside its own initializer
TKO0745errorthe namespace '‹arg1›' has no member named '‹arg2›'
TKO0746errorthe ‹arg1› of '‹arg2›' is private or protected and cannot be reached from here
TKO0747errorthis drops a pointee's 'const'
TKO0748errora constant cannot have the type of '‹arg1›'
TKO0749error'threadcall' runs a SUB; '‹arg1›' is not one
TKO0750error'threadcall' cannot run '‹arg1›': ‹arg2›
TKO0751errora REDIM that declares '‹arg1›' must write its type
TKO0752errorREDIM needs the array's bounds: '‹arg1›( ... )'
TKO0753error'‹arg1›' is a bitfield and has no address to bind byref
TKO0754errorthe type '‹arg1›' is too big
TKO0755error'‹arg1›' is byref with a default, which needs a complete type
TKO0756errora cast needs a SIZED string type, as in 'zstring * n'
TKO0757error'‹arg1›' holds a var-len string, which an initializer list cannot fill
TKO0758error'‹arg1›' has static storage and holds a bitfield, which its initializer cannot fill
TKO0759error'swap' needs two operands of the same kind
TKO0767error'‹arg1›' overrides a virtual method with a different calling convention
TKO0768error'‹arg1›' inherits a virtual destructor whose calling convention an implicit one cannot match
TKO0769error'‹arg1›' is reserved by '#pragma reserve' and cannot be declared
TKO0770error'‹arg1›' is reserved by '#pragma reserve' and cannot be used
TKO0771error'‹arg1›' is a var-len string, which cannot be declared '= any'
TKO0772errorthis expression is not a procedure pointer and cannot be called
TKO0773errorthis call passes ‹arg1› argument(s), but the procedure pointer takes ‹arg2›
TKO0774errorargument ‹arg1› is left out, and the procedure pointer's declaration gives it no default
TKO0775errorthis call passes ‹arg1› argument(s), but '‹arg2›' takes ‹arg3›
TKO0776errorargument ‹arg1› of '‹arg2›' is left out, and it has no default
TKO0760errortoo many levels of pointer indirection (the limit is 8)
TKO0761error'‹arg1›' is declared SHARED from outside its namespace
TKO0762error'‹arg1›' is already defined from outside
TKO0763error'#pragma reserve' takes 'asm' or 'extern', not '‹arg1›'
TKO0764error'‹arg1›' is already reserved for that use
TKO0765error'‹arg1›' mixes 'any' with written bounds; use one or the other
TKO0766errora type's array field is declared with 'dim', not 'redim'
TKO0777error'‹arg1›' is already the name of a type with members, which no value may share
TKO0778error'‹arg1›' has static storage and must be initialised from a constant expression
TKO0779error'‹arg1›' is declared in a namespace and cannot be removed with #undef
TKO0780error'‹arg1›' takes '...' and cannot be overloaded
TKO0781error'...' needs a 'cdecl' procedure, and this one is '‹arg1›'
TKO0782error'...' cannot be the first parameter
TKO0783error'‹arg1›' is not declared, so 'procptr' has no procedure to take
TKO0784errorthe type '‹arg1›' is used above its declaration
TKO0785error'‹arg1›' is not a procedure, so 'procptr' cannot take it
TKO0786errora property getter takes no parameter, or one index
TKO0787errora property setter takes its value, after any indices
TKO0788errora property cannot be static
TKO0789erroroperator '‹arg1›' takes ‹arg2› parameter(s) here
TKO0790erroroperator '‹arg1›' cannot be a member of a type
TKO0791error'procptr' takes the name of a procedure
TKO0792error'‹arg1›' cannot be overloaded
TKO0793errorthe result of '‹arg1›' does not match its declaration
TKO0794error'‹arg1›' was declared with ‹arg2› parameter(s)
TKO0795errorparameter ‹arg1› of '‹arg2›' does not match its declaration
TKO0796errorno declaration of '‹arg1›' matches this definition
TKO0797warning'threadcall' is not supported: '‹arg1›' will not run, and the thread handle is 0
TKO0798error'is ‹arg1›' needs a type derived from '‹arg2›', and '‹arg1›' is not one
TKO0799error'is' needs run-time type information, and '‹arg1›' has none: it does not extend 'object'
TKO0800error'is' needs an object and a type that extends 'object', not '‹arg1›'
TKO0801error'‹arg1›' does not take these arguments
TKO0802error'‹arg1›( string, ... )' cannot take a wide string; 'str( ... )' converts one
TKO0803error'‹arg1›( string, ... )' needs a var-len STRING, and this is ‹arg2›
TKO0804error'‹arg1›' to a pointer needs a pointer or a pointer-sized integer, and this is ‹arg2›
TKO0805error'‹arg1›' of a pointer needs a pointer or a pointer-sized integer type, and this names ‹arg2›
TKO0825errorthe tuple has ‹arg1› elements, and ‹arg2› are written
TKO0826errora tuple is expected here, and '‹arg1›' is not one
TKO0827errorthe jump to '‹arg1›' crosses a 'defer', which would still run when its scope ends
TKO0828error'defer' needs a statement on the same line
TKO0829errorgeneric instantiation of '‹arg1›' is too deep (the limit is ‹arg2›; -maxinstdepth raises it)
TKO0830warningsuspicious pointer assignment: a '‹arg1›' from a '‹arg2›'
TKO0831errora '‹arg1›' does not convert to the tuple element '‹arg2›'
TKO0832error'‹arg1›( n, x )' takes a character code or a ‹arg2› string as x, not ‹arg3›
TKO0833warningpassing different pointer types: a '‹arg2›' for a '‹arg1›' parameter
TKO0834error'‹arg1›' is already the name of an enum, which no variable may share
TKO0835error'‹arg1›' is a value of an enum type, not the enum, so it has no members
TKO0871errora '‹arg1›' has no printable form; '‹arg2›' cannot take it
TKO0872error'‹arg1›' needs an argument list
TKO0873error'‹arg1›' is a sub and has no value
TKO0874errora value alone is not a statement; expected '='
TKO0875errorproperty '‹arg1›' opens a statement with empty parentheses; expected an argument
TKO0876errorthis ‹arg1› cannot be empty
TKO0877erroran anonymous ‹arg1› cannot sit directly inside a ‹arg1›; they must alternate
TKO0878error'‹arg1›' cannot hold itself: it is still being declared, and only a pointer to it may be a field
TKO0879error'‹arg1›' cannot be a module ‹arg2›: it is ‹arg3›, and only a public static member may be one
TKO0880errorthe jump to '‹arg1›' crosses the definition of '‹arg2›', which needs constructing
TKO0881errorthe jump to '‹arg1›' crosses the temporary holding ‹arg2›, which needs constructing
TKO0882erroriif cannot build a '‹arg1›': it has constructors, but neither a default nor a copy one
TKO0883errorGET cannot fill an array element reached through a function call; expected a pointer
TKO0884errora static member cannot be declared in an anonymous ‹arg1›
TKO0885error'any' cannot leave a new STRING uninitialized
TKO0886error'‹arg1›' cannot be declared here: only a namespace nested inside this one may be named
TKO0887errorinvalid array subscript in '‹arg1›': a lower bound is above its upper bound
TKO0888error'‹arg1›' is a shared or static reference: it must be bound to a variable, or to a constant element of a fixed array
TKO0889errorthe definition of '‹arg1›' does not match its declaration in the type
TKO0890error'‹arg1›' cannot convert a '‹arg2›'
TKO0891errorno constructor of the base takes ‹arg1› argument(s)
TKO0892errorbase( ) needs a value: the base type has no constructor
TKO0893error'‹arg1›' is a keyword and cannot name a type
TKO0894error'‹arg1›' is a COMMON array, which is dynamic and cannot be given bounds
TKO0895error'‹arg1›' has an ellipsis bound, which needs an initializer to count
TKO0896error'‹arg1›' is dynamic: a REDIM cannot take an ellipsis bound
TKO0897error'‹arg1›' is const, so it needs a value: '= any' leaves it unset
TKO0898error'‹arg1›' cannot be of type ANY: only a pointer to it can
TKO0899error'‹arg1›' is a typedef defined in terms of itself
TKO0836erroran array result is written 'as T( )', with nothing between the parentheses
TKO0837errora procedure type cannot return an array; return it from a named procedure
TKO0838errorthis function returns an array: 'return' takes a brace list, a local array, or a call that returns an array of the same element type
TKO0839errora nested brace list cannot be returned as an array result; write a flat list
TKO0841error'‹arg1›' returns an array, so it must be called with parentheses: '‹arg1›( )'
TKO0842errorthis call returns an array, which cannot be converted to another type
TKO0843error'‹arg1›' cannot take an initializer list: its type has no Add, PushBack or Push method
TKO0844erroran initializer list on the static member '‹arg1›' is not supported yet; fill it with calls after its definition
TKO0845error'‹arg1›' is not an array, so it cannot take a '{ ... }' initializer
TKO0846errora '{ ... }' list can only initialize an array, and nothing here is one
TKO0847errorformat string: ‹arg1›
TKO0848errorformat string: ‹arg1›
TKO0849errorformat string: ‹arg1›
TKO0850errorformat string: ‹arg1›
TKO0851errorformat string: ‹arg1›
TKO0852errorformat string: ‹arg1›
TKO0853errorformat string: ‹arg1›
TKO0854errorformat string: ‹arg1›
TKO0855errorformat string: ‹arg1›
TKO0856errorformat string: ‹arg1›
TKO0857errorformat string: ‹arg1›
TKO0858errorformat string: ‹arg1›
TKO0840error'‹arg1›' is not a local array of this procedure, so returning it would need a copy, which is not supported yet; return a local array or a brace list
TKO0824errora tuple cannot be a base type; name a type after 'extends'
TKO0821errora tuple needs at least two elements
TKO0822errorthe tuple element name '‹arg1›' is used twice
TKO0823errora tuple element cannot be 'any' or a fixed-length string
TKO0820errorno operator '‹arg1›' takes these operand types
TKO0819error'next' cannot name a FOR EACH variable: it is scoped to the loop body
TKO0818error'for each byref' needs a byref Value( ), and '‹arg1›.Value( )' returns by value
TKO0817errorthe type parameters written for '‹arg1›' do not match its declaration, 'of ‹arg2›'
TKO0815error'‹arg1›' is generic; write its type arguments, as '‹arg1›( of ... )'
TKO0816error'‹arg1›' takes ‹arg2› type argument(s), and ‹arg3› are written here
TKO0814error'defer' is not allowed at module level; put it in a procedure or a block
TKO0813error'‹arg1›' is already declared by the runtime library
TKO0812error'spawn ‹arg1›' cannot pass its byref parameter '‹arg2›'; a string or UDT parameter is byref unless it is written 'byval'
TKO0811error'‹arg1›' is still incomplete here: it is declared below this use, and only a pointer to it may be used above that
TKO0810error'‹arg1›' is an incomplete type: nothing declares it, so only a pointer to it may be used here
TKO0809errorcannot infer the type arguments of '‹arg1›'; write them, as '‹arg1›( of ... )( ... )'
TKO0808errorthe type '‹arg1›' is not declared
TKO0807error'‹arg1›' is a keyword and cannot name ‹arg2›
TKO0806error'‹arg1›' cannot be initialized from a ustring: no constructor of '‹arg2›' takes one, and a ustring does not convert to 'zstring ptr' here
TKO0601error'‹arg1›' is a ‹arg2›, not a property: call it as '‹arg1›( ... )' instead of assigning to it
TKO0680errorproperty '‹arg1›' has no setter taking ‹arg2›, so it cannot be assigned this way
TKO0859errorproperty '‹arg1›' is read without parentheses: '()' would be an index

Notes (TKO0900–TKO0989)

IdSeverityMessage
TKO0962errorclang reported success but wrote no object '‹arg1›'
TKO0908errora constructor( ) chain call must be the first statement of the constructor
TKO0909erroroperator -> must return a UDT, by value or byref
TKO0910errora pointer does not fit in a '‹arg1›'; only a pointer-sized integer takes one
TKO0911errortype<‹arg1›>( ) needs values: the type has no constructor to call
TKO0912errorno constructor of '‹arg1›' takes these values: a type that extends OBJECT is not filled field by field
TKO0913error'‹arg1›' is an array of '‹arg2›', whose destructor is not cdecl; an array can only destroy through a cdecl one
TKO0914error'‹arg1›' is an array: GET # and PUT # take an element, or the whole array written '‹arg1›( )'
TKO0915error'‹arg1›' takes no name: the next thing is FOR or AS
TKO0916errorthis type has more than one conversion to a pointer, so the graphics statement cannot choose one
TKO0917error'‹arg1›' has no constructor, so '‹arg1›( ... )' is no call
TKO0918errora store through the address of a temporary: the value is gone at the end of the statement
TKO0919error'‹arg1›' is ambiguous: more than one USING in effect declares it; qualify it
TKO0920error'#pragma reserve (asm)' belongs at module level, not inside a block
TKO0921errorthe capturing lambda's parameter '‹arg1›' cannot be of the generic's type parameter '‹arg2›'
TKO0922error'‹arg1›' is not visible here: it is declared inside a namespace; qualify it
TKO0923error'‹arg1›' is no namespace declared before this USING
TKO0924errorrecursive #define: '‹arg1›' names itself in its own body
TKO0925errortype( ... ) has no type to build here: write type( ... )
TKO0926error'‹arg1›' needs a copy constructor: its base has no constructor that takes no argument, so none can be made for it
TKO0927errorthis constructor of '‹arg1›' must call base( ... ): its base has no constructor that takes no argument
TKO0928error'‹arg1›' takes a number, not a '‹arg2›'
TKO0930errora whole array cannot be assigned or swapped: index it, as in 'a( i )'
TKO0931warning'=' is read as a comparison inside the argument of '‹arg1›', not as an assignment to its byref result; to assign, write '( ‹arg1›( ... ) ) = value'
TKO0932error'‹arg1›' returns its result by value, so a call to it cannot be assigned to
TKO0933erroran 'any ptr' points at nothing with a type; cast it to a typed pointer before dereferencing it
TKO0934error'‹arg1›' is a property with only a setter: it can be assigned, not read
TKO0935error'‹arg1›' is not a const method, so a const object cannot call it
TKO0936error'‹arg1›' is not a procedure modifier; 'declare' takes const, static, virtual or abstract before the procedure keyword
TKO0937error'‹arg1›' needs an object, and '‹arg2›' has none: it is a static member
TKO0938error'‹arg1›' cannot take a '‹arg2›': convert it explicitly first
TKO0939error'‹arg1›' is a function: its result can be assigned only inside it
TKO0941error'for each byref' cannot walk a string: a character has no stable address; walk it by value, or index it with 'for'
TKO0942error'case timeout' and 'case else' cannot both appear in one 'select channel': 'else' fires first, so the timeout is never reached
TKO0943error'spawn' needs a sub or function declared at module level, and '‹arg1›' is not one
TKO0944errora line number is not available in the fb dialect; name the line with a label
TKO0945error'‹arg1›' is already a constant or procedure of the enclosing scope, which no local may share
TKO0946erroriif cannot choose between a ‹arg1› and a ‹arg2›: both results must be the same kind of string
TKO0947error'‹arg1›' is not inside ‹arg2›
TKO0948errorthere is no outer ‹arg2› for '‹arg1›' to leave
TKO0949errorthere is no label '‹arg1›' in this procedure
TKO0950error'*' dereferences a pointer, and this is not one
TKO0951error'@' takes the address of a variable, and a literal is not one
TKO0952errorthis procedure has no result, so its 'return' takes no value
TKO0957error'as any' declares a parameter of any type; a definition must name the type
TKO0958erroran 'operator cast' cannot convert to the type it is a member of
TKO0959errorGET # and PUT # take no amount for a string or a whole array: its length is its own
TKO0960errorthe subscript ‹arg1› is outside the array's bounds, ‹arg2› to ‹arg3›
TKO0961error'‹arg1›' is already a namespace of the enclosing scope, which no local may share
TKO0963errora bare zstring or wstring is not passed or returned by value; use a pointer or byref
TKO0964error'select case' cannot take a '‹arg1›'; select on a field or a conversion of it
TKO0966errora condition needs a number or a pointer, and this is a '‹arg1›'
TKO0967error'line input' reads into a string, and this is a '‹arg1›'
TKO0968warningimplicit conversion: a '‹arg1›' from a '‹arg2›'; cast( ) it if that is meant
TKO0970warningpassing a '‹arg2›' for a '‹arg1›' parameter; cast( ) it if that is meant
TKO0971error'‹arg1›' is a type, not a value
TKO0972error'‹arg1›' has no member named '‹arg2›': a '‹arg3›' has no members
TKO0973errora typed variadic parameter ('...') must be the last parameter
TKO0974errora typed variadic parameter ('...') takes no default value
TKO0975error'‹arg1›' is declared with a typed variadic last parameter ('...') in one place and without it in another
TKO0976errora TYPE's 'extern' clause takes "c", not "‹arg1›"
TKO0977error'select case as const' already has a case for the value ‹arg1›
TKO0978error'select case as const' needs an integer subject, and this is a '‹arg1›'
TKO0979warningoverflow in constant conversion: the case value ‹arg1› does not fit in a '‹arg2›'
TKO0980error'‹arg1›' cannot take a ustring source; convert it with str( ) first
TKO0981error'‹arg1›' is not supported on this target; read a variadic argument list with 'cva_list', 'cva_start' and 'cva_arg'
TKO0987error'‹arg1›' is a statement and has no value; it works on a 'cva_list' variable
TKO0988error'‹arg1›' is written '‹arg2›'
TKO0989error'‹arg1›' needs a 'cva_list', and this is a '‹arg2›'
TKO0982error'base( )' must be the first statement of the constructor
TKO0983error'‹arg1›' is ambiguous: more than one enum declares it; qualify it
TKO0984warningoverflow in constant conversion: ‹arg1› does not fit in a '‹arg2›'
TKO0985error'‹arg1›' has a field with a default value, which an initializer list cannot fill
TKO0965error'‹arg1›' has a field with a constructor, which an initializer list cannot fill
TKO0955error'end ‹arg1›' closes no '‹arg1›' block
TKO0956errora second 'case else' -- a select has one, and it comes last
TKO0954errorthe diagnostics file '‹arg1›' is one of the inputs, and writing it would destroy it
TKO0953errora FOR counter must be a scalar variable, not a field, element, dereference or byref parameter
TKO0929errortype( ... ) cannot build a '‹arg1›': its field '‹arg2›' is a var-len string, which only a constructor can fill
TKO0900note‹arg1›
TKO0901notedeclared here
TKO0903notein instantiation of '‹arg1›'
TKO0902note'‹arg1›' is required by interface '‹arg2›', declared here
TKO0986notein expansion of '‹arg1›' here
TKO0905noteunclosed '‹arg1›' opened here
TKO0906noteimported here
TKO0969note'nullptr' converts to every pointer type equally; name the one meant, as 'cptr( T ptr, nullptr )'
TKO0907notedid you mean '‹arg1›'? '#import "‹arg2›"' binds the name '‹arg1›'
TKO0940note'‹arg1›' is imported by another file of this module; an import belongs to the file that writes it

Compiler limits and internal errors (TKO0990–TKO0999)

IdSeverityMessage
TKO0990errortoo many errors; stopping
TKO0991errorinput exceeds a compiler limit: ‹arg1›
TKO0992errornot implemented in this build: ‹arg1›
TKO0993errorinternal compiler error in emission: ‹arg1›
TKO0994errorinternal compiler error: this ‹arg2› was not compiled (‹arg1› in this module); the build stops rather than leave it out
TKO0995warninginternal compiler error: this ‹arg2› was not compiled (‹arg1› in this module) and is left out of the build
TKO0996error'‹arg1›' is a bare ‹arg2›, which has no length; write '‹arg2› * N' or '‹arg2› ptr'
TKO0997error'‹arg1›' is a procedure, not a type
TKO0998error'‹arg1›' cannot be a member of a union: ‹arg2›
TKO0999error'‹arg1›' is not a static member; call it through an object of its type

Interfaces (TKO1000–TKO1049)

IdSeverityMessage
TKO1000error'‹arg1›' does not implement '‹arg2›.‹arg3›'; add 'implements ‹arg2›.‹arg3›' to one of its methods
TKO1001error'‹arg1›' cannot implement '‹arg2›': ‹arg3› differ
TKO1002error'‹arg1›' is not an interface
TKO1003errorinterface '‹arg1›' has no member named '‹arg2›'
TKO1004error'‹arg1›' implements '‹arg2›.‹arg3›', but does not list '‹arg2›' after 'implements'
TKO1005error'‹arg2›.‹arg3›' is implemented twice in '‹arg1›'
TKO1006errorinterface '‹arg1›' is listed more than once
TKO1008errorinterface '‹arg1›' inherits itself
TKO1009error'‹arg1›' does not convert to '‹arg2›'‹arg3›
TKO1007errorinterface '‹arg1›' cannot be created; create a type that implements it
TKO1012erroran interface reference cannot refer to a temporary; store the object in a variable first
TKO1013error'delete' cannot destroy through interface '‹arg1›'; cast to the object's type first
TKO1010error'‹arg1›' is ambiguous: both '‹arg2›' and '‹arg3›' declare it; cast to one of them
TKO1015errorinterface type '‹arg1›' cannot appear in a foreign declaration
TKO1018warning'‹arg1›' implements '‹arg2›.‹arg3›' with different default arguments; calls through '‹arg2›' use the interface's
TKO1011error'‹arg2›.‹arg3›' is already implemented by base type '‹arg1›'; override that method instead
TKO1014errora static method cannot implement an interface member
TKO1016warning'‹arg1›' is decided at compile time: it is always ‹arg2›
TKO1021error'trycast' converts to an interface or to a pointer to a type, not to '‹arg1›'
TKO1022errortype argument '‹arg1›' does not implement '‹arg2›', which '‹arg3›' requires
TKO1023errorthe argument of '‹arg1›' must be an array, not '‹arg2›'

String slices (TKO1050–TKO1099)

IdSeverityMessage
TKO1050error'‹arg1›' cannot be sliced: it is not a string, a string slice or a zstring/wstring pointer
TKO1051errorslice ‹arg1› is outside '‹arg2›' (0 to ‹arg3›)
TKO1052errora const ‹arg1› cannot convert to a mutable ‹arg1›
TKO1053errora mutable ‹arg1› parameter needs a ‹arg2› variable, not '‹arg3›'
TKO1054errora ‹arg1› cannot be ‹arg2›
TKO1055errortype '‹arg1›' holds slice field '‹arg2›' and must be declared 'as view'
TKO1056errorcannot take the address of slice '‹arg1›' except to pass it
TKO1057error'‹arg1›' outlives '‹arg2›', which this slice borrows from
TKO1058errorthis slice borrows from a temporary that ends with the statement
TKO1059errorcannot return a slice of ‹arg1›
TKO1060error‹arg1› cannot capture slice '‹arg2›'
TKO1061errora slice stored through byref parameter '‹arg1›' must outlive the call
TKO1062error'‹arg1›' cannot be changed while slice '‹arg2›' borrows from it (last used at line ‹arg3›)
TKO1063errorevery declaration of '‹arg1›' must say 'partial', or none of them
TKO1064errora generic type cannot be 'partial'
TKO1065erroronly a type with a body can be 'partial'
TKO1066erroronly one part of partial type '‹arg1›' may give '‹arg2›'
TKO1067errorthe parts of partial type '‹arg1›' disagree: one is 'public', another 'private'
TKO1068errorthe parts of '‹arg1›' disagree: one is a 'partial type', another a 'partial class'
TKO1069error'‹arg1›' cannot be sliced: it has ‹arg2› dimensions; only a one-dimensional array can
TKO1070error'‹arg1›' cannot be sliced with '( )': it is not an array or a span‹arg2›
TKO1071errorslice ‹arg1› is outside '‹arg2›' (‹arg3›)
TKO1072errora span takes one index, not ‹arg1›
TKO1073errorspan( of ‹arg1› )( p, n ) needs a pointer to ‹arg1› and a count
TKO1074error'‹arg1›' is an array or a span: slice it with '( )', as in a(lo to hi)

128-bit integers (TKO1100–TKO1149)

IdSeverityMessage
TKO1100error‹arg1› does not support int128 or uint128 yet

Flow analysis (TKO1150–TKO1199)

IdSeverityMessage
TKO1150warning'‹arg1›.‹arg2›( )' may raise runtime error 1: no ‹arg3›( ) check covers every path to it

Tests and documentation (TKO1200–TKO1239)

IdSeverityMessage
TKO1200errora 'test' block belongs at the top level of a file, not inside ‹arg1›
TKO1201errora 'test' block in a test build needs '#import "std/testing"' above it
TKO1202errora 'test' block needs a name: test "what it checks"
TKO1203warningno tests found in ‹arg1›
TKO1204note'‹arg1›' is named like a test file but does not import std/testing; it is not run
TKO1205errortests built for ‹arg1› cannot run on this host; add --no-run to build them only
TKO1206errorthe test program '‹arg1›' stopped before running a test (exit code ‹arg2›)
TKO1207error'--emit-doc' writes one module's documentation, and needs one module directory as its input
TKO1208errorcannot write the documentation file '‹arg1›'
TKO1209warningno module directories to document in ‹arg1›
TKO1210error'‹arg1›' is not a module directory: none of its source files begins with '#module'
TKO1211error'‹arg1›' is neither a test file nor a directory

Pattern matching (TKO1240–TKO1279)

IdSeverityMessage
TKO1240error'match' needs at least one arm
TKO1241error'match' is not closed: 'end match' expected
TKO1242errora 'match' used as a value takes 'pattern => value' arms, not 'case'
TKO1243errora 'match' statement takes 'case' arms; 'pattern => value' arms are for a 'match' used as a value
TKO1244error'else' must be the last arm of a 'match'
TKO1245errora 'match' expression cannot be used in ‹arg1›
TKO1246errormalformed 'match' pattern: ‹arg1›
TKO1247error'‹arg1›' is bound twice in one pattern
TKO1248errora pattern list ('a, b') cannot bind names
TKO1249erroran 'else' arm cannot have a guard
TKO1250error'match' is not exhaustive: ‹arg1› is not handled
TKO1251warningthis 'match' arm can never run: the arms above it cover every value it matches
TKO1252errorthe pattern '‹arg1›( ... )' needs a subject of type '‹arg1›', and it is '‹arg2›'
TKO1253error'‹arg1›' has ‹arg2› fields, and the pattern names ‹arg3›
TKO1254errora type pattern needs a pointer to a class, and the subject is '‹arg1›'
TKO1255error'starts' needs a string, and the subject is '‹arg1›'
TKO1256warningthe binding '‹arg1›' hides the constant of the same name; qualify it to compare against it
TKO1257errora tuple pattern needs a tuple, and the subject is '‹arg1›'