File tree 3 files changed +12
-0
lines changed
3 files changed +12
-0
lines changed Original file line number Diff line number Diff line change 3
3
## 3.7.0
4
4
* ` NEW ` support ` ---@type ` and ` --[[@as]] ` for return statement
5
5
* ` FIX ` wrong hover and signature for method with varargs and overloads
6
+ * ` FIX ` [ #2155 ]
6
7
* ` FIX ` [ #2224 ]
7
8
9
+ [ #2155 ] : https://github.com/LuaLS/lua-language-server/issues/2155
8
10
[ #2224 ] : https://github.com/LuaLS/lua-language-server/issues/2224
9
11
10
12
## 3.6.25
Original file line number Diff line number Diff line change @@ -1112,6 +1112,12 @@ local function compileLocal(source)
1112
1112
end
1113
1113
end
1114
1114
1115
+ if source .value
1116
+ and source .value .type == ' nil'
1117
+ and not myNode :hasKnownType () then
1118
+ vm .setNode (source , vm .compileNode (source .value ))
1119
+ end
1120
+
1115
1121
myNode .hasDefined = hasMarkDoc or hasMarkParam or hasMarkValue
1116
1122
end
1117
1123
Original file line number Diff line number Diff line change @@ -44,6 +44,10 @@ function TEST(wanted)
44
44
end
45
45
end
46
46
47
+ TEST ' nil' [[
48
+ local <?t?> = nil
49
+ ]]
50
+
47
51
TEST ' string' [[
48
52
local <?var?> = '111'
49
53
]]
You can’t perform that action at this time.
0 commit comments