We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a1a5ac1 commit a88964eCopy full SHA for a88964e
script/vm/runner.lua
@@ -177,7 +177,7 @@ function mt:_compileBlock(block)
177
type = 'save',
178
tag = 'block',
179
copy = true,
180
- pos = block.start,
+ pos = childBlock.start,
181
}
182
local outStep = {
183
test/type_inference/init.lua
@@ -2191,3 +2191,29 @@ local x
2191
2192
print(<?x?>)
2193
]]
2194
+
2195
+TEST 'string' [[
2196
+---@type string?
2197
+local x
2198
2199
+if not x then
2200
+ return
2201
+else
2202
+ print(<?x?>)
2203
+end
2204
2205
+print(x)
2206
+]]
2207
2208
2209
2210
2211
2212
2213
2214
2215
+ print(x)
2216
2217
2218
+print(<?x?>)
2219
0 commit comments