From 3150962ceadf0046deb164ab6e042f74029de4eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Thu, 7 Jul 2022 16:04:02 +0800 Subject: fix #1294 --- test/hover/init.lua | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'test/hover') diff --git a/test/hover/init.lua b/test/hover/init.lua index 476644fc..82cf1ddf 100644 --- a/test/hover/init.lua +++ b/test/hover/init.lua @@ -2091,3 +2091,24 @@ end a: integer = 1, } ]] + +TEST [[ +local y +if X then + y = true +else + y = false +end + +local bool = y + +bool = bool and y + +if bool then +end + +print() +]] +[[ +local bool: boolean = true|false +]] -- cgit v1.2.3