We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 385f347 commit 312822dCopy full SHA for 312822d
compiler/src/dotty/tools/dotc/transform/Splicer.scala
@@ -158,10 +158,8 @@ object Splicer {
158
// nested object in an object
159
val className = {
160
val pack = sym.topLevelClass.owner
161
- val prefix =
162
- if (pack == defn.RootPackage || pack == defn.EmptyPackageClass) ""
163
- else pack.showFullName + "."
164
- prefix + sym.fullNameSeparated(FlatName)
+ if (pack == defn.RootPackage || pack == defn.EmptyPackageClass) sym.flatName.toString
+ else pack.showFullName + "." + sym.flatName
165
}
166
val clazz = loadClass(className)
167
clazz.getConstructor().newInstance().asInstanceOf[Object]
0 commit comments