about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2016-02-13 13:22:22 -0800
committerKartik K. Agaram <vc@akkartik.com>2016-02-13 13:25:10 -0800
commit34c274107a81cfc6abb8786db810593f9365a950 (patch)
tree172f31169acc07b055f38459e1891cfe76de39bf
parentbd5820f690db6853ff9fb8e0a0eb636fe2bf2b5e (diff)
downloadmu-34c274107a81cfc6abb8786db810593f9365a950.tar.gz
2652 - fix issue #4
Thanks chriscool and achikin for reporting this bug.
-rw-r--r--console.mu1
-rw-r--r--example1.mu1
2 files changed, 2 insertions, 0 deletions
diff --git a/console.mu b/console.mu
index 7c43bde9..1b1d5654 100644
--- a/console.mu
+++ b/console.mu
@@ -3,6 +3,7 @@
 # Keeps printing 'a' until you press a key or click on the mouse.
 
 recipe main [
+  local-scope
   open-console
   {
     e:event, found?:boolean <- check-for-interaction
diff --git a/example1.mu b/example1.mu
index 42401e3a..29610604 100644
--- a/example1.mu
+++ b/example1.mu
@@ -1,4 +1,5 @@
 recipe example1 [
+  local-scope
   a:number <- add 2, 2
   a <- multiply a, 3
 ]