Skip to content

-Ycheck should ensure global uniqueness of definitions #204

Closed
@odersky

Description

@odersky

#203 uncovered a problem where a closure was generated twice with the same symbol. It was caught by phase RestoreScopes when the closure symbol ended up in two definitions in the scope of the enclosing class. This would have been caught earlier if -Ycheck verified that every symbol is defined only once in a compilation unit. Right now it detects only double definition in the same scope, or nested scopes.

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