From 3b94999e55df35d19616e87d7f3b6fddf5b8a30b Mon Sep 17 00:00:00 2001 From: Li Jin Date: Wed, 26 Feb 2020 11:46:27 +0800 Subject: add fat arrow support for backcall statement. --- spec/inputs/backcall.moon | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'spec') diff --git a/spec/inputs/backcall.moon b/spec/inputs/backcall.moon index 3aedba9..2972b1d 100644 --- a/spec/inputs/backcall.moon +++ b/spec/inputs/backcall.moon @@ -90,4 +90,17 @@ do (data)<- loadAsync file addToCache file,data) |> reduce 0,(a,b)-> a+b +propA = do + (value)<= property => @_value + print "old value: #{@_value}" + print "new value: #{value}" + @_value = value + +propB = do + <= property _, (value)=> + print "old value: #{@_value}" + print "new value: #{value}" + @_value = value + @_value + alert "hi" -- cgit v1.2.3-55-g6feb