Skip to content

Erasure of Int | Nothing #14970

Closed
Closed
@nicolasstucki

Description

@nicolasstucki

Compiler version

3.1.3

Minimized example

def foo: Int | Nothing  = 1

Output

def foo(): Object = scala.Int.box(1)

Expectation

Int | Nothing should erase to int

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions