[#123] | project: compiler | priority: medium | category: bug | |
---|---|---|---|---|
submitter | assigned to | status | date submitted | |
Erik | Martin | fixed | 2003-09-10 16:36:01.0 | |
subject | Bad error message for val patterns without free variables | |||
code |
class M{ val 1 = 1; } |
|||
what happened | ~/scala/bin/scalac M.scala M.scala:2: object scala.Unit of type scala.Unit cannot be applied to () val 1 = 1; ^ one error found |
|||
what expected | A better error message. (Or possibly no error at all, since 1 matches 1.) | |||
[back to overview] |
Martin edited on 2003-09-10 17:30:14.0 |
Martin edited on 2003-09-10 17:31:06.0 |
No error at all, that's what it does now. |