mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-19 05:50:30 +00:00
made some tests green; some small bugfixes
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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.
|
||||
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
discard """
|
||||
output: '''-1'''
|
||||
output: '''-2'''
|
||||
"""
|
||||
|
||||
proc p(x, y: int; cond: bool): int =
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
discard """
|
||||
file: "system.nim"
|
||||
line: 663
|
||||
line: 669
|
||||
errormsg: "type mismatch"
|
||||
"""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user