proc params as syms (#15332)

* proc params are now syms

* Fix typesrenderer

* Add testcase for disrupteks issue

* fix test

* Trigger build

* Trigger build

* Trigger build

Co-authored-by: Clyybber <darkmine956@gmail.com>
This commit is contained in:
cooldome 2020-09-16 17:25:24 +01:00 • committed by GitHub
commit 341be0b61c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 19 additions and 2 deletions

View file

@ -67,7 +67,7 @@ proc renderType(n: PNode): string =
let typeStr = renderType(n[typePos])
result = typeStr
for i in 1..<typePos:
assert n[i].kind == nkIdent
assert n[i].kind in {nkSym, nkIdent}
result.add(',' & typeStr)
of nkTupleTy:
result = "tuple["