Skip to content

REPL does not print toString of value classes #15493

Closed
@bishabosha

Description

@bishabosha

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions