File tree 2 files changed +6
-3
lines changed
repl/src/dotty/tools/repl 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -134,7 +134,10 @@ class Repl(
134
134
else if (sym.is(Module )) " object"
135
135
else " class"
136
136
137
- println(SyntaxHighlighting (s " // defined $kind $name" ))
137
+ println(
138
+ SyntaxHighlighting (s " // defined " ).toString +
139
+ SyntaxHighlighting (s " $kind $name" ).toString
140
+ )
138
141
}
139
142
140
143
Original file line number Diff line number Diff line change @@ -12,12 +12,12 @@ import dotc.core.Symbols.Symbol
12
12
object Rendering {
13
13
/** Load the value of the symbol using reflection */
14
14
private [this ] def valueOf (sym : Symbol , classLoader : ClassLoader )(implicit ctx : Context ): String = {
15
- val objectName = " $none$. " + sym.owner.name.show
15
+ val objectName = sym.owner.fullName.encode.toString
16
16
val resObj : Class [_] = Class .forName(objectName, true , classLoader)
17
17
val objInstance = resObj.newInstance()
18
18
objInstance
19
19
.getClass()
20
- .getDeclaredMethods.find(_.getName == sym.name.show ).get
20
+ .getDeclaredMethods.find(_.getName == sym.name.encode.toString ).get
21
21
.invoke(objInstance).toString
22
22
}
23
23
You can’t perform that action at this time.
0 commit comments