Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

combinedef bug with a single kwarg with default value #8

Closed
pablosanjose opened this issue Apr 11, 2020 · 0 comments · Fixed by #9
Closed

combinedef bug with a single kwarg with default value #8

pablosanjose opened this issue Apr 11, 2020 · 0 comments · Fixed by #9

Comments

@pablosanjose
Copy link
Contributor

I believe this might be a bug:

julia> combinedef(splitdef(:((x; y=2) -> 1))) |> eval
ERROR: syntax: invalid keyword argument syntax "y = 2"
...

However if there is more than one kwargs it works

julia> combinedef(splitdef(:((x; y=2, z=2) -> 1))) |> eval
#4 (generic function with 1 method)
julia> versioninfo()
Julia Version 1.4.0
Commit b8e9a9ecc6 (2020-03-21 16:36 UTC)
Platform Info:
  OS: macOS (x86_64-apple-darwin18.6.0)
  CPU: Intel(R) Core(TM) i7-8559U CPU @ 2.70GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-8.0.1 (ORCJIT, skylake)
Environment:
  JULIA_NUM_THREADS = 4
  JULIA_EDITOR = code
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant