From f61b96675547c8bf40c7f646e3766f4139efd927 Mon Sep 17 00:00:00 2001 From: Li Jin Date: Fri, 22 Jan 2021 17:53:34 +0800 Subject: fix issue #36 --- spec/inputs/funcs.mp | 1 + spec/inputs/macro.mp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'spec/inputs') diff --git a/spec/inputs/funcs.mp b/spec/inputs/funcs.mp index 4176e33..0e45ff1 100644 --- a/spec/inputs/funcs.mp +++ b/spec/inputs/funcs.mp @@ -46,6 +46,7 @@ _ = (x = if something then yeah else no) -> something = (hello=100, world=(x=[[yeah cool]])-> print "eat rice") -> print hello +_ = () => _ = (x, y) => _ = (@x, @y) => _ = (x=1) => diff --git a/spec/inputs/macro.mp b/spec/inputs/macro.mp index fafa522..be88a3f 100644 --- a/spec/inputs/macro.mp +++ b/spec/inputs/macro.mp @@ -110,7 +110,7 @@ do a += $get_inner_hygienic! print a -macro lua lua = (codes)-> "#{codes}" +macro lua lua = (codes)-> codes x = 0 -- cgit v1.2.3-55-g6feb