Aladdin - Scala Bugtracking
[#335] project: compiler priority: medium category: bug
submitter assigned to status date submitted
Burak Martin fixed 2004-05-27 13:49:51.0
subject views+overloading=%$#
code
object Foo with Application {

  def obfruz(c:Char) = true;
  def obfruz(s:Seq[Char]) = true;

  obfruz("ouch!");
  
}
what happened
>scalac Foo.scala
>scala Foo
Exception in thread "main" java.lang.ExceptionInInitializerError
	at Foo.main(testObj.scala:45)
Caused by: java.lang.ClassCastException
	at Foo$.(testObj.scala:6)
	at Foo$.(testObj.scala)
	... 1 more
what expected the view(s:String):Seq[Char] being applied.
[back to overview]
Changes of this bug report
Martin  edited on  2004-06-30 19:51:58.0