From baa2d513ad12cee410b824e0775bc570ed07b3dd Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Sun, 26 Mar 2017 13:28:31 +0200 Subject: Fix to fieldName for trait setters --- compiler/src/dotty/tools/dotc/core/NameOps.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compiler') diff --git a/compiler/src/dotty/tools/dotc/core/NameOps.scala b/compiler/src/dotty/tools/dotc/core/NameOps.scala index 6d58a82bc..ed6a41ac5 100644 --- a/compiler/src/dotty/tools/dotc/core/NameOps.scala +++ b/compiler/src/dotty/tools/dotc/core/NameOps.scala @@ -441,7 +441,7 @@ object NameOps { if (name.isTraitSetterName) { if (Config.semanticNames) { val DerivedTermName(_, NameInfo.TraitSetter(original)) = name - original ++ LOCAL_SUFFIX + original.fieldName } else { // has form <$-separated-trait-name>$_setter_$ `name`_$eq -- cgit v1.2.3