summaryrefslogtreecommitdiff
path: root/sources
diff options
context:
space:
mode:
authormihaylov <mihaylov@epfl.ch>2005-04-05 08:57:04 +0000
committermihaylov <mihaylov@epfl.ch>2005-04-05 08:57:04 +0000
commit37a3e2201bbcfd8e77a0274812566c8bdae3c1c3 (patch)
tree10cdd82b9133c7e9ecbe00865502e1e09c6415bd /sources
parenta29d908bb3655a0d6e3976d2ddff8b68d0946737 (diff)
downloadscala-37a3e2201bbcfd8e77a0274812566c8bdae3c1c3.tar.gz
scala-37a3e2201bbcfd8e77a0274812566c8bdae3c1c3.tar.bz2
scala-37a3e2201bbcfd8e77a0274812566c8bdae3c1c3.zip
Fixed the implicit coercion of Enums to their u...
Fixed the implicit coercion of Enums to their underlying type
Diffstat (limited to 'sources')
-rw-r--r--sources/scalac/backend/msil/GenMSIL.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/sources/scalac/backend/msil/GenMSIL.java b/sources/scalac/backend/msil/GenMSIL.java
index 3b695f5243..eae9c7cf4a 100644
--- a/sources/scalac/backend/msil/GenMSIL.java
+++ b/sources/scalac/backend/msil/GenMSIL.java
@@ -1356,9 +1356,8 @@ public final class GenMSIL {
MSILType mtype = msilType(type);
switch (mtype) {
case REF(Type t):
- MSILType ptype = unboxValueType(mtype);
- return ptype != null ? ptype : msilType(t).asPrimitive();
- //case NULL:
+ return unboxValueType(mtype).asPrimitive();
+ //case NULL:
case ARRAY(_):
throw Debug.abort("cannot convert " + mtype);
default: