Idris2/tests/idris2/perror010/expected

41 lines
1.1 KiB
Plaintext
Raw Normal View History

1/1: Building NamedReturn1 (NamedReturn1.idr)
Error: Cannot return a named argument.
NamedReturn1:1:24--1:37
1 | not : (arg1 : Bool) -> (arg2 : Bool)
^^^^^^^^^^^^^
1/1: Building NamedReturn2 (NamedReturn2.idr)
Error: Cannot return an implicit argument.
NamedReturn2:1:24--1:37
1 | not : (arg1 : Bool) -> {arg2 : Bool}
^^^^^^^^^^^^^
1/1: Building NamedReturn3 (NamedReturn3.idr)
Error: Cannot return an auto implicit argument.
NamedReturn3:1:24--1:42
1 | not : (arg1 : Bool) -> {auto arg2 : Bool}
^^^^^^^^^^^^^^^^^^
1/1: Building NamedReturn4 (NamedReturn4.idr)
Error: Cannot return a default implicit argument.
NamedReturn4:1:24--1:50
1 | not : (arg1 : Bool) -> {default arg2 True : Bool}
^^^^^^^^^^^^^^^^^^^^^^^^^^
1/1: Building TrailingLam (TrailingLam.idr)
Warning: DEPRECATED: trailing lambda. Use a $ or parens
TrailingLam:3:9--3:22
1 |
2 | f : (Nat -> Nat) -> Nat
3 | f k = f \n => k (S n)
^^^^^^^^^^^^^
Main> 1 hole: Main.a
Main>
Bye for now!