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
> dotc Test.scala
--Error: tests/allan/Test.scala:8:2-------------------------------------------8|newFooI{}
|^|objectcreation impossible, since deffoo$direct(implicitx$0: A):Int is not defined
The issue is that at the time RefChecks transforms new FooI{}, class FooI hasn't gone through ShortcutImplicits which creates the member def foo$direct(implicit x$0: A): Int but trait Foo has
The text was updated successfully, but these errors were encountered:
> dotc -d out tests/allan/Test.scala
-- Error: tests/allan/Test.scala:6:15 ------------------------------------------
6 | override def foo: implicit String => Int = 2
| ^
|error overriding method foo$direct in class Foo1 of type (implicit x$0: String): Int;
| method foo$direct of type (implicit x$0: String): Int needs `override' modifier
one error found
Uh oh!
There was an error while loading. Please reload this page.
fails to compile:
The issue is that at the time
RefChecks
transformsnew FooI{}
,class FooI
hasn't gone throughShortcutImplicits
which creates the memberdef foo$direct(implicit x$0: A): Int
buttrait Foo
hasThe text was updated successfully, but these errors were encountered: