Compiler version
3.1.3
Minimized code
scala> class UInt(val toInt: Int) extends AnyVal
// defined class UInt
scala> val foo = UInt(23)
val foo: UInt = 23
scala> foo.toString
val res1: String = UInt@17
Expectation
I expect UInt@17 both times, as is in Scala 2 REPL