work in progress: new implementation for 'a[^1]'
This commit is contained in:
parent
c0433b0b6c
commit
d52a1061b3
1 changed files with 96 additions and 89 deletions
|
|
@ -1618,8 +1618,8 @@ proc semGenericParamList(c: PContext, n: PNode, father: PType = nil): PNode =
|
|||
var a = n.sons[i]
|
||||
if a.kind != nkIdentDefs: illFormedAst(n)
|
||||
let L = a.len
|
||||
var def = a{-1}
|
||||
let constraint = a{-2}
|
||||
var def = a[^1]
|
||||
let constraint = a[^2]
|
||||
var typ: PType
|
||||
|
||||
if constraint.kind != nkEmpty:
|
||||
|
|
|
|||
Loading…
Reference in a new issue