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
Although new keywords have been introduced to replace implicit, the compiler still uses this term when it fails to find a given instance for a using paramenter.
Compiler Version
3.0.2
Minimized Code
defx(usingy: Int):Int= y
traitAgivenloop(usinga: A):A= a
@main defmain() = {
x
summon[A]
}
Output
-- Error: i9874.scala:7:3 --------------------------------------------
7 | x
| ^
| no implicit argument of type Int was found for parameter y of method x
-- Error: i9874.scala:8:11 -------------------------------------------
8 | summon[A]
| ^
|no implicit argument of type A was found for parameter x of method summon in object Predef.
|I found:
|
| loop(/* missing */summon[A])
|
|But given instance loop produces a diverging implicit search when trying to match type A.
2 errors found
Expectation
I suggest to use the new terminology, for example:
no given instance of type Int was found for context parameter y of method x
no given instance of type A was found for context parameter x of method summon
The text was updated successfully, but these errors were encountered:
Uh oh!
There was an error while loading. Please reload this page.
Although new keywords have been introduced to replace
implicit
, the compiler still uses this term when it fails to find agiven
instance for ausing
paramenter.Compiler Version
3.0.2
Minimized Code
Output
Expectation
I suggest to use the new terminology, for example:
The text was updated successfully, but these errors were encountered: