mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-29 17:34:43 +00:00
(cherry picked from commit 1a7b33942b)
This commit is contained in:
@@ -27,3 +27,20 @@ func mkEnter() =
|
||||
helper()
|
||||
else:
|
||||
let ast = getAst(helper())
|
||||
|
||||
|
||||
# bug #6559
|
||||
type
|
||||
SafeFn = proc (): void {. raises: [] }
|
||||
|
||||
proc ok() {. raises: [] .} = discard
|
||||
proc fail() {. raises: [] .}
|
||||
|
||||
let f1 : SafeFn = ok
|
||||
let f2 : SafeFn = fail
|
||||
|
||||
|
||||
proc fail() = discard
|
||||
f1()
|
||||
f2()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user