diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/type_inference/init.lua | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/type_inference/init.lua b/test/type_inference/init.lua index 8797cfdd..9f5c8493 100644 --- a/test/type_inference/init.lua +++ b/test/type_inference/init.lua @@ -4313,3 +4313,11 @@ local x = 1 repeat until <?x?> ]] + +TEST 'A' [=[ +local function f() + return {} --[[@as A]] +end + +local <?x?> = f() +]=] |