parent
ff25103c9a
commit
1a7b33942b
1 changed files with 17 additions and 0 deletions
|
|
@ -27,3 +27,20 @@ func mkEnter() =
|
||||||
helper()
|
helper()
|
||||||
else:
|
else:
|
||||||
let ast = getAst(helper())
|
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()
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue