1
1
mirror of https://github.com/anoma/juvix.git synced 2024-11-30 14:13:27 +03:00
juvix/tests/positive/Termination/issue2414.juvix
Łukasz Czajka feb422d445
Allow @ in constructor declarations (#3099)
* Closes #3041 
* The old syntax without `@` is still accepted, but the formatter
changes it to the new syntax
2024-10-15 19:15:37 +02:00

11 lines
138 B
Plaintext

module issue2414;
import Stdlib.Prelude open;
trait
type T := mkT@{tt : T};
f {{T}} : Nat → Nat
| zero := zero
| (suc n) := f n;