aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/typer/Typer.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2015-07-19 13:20:06 +0200
committerMartin Odersky <odersky@gmail.com>2015-09-18 18:09:55 +0200
commitcaae19ba37b7b05b2fd2e1edbad62ee9bf46c5e4 (patch)
tree803f85226651f23ab5ffd347954cb8cc2a11521c /src/dotty/tools/dotc/typer/Typer.scala
parent09ebc0f2b643c2be090c1aa0343880f063edc5be (diff)
downloaddotty-caae19ba37b7b05b2fd2e1edbad62ee9bf46c5e4.tar.gz
dotty-caae19ba37b7b05b2fd2e1edbad62ee9bf46c5e4.tar.bz2
dotty-caae19ba37b7b05b2fd2e1edbad62ee9bf46c5e4.zip
Add missing position to error
Diffstat (limited to 'src/dotty/tools/dotc/typer/Typer.scala')
-rw-r--r--src/dotty/tools/dotc/typer/Typer.scala2
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 {