diff options
Diffstat (limited to 'test/type_inference')
-rw-r--r-- | test/type_inference/init.lua | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/type_inference/init.lua b/test/type_inference/init.lua index ab7404e2..cabff606 100644 --- a/test/type_inference/init.lua +++ b/test/type_inference/init.lua @@ -1767,6 +1767,17 @@ end print(<?x?>) ]] +TEST 'boolean' [[ +local x +x = true +function XX() + do + x = 1 + end +end +print(<?x?>) +]] + TEST 'integer?' [[ ---@type integer? local <?x?> |