ensure the Nim compiler works with --experimental:strictFuncs --experimental:views [backport:1.4] (#15737)
This commit is contained in:
parent
3a69f14621
commit
cf01945f54
3 changed files with 23 additions and 1 deletions
|
|
@ -46,3 +46,14 @@ proc main() =
|
|||
echo i, ": ", x
|
||||
|
||||
main()
|
||||
|
||||
# This has to continue to work:
|
||||
|
||||
type
|
||||
PNode = ref object
|
||||
TSrcGen = object
|
||||
comStack: seq[PNode]
|
||||
|
||||
proc pushCom(g: var TSrcGen, n: PNode) =
|
||||
setLen(g.comStack, g.comStack.len + 1)
|
||||
g.comStack[^1] = n
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue