Skip to content

Commit 1695228

Browse files
committed
Avoid LocalName.N type instantiation warining
1 parent d1c8f1e commit 1695228

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

compiler/src/dotty/tools/dotc/core/Types.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1523,9 +1523,9 @@ object Types {
15231523
if (mySig == null) mySig = Signature.NotAMethod
15241524
case designator: Symbol =>
15251525
uncheckedSetSym(designator)
1526-
case LocalName(underlying, space) =>
1527-
myNameSpace = space
1528-
decompose(underlying)
1526+
case designator: LocalName[_] =>
1527+
myNameSpace = designator.nameSpace
1528+
decompose(designator.name)
15291529
}
15301530
decompose(designator)
15311531
this

0 commit comments

Comments
 (0)