1
1
mirror of https://github.com/anoma/juvix.git synced 2024-12-01 00:04:58 +03:00
juvix/tests/negative/ErrorOnLocalInstances.juvix
Łukasz Czajka c5d8641142
Error on local instances (#2376)
* Closes #2374

---------

Co-authored-by: Paul Cadman <git@paulcadman.dev>
2023-09-21 10:34:28 +01:00

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;