added another test case
This commit is contained in:
parent
2bd14f4ba8
commit
8fc15ca0d5
3 changed files with 13 additions and 2 deletions
|
|
@ -435,7 +435,7 @@ proc renderRstToRst(d: PDoc, n: PRstNode): PRope =
|
||||||
result = ropef("$n$1$3$n$1$2$n$1$3",
|
result = ropef("$n$1$3$n$1$2$n$1$3",
|
||||||
[ind, result, toRope(repeatChar(L, lvlToChar[n.level]))])
|
[ind, result, toRope(repeatChar(L, lvlToChar[n.level]))])
|
||||||
of rnTransition:
|
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:
|
of rnParagraph:
|
||||||
result = renderRstSons(d, n)
|
result = renderRstSons(d, n)
|
||||||
result = ropef("$n$n$1$2", [ind, result])
|
result = ropef("$n$n$1$2", [ind, result])
|
||||||
|
|
|
||||||
10
tests/accept/compile/trectuples.nim
Normal file
10
tests/accept/compile/trectuples.nim
Normal file
|
|
@ -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)
|
||||||
|
|
||||||
|
|
||||||
3
todo.txt
3
todo.txt
|
|
@ -3,7 +3,7 @@ Version 0.8.14
|
||||||
|
|
||||||
- bug: s[1..n] = @[] produces wrong C code
|
- bug: s[1..n] = @[] produces wrong C code
|
||||||
- optimize unused constants away (affected by HLO)
|
- 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
|
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
|
- make pegs support a compile-time option and make c2nim use regexes instead
|
||||||
per default?
|
per default?
|
||||||
- fix implicit generic routines
|
- fix implicit generic routines
|
||||||
|
- improve docgen to use the semantic pass
|
||||||
- think about ``{:}.toTable[int, string]()``
|
- think about ``{:}.toTable[int, string]()``
|
||||||
- mocking support with ``tyProxy`` that does:
|
- mocking support with ``tyProxy`` that does:
|
||||||
o.p(x) --> p(o, x) --> myMacro(o, p, x)
|
o.p(x) --> p(o, x) --> myMacro(o, p, x)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue