-
-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
Function do not accept keywords when Vararg is used. #13919
Comments
I have found another way of obtaining the same solution.
I do not know if it is supposed to work with |
This is a strange failure mode, but this is not supposed to work. The |
@pwl could you check if your issue in SciML/ODE.jl#49 (comment) is fixed on latest master of Julia, if not fill a new issue? |
We have already moved away from that solution so there is no way for me to verify your fix apart from running your tests. |
If
Vararg{T}
is used in a function definition, the function cannot have keywords. It fails due to some lowering issue. If the following is functions are defined.test1
function works as intended whiletest
fails.@code_lowered test(1, 2)
returnsIt seems to call a function named
__test#33__
which do not exist. If the function is defined without a keyword argument code lowered callsprintln
@code_lowered test1(1, 2)
The text was updated successfully, but these errors were encountered: