Aladdin - Scala Bugtracking
[#376] project: compiler priority: low category: feature
submitter assigned to status date submitted
Burak Martin noise 2004-11-12 14:09:43.0
subject case class(val x) allowed!?
code
case class Foo(val s: String);
what happened
silent compile
what expected An error? I thought value declarations for constructor arguments would be restricted to classes, but not allowed for case classes? Otherwise, a change to the specification.
[back to overview]
Changes of this bug report
Burak  edited on  2004-11-17 11:16:27.0
outcome of Scala meeting: writing val is allowed, it's just redundant.