summaryrefslogtreecommitdiff
path: root/test/type_inference
diff options
context:
space:
mode:
Diffstat (limited to 'test/type_inference')
-rw-r--r--test/type_inference/common.lua13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/type_inference/common.lua b/test/type_inference/common.lua
index 4a29454a..11fa39b8 100644
--- a/test/type_inference/common.lua
+++ b/test/type_inference/common.lua
@@ -4428,3 +4428,16 @@ TEST 'A' [[
local x
local <?y?> = 1 >> x
]]
+
+TEST 'number' [[
+---@class A
+local A = {}
+
+---@param x number
+function A:func(x) end
+
+---@class B: A
+local B = {}
+
+function B:func(<?x?>) end
+]]