Uploaded image for project: 'Scala Programming Language'
  1. Scala Programming Language
  2. SI-10009

ValDef tree for field no longer carries modifiers (only tracked by symbol)

    Details

      Description

      Reported in https://groups.google.com/d/msg/scala-internals/35uGsuIEnDQ/cj6AtfbfBAAJ

      this is a regression due to #5141. Before, derived trees for valdefs would be rewritten to have their modifiers reflect that the underlying field is private[this]. After the fields rewrite, this is only done for the modifiers tracked by the tree's symbol. When you call untypecheck, the tree's symbol is dropped and thus it forgets that it's supposed to be private[this].

      Logged a ticket to be fixed for 2.12.1.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                retronym Jason Zaugg
                Reporter:
                moors Adriaan Moors
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: