diff options
author | Li Jin <dragon-fly@qq.com> | 2021-04-01 16:11:51 +0800 |
---|---|---|
committer | Li Jin <dragon-fly@qq.com> | 2021-04-01 16:11:51 +0800 |
commit | 1ed40360d664d397e1178eb60cf8d3fbe0881edc (patch) | |
tree | 4af0f539b5c9c211d62ebc128da3fbbd4b98613f /spec | |
parent | 98debe328b443078aee6994af61d4ed05ac434d6 (diff) | |
download | yuescript-1ed40360d664d397e1178eb60cf8d3fbe0881edc.tar.gz yuescript-1ed40360d664d397e1178eb60cf8d3fbe0881edc.tar.bz2 yuescript-1ed40360d664d397e1178eb60cf8d3fbe0881edc.zip |
fix export assignment statement not working with local statement.
Diffstat (limited to 'spec')
-rw-r--r-- | spec/inputs/export.yue | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/inputs/export.yue b/spec/inputs/export.yue index 085510e..9113508 100644 --- a/spec/inputs/export.yue +++ b/spec/inputs/export.yue | |||
@@ -77,3 +77,10 @@ _ = "#{with a | |||
77 | _ = "#{a?.b}" | 77 | _ = "#{a?.b}" |
78 | _ = "#{a\b}" | 78 | _ = "#{a\b}" |
79 | _ = "#{class A}" | 79 | _ = "#{class A}" |
80 | |||
81 | local * | ||
82 | v1 = 1 | ||
83 | export v2 = 2 | ||
84 | export v3 = class v4 | ||
85 | v5 = 5 | ||
86 | |||