File tree 2 files changed +3
-6
lines changed
compiler/src/dotty/tools/dotc 2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -214,6 +214,7 @@ object Completion {
214
214
addAccessibleMembers(qual.tpe)
215
215
if (! mode.is(Mode .Import ) && ! qual.tpe.isRef(defn.NullClass )) {
216
216
// Implicit conversions do not kick in when importing
217
+ // and for `NullClass` they produce unapplicable completions (for unclear reasons)
217
218
implicitConversionTargets(qual)(ctx.fresh.setExploreTyperState())
218
219
.foreach(addAccessibleMembers)
219
220
}
Original file line number Diff line number Diff line change @@ -60,19 +60,15 @@ object NameTransformer {
60
60
if (name.contains(" $u" )) {
61
61
val sb = new mutable.StringBuilder ()
62
62
var i = 0
63
- while (i < name.length - 5 ) {
64
- if (name(i) == '$' && name(i + 1 ) == 'u' ) {
63
+ while (i < name.length) {
64
+ if (i < name.length - 5 && name(i) == '$' && name(i + 1 ) == 'u' ) {
65
65
sb.append(Integer .valueOf(name.substring(i + 2 , i + 6 ), 16 ).toChar)
66
66
i += 6
67
67
} else {
68
68
sb.append(name(i))
69
69
i += 1
70
70
}
71
71
}
72
- while (i < name.length) {
73
- sb.append(name(i))
74
- i += 1
75
- }
76
72
sb.result()
77
73
}
78
74
else name
You can’t perform that action at this time.
0 commit comments