File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
compiler/src/dotty/tools/dotc/fromtasty Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ import dotty.tools.dotc.core.NameKinds
99import dotty .tools .dotc .core .Names .SimpleName
1010import dotty .tools .dotc .core .StdNames .nme
1111import dotty .tools .dotc .core .tasty .{TastyUnpickler , TreePickler }
12+ import dotty .tools .dotc .core .StdNames .nme .EMPTY_PACKAGE
1213
1314object TastyFileUtil {
1415
@@ -27,7 +28,10 @@ object TastyFileUtil {
2728 val bytes = Files .readAllBytes(path)
2829 val names = new core.tasty.TastyClassName (bytes).readName()
2930 names.map { case (packageName, className) =>
30- val fullName = s " $packageName. ${className.lastPart}"
31+ val fullName = packageName match {
32+ case EMPTY_PACKAGE => s " ${className.lastPart}"
33+ case _ => s " $packageName. ${className.lastPart}"
34+ }
3135 val classInPath = fullName.replace(" ." , io.File .separator) + " .tasty"
3236 val classpath = path.toString.replace(classInPath, " " )
3337 (classpath, fullName)
You can’t perform that action at this time.
0 commit comments