## Compiler version 3.1.3 ## Minimized code <!-- This code should be self contained, compilable (with possible failures) and as small as possible. Ideally, we should be able to just copy this code in a file and run `scalac` (and maybe `scala`) to reproduce the issue. --> ```Scala 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