Support keyword args in anonymous functions with optional positional args #26916
Labels
bug
Indicates an unexpected problem or unintended behavior
compiler:lowering
Syntax lowering (compiler front end, 2nd stage)
The following behavior seems erroneous, or at least confusing to me:
These work:
f(x=1;y=2)=x+y
(x;y=2)->x+y
(x=1,y=2)->x+y
This errors:
(x=1;y=2)->x+y
ERROR: syntax: invalid assignment location "begin
x=1
y=2
end"
versioninfo()
Julia Version 0.6.2
Commit d386e40 (2017-12-13 18:08 UTC)
Platform Info:
OS: Linux (x86_64-pc-linux-gnu)
CPU: Intel(R) Core(TM) i7-6820HQ CPU @ 2.70GHz
WORD_SIZE: 64
BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Haswell)
LAPACK: libopenblas64_
LIBM: libopenlibm
LLVM: libLLVM-3.9.1 (ORCJIT, skylake)
The text was updated successfully, but these errors were encountered: