Aladdin - Scala Bugtracking
[#617] project: compiler priority: low category: missing feature
submitter assigned to status date submitted
Nikolay Martin fixed 2006-05-30 12:00:03.0
subject [contrib #138] confusing error message
code
class Foo;
object Foo extends Application {
  def bar(x: Foo) = {}
  bar(this);
}
what happened
Foo.scala:4 error: type mismatch;
 found   : Foo
 required: Foo
  bar(this);
      ^
one error found
what expected easier to understand error message, for example something like this: Foo.scala:4 error: type mismatch; found : Foo$object required: Foo bar(this); ^ one error found
[back to overview]
Changes of this bug report
Nikolay  edited on  2006-05-30 12:02:05.0
Transferred from the contributions
Martin  edited on  2006-05-31 11:13:03.0
You now get for the type of the Foo object.