Skip to content

Change explaining printer #6476

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

Merged

Conversation

odersky
Copy link
Contributor

@odersky odersky commented May 8, 2019

Three changes:

  1. Don't strip module class prefix in RefinedPrinter
  2. New treatment of module classes in ExplainingPrinter
  3. Don't disambiguate types and terms in ExplainingPrinter

odersky added 3 commits May 8, 2019 15:10
Don't drop the module class suffix `$` in RefinedPrinter.simpleNameString.
We do this in ExplainingPrinter instead, where we also take compensations
to explain that this is an object.
An ExplainingTypePrinter would disambiguate between a class
and its companion object, like this:

   {message involving C and C'}

   where    C   is a class ...
            C'  is an object

I believe this is not necessessary, as types and terms should be
distinguishable from the context in which they appear.
@anatoliykmetyuk anatoliykmetyuk merged commit 1b3f335 into scala:master May 8, 2019
@anatoliykmetyuk anatoliykmetyuk deleted the change-explaining-printer branch May 8, 2019 15:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants