| [#1259] | project: compiler | priority: low | category: bug | |
|---|---|---|---|---|
| submitter | assigned to | status | date submitted | |
| Iulian | Sean | open | 2007-08-08 10:31:59.0 | |
| subject | [contrib #728] byte/short/long miss 'to' and 'until' methods | |||
| code |
object TestScala
{
def main(args: Array[String])
{
var s : Short = 1
for ( i <- s to 10 )
{
println( i )
}
}
} |
|||
| what happened | C:\TEMP\scala>fsc TestScala.scala
C:\TEMP\scala\TestScala.scala:7: error: value to is not a member of Short
for ( i <- s to 10 )
^
one error found
|
|||
| what expected | Successfully compiled | |||
| [back to overview] | ||||
| Stephane edited on 2007-08-13 17:35:37.0 |
| problem is that class Range is bound to type Int. |