Closed Y-Nak closed 1 month ago
The compiler allows the below example without causing any errors.
data Pair(a, b) = Pair(a, b) function snd(p: Pair(a, Word)) -> a { match p { | Pair(_, w) => return w; }; } function foo(p: a) -> Word { let x: Word = p; return x; }
Fixed on main.
main
Fixed in last commit in main.
The compiler allows the below example without causing any errors.