diff options
author | Martin Odersky <odersky@gmail.com> | 2015-03-08 11:03:29 +0100 |
---|---|---|
committer | Dmitry Petrashko <dmitry.petrashko@gmail.com> | 2015-03-18 11:15:47 +0100 |
commit | 5a43cb120f33328fdc755488684240dbd517283f (patch) | |
tree | 4247fb76e5b85e75e33d925949fc6d3deb35b2a7 /tests | |
parent | f1ffa4c0a0a32057795c4395aecd990c6ae057e2 (diff) | |
download | dotty-5a43cb120f33328fdc755488684240dbd517283f.tar.gz dotty-5a43cb120f33328fdc755488684240dbd517283f.tar.bz2 dotty-5a43cb120f33328fdc755488684240dbd517283f.zip |
Pickle shadowed names
Shadowed names in types need to be pickled and treated on
unpickling.
We choose to make Shadowed a separate TastyName class, to avoid
the ad-hoc name-mangling in current dotc. When names are redone
Shadowed will also become a special class in the compiler proper.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/pos/pickleOK/templateParents.scala | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/pos/pickleOK/templateParents.scala b/tests/pos/pickleOK/templateParents.scala index 316d8c81c..153c4b4da 100644 --- a/tests/pos/pickleOK/templateParents.scala +++ b/tests/pos/pickleOK/templateParents.scala @@ -7,7 +7,8 @@ object templateParents { class F extends C[Boolean](true) { def foo = x } - new C("abc") with D + val cd = new C("abc") with D + cd.x } |