-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Make -explain-types a -Y option as -Yexplain-types. #10737
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
Conversation
It prints compiler implementation details about constraint solving.
7618778
to
38e14f7
Compare
Sigh ... Apparently discipline-munit uses that flag in their build ... |
We should revert this commit once the community build has caught up with the rename.
I am actually not sure about that one. explainTypes gives generally applicable info why a type does not conform to another. It's useful, and we will want to keep it always accessible. So hiding it behind -Y seems to restrive. I would opt for a -X flag, or else leave it as it is. |
I believe the usage of |
Should be a related: scala/scala#7785 |
If we want it to be user-visible we need to change what it does: right now it prints the constraint set in a format which might be completely unrelated to the current subtyping check and so be confusing (especially since it's not printed in a way that is meant to be understandable for users). |
It's worth noting that in Scala 2's -V -W -X -Y scheme, there is no policy whether -V -W are "stable". They are informational only, so it's benign if |
Fully agree with Som here. We regard it as normal (within reason) in Scala 2 to change |
It prints compiler implementation details about constraint solving.