Details
-
Bug
-
Status: Closed
-
Trivial
-
Resolution: Fixed
-
None
-
None
-
None
Description
There is a spelling error in one of the code examples in the page "Scoping and the Semantics of "def""
The example under And "it"? defines a closure c1 (note the ONE) and then does assertions with cl (EL). Here's the full example:
implicit it in closures
def c1 =
{ it }assert cl() == null
assert cl(1) == 1