navid/haze / 29e7ef5e690b244d506a169b7a4f892c737395b40bafffaedbaf7b650bf94bb8 / samples/baseline_2.8/generic_arg_count_error.hz

generic_arg_count_error.hz

← samples/baseline_2.8 · 158 bytes · raw · download

// Wrong number of generic type arguments.

type Pair[A, B] {
    first A
    second B
}

fn use_pair(p Pair[i32]) i32 => p.first

fn main() {
    print(1)
}