diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-07-07 16:04:02 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-07-07 16:04:02 +0800 |
commit | 3150962ceadf0046deb164ab6e042f74029de4eb (patch) | |
tree | 2f585975bd6b744d197b78e6c5d12cccc4a162c6 /test/hover/init.lua | |
parent | f5464ddc9a8e043977f27e70d9f1dfc2be56b02e (diff) | |
download | lua-language-server-3150962ceadf0046deb164ab6e042f74029de4eb.zip |
fix #1294
Diffstat (limited to 'test/hover/init.lua')
-rw-r--r-- | test/hover/init.lua | 21 |
1 files changed, 21 insertions, 0 deletions
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(<?bool?>) +]] +[[ +local bool: boolean = true|false +]] |