diff --git a/compiler/docgen.nim b/compiler/docgen.nim index c05c35b905..411f931159 100755 --- a/compiler/docgen.nim +++ b/compiler/docgen.nim @@ -435,7 +435,7 @@ proc renderRstToRst(d: PDoc, n: PRstNode): PRope = result = ropef("$n$1$3$n$1$2$n$1$3", [ind, result, toRope(repeatChar(L, lvlToChar[n.level]))]) of rnTransition: - result = ropef("$n$n$1$2$n$n", [ind, toRope(repeatChar(78 - d.indent, '-'))]) + result = ropef("$n$n$1$2$n$n", [ind, toRope(repeatChar(78-d.indent, '-'))]) of rnParagraph: result = renderRstSons(d, n) result = ropef("$n$n$1$2", [ind, result]) diff --git a/tests/accept/compile/trectuples.nim b/tests/accept/compile/trectuples.nim new file mode 100644 index 0000000000..c59cfe8806 --- /dev/null +++ b/tests/accept/compile/trectuples.nim @@ -0,0 +1,10 @@ + +type Node = tuple[left: ref Node] + +proc traverse(root: ref Node) = + if root.left != nil: traverse(root.left) + +type A = tuple[B: ptr A] +proc C(D: ptr A) = C(D.B) + + diff --git a/todo.txt b/todo.txt index bf0a3afcef..bb5f2c9c0a 100755 --- a/todo.txt +++ b/todo.txt @@ -3,7 +3,7 @@ Version 0.8.14 - bug: s[1..n] = @[] produces wrong C code - optimize unused constants away (affected by HLO) -- fix actors.nim; test with different thread var implementations +- fix actors.nim: fix thread local storage emulation version 0.9.0 ============= @@ -68,6 +68,7 @@ version 0.9.XX - make pegs support a compile-time option and make c2nim use regexes instead per default? - fix implicit generic routines +- improve docgen to use the semantic pass - think about ``{:}.toTable[int, string]()`` - mocking support with ``tyProxy`` that does: o.p(x) --> p(o, x) --> myMacro(o, p, x)