diff options
Diffstat (limited to 'test/type_inference')
-rw-r--r-- | test/type_inference/init.lua | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/type_inference/init.lua b/test/type_inference/init.lua index 33704c1a..0419ed9b 100644 --- a/test/type_inference/init.lua +++ b/test/type_inference/init.lua @@ -3866,3 +3866,13 @@ local function f() end end ]] + +TEST 'string' [[ +---@class A +---@field f fun(x: string) + +---@type A +local t = { + f = function (<?x?>) end +} +]] |