Aladdin - Scala Bugtracking
[#64] project: compiler priority: medium category: bug
submitter assigned to status date submitted
Erik Martin fixed 2003-07-09 15:43:22.0
subject Objects are wrapped in Tuple1
code
object B {
  def main(Args:Array[String]) = {
    val Pair(_,x) = Pair(1,2);
    x + 1;
  }
}
what happened
/home/stenman/scala/test/files/run/B.scala:5: value + is not a member of scala.Tuple1[scala.Int]
    x + 1;
      ^
one error found
what expected The value x should be an scala.int not a Tuple1(Int).
[back to overview]
Changes of this bug report
Erik  edited on  2003-07-09 15:43:38.0
Martin  edited on  2003-07-10 13:05:23.0