diff options
author | mihaylov <mihaylov@epfl.ch> | 2007-06-13 12:13:01 +0000 |
---|---|---|
committer | mihaylov <mihaylov@epfl.ch> | 2007-06-13 12:13:01 +0000 |
commit | 2d28f7fcc3e2cfcce127b8e0e5851df7bca66df0 (patch) | |
tree | a1087a3249dfca1c7c49bd18e80c7d7b63c2c741 /src/compiler/scala/tools/nsc/typechecker/RefChecks.scala | |
parent | 63d5f0c247513ba84512e25c838d073a62b9c507 (diff) | |
download | scala-2d28f7fcc3e2cfcce127b8e0e5851df7bca66df0.tar.gz scala-2d28f7fcc3e2cfcce127b8e0e5851df7bca66df0.tar.bz2 scala-2d28f7fcc3e2cfcce127b8e0e5851df7bca66df0.zip |
Fixed J2ME support in the compiler
Diffstat (limited to 'src/compiler/scala/tools/nsc/typechecker/RefChecks.scala')
-rw-r--r-- | src/compiler/scala/tools/nsc/typechecker/RefChecks.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/RefChecks.scala b/src/compiler/scala/tools/nsc/typechecker/RefChecks.scala index f178590a42..d12992ad3d 100644 --- a/src/compiler/scala/tools/nsc/typechecker/RefChecks.scala +++ b/src/compiler/scala/tools/nsc/typechecker/RefChecks.scala @@ -528,7 +528,7 @@ abstract class RefChecks extends InfoTransform { nonSensible("", false) else if (isNumericValueClass(receiver) && !isNumericValueClass(actual) && - !(forMSIL || (actual isSubClass BoxedNumberClass)) && + !(forMSIL || forCLDC|| (actual isSubClass BoxedNumberClass)) && !(receiver isSubClass actual)) nonSensible("", false) else if ((receiver hasFlag FINAL) && hasObjectEquals && !isValueClass(receiver) && |