mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-31 10:22:15 +00:00
added another test case
This commit is contained in:
@@ -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])
|
||||
|
||||
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
|
||||
- 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)
|
||||
|
||||
Reference in New Issue
Block a user