Skip to content

Don't demand explicit types for local implicit vals #1784

Closed
@odersky

Description

@odersky

A local implicit val can be referred to only from text following the valdef. Therefore, it
does not need an explicit type for type inference reasons. By allowing to elide the type
we make porting from Scala 2.x easier and avoid busywork.

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