diff options
author | Li Jin <dragon-fly@qq.com> | 2021-02-17 11:22:07 +0800 |
---|---|---|
committer | Li Jin <dragon-fly@qq.com> | 2021-02-17 11:22:07 +0800 |
commit | 7066392d1c974065181d95d93274136dcd625d43 (patch) | |
tree | cf51eafc2c52cbc12246a306bca172d799193d30 /spec/inputs/export_default.yue | |
parent | 90cd12ad9ef465f3e435e1bd034dcfbe4e19d016 (diff) | |
download | yuescript-7066392d1c974065181d95d93274136dcd625d43.tar.gz yuescript-7066392d1c974065181d95d93274136dcd625d43.tar.bz2 yuescript-7066392d1c974065181d95d93274136dcd625d43.zip |
stop reusing variables, rename project.
Diffstat (limited to 'spec/inputs/export_default.yue')
-rw-r--r-- | spec/inputs/export_default.yue | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/spec/inputs/export_default.yue b/spec/inputs/export_default.yue new file mode 100644 index 0000000..73f43ac --- /dev/null +++ b/spec/inputs/export_default.yue | |||
@@ -0,0 +1,15 @@ | |||
1 | |||
2 | print "OK" | ||
3 | |||
4 | export default -> | ||
5 | print "hello" | ||
6 | 123 | ||
7 | |||
8 | (x, fy)<- f 123, "abc" unless isOff | ||
9 | print x | ||
10 | (y, res)<- fy | ||
11 | return if res | ||
12 | abc + y | ||
13 | else | ||
14 | abc | ||
15 | |||