diff options
author | Dmitry Petrashko <dark@d-d.me> | 2015-05-11 19:55:33 +0200 |
---|---|---|
committer | Dmitry Petrashko <dark@d-d.me> | 2015-05-11 19:55:33 +0200 |
commit | 2da8afdca1c357d6cada891c70e68e386c44c2f3 (patch) | |
tree | 03935b1353fdefefa83fd7bf8a61c13a83e516e3 | |
parent | c80b04dd8ebf378823cb4ff3a947683390544046 (diff) | |
parent | 9dd4aec79b8d05211a77c929ad6684b7e1d89c58 (diff) | |
download | dotty-2da8afdca1c357d6cada891c70e68e386c44c2f3.tar.gz dotty-2da8afdca1c357d6cada891c70e68e386c44c2f3.tar.bz2 dotty-2da8afdca1c357d6cada891c70e68e386c44c2f3.zip |
Merge pull request #556 from AlexSikia/fix/unset-tree-pos
Fix unset tree position
-rw-r--r-- | src/dotty/tools/dotc/transform/TypeTestsCasts.scala | 2 |
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 => |