mirror of
https://github.com/anoma/juvix.git
synced 2024-12-01 00:04:58 +03:00
c5d8641142
* Closes #2374 --------- Co-authored-by: Paul Cadman <git@paulcadman.dev>
13 lines
187 B
Plaintext
13 lines
187 B
Plaintext
module ErrorOnLocalInstances;
|
|
|
|
type Unit := unit;
|
|
|
|
trait
|
|
type T A := mkT {pp : A -> A};
|
|
|
|
main : Unit :=
|
|
let
|
|
instance
|
|
unitI : T Unit := mkT λ{x := x};
|
|
in T.pp {{unitI}} unit;
|