getTypeInst and getTypeImpl mostly working now and added test
This commit is contained in:
parent
c89397f821
commit
0356f53b56
5 changed files with 251 additions and 32 deletions
|
|
@ -986,7 +986,8 @@ proc genMagic(c: PCtx; n: PNode; dest: var TDest; m: TMagic) =
|
|||
let rc = case n[0].sym.name.s:
|
||||
of "getType": 0
|
||||
of "typeKind": 1
|
||||
else: 2 # "getTypeInst"
|
||||
of "getTypeInst": 2
|
||||
else: 3 # "getTypeImpl"
|
||||
c.gABC(n, opcNGetType, dest, tmp, rc)
|
||||
c.freeTemp(tmp)
|
||||
#genUnaryABC(c, n, dest, opcNGetType)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue