[#531] | project: nsc | priority: medium | category: bug | |
---|---|---|---|---|
submitter | assigned to | status | date submitted | |
Gilles | Martin | fixed | 2006-02-15 14:44:47.0 | |
subject | Type required because of recursion in non-recursive case | |||
code |
object Test extends Application { import scala.reflect._; def titi = { var truc = 0 val tata: TypedCode[()=>Unit] = () => { truc = 6 } () } } |
|||
what happened | test.scala:5 error: recursive method titi needs result type val tata: TypedCode[()=>Unit] = () => { ^ |
|||
what expected | No error, or at least a different error message: this is not a recursive method. | |||
[back to overview] |
Gilles edited on 2006-02-15 14:45:00.0 |
Gilles edited on 2006-02-15 14:45:36.0 |
Gilles edited on 2006-02-15 14:49:57.0 |
Martin edited on 2006-02-17 16:31:56.0 |