-
Notifications
You must be signed in to change notification settings - Fork 1.1k
For an object X, X$
should be =:= to X.type
#1447
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
Comments
This allows objects to be easily aliased
This allows objects to be easily aliased
Fix #1447: Make X$ <:< X.type when X is an object
Hum ... I don't think this is the proper fix. The proper fix, IMO, is for |
Not sure if this is the relevant or not, but I fixed a problem in scalac related to transitity of
Here's the test: |
@sjrd What you're suggesting might be better in principle but note that module classes are not nullable in dotty, so the difference might not be observable: https://github.com/lampepfl/dotty/blob/5a5f9d7ed37ca6449ef61ee5e0f6fbf9731df795/src/dotty/tools/dotc/core/SymDenotations.scala#L616-L618 |
This works in scalac but not in dotty:
Logging shows the issue:
The text was updated successfully, but these errors were encountered: