mirror of
https://github.com/unisonweb/unison.git
synced 2024-10-26 11:07:48 +03:00
21 lines
266 B
Plaintext
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 -> ())
|
|
|
|
|