Make useVersion:1.0 disable the proc arg sym change (#15570)

* Make useVersion:1.0 disable the proc arg sym change

* Also do this for useVersion:1.2
This commit is contained in:
Clyybber 2020-10-14 16:07:25 +02:00 • committed by GitHub
commit 977bccdbff
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 13 additions and 2 deletions

View file

@ -1288,7 +1288,8 @@ proc semProcTypeNode(c: PContext, n, genericParams: PNode,
addParamOrResult(c, arg, kind)
styleCheckDef(c.config, a[j].info, arg)
onDef(a[j].info, arg)
a[j] = newSymNode(arg)
if {optNimV1Emulation, optNimV12Emulation} * c.config.globalOptions == {}:
a[j] = newSymNode(arg)
var r: PType
if n[0].kind != nkEmpty: