diff options
Diffstat (limited to 'test/diagnostics/common.lua')
-rw-r--r-- | test/diagnostics/common.lua | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/diagnostics/common.lua b/test/diagnostics/common.lua index 1ab6ec5c..4c065ac6 100644 --- a/test/diagnostics/common.lua +++ b/test/diagnostics/common.lua @@ -1986,3 +1986,17 @@ function X() <!return true!> end ]] + +TEST [[ +---@diagnostic disable: undefined-global + +while true do + if not X then + break + end +end + +print(1) + +do return end +]] |