Skip to content

Disallow SuperTypes as prefixes of TypeRefs. #240

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
odersky opened this issue Nov 24, 2014 · 1 comment
Closed

Disallow SuperTypes as prefixes of TypeRefs. #240

odersky opened this issue Nov 24, 2014 · 1 comment
Assignees

Comments

@odersky
Copy link
Contributor

odersky commented Nov 24, 2014

It's not clear what that means anyway. The classical use case

class O {
  class I 
}

class S extends O { class I extends super.I }

is no longer supported, since classes cannot be overridden nor shadowed. This also needs to be checked.

@odersky
Copy link
Contributor Author

odersky commented Dec 28, 2017

With the new semantics of classes, we do allow same-named inner classes, at least in Scala-2 mode. So it's not clear whether we should support this or not.

@odersky odersky closed this as completed Dec 28, 2017
tgodzik added a commit to tgodzik/scala3 that referenced this issue Apr 29, 2025
Backport "Better LSP completions inside of backticks" to 3.3 LTS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants