resolved conflict; added missing files

This commit is contained in:
Araq 2013-06-09 23:33:32 +02:00
commit 3f35e2d39e
14 changed files with 657 additions and 327 deletions

24
tests/reject/tnotnil1.nim Normal file
View 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()