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
classConfclassBar(_conf: Conf) {
implicitvalconf:Conf= _conf
}
classFoo(conf: Conf) extendsBar(conf)
//class Foo(_conf: Conf) extends Bar(_conf)// using a different name fixes itclassTest {
deftest(foo: Foo) = {
importfoo._//implicit val conf: Conf = foo.conf// manually redefining it also fixes it
assert(conf !=null)
assert(implicitly[Conf] !=null)
}
}
Output
-- [E006] NotFoundError:Test.scala:14:11------------------------------------14| assert(conf !=null)
|^^^^|Notfound: conf
|| longer explanation available when compiling with`-explain`-- [E172] TypeError:Test.scala:15:27-----------------------------------------15| assert(implicitly[Conf] !=null)
|^|Nogiveninstance of typeConf was found for parameter e of method implicitly in objectPredef2 errors found
Expectation
I expect it to compile cleanly, like it does in Scala 2.
The text was updated successfully, but these errors were encountered:
Uh oh!
There was an error while loading. Please reload this page.
Compiler version
3.3.0, 3.3.1-RC, 3.3.2-RC1-bin-20230703-0a21ecf-NIGHTLY-git-0a21ecf
Minimized code
Output
Expectation
I expect it to compile cleanly, like it does in Scala 2.
The text was updated successfully, but these errors were encountered: