enable experimental:strictDefs (#24225)

This commit is contained in:
ringabout
2024-11-24 05:01:39 +08:00
committed by GitHub
parent 555191a3f0
commit 2df633180a
86 changed files with 276 additions and 255 deletions

View File

@@ -673,11 +673,11 @@ template main {.dirty.} =
result = v
proc failed(): Result[int, string] =
discard
result = default(Result[int, string])
proc calling(): Result[int, string] =
let _ = ? failed()
doAssert false
raiseAssert "false"
let r = calling()
doAssert assigned