amanjpro / piuma

A Scala compiler framework for writing Scala compiler plugins
BSD 3-Clause "New" or "Revised" License
2 stars 1 forks source link

Renaming a field which is already overrode? #2

Open amanjpro opened 11 years ago

amanjpro commented 11 years ago

Consider the following case:

class A { val b: A = new A }

class B { override val b: B = new B }

Q: What happens if we rename variable b in A? A: All occurrences of b in the child classes should be (legally) renamed. Q: What happens if we rename variable b in B? A: We should drop the override flag next to it.