Skip to content

Eta-expansion with empty block after fewerBraces colon #16452

Closed
@prolativ

Description

@prolativ

Compiler version

3.3.0-RC1-bin-20221130-72c4ffd-NIGHTLY

Minimized code

val x = Seq(1, 2, 3).map:

Output

This compiles and the type of x is (Int => Any) => Seq[Any]

Expectation

This should not compile and raise a syntax error telling that the argument block after a colon cannot be empty

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions