diff options
author | Lukas Rytz <lukas.rytz@gmail.com> | 2014-09-29 15:14:24 +0200 |
---|---|---|
committer | Lukas Rytz <lukas.rytz@gmail.com> | 2014-09-30 12:34:49 +0200 |
commit | 6346c6b46d2991def37a9ae81ed5f4f8b90d5efd (patch) | |
tree | b9fe904014c490daf7d22150a1603d7ba7189707 /test/files/run/t6070.check | |
parent | 5508e00a552d81ce483bd69084eea087fb178647 (diff) | |
download | scala-6346c6b46d2991def37a9ae81ed5f4f8b90d5efd.tar.gz scala-6346c6b46d2991def37a9ae81ed5f4f8b90d5efd.tar.bz2 scala-6346c6b46d2991def37a9ae81ed5f4f8b90d5efd.zip |
SI-8087 keep annotations on mixed-in private[this] fields
Related to SI-2511 / eea7956, which fixed the same issue for non
`private[this]` fields.
If you have
trait T { private[this] val f = 0 }
class C extends T
Mixin geneartes an accessor method `T.f` with owner `T`. When
generating the field in `C`, the Mixin.mixinTraitMembers calls
`fAccessor.accessed`. The implementation of `accessed` does a lookup
for a member named `"f "` (note the space). The bug is that
`private[this]` fields are not renamed to have space
(`LOCAL_SUFFIX_STRING`) in their name, so the accessed was not found,
and no annotations were copied from it.
Diffstat (limited to 'test/files/run/t6070.check')
0 files changed, 0 insertions, 0 deletions