Idris2/tests/idris2/basic059/MultiClaim.idr

19 lines
314 B
Idris
Raw Normal View History

2021-04-07 14:21:17 +03:00
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