Idris2/tests/idris2/basic/basic059/MultiClaim.idr
2023-09-07 14:57:22 +01:00

19 lines
314 B
Idris

data Foo : Type where
|||An A
A ,
||| Just a B
B : Foo
public export
foo1, foo2 : Foo
foo1 = A
foo2 = LocalB
where
LocalB, LocalA : Foo
LocalB = B
LocalA = let NestedLocalA, NestedLocalB : Foo
NestedLocalA = A
NestedLocalB = B
in NestedLocalA