File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed
Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change 1+ local config = require " config.config"
2+ config .set (nil , ' Lua.type.castNumberToInteger' , false )
13TEST [[
24---@class <!A!>
35---@class B : <?A?>
919921 <!<?x?>!> = 1,
920922}
921923]]
924+
925+ config .set (nil , ' Lua.type.castNumberToInteger' , true )
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ local config = require 'config'
33config .add (nil , ' Lua.diagnostics.disable' , ' unused-local' )
44config .add (nil , ' Lua.diagnostics.disable' , ' unused-function' )
55config .add (nil , ' Lua.diagnostics.disable' , ' undefined-global' )
6+ config .set (nil , ' Lua.type.castNumberToInteger' , false )
67
78TEST [[
89local x = 0
@@ -777,3 +778,4 @@ f(<!3!>)
777778config .remove (nil , ' Lua.diagnostics.disable' , ' unused-local' )
778779config .remove (nil , ' Lua.diagnostics.disable' , ' unused-function' )
779780config .remove (nil , ' Lua.diagnostics.disable' , ' undefined-global' )
781+ config .set (nil , ' Lua.type.castNumberToInteger' , true )
You can’t perform that action at this time.
0 commit comments