From bbc84eabcd244179299ad435b6e9d7473e5ff892 Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Wed, 22 Mar 2017 19:18:20 +0100 Subject: Implement startsWith/encode/decode for derived names. --- compiler/src/dotty/tools/dotc/core/SymDenotations.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compiler/src/dotty/tools/dotc/core/SymDenotations.scala') diff --git a/compiler/src/dotty/tools/dotc/core/SymDenotations.scala b/compiler/src/dotty/tools/dotc/core/SymDenotations.scala index 0483e0ca1..070fdf345 100644 --- a/compiler/src/dotty/tools/dotc/core/SymDenotations.scala +++ b/compiler/src/dotty/tools/dotc/core/SymDenotations.scala @@ -415,7 +415,7 @@ object SymDenotations { if (sep == "$") // duplicate scalac's behavior: don't write a double '$$' for module class members. prefix = prefix.without(NameInfo.ModuleClassKind) - prefix.derived(NameInfo.Qualified(name.toTermName, sep)) + prefix.derived(NameInfo.Qualified(name.toSimpleName, sep)) } else { if (owner.is(ModuleClass, butNot = Package) && sep == "$") -- cgit v1.2.3