Aladdin - Scala Bugtracking
[#305] project: compiler priority: low category: bug
submitter assigned to status date submitted
Burak Martin open 2004-03-10 12:31:47.0
subject T* and overloading fails
code
object testStar with Application {
 
  def foo(is:int*) = 1;
  def foo(i:int) = 2;

  Console.println( foo( List(3):_* ) )

}
what happened
buraq@lamppc30:~/scala/tmp$ scalac testStar.scala 
testStar.scala:6:  argument does not correspond to `*'-parameter
  Console.println( foo( List(3):_* ) )
                                ^
one error found
what expected silent compilation, and 2 be printed at runtime.

This needs regular types...

[back to overview]
Changes of this bug report
Burak  edited on  2004-05-03 15:50:40.0
reassign to Martin who maintains code for overloading resolution.