aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/ast/Desugar.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2016-01-18 17:46:17 +0100
committerMartin Odersky <odersky@gmail.com>2016-02-19 14:00:01 +0100
commit66924f4f1e4111edcce530cc383fc1eb894a342c (patch)
treeab17b21a82a3d9908efd25b0f803b97682ae0920 /src/dotty/tools/dotc/ast/Desugar.scala
parent103339ed48f95b427776f18cf4659afb2f84897c (diff)
downloaddotty-66924f4f1e4111edcce530cc383fc1eb894a342c.tar.gz
dotty-66924f4f1e4111edcce530cc383fc1eb894a342c.tar.bz2
dotty-66924f4f1e4111edcce530cc383fc1eb894a342c.zip
Fix assertion error message
Diffstat (limited to 'src/dotty/tools/dotc/ast/Desugar.scala')
-rw-r--r--src/dotty/tools/dotc/ast/Desugar.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/ast/Desugar.scala b/src/dotty/tools/dotc/ast/Desugar.scala
index 991940f10..340b4e671 100644
--- a/src/dotty/tools/dotc/ast/Desugar.scala
+++ b/src/dotty/tools/dotc/ast/Desugar.scala
@@ -67,7 +67,7 @@ object desugar {
val defctx = ctx.outersIterator.dropWhile(_.scope eq ctx.scope).next
var local = defctx.denotNamed(tp.name).suchThat(_ is ParamOrAccessor).symbol
if (local.exists) (defctx.owner.thisType select local).dealias
- else throw new Error(s"no matching symbol for ${sym.showLocated} in ${defctx.owner} / ${defctx.effectiveScope}")
+ else throw new Error(s"no matching symbol for ${tp.symbol.showLocated} in ${defctx.owner} / ${defctx.effectiveScope}")
case _ =>
mapOver(tp)
}