diff options
Diffstat (limited to 'test/diagnostics/common.lua')
-rw-r--r-- | test/diagnostics/common.lua | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/test/diagnostics/common.lua b/test/diagnostics/common.lua index 34164a9a..05656db5 100644 --- a/test/diagnostics/common.lua +++ b/test/diagnostics/common.lua @@ -1988,6 +1988,28 @@ end ]] TEST [[ +while true do +end + +<!print(1)!> +]] + +TEST [[ +while true do +end + +<!print(1)!> +]] + +TEST [[ +while X do + X = 1 +end + +print(1) +]] + +TEST [[ ---@diagnostic disable: undefined-global while true do |