handball/src/test/run-pass/closure/open-closure-in-function.scm

10 lines
200 B
Scheme
Raw Normal View History

2021-12-29 02:09:51 +00:00
#lang scheme
; https://github.com/munificent/craftinginterpreters/blob/master/test/closure/open_closure_in_function.lox
((lambda ()
(define local 1)
(define (f)
(display local))
(f)))