summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/hover/init.lua2
-rw-r--r--test/type_inference/init.lua7
2 files changed, 8 insertions, 1 deletions
diff --git a/test/hover/init.lua b/test/hover/init.lua
index ee66ef2b..1a05d78e 100644
--- a/test/hover/init.lua
+++ b/test/hover/init.lua
@@ -772,7 +772,7 @@ local <?t?> = {
]]
[[
local t: {
- f: file*,
+ f: file*?,
}
]]
diff --git a/test/type_inference/init.lua b/test/type_inference/init.lua
index 9ead2861..ca3027fe 100644
--- a/test/type_inference/init.lua
+++ b/test/type_inference/init.lua
@@ -1482,3 +1482,10 @@ function mt:f()
print(<?self?>)
end
]]
+
+TEST 'string?' [[
+---@return string?
+local function f() end
+
+local <?x?> = f()
+]]