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
Compiling the following three files together results in the compile error suggesting that val foo can't be found (presumably because it doesn't think its type is the same type as the type library.x.Foo it's looking for). Defining class Foo outside of class X allows it to be found.
This worked as desired in Scala 2.9.1.
// lib.scalapackagelibrary.xclassX {
classFooimplicitvalfoo=newFoo
}
// package.scalapackagelibrarypackageobjectxextendsX// app.scalapackageappimportlibrary.x._objectApp { implicitly[Foo] }
error: could not find implicit value for parameter e: library.x.Foo
implicitly[Foo]
^
one error found
The text was updated successfully, but these errors were encountered:
Compiling the following three files together results in the compile error suggesting that val foo can't be found (presumably because it doesn't think its type is the same type as the type library.x.Foo it's looking for). Defining class Foo outside of class X allows it to be found.
This worked as desired in Scala 2.9.1.
The text was updated successfully, but these errors were encountered: