diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/diagnostics/common.lua | 6 | ||||
-rw-r--r-- | test/type_inference/init.lua | 6 |
2 files changed, 12 insertions, 0 deletions
diff --git a/test/diagnostics/common.lua b/test/diagnostics/common.lua index 37ea6bc7..f79f1872 100644 --- a/test/diagnostics/common.lua +++ b/test/diagnostics/common.lua @@ -1377,3 +1377,9 @@ TEST [[ TEST [[ ---@class A 1 ]] + +TEST [[ +local value +value = '1' +value = value:gsub() +]] diff --git a/test/type_inference/init.lua b/test/type_inference/init.lua index 5ac5bece..591d9f7c 100644 --- a/test/type_inference/init.lua +++ b/test/type_inference/init.lua @@ -1390,3 +1390,9 @@ TEST 'integer' [[ local t t.<?x?> ]] + +TEST 'boolean' [[ +local <?var?> = true +var = 1 +var = 1.0 +]] |