proper bugfix
This commit is contained in:
parent
790f5bac01
commit
18135cc194
1 changed files with 2 additions and 1 deletions
|
|
@ -863,6 +863,7 @@ proc semAnyRef(c: PContext; n: PNode; kind: TTypeKind; prev: PType): PType =
|
||||||
elif region.skipTypes({tyGenericInst, tyAlias, tySink}).kind notin {
|
elif region.skipTypes({tyGenericInst, tyAlias, tySink}).kind notin {
|
||||||
tyError, tyObject}:
|
tyError, tyObject}:
|
||||||
message c.config, n[i].info, errGenerated, "region needs to be an object type"
|
message c.config, n[i].info, errGenerated, "region needs to be an object type"
|
||||||
|
addSonSkipIntLit(result, region)
|
||||||
else:
|
else:
|
||||||
message(c.config, n.info, warnDeprecated, "region for pointer types is deprecated")
|
message(c.config, n.info, warnDeprecated, "region for pointer types is deprecated")
|
||||||
addSonSkipIntLit(result, region)
|
addSonSkipIntLit(result, region)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue