Skip to content

Commit 6bedb01

Browse files
committed
Get rid of referenced to WithFixedSym
- simplify Substituters
1 parent 2cee5a7 commit 6bedb01

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -130,10 +130,7 @@ trait Substituters { this: Context =>
130130
var ts = to
131131
while (fs.nonEmpty) {
132132
if (fs.head eq sym)
133-
return tp match {
134-
case tp: WithFixedSym => NamedType.withFixedSym(tp.prefix, ts.head)
135-
case _ => substSym(tp.prefix, from, to, theMap) select ts.head
136-
}
133+
return substSym(tp.prefix, from, to, theMap) select ts.head
137134
fs = fs.tail
138135
ts = ts.tail
139136
}

0 commit comments

Comments
 (0)