unison/unison-src/tests/delay_parse.u
2018-08-31 11:37:29 -04:00

21 lines
256 B
Plaintext

effect T where
foo : {T} ()
-- parses fine
a : () -> {T} ()
a x = ()
-- parses fine
b : () -> '()
b = x -> (y -> ())
-- parse error
c : () -> {T} '()
c = x -> (y -> ())
-- parses fine with extra parentheses
d : () -> {T} ('())
d = x -> (y -> ())
()