mirror of
https://github.com/nim-lang/Nim.git
synced 2026-02-12 22:33:49 +00:00
follow up https://github.com/nim-lang/Nim/pull/23681 ref https://forum.nim-lang.org/t/11987 ref https://github.com/nim-lang/Nim/issues/23836#issuecomment-2227267251
13 lines
186 B
Nim
13 lines
186 B
Nim
discard """
|
|
matrix: "--warningAsError:UnreachableCode"
|
|
"""
|
|
|
|
proc test(): bool =
|
|
block okay:
|
|
if true: break okay
|
|
return false
|
|
|
|
return true # Line 7 is here
|
|
|
|
doAssert test()
|