summaryrefslogtreecommitdiff
path: root/test/type_inference/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'test/type_inference/init.lua')
-rw-r--r--test/type_inference/init.lua11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/type_inference/init.lua b/test/type_inference/init.lua
index b71cf987..615c13df 100644
--- a/test/type_inference/init.lua
+++ b/test/type_inference/init.lua
@@ -2297,3 +2297,14 @@ end
print(<?t?>)
]]
+
+TEST 'table|unknown' [[
+local function f()
+ if x then
+ return y
+ end
+ return {}
+end
+
+local <?z?> = f()
+]]