Aladdin - Scala Bugtracking
[#92] project: compiler priority: medium category: bug
submitter assigned to status date submitted
Vincent Michel fixed 2003-08-27 18:35:57.0
subject polymorphic array creation
code
class Bug {
  def array[b]: Array[b] =  new Array[b](42);
}
what happened
Exception in thread "main" scalac.ApplicationError: illegal case: TypeRef(ThisType(scala),scala.Array,[])
        at scalac.util.Debug.abort(Debug.java:57)
        at scalac.transformer.Erasure.transform(Erasure.java:401)
what expected silent run.
[back to overview]
Changes of this bug report
Philippe  edited on  2004-04-15 13:47:20.0
Reassigned to Michel as this requires runtime types.
Lex  edited on  2006-03-28 13:51:38.0
It is fixed as of version 2.1.0 .