4 Oct 23:20
Recursive value/variable definition
From: Eugene Vigdorchik <eugene.vigdorchik <at> gmail.com>
Subject: Recursive value/variable definition
Newsgroups: gmane.comp.lang.scala
Date: 2008-10-04 21:21:30 GMT
Subject: Recursive value/variable definition
Newsgroups: gmane.comp.lang.scala
Date: 2008-10-04 21:21:30 GMT
Hello,
the following fails to typecheck, however I cannot find the relevant piece in the spec (I can find similar statement about functions though)
scala> val v = v()
<console>:4: error: recursive value v needs type
val v = v()
Should it be added to the spec, or it is already there and I'm just blind?
Eugene.
the following fails to typecheck, however I cannot find the relevant piece in the spec (I can find similar statement about functions though)
scala> val v = v()
<console>:4: error: recursive value v needs type
val v = v()
Should it be added to the spec, or it is already there and I'm just blind?
Eugene.
RSS Feed