Skip to content

Empty DefDef: Unit with end marker  #12918

Closed as not planned
Closed as not planned
@dos65

Description

@dos65

3.0.0-RC2

Should the compiler allow the following empty def?
Currently, it fails with an error from the parser.

 def foo: Unit = //<- [error] expression expected but end found
 end foo 

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions