File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
compiler/src/dotty/tools/dotc Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -92,7 +92,9 @@ class ClassfileParser(
92
92
val nameIdx = in.nextChar
93
93
currentClassName = pool.getClassName(nameIdx)
94
94
95
- if (currentIsTopLevel && currentClassName != classRoot.fullName.toSimpleName)
95
+ if (currentIsTopLevel &&
96
+ currentClassName != classRoot.fullName.toSimpleName &&
97
+ currentClassName != classRoot.fullName.encode.toSimpleName)
96
98
mismatchError(currentClassName)
97
99
98
100
addEnclosingTParams()
Original file line number Diff line number Diff line change @@ -206,9 +206,7 @@ class PlainPrinter(_ctx: Context) extends Printer {
206
206
protected def TypeParamRefNameString (param : TypeParamRef ): String =
207
207
TypeParamRefNameString (param.binder.paramNames(param.paramNum))
208
208
209
- /** The name of the symbol without a unique id. Under refined printing,
210
- * the decoded original name.
211
- */
209
+ /** The name of the symbol without a unique id. */
212
210
protected def simpleNameString (sym : Symbol ): String = nameString(sym.name)
213
211
214
212
/** If -uniqid is set, the hashcode of the lambda type, after a # */
You can’t perform that action at this time.
0 commit comments