Aladdin - Scala Bugtracking
[#73] project: compiler priority: medium category: bug
submitter assigned to status date submitted
Stephane Michel fixed 2003-07-15 16:51:09.0
subject VerifiyError
code
import scala.collection.mutable._;

object Composites {
    def Map[A, B](mappings: Pair[A, B]*): Map[A, B] = {
        val map = new HashMap[A, B];
        map.putMap(mappings);
        map;
    }
    def main(args: Array[String]) = {
        val directory = Map(Pair("emergency", 911), Pair("info", 411));
    }
}
what happened
Exception in thread "main" java.lang.VerifyError:
  (class: scala/collection/mutable/HashMap$class, method: threshold_$eq
   signature: (I)V) Incompatible type for getting or setting field
   [..]
what expected does compile !
[back to overview]
Changes of this bug report
Michel  edited on  2003-07-16 10:15:36.0