diff options
Diffstat (limited to 'test/type_inference')
-rw-r--r-- | test/type_inference/init.lua | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/type_inference/init.lua b/test/type_inference/init.lua index 09f51b8e..aa424d9c 100644 --- a/test/type_inference/init.lua +++ b/test/type_inference/init.lua @@ -2674,3 +2674,16 @@ local t local <?x?> = t.x ]] + +TEST 'integer' [[ +local function f() + return GG +end + +local t + +t.x = 1 +t.x = f() + +print(t.<?x?>) +]] |