fixes #2352
This commit is contained in:
parent
bf90b9c833
commit
cc26308044
3 changed files with 8 additions and 2 deletions
|
|
@ -11,4 +11,10 @@ proc doit() =
|
|||
if x[0] != nil:
|
||||
check(x[0])
|
||||
|
||||
doit()
|
||||
doit()
|
||||
|
||||
# bug #2352
|
||||
|
||||
proc p(x: proc() {.noconv.} not nil) = discard
|
||||
p(proc() {.noconv.} = discard)
|
||||
# Error: cannot prove 'proc () {.noconv.} = discard ' is not nil
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue