Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 0.8.2
-
Fix Version/s: None
-
Component/s: Compiler
-
Labels:None
-
Number of attachments :
Description
cache = {}
def fib(i as int) as int:
r = cache[i]
if r is null:
if i < 2:
r = 1
else:
r = fib(i-1) + fib(i-2)
cache[i] = r
return r
Boo Compiler version 0.8.2.2960 (CLR v2.0.50727.1433)
fibcache.boo(13,16): BCE0005: Unknown identifier: 'fib'.
fibcache.boo(13,27): BCE0005: Unknown identifier: 'fib'.
I can confirm this as of r3043. If the whole thing is put into a class, everything works.
Minimal testcase:
>>> BCE0005: Unknown identifier: 'recursive'.