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

6 lines
159 B
Idris

data Baz : Int -> Type where
AddThings : (x : Int) -> (y : Int) -> Baz (x + y)
addBaz : (x : Int) -> Baz x -> Int
addBaz (x + y) (AddThings x z) = x + y