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(
9292 val nameIdx = in.nextChar
9393 currentClassName = pool.getClassName(nameIdx)
9494
95- if (currentIsTopLevel && currentClassName != classRoot.fullName.toSimpleName)
95+ if (currentIsTopLevel &&
96+ currentClassName != classRoot.fullName.toSimpleName &&
97+ currentClassName != classRoot.fullName.encode.toSimpleName)
9698 mismatchError(currentClassName)
9799
98100 addEnclosingTParams()
Original file line number Diff line number Diff line change @@ -206,9 +206,7 @@ class PlainPrinter(_ctx: Context) extends Printer {
206206 protected def TypeParamRefNameString (param : TypeParamRef ): String =
207207 TypeParamRefNameString (param.binder.paramNames(param.paramNum))
208208
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. */
212210 protected def simpleNameString (sym : Symbol ): String = nameString(sym.name)
213211
214212 /** If -uniqid is set, the hashcode of the lambda type, after a # */
You can’t perform that action at this time.
0 commit comments