| [#333] | project: interpreter | priority: low | category: bug | |
|---|---|---|---|---|
| submitter | assigned to | status | date submitted | |
| Burak | Philippe | fixed | 2004-05-19 15:31:26.0 | |
| subject | doesn't handle returns | |||
| code | object testInt with Application {
  def foo():Int = {
    var i = 10;
    while( i > 0 ) {
      i = i - 1;
      if( i == 5 ) return i;
    }
    return 0;
  }
  
  Console.println( foo() );
} | |||
| what happened |  | |||
| what expected | 5 to be printed | |||
| [back to overview] | ||||
| Gilles edited on 2006-03-27 17:50:41.0 | 
| Fixed in Scala2 |