mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-19 22:10:33 +00:00
enable experimental:strictDefs (#24225)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user