bolt/bootstrap/cxx/test/checker/pattern_matching_variant.bolt
Sam Vervaeck 285f33e93c Add 'bootstrap/cxx/' from commit '7c1a929e9a3d3abb1e2113f531588e059ad5be8c'
git-subtree-dir: bootstrap/cxx
git-subtree-mainline: b732e418cb
git-subtree-split: 7c1a929e9a
2024-01-15 14:04:51 +01:00

13 lines
191 B
Text

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