Skip to content

Implicit parameters in function expressions can't specify type #3672

@scabug

Description

@scabug

This compiles:

def foo(f: Int => Int) = () ; foo { implicit x => x + 1 }

This does not:

def foo(f: Int => Int) = () ; foo { implicit x : Int => x + 1 }
error: '=>' expected but ':' found.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions