diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/type_inference/init.lua | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/type_inference/init.lua b/test/type_inference/init.lua index abc2f4bc..bad1a876 100644 --- a/test/type_inference/init.lua +++ b/test/type_inference/init.lua @@ -1410,3 +1410,12 @@ local function f() end local _, <?x?> = f() ]] + +TEST 'unknown' [[ +local t = { + x = 1, + y = 2, +} + +local <?x?> = t[#t] +]] |