Skip to content

Commit e79f87e

Browse files
committed
fix
1 parent 6f88913 commit e79f87e

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

script/vm/tracer.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -595,6 +595,8 @@ local lookIntoChild = util.switch()
595595
end
596596
end
597597
if not handler then
598+
tracer:lookIntoChild(action[1], topNode)
599+
tracer:lookIntoChild(action[2], topNode)
598600
return topNode, outNode
599601
end
600602
if tracer.getMap[handler] then

test/type_inference/init.lua

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4166,3 +4166,12 @@ X = Y
41664166
41674167
print(<?X?>)
41684168
]]
4169+
4170+
TEST 'number' [[
4171+
---@type number
4172+
local t
4173+
4174+
if xxx == <?t?> then
4175+
print(t)
4176+
end
4177+
]]

0 commit comments

Comments
 (0)