Skip to content

The function whose return type is Nothing cannot be called in the REPL top-level environment #4415

Closed
@Glavo

Description

@Glavo
scala> def exit(): Nothing = {System.exit(0); throw new AssertionError} 
def exit(): Nothing
scala> exit() 
1 |exit()
  |^
  |value `show` is not a member of Nothing

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions