Skip to content

Commit ae95860

Browse files
committed
Fix assertion error message
1 parent c443150 commit ae95860

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dotty/tools/dotc/ast/Desugar.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ object desugar {
6767
val defctx = ctx.outersIterator.dropWhile(_.scope eq ctx.scope).next
6868
var local = defctx.denotNamed(tp.name).suchThat(_ is ParamOrAccessor).symbol
6969
if (local.exists) (defctx.owner.thisType select local).dealias
70-
else throw new Error(s"no matching symbol for ${sym.showLocated} in ${defctx.owner} / ${defctx.effectiveScope}")
70+
else throw new Error(s"no matching symbol for ${tp.symbol.showLocated} in ${defctx.owner} / ${defctx.effectiveScope}")
7171
case _ =>
7272
mapOver(tp)
7373
}

0 commit comments

Comments
 (0)