aboutsummaryrefslogtreecommitdiff
path: root/spec/inputs
diff options
context:
space:
mode:
authorLi Jin <dragon-fly@qq.com>2022-06-12 00:16:35 +0800
committerLi Jin <dragon-fly@qq.com>2022-06-12 00:16:35 +0800
commit1fa4049fc55986af8615ea836a60ac8cae255ad6 (patch)
treeba2e35613b32ca3bd46f6d6ff932de2a457328ea /spec/inputs
parent4350d4b094c2c7202b7ad79d15187c1402bd13eb (diff)
downloadyuescript-1fa4049fc55986af8615ea836a60ac8cae255ad6.tar.gz
yuescript-1fa4049fc55986af8615ea836a60ac8cae255ad6.tar.bz2
yuescript-1fa4049fc55986af8615ea836a60ac8cae255ad6.zip
fix issue #105.
Diffstat (limited to 'spec/inputs')
-rw-r--r--spec/inputs/with.yue14
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
125do 125do
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
139do
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