File tree Expand file tree Collapse file tree 3 files changed +31
-0
lines changed Expand file tree Collapse file tree 3 files changed +31
-0
lines changed Original file line number Diff line number Diff line change 22
33## 3.6.6
44* ` FIX ` [ #1825 ]
5+ * ` FIX ` [ #1826 ]
56
67[ #1825 ] : https://github.com/sumneko/lua-language-server/issues/1825
8+ [ #1826 ] : https://github.com/sumneko/lua-language-server/issues/1826
79
810## 3.6.5
911` 2023-1-16 `
Original file line number Diff line number Diff line change @@ -1744,6 +1744,12 @@ local compilerSwitch = util.switch()
17441744 if firstSet then
17451745 local setNode = vm .compileNode (firstSet )
17461746 vm .setNode (source , setNode )
1747+ if vm .isMetaFile (luri ) then
1748+ for i = 2 , # link .sets do
1749+ setNode = vm .compileNode (link .sets [i ])
1750+ vm .setNode (source , setNode )
1751+ end
1752+ end
17471753 end
17481754 end
17491755 end
Original file line number Diff line number Diff line change 110110 },
111111 infer = ' V' ,
112112}
113+
114+ TEST {
115+ { path = ' a.lua' , content = [[
116+ X = 1
117+ X = true
118+ ]] , },
119+ { path = ' b.lua' , content = [[
120+ print(<?X?>)
121+ ]] , },
122+ infer = ' integer' ,
123+ }
124+
125+ TEST {
126+ { path = ' a.lua' , content = [[
127+ ---@meta
128+ X = 1
129+ X = true
130+ ]] , },
131+ { path = ' b.lua' , content = [[
132+ print(<?X?>)
133+ ]] , },
134+ infer = ' boolean|integer' ,
135+ }
You can’t perform that action at this time.
0 commit comments