File tree Expand file tree Collapse file tree 3 files changed +17
-2
lines changed
Expand file tree Collapse file tree 3 files changed +17
-2
lines changed Original file line number Diff line number Diff line change 11# changelog
22
33## 3.2.4
4- * ` FIX ` hover: can not union ` unknown ` with other types
4+ * ` FIX ` hover: can not union ` table ` with other basic types
55
66## 3.2.3
77` 2022-5-16 `
Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ local viewNodeSwitch = util.switch()
7676 : case ' global'
7777 : call (function (source , infer )
7878 if source .cate == ' type' then
79- if source .name ~= ' unknown ' then
79+ if not guide . isBasicType ( source .name ) then
8080 infer ._hasClass = true
8181 end
8282 if source .name == ' number' then
Original file line number Diff line number Diff line change @@ -2308,3 +2308,18 @@ end
23082308
23092309local <?z?> = f()
23102310]]
2311+
2312+ TEST ' number|table' [[
2313+ local function returnI()
2314+ return a + 1
2315+ end
2316+
2317+ local function f()
2318+ if x then
2319+ return returnI()
2320+ end
2321+ return {}
2322+ end
2323+
2324+ local <?z?> = f()
2325+ ]]
You can’t perform that action at this time.
0 commit comments