diff options
| author | Li Jin <dragon-fly@qq.com> | 2022-06-12 00:16:35 +0800 |
|---|---|---|
| committer | Li Jin <dragon-fly@qq.com> | 2022-06-12 00:16:35 +0800 |
| commit | 1fa4049fc55986af8615ea836a60ac8cae255ad6 (patch) | |
| tree | ba2e35613b32ca3bd46f6d6ff932de2a457328ea /spec/inputs | |
| parent | 4350d4b094c2c7202b7ad79d15187c1402bd13eb (diff) | |
| download | yuescript-1fa4049fc55986af8615ea836a60ac8cae255ad6.tar.gz yuescript-1fa4049fc55986af8615ea836a60ac8cae255ad6.tar.bz2 yuescript-1fa4049fc55986af8615ea836a60ac8cae255ad6.zip | |
fix issue #105.
Diffstat (limited to 'spec/inputs')
| -rw-r--r-- | spec/inputs/with.yue | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/spec/inputs/with.yue b/spec/inputs/with.yue index fe140ac..6f3e3ba 100644 --- a/spec/inputs/with.yue +++ b/spec/inputs/with.yue | |||
| @@ -123,6 +123,20 @@ do | |||
| 123 | y = .end.of.function | 123 | y = .end.of.function |
| 124 | 124 | ||
| 125 | do | 125 | do |
| 126 | with tb | ||
| 127 | [1] = [2]?\func! | ||
| 128 | ["%a-b-c%"] = 123 | ||
| 129 | [ [[x y z]]] = [var] | ||
| 130 | print [ [3]] | ||
| 131 | with [4] | ||
| 132 | [1] = 1 | ||
| 133 | [] = "abc" | ||
| 134 | [] = | ||
| 135 | type: "hello" | ||
| 136 | * name: "xyz" | ||
| 137 | value: 998 | ||
| 138 | |||
| 139 | do | ||
| 126 | global mask | 140 | global mask |
| 127 | with? mask = SolidRect width: w, height: h, color: 0x66000000 | 141 | with? mask = SolidRect width: w, height: h, color: 0x66000000 |
| 128 | .touchEnabled = true | 142 | .touchEnabled = true |
