LYR-PAR0011
a type is missing
A type is needed — after :, in a type argument list, after as or is — and the token there begins none; or a dotted type path ends in something else than a name.
Explanation
A type is a name or a dotted path with its arguments, a function type fn(…) -> T, a tuple or grouping in parentheses, an optional ?T, an array T[].
Write the type.
Wrong
fn show(x: ): void {
}
fn main(): void {
}
Right
fn show(x: int): void {
let _ = x;
}
fn main(): void {
show(1);
}