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

Required keyword arguments cannot have type assertions #635

Closed
omus opened this issue Nov 22, 2018 · 1 comment
Closed

Required keyword arguments cannot have type assertions #635

omus opened this issue Nov 22, 2018 · 1 comment

Comments

@omus
Copy link
Member

omus commented Nov 22, 2018

On Julia 0.6.4 with Compat 1.4.0

julia> using Compat

julia> @compat f(; x) = x
f (generic function with 1 method)

julia> f()
ERROR: UndefKeywordError: keyword argument x not assigned
Stacktrace:
 [1] f() at ./REPL[3]:1

julia> @compat g(; x::AbstractString) = x
ERROR: syntax: invalid keyword argument syntax "x::AbstractString" (expected assignment)

Required keyword support added in: #586

@martinholters
Copy link
Member

Closing as outdated since we've dropped support for Julia prior to 1.0 and the offending code has been removed.

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

No branches or pull requests

2 participants