bolt/test/checker/pattern_matching_variant.bolt

14 lines
191 B
Text
Raw Permalink Normal View History

2023-06-12 16:54:41 +02:00
enum MyList a.
Nil
Pair a (MyList a)
let (Pair True Nil) : MyList Bool
let (Pair "foo" Nil) : MyList String
@expect_diagnostic 2010
let (Pair 1 Nil) : MyList Bool
let Nil : MyList a