aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlexSikia <alexandre.sikiaridis@gmail.com>2015-05-11 17:03:55 +0200
committerAlexSikia <alexandre.sikiaridis@gmail.com>2015-05-11 18:29:25 +0200
commit9dd4aec79b8d05211a77c929ad6684b7e1d89c58 (patch)
tree03935b1353fdefefa83fd7bf8a61c13a83e516e3 /src
parentc80b04dd8ebf378823cb4ff3a947683390544046 (diff)
downloaddotty-9dd4aec79b8d05211a77c929ad6684b7e1d89c58.tar.gz
dotty-9dd4aec79b8d05211a77c929ad6684b7e1d89c58.tar.bz2
dotty-9dd4aec79b8d05211a77c929ad6684b7e1d89c58.zip
Fix unset tree position
Debugs some cases where `tree.pos` wasn't initialised properly.
Diffstat (limited to 'src')
-rw-r--r--src/dotty/tools/dotc/transform/TypeTestsCasts.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/transform/TypeTestsCasts.scala b/src/dotty/tools/dotc/transform/TypeTestsCasts.scala
index d7fa9feaf..1be0ef39b 100644
--- a/src/dotty/tools/dotc/transform/TypeTestsCasts.scala
+++ b/src/dotty/tools/dotc/transform/TypeTestsCasts.scala
@@ -50,7 +50,7 @@ trait TypeTestsCasts {
if (expr.tpe <:< argType)
Literal(Constant(true)) withPos tree.pos
else if (argCls.isPrimitiveValueClass)
- if (qualCls.isPrimitiveValueClass) Literal(Constant(qualCls == argCls))
+ if (qualCls.isPrimitiveValueClass) Literal(Constant(qualCls == argCls)) withPos tree.pos
else transformIsInstanceOf(expr, defn.boxedClass(argCls).typeRef)
else argType.dealias match {
case _: SingletonType =>