Lyricdev
GitHub

LYR-PAR0009

an angle bracket of a type list is missing

error · spec 02-grammar

A list of type arguments <…> or of type parameters is not closed by >.

Explanation

Type arguments and type parameters stand between < and >; >> closes two lists at once.

Close the list with >.

Wrong

fn first(xs: List<int): int {
    return xs[0];
}

fn main(): void {
}
fn first(xs: List<int>): int {
    return xs[0];
}

fn main(): void {
    let _ = first;
}