Skip to content

Disallow having a value classe whose underlying value is itself #1642

Closed
@helloqirun

Description

@helloqirun

dotc crashes when compiling the follow code.

$ cat abc.scala

class Test2(val valueVal: Test2) extends AnyVal

$ dotc abc.scala
output:
https://gist.github.com/helloqirun/d09e36c276832140e7c74d1f26378a14

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions