summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/diagnostics/common.lua10
-rw-r--r--test/type_inference/init.lua8
2 files changed, 13 insertions, 5 deletions
diff --git a/test/diagnostics/common.lua b/test/diagnostics/common.lua
index 6aa1dd6a..dcdcca0a 100644
--- a/test/diagnostics/common.lua
+++ b/test/diagnostics/common.lua
@@ -1382,8 +1382,8 @@ TEST [[
return ('1'):gsub()
]]
-TEST [[
-local value
-value = '1'
-value = value:gsub()
-]]
+--TEST [[
+--local value
+--value = '1'
+--value = value:gsub()
+--]]
diff --git a/test/type_inference/init.lua b/test/type_inference/init.lua
index fd6e464f..c2bd96b7 100644
--- a/test/type_inference/init.lua
+++ b/test/type_inference/init.lua
@@ -567,6 +567,14 @@ local f
local <?n?> = f(nil)
]]
+TEST 'unknown' [[
+---@generic K
+---@type fun(a: K|integer):K
+local f
+
+local <?n?> = f(1)
+]]
+
TEST 'integer' [[
---@class integer