diff --git a/src/parse.jl b/src/parse.jl index a532fd8..89bf891 100644 --- a/src/parse.jl +++ b/src/parse.jl @@ -132,9 +132,9 @@ test_lambdas = [ ) ), ( - :((y) -> ==(y, x)), + :(y -> *(x, y)), :( - Fix(==, Template((ArgPos{1}(), Some(x)))) + Fix(*, Template((Some(x), ArgPos{1}()))) ) ), ( @@ -172,6 +172,10 @@ test_lambdas = [ :((x, z) -> map(y -> *(x, y), z)), missing ) + ( + :(x -> x), + missing # throw an error + ) ]