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
$ scala -Ywarn-unused
Welcome to Scala 2.12.2 (Java HotSpot(TM) 64-Bit Server VM, Java 1.8.0_111).
Type in expressions for evaluation. Or try :help.
scala> :paste
// Entering paste mode (ctrl-D to finish)
class Test {
import Test._
println(5.toStr)
}
private object Test {
private implicit class C(val i: Int) extends AnyVal {
def toStr = i.toString
}
}
// Exiting paste mode, now interpreting.
defined class Test
defined object Test
It only fails when C is a value class.
The text was updated successfully, but these errors were encountered: