Aladdin - Scala Bugtracking
[#137] project: compiler priority: medium category: bug
submitter assigned to status date submitted
Matthias Martin fixed 2003-09-12 12:32:29.0
subject Parameterized type aliases
code
class A {
  type Two[A] = Tuple2[A, A];
  type TwoInt = Two[Int];
}
what happened
Yields the following error message:
H.scala:3: wrong number of type arguments for scala.Tuple2[A,A]
        type TwoInt = Two[Int];
                      ^
one error found
what expected Compiles without errors.
[back to overview]
Changes of this bug report
Martin  edited on  2003-09-17 19:47:01.0