unison/unison-src/tests/delay_parse.u
2021-08-24 11:33:27 -07:00

21 lines
266 B
Plaintext

structural ability 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 -> ())