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
classImplicitExample() extendsDynamic {
defsomeMethod()(implicits: String="World"):String= s
defapplyDynamic(name: String)(args: Any*)(implicits: String="World"):String= name + s
}
Test t1 and t2 always work, while t3 fails with the latest Nightly build (0.9.0-bin-20180529-be6ae0e-NIGHTLY):
[error] --Error: ... ImplicitTest.scala: ...
[error] 15| assertEquals("runWorld", newImplicitExample().run())
[error] |^
[error] |no implicit argument of typeString was found for parameter s of method applyDynamic in classImplicitExample
[error] one error found
[error] (Test/ compileIncremental) Compilation failed
If you remove the vararg args, it compiles but the implicit parameter is not considered anymore and t4 fails with:
[error] TestImplicitTest.t4 failed: expected:<run[Hello]> but was:<run[World]>
Everything is fine with 0.8.0-RC1.
The text was updated successfully, but these errors were encountered:
Consider the following simple example:
And its test:
Test
t1
andt2
always work, whilet3
fails with the latest Nightly build (0.9.0-bin-20180529-be6ae0e-NIGHTLY
):If you remove the vararg
args
, it compiles but the implicit parameter is not considered anymore andt4
fails with:Everything is fine with
0.8.0-RC1
.The text was updated successfully, but these errors were encountered: