made some tests green; some small bugfixes

This commit is contained in:
Araq
2012-12-09 15:53:59 +01:00
parent 654a99266f
commit f96ec25ed2
6 changed files with 6 additions and 7 deletions

View File

@@ -798,7 +798,7 @@ proc semTypeExpr(c: PContext, n: PNode): PType =
proc freshType(res, prev: PType): PType {.inline.} =
if prev.isNil:
result = copyType(result, result.owner, keepId=false)
result = copyType(res, res.owner, keepId=false)
else:
result = res

View File

@@ -2408,7 +2408,7 @@ simplicity (they require specialized semantic checking)::
is, of, echo, shallowCopy, getAst
Thus they act more like keywords than like ordinary identifiers; unlike a
keyword however, a redefinition may `shadow`:id: the definition in
keyword however, a redefinition may `shadow`:idx: the definition in
the ``system`` module.

View File

@@ -474,8 +474,8 @@ proc renderRstToOut(d: PDoc, n: PRstNode, result: var string) =
of rnTableRow:
if len(n) >= 1:
if d.target == outLatex:
var tmp = ""
renderRstToOut(d, n.sons[0], tmp)
#var tmp = ""
renderRstToOut(d, n.sons[0], result)
for i in countup(1, len(n) - 1):
result.add(" & ")
renderRstToOut(d, n.sons[i], result)

View File

@@ -1,5 +1,5 @@
discard """
output: '''-1'''
output: '''-2'''
"""
proc p(x, y: int; cond: bool): int =

View File

@@ -1,6 +1,6 @@
discard """
file: "system.nim"
line: 663
line: 669
errormsg: "type mismatch"
"""

View File

@@ -6,7 +6,6 @@ version 0.9.2
* test generic iterators
- fix closure bug finally
- fix marshal bug
- make PDF generation of the docs work again
version 0.9.X