Skip to content

Commit b30e4ff

Browse files
committed
pass tests
1 parent 9b16225 commit b30e4ff

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

test/definition/luadoc.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
local config = require "config.config"
2+
config.set(nil, 'Lua.type.castNumberToInteger', false)
13
TEST [[
24
---@class <!A!>
35
---@class B : <?A?>
@@ -919,3 +921,5 @@ f {
919921
<!<?x?>!> = 1,
920922
}
921923
]]
924+
925+
config.set(nil, 'Lua.type.castNumberToInteger', true)

test/diagnostics/type-check.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ local config = require 'config'
33
config.add(nil, 'Lua.diagnostics.disable', 'unused-local')
44
config.add(nil, 'Lua.diagnostics.disable', 'unused-function')
55
config.add(nil, 'Lua.diagnostics.disable', 'undefined-global')
6+
config.set(nil, 'Lua.type.castNumberToInteger', false)
67

78
TEST [[
89
local x = 0
@@ -777,3 +778,4 @@ f(<!3!>)
777778
config.remove(nil, 'Lua.diagnostics.disable', 'unused-local')
778779
config.remove(nil, 'Lua.diagnostics.disable', 'unused-function')
779780
config.remove(nil, 'Lua.diagnostics.disable', 'undefined-global')
781+
config.set(nil, 'Lua.type.castNumberToInteger', true)

0 commit comments

Comments
 (0)