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

12 lines
163 B
Plaintext

structural ability Foo where
foo : {Foo} Nat
structural type Wrap a = Wrap Nat
blah : Wrap {Foo} -> Nat
blah = cases
Wrap.Wrap n -> n + 1
> blah (Wrap 99)