From 67a341f3fa26e5a3140cde3420ef2269a84d478f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Fri, 8 Apr 2022 14:35:56 +0800 Subject: cleanup --- test/diagnostics/common.lua | 6 ++++++ test/type_inference/init.lua | 6 ++++++ 2 files changed, 12 insertions(+) (limited to 'test') 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. ]] + +TEST 'boolean' [[ +local = true +var = 1 +var = 1.0 +]] -- cgit v1.2.3