diff options
author | Araq <rumpf_a@web.de> | 2011-11-12 01:02:06 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2011-11-12 01:02:06 +0100 |
commit | 8fc15ca0d5b46f1ecd3bd46f201f4ede3225be30 (patch) | |
tree | e2a09e7fdd7997dea504dd2a3ffa3dde2cdc3aa0 | |
parent | 2bd14f4ba8863f08eadc99e6664935ab1e3fec20 (diff) | |
download | Nim-8fc15ca0d5b46f1ecd3bd46f201f4ede3225be30.tar.gz |
added another test case
-rwxr-xr-x | compiler/docgen.nim | 2 | ||||
-rw-r--r-- | tests/accept/compile/trectuples.nim | 10 | ||||
-rwxr-xr-x | todo.txt | 3 |
3 files changed, 13 insertions, 2 deletions
diff --git a/compiler/docgen.nim b/compiler/docgen.nim index c05c35b90..411f93115 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 000000000..c59cfe880 --- /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 bf0a3afce..bb5f2c9c0 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) |