mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-25 16:53:59 +00:00
fixes semi-regression; discard check now skips nkHiddenSubConv (#23840)
follow up https://github.com/nim-lang/Nim/pull/23681 ref https://forum.nim-lang.org/t/11987
This commit is contained in:
@@ -164,3 +164,12 @@ block: # bug #23775
|
||||
let _ = retString()
|
||||
|
||||
doStuff(C)
|
||||
|
||||
block:
|
||||
proc test(): (int, int) {.discardable.} =
|
||||
discard
|
||||
|
||||
if true:
|
||||
test()
|
||||
else:
|
||||
quit()
|
||||
|
||||
Reference in New Issue
Block a user