resolved conflict; added missing files
This commit is contained in:
commit
3f35e2d39e
14 changed files with 657 additions and 327 deletions
24
tests/reject/tnotnil1.nim
Normal file
24
tests/reject/tnotnil1.nim
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
discard """
|
||||
errormsg: "'y' is provably nil"
|
||||
line:22
|
||||
"""
|
||||
|
||||
import strutils
|
||||
|
||||
|
||||
type
|
||||
TObj = object
|
||||
x, y: int
|
||||
|
||||
proc q(x: pointer not nil) =
|
||||
nil
|
||||
|
||||
proc p() =
|
||||
var x: pointer
|
||||
let y = x
|
||||
if not y.isNil:
|
||||
q(y)
|
||||
else:
|
||||
q(y)
|
||||
|
||||
p()
|
||||
Loading…
Add table
Add a link
Reference in a new issue