mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-24 20:23:11 +03:00
21c6f4fb79
* [ breaking ] remove parsing of dangling binders It used to be the case that ``` ID : Type -> Type ID a = a test : ID (a : Type) -> a -> a test = \ a, x => x ``` and ``` head : List $ a -> Maybe a head [] = Nothing head (x :: _) = Just x ``` were accepted but these are now rejected because: * `ID (a : Type) -> a -> a` is parsed as `(ID (a : Type)) -> a -> a` * `List $ a -> Maybe a` is parsed as `List (a -> Maybe a)` Similarly if you want to use a lambda / rewrite / let expression as part of the last argument of an application, the use of `$` or parens is now mandatory. This should hopefully allow us to make progress on #1703
8 lines
342 B
Plaintext
Executable File
8 lines
342 B
Plaintext
Executable File
rm -rf build
|
|
|
|
$1 --no-color --console-width 0 --check NamedReturn1.idr || true
|
|
$1 --no-color --console-width 0 --check NamedReturn2.idr || true
|
|
$1 --no-color --console-width 0 --check NamedReturn3.idr || true
|
|
$1 --no-color --console-width 0 --check NamedReturn4.idr || true
|
|
$1 --no-color --console-width 0 --no-banner TrailingLam.idr < input
|