diff options
| author | Li Jin <dragon-fly@qq.com> | 2020-10-08 13:01:18 +0800 |
|---|---|---|
| committer | Li Jin <dragon-fly@qq.com> | 2020-10-08 13:01:18 +0800 |
| commit | 97bbe98289fb74c7cf2d9793b80a1a27b4146045 (patch) | |
| tree | 4bee0dded55bad28f6822b6e2dd3ea5251c66ae2 /spec/inputs/export_default.mp | |
| parent | 5b656d2913e4f9f0017698ec835ce4ddda1dc81f (diff) | |
| download | yuescript-97bbe98289fb74c7cf2d9793b80a1a27b4146045.tar.gz yuescript-97bbe98289fb74c7cf2d9793b80a1a27b4146045.tar.bz2 yuescript-97bbe98289fb74c7cf2d9793b80a1a27b4146045.zip | |
change file extension moonp.
Diffstat (limited to 'spec/inputs/export_default.mp')
| -rw-r--r-- | spec/inputs/export_default.mp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/spec/inputs/export_default.mp b/spec/inputs/export_default.mp new file mode 100644 index 0000000..73f43ac --- /dev/null +++ b/spec/inputs/export_default.mp | |||
| @@ -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 | |||
