| [#26] | project: specification | priority: medium | category: feature | |
|---|---|---|---|---|
| submitter | assigned to | status | date submitted | |
| Burak | Martin | won't fix | 2003-05-27 14:48:07.0 | |
| subject | casting | |||
| code |
object BUG_Unit {
var x : Int = ().as[Int];
}
// what happened to the cast method ".as" ? |
|||
| what happened | BUG_Unit.scala:2: identifier expected but 'as' found.
var x : Int = ().as[Int];
^
one error found
|
|||
| what expected | a runtime error (ClassCastException), not a compile time error. Martin: This is a syntax change in Scala. `as' and `is' are now keywords, not standard methods. | |||
| [back to overview] | ||||