diff options
author | Martin Odersky <odersky@gmail.com> | 2015-07-19 13:20:06 +0200 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2015-09-18 18:09:55 +0200 |
commit | caae19ba37b7b05b2fd2e1edbad62ee9bf46c5e4 (patch) | |
tree | 803f85226651f23ab5ffd347954cb8cc2a11521c /src/dotty/tools/dotc | |
parent | 09ebc0f2b643c2be090c1aa0343880f063edc5be (diff) | |
download | dotty-caae19ba37b7b05b2fd2e1edbad62ee9bf46c5e4.tar.gz dotty-caae19ba37b7b05b2fd2e1edbad62ee9bf46c5e4.tar.bz2 dotty-caae19ba37b7b05b2fd2e1edbad62ee9bf46c5e4.zip |
Add missing position to error
Diffstat (limited to 'src/dotty/tools/dotc')
-rw-r--r-- | src/dotty/tools/dotc/typer/Typer.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/typer/Typer.scala b/src/dotty/tools/dotc/typer/Typer.scala index 7caec5135..d35356a85 100644 --- a/src/dotty/tools/dotc/typer/Typer.scala +++ b/src/dotty/tools/dotc/typer/Typer.scala @@ -830,7 +830,7 @@ class Typer extends Namer with TypeAssigner with Applications with Implicits wit val tparams = tpt1.tpe.typeParams var args = tree.args if (tparams.isEmpty) { - ctx.error(d"${tpt1.tpe} does not take type parameters") + ctx.error(d"${tpt1.tpe} does not take type parameters", tree.pos) tpt1 } else { |