mirror of
https://github.com/anoma/juvix.git
synced 2024-11-30 14:13:27 +03:00
13 lines
214 B
Plaintext
13 lines
214 B
Plaintext
|
module issue2994;
|
||
|
|
||
|
type T := t;
|
||
|
|
||
|
type Maybe (a : Type) :=
|
||
|
| nothing
|
||
|
| just a;
|
||
|
|
||
|
trait
|
||
|
type SomeTrait A := mkSomeTrait {baz : A -> T};
|
||
|
|
||
|
bar {{SomeTrait T}} (value : T) {maybeValue : Maybe T := nothing} : T := t;
|