-
Notifications
You must be signed in to change notification settings - Fork 21
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
A reflective call is generated while no reflective call warning is shown #10666
Labels
Milestone
Comments
As @sjrd pointed out, if the parameter is an explicit function, then no reflective call generated. This behavior is more efficient than the behavior of by-name parameter.
|
The accidental reflective call is the root cause of #10334 and scala-js/scala-js#3232. |
According to @gzm0's example, if
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Note that
namedFunction(i = 1)
is a reflective call, i.e. there is aninvokevirtual
to thejava/lang/reflect/Method.invoke
, while no reflective call warning is shown.@sjrd said in scala-js/scala-js#3232:
The text was updated successfully, but these errors were encountered: