diff options
author | Dmitry Petrashko <dmitry.petrashko@gmail.com> | 2014-04-14 15:19:47 +0200 |
---|---|---|
committer | Dmitry Petrashko <dmitry.petrashko@gmail.com> | 2014-05-06 16:18:45 +0200 |
commit | 9e5cfe27f5d4b34b30102e78222c222ad7604414 (patch) | |
tree | bf9887f8c2efe8e27915d6f0b30a57442e590060 /src | |
parent | ffe0131a4fb464a49bb6799c4e7fcafc4603f609 (diff) | |
download | dotty-9e5cfe27f5d4b34b30102e78222c222ad7604414.tar.gz dotty-9e5cfe27f5d4b34b30102e78222c222ad7604414.tar.bz2 dotty-9e5cfe27f5d4b34b30102e78222c222ad7604414.zip |
Fix error in box\unbox logic.
TermRef's for primitive types are of primitive-type.
Diffstat (limited to 'src')
-rw-r--r-- | src/dotty/tools/dotc/transform/Erasure.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/transform/Erasure.scala b/src/dotty/tools/dotc/transform/Erasure.scala index 562a30682..791df341a 100644 --- a/src/dotty/tools/dotc/transform/Erasure.scala +++ b/src/dotty/tools/dotc/transform/Erasure.scala @@ -205,7 +205,7 @@ object Erasure { else recur(cast(qual, erasedPre)) def recur(qual: Tree): Tree = { - val qualIsPrimitive = isPrimitiveValueType(qual.tpe) + val qualIsPrimitive = isPrimitiveValueType(qual.tpe.widen) val symIsPrimitive = sym.owner.isPrimitiveValueClass if ((sym.owner eq defn.AnyClass) || (sym.owner eq defn.AnyValClass)) select(qual, defn.ObjectClass.info.decl(sym.name).symbol) |