File tree 1 file changed +5
-1
lines changed
compiler/src/dotty/tools/dotc/fromtasty
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
9
9
import dotty .tools .dotc .core .Names .SimpleName
10
10
import dotty .tools .dotc .core .StdNames .nme
11
11
import dotty .tools .dotc .core .tasty .{TastyUnpickler , TreePickler }
12
+ import dotty .tools .dotc .core .StdNames .nme .EMPTY_PACKAGE
12
13
13
14
object TastyFileUtil {
14
15
@@ -27,7 +28,10 @@ object TastyFileUtil {
27
28
val bytes = Files .readAllBytes(path)
28
29
val names = new core.tasty.TastyClassName (bytes).readName()
29
30
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
+ }
31
35
val classInPath = fullName.replace(" ." , io.File .separator) + " .tasty"
32
36
val classpath = path.toString.replace(classInPath, " " )
33
37
(classpath, fullName)
You can’t perform that action at this time.
0 commit comments