diff options
author | Araq <rumpf_a@web.de> | 2019-09-08 13:08:11 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2019-09-08 13:08:41 +0200 |
commit | 18135cc194e5efece24271c2afb6f09c1311bda9 (patch) | |
tree | f7cc30fc0dbb537a5b73598875fe7fb131b0a1da | |
parent | 790f5bac0103fed9e89ead35364387c50d526cf5 (diff) | |
download | Nim-18135cc194e5efece24271c2afb6f09c1311bda9.tar.gz |
proper bugfix
-rw-r--r-- | compiler/semtypes.nim | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/semtypes.nim b/compiler/semtypes.nim index 5655479e9..0894267b9 100644 --- a/compiler/semtypes.nim +++ b/compiler/semtypes.nim @@ -863,9 +863,10 @@ proc semAnyRef(c: PContext; n: PNode; kind: TTypeKind; prev: PType): PType = elif region.skipTypes({tyGenericInst, tyAlias, tySink}).kind notin { tyError, tyObject}: message c.config, n[i].info, errGenerated, "region needs to be an object type" + addSonSkipIntLit(result, region) else: message(c.config, n.info, warnDeprecated, "region for pointer types is deprecated") - addSonSkipIntLit(result, region) + addSonSkipIntLit(result, region) addSonSkipIntLit(result, t) if tfPartial in result.flags: if result.lastSon.kind == tyObject: incl(result.lastSon.flags, tfPartial) |