1
1
mirror of https://github.com/GaloisInc/cryptol.git synced 2024-12-19 05:51:43 +03:00
cryptol/tests/issues/issue006.icry
Adam C. Foltzer 46bcc188f4 fix external bindings not being in scope in let bodies
The renamer was being run on let bindings without including the NamingEnv of the overall module context. Fixed and added a test case for this.
2014-08-20 11:18:26 -07:00

9 lines
135 B
Plaintext

:l issue006.cry
g 5
let f x = 0
g 5
(f : [32] -> [32]) 5
let f x = if (x : [32]) == 0 then 1 else x * (f (x - 1))
f 5
let h x = g x
h 5