We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d778a3d commit e033cd1Copy full SHA for e033cd1
compiler/src/dotty/tools/dotc/ast/TreeTypeMap.scala
@@ -105,7 +105,8 @@ class TreeTypeMap(
105
tree1.withType(mapType(tree1.tpe)) match {
106
case id: Ident =>
107
if needsSelect(id.tpe) then
108
- ref(id.tpe.asInstanceOf[TermRef]).withSpan(id.span)
+ try ref(id.tpe.asInstanceOf[TermRef]).withSpan(id.span)
109
+ catch case ex: TypeError => super.transform(id)
110
else
111
super.transform(id)
112
case sel: Select =>
0 commit comments