Appendix: Type checking errors
Type mismatches
Value is known to be not null (warning)
// Example of the warning:
// FlowScript knows that x is not equal to null.
// The warning indicates that the comparison will always be false.
let x : number? = 1;
if x == null {
// ...
}Value is known to be null (warning)
// Example of the warning:
// FlowScript knows that x is equal to null. The warning indicates
// that the comparison will always be true.
let x : number? = null;
if x == null {
// ...
}Missing expected field
Generic function must be specialized
default() is not supported for type variables
Function is not generic
Type mismatch
Operator type mismatch
Argument type mismatch
Wrong argument count
Unknown member
Value is not a record
Wrong arity of type constructor
Duplicate field
Duplicated type argument
Duplicated parameter name
Cyclic reference in type
Multiple nullability annotations (warning)
Type is not a record type
Impossible type narrowing
Truistic type narrowing
Control flow errors
Identifier already declared
Unknown variable
Unknown type
Variable is read-only
Continue only allowed in loops
Break only allowed in loops
Type already declared
Not all paths return a value
Type cannot be used with loops
Cannot declare type inside loop or conditional block
Module not found
Statement in module
Query errors
Ambiguous join condition
Wildcard in joint selection
Wildcard in grouped selection
Ambiguous reference in query
Type is not queryable
Missing alias
Missing consition on with update
More than one otherwise clause
Redundant otherwise clause (warning)
Otherwise clause must come last
Last updated
Was this helpful?