made some tests green; some small bugfixes
This commit is contained in:
parent
654a99266f
commit
f96ec25ed2
6 changed files with 6 additions and 7 deletions
|
|
@ -798,7 +798,7 @@ proc semTypeExpr(c: PContext, n: PNode): PType =
|
||||||
|
|
||||||
proc freshType(res, prev: PType): PType {.inline.} =
|
proc freshType(res, prev: PType): PType {.inline.} =
|
||||||
if prev.isNil:
|
if prev.isNil:
|
||||||
result = copyType(result, result.owner, keepId=false)
|
result = copyType(res, res.owner, keepId=false)
|
||||||
else:
|
else:
|
||||||
result = res
|
result = res
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2408,7 +2408,7 @@ simplicity (they require specialized semantic checking)::
|
||||||
is, of, echo, shallowCopy, getAst
|
is, of, echo, shallowCopy, getAst
|
||||||
|
|
||||||
Thus they act more like keywords than like ordinary identifiers; unlike a
|
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.
|
the ``system`` module.
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -474,8 +474,8 @@ proc renderRstToOut(d: PDoc, n: PRstNode, result: var string) =
|
||||||
of rnTableRow:
|
of rnTableRow:
|
||||||
if len(n) >= 1:
|
if len(n) >= 1:
|
||||||
if d.target == outLatex:
|
if d.target == outLatex:
|
||||||
var tmp = ""
|
#var tmp = ""
|
||||||
renderRstToOut(d, n.sons[0], tmp)
|
renderRstToOut(d, n.sons[0], result)
|
||||||
for i in countup(1, len(n) - 1):
|
for i in countup(1, len(n) - 1):
|
||||||
result.add(" & ")
|
result.add(" & ")
|
||||||
renderRstToOut(d, n.sons[i], result)
|
renderRstToOut(d, n.sons[i], result)
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
discard """
|
discard """
|
||||||
output: '''-1'''
|
output: '''-2'''
|
||||||
"""
|
"""
|
||||||
|
|
||||||
proc p(x, y: int; cond: bool): int =
|
proc p(x, y: int; cond: bool): int =
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
discard """
|
discard """
|
||||||
file: "system.nim"
|
file: "system.nim"
|
||||||
line: 663
|
line: 669
|
||||||
errormsg: "type mismatch"
|
errormsg: "type mismatch"
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
|
||||||
1
todo.txt
1
todo.txt
|
|
@ -6,7 +6,6 @@ version 0.9.2
|
||||||
* test generic iterators
|
* test generic iterators
|
||||||
- fix closure bug finally
|
- fix closure bug finally
|
||||||
- fix marshal bug
|
- fix marshal bug
|
||||||
- make PDF generation of the docs work again
|
|
||||||
|
|
||||||
|
|
||||||
version 0.9.X
|
version 0.9.X
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue