Skip to content

flow 条件表达式没有位置限制 #628

@xuhuanzy

Description

@xuhuanzy
---@type table<string, string>?
local shopUnit
local is_init = shopUnit == nil -- is_init 在前面赋值
shopUnit = {}
if is_init then
    A = shopUnit -- 此时 shopUnit 为 nil, 但他应该是 table<string, string>
end
B = shopUnit     -- 此时是 table?, 但应该是 table<string, string>

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions