adding missing exit for pattern variable in wrong context and a test case for it (#324)

This commit is contained in:
Jeremy G. Siek
2021-03-02 12:51:03 -05:00
committed by GitHub
parent 9d0b48478f
commit b2c9203143
4 changed files with 21 additions and 0 deletions
@@ -0,0 +1,11 @@
********** source program **********
fn main () -> Int {
Int: x;
return 1;
}
********** type checking **********
--- step exp Int --->
--- step exp Int --->
2: compilation error, pattern variables are only allowed in pattern context
EXIT CODE: 255