Skip to content

Commit fc42734

Browse files
committed
Survive breakage in requiredMethod
But give more diagniostics what went wrong.
1 parent 87399f3 commit fc42734

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/dotty/tools/dotc/core/Denotations.scala

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,10 @@ object Denotations {
213213
val meth = info.member(name.toTermName)
214214
if (meth.exists) meth.requiredSymbol(_ is Method).asTerm
215215
else { // Heisenbughunt
216-
println(s"*** missing method: ${name.toString} in $this")
216+
println(s"*** missing method: ${name.toTermName} in $this")
217+
val lookedUp = info.decls.lookup(name.toTermName)
218+
println(s"looked up: $lookedUp")
219+
if (lookedUp.exists) return lookedUp.asTerm
217220
info.decls.checkConsistent()
218221
println(i"decls = ${info.decls}")
219222
if (slowSearch(name.toTermName).exists) {

0 commit comments

Comments
 (0)