You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
15:42~/Projects/Master (master)$ scala
Welcome to Scala version 2.11.0-20131122-180524-744425aab4 (JavaHotSpot(TM) 64-BitServerVM, Java1.6.0_65).
Type in expressions to have them evaluated.
Type:help for more information.
scala>valq"$foo.$bar(..$args)"=q"foo.bar"
foo: reflect.runtime.universe.Tree= foo
bar: reflect.runtime.universe.Name= bar
args:List[reflect.runtime.universe.Tree] =List()
scala>q"$foo.$bar(..$args)"
res0: reflect.runtime.universe.Tree= foo.bar()
Looks like the aforementioned roundtrip adds spurious argument list to argless applications. This is fine for empty-arglist methods, but nullary methods are going to get hurt.
The text was updated successfully, but these errors were encountered:
@densh said:
This change was introduced to make q"f(..$args)" behave similarly to q"f[..$targs]" but we've not considered the fact that this not applicable here due to different semantics of q"f(..$Nil)" and q"f[..$Nil]". Later case is equivalent to q"f" but former is not.
Looks like the aforementioned roundtrip adds spurious argument list to argless applications. This is fine for empty-arglist methods, but nullary methods are going to get hurt.
The text was updated successfully, but these errors were encountered: