mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-19 09:12:34 +03:00
15 lines
210 B
Idris
15 lines
210 B
Idris
|
module Issue1831_2
|
||
|
|
||
|
export
|
||
|
fooFromInteger : Num x => Integer -> x
|
||
|
fooFromInteger x = fromInteger (x + x)
|
||
|
|
||
|
%integerLit fooFromInteger
|
||
|
|
||
|
test : Nat
|
||
|
test = 5 + 6
|
||
|
|
||
|
test2 : Nat -> Bool
|
||
|
test2 1 = True
|
||
|
test2 _ = False
|