diff options
author | Martin Odersky <odersky@gmail.com> | 2017-03-30 13:44:02 +0200 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2017-04-11 09:33:11 +0200 |
commit | 21ded6ee9f727bd5a1c3975809c06868fe1b5536 (patch) | |
tree | 84675fd26ebfd422bb166088f8b048f7963c9720 /compiler/src/dotty/tools/dotc/transform | |
parent | ae694957bfb9f5121eee3434243ecaabb6b24d1d (diff) | |
download | dotty-21ded6ee9f727bd5a1c3975809c06868fe1b5536.tar.gz dotty-21ded6ee9f727bd5a1c3975809c06868fe1b5536.tar.bz2 dotty-21ded6ee9f727bd5a1c3975809c06868fe1b5536.zip |
Revise qualified names
1. Fix problem in fullNameSeparated
2. Revise expandedName operations
Diffstat (limited to 'compiler/src/dotty/tools/dotc/transform')
-rw-r--r-- | compiler/src/dotty/tools/dotc/transform/AugmentScala2Traits.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/src/dotty/tools/dotc/transform/AugmentScala2Traits.scala b/compiler/src/dotty/tools/dotc/transform/AugmentScala2Traits.scala index a8d82045e..f2ffaff5d 100644 --- a/compiler/src/dotty/tools/dotc/transform/AugmentScala2Traits.scala +++ b/compiler/src/dotty/tools/dotc/transform/AugmentScala2Traits.scala @@ -14,7 +14,7 @@ import DenotTransformers._ import Annotations._ import StdNames._ import NameOps._ -import NameKinds._ +import NameKinds.{ExpandedName, TraitSetterName} import ast.Trees._ /** This phase augments Scala2 traits with implementation classes and with additional members @@ -74,7 +74,7 @@ class AugmentScala2Traits extends MiniPhaseTransform with IdentityDenotTransform def traitSetter(getter: TermSymbol) = getter.copy( name = getter.ensureNotPrivate.name - .expandedName(getter.owner, nme.TRAIT_SETTER_SEPARATOR) + .expandedName(getter.owner, TraitSetterName) .asTermName.setterName, flags = Method | Accessor, info = MethodType(getter.info.resultType :: Nil, defn.UnitType)) |