diff options
author | Martin Odersky <odersky@gmail.com> | 2016-01-31 22:22:54 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2016-02-09 09:43:06 +0100 |
commit | e87dee212351aa7acb15760814cdd1c30c4de019 (patch) | |
tree | 1833586a82cee7632c150c35d5ec41f0187d80bb /src/dotty/tools/dotc/typer/Checking.scala | |
parent | 0480cb2a5902b733145f54fdc238aba7b831396b (diff) | |
download | dotty-e87dee212351aa7acb15760814cdd1c30c4de019.tar.gz dotty-e87dee212351aa7acb15760814cdd1c30c4de019.tar.bz2 dotty-e87dee212351aa7acb15760814cdd1c30c4de019.zip |
Fix path error disgnastics
Fix wording so that it works for nested errors as well.
Incorparte Tiark's latest example.
Diffstat (limited to 'src/dotty/tools/dotc/typer/Checking.scala')
-rw-r--r-- | src/dotty/tools/dotc/typer/Checking.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/typer/Checking.scala b/src/dotty/tools/dotc/typer/Checking.scala index ee1c2a061..ca7c5c5ab 100644 --- a/src/dotty/tools/dotc/typer/Checking.scala +++ b/src/dotty/tools/dotc/typer/Checking.scala @@ -325,7 +325,7 @@ trait Checking { def checkRealizable(tp: Type, pos: Position)(implicit ctx: Context): Unit = { val rstatus = ctx.realizability(tp) if (rstatus ne TypeOps.Realizable) { - def msg = d"$tp is not a legal path since ${rstatus.msg}" + def msg = d"$tp is not a legal path since it${rstatus.msg}" if (ctx.scala2Mode) ctx.migrationWarning(msg, pos) else ctx.error(msg, pos) } } |