File tree 3 files changed +17
-0
lines changed
3 files changed +17
-0
lines changed Original file line number Diff line number Diff line change 6
6
* ` FIX ` [ #1914 ]
7
7
* ` FIX ` [ #1922 ]
8
8
* ` FIX ` [ #1924 ]
9
+ * ` FIX ` [ #1928 ]
9
10
10
11
[ #1715 ] : https://github.com./LuaLS/lua-language-server/issues/1715
11
12
[ #1753 ] : https://github.com./LuaLS/lua-language-server/issues/1753
12
13
[ #1914 ] : https://github.com./LuaLS/lua-language-server/issues/1914
13
14
[ #1922 ] : https://github.com./LuaLS/lua-language-server/issues/1922
14
15
[ #1924 ] : https://github.com./LuaLS/lua-language-server/issues/1924
16
+ [ #1928 ] : https://github.com./LuaLS/lua-language-server/issues/1928
15
17
16
18
## 3.6.13
17
19
` 2023-3-2 `
Original file line number Diff line number Diff line change @@ -1357,6 +1357,7 @@ local compilerSwitch = util.switch()
1357
1357
if src .type == ' doc.field'
1358
1358
or src .type == ' doc.type.field'
1359
1359
or src .type == ' doc.type.name'
1360
+ or src .type == ' doc.type'
1360
1361
or guide .isLiteral (src ) then
1361
1362
hasMarkDoc = true
1362
1363
vm .setNode (source , vm .compileNode (src ))
Original file line number Diff line number Diff line change @@ -1224,6 +1224,20 @@ Class.staticCreator(<!true!>)
1224
1224
Class<!:!>staticCreator() -- Expecting a waring
1225
1225
]]
1226
1226
1227
+ TESTWITH ' assign-type-mismatch' [[
1228
+ ---@type string[]
1229
+ local arr = {
1230
+ <!3!>,
1231
+ }
1232
+ ]]
1233
+
1234
+ TESTWITH ' assign-type-mismatch' [[
1235
+ ---@type (string|boolean)[]
1236
+ local arr2 = {
1237
+ <!3!>, -- no warnings
1238
+ }
1239
+ ]]
1240
+
1227
1241
config .remove (nil , ' Lua.diagnostics.disable' , ' unused-local' )
1228
1242
config .remove (nil , ' Lua.diagnostics.disable' , ' unused-function' )
1229
1243
config .remove (nil , ' Lua.diagnostics.disable' , ' undefined-global' )
You can’t perform that action at this time.
0 commit comments