diff options
author | Araq <rumpf_a@web.de> | 2018-08-10 01:20:14 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2018-08-10 01:20:14 +0200 |
commit | 265003df1a6418f37ba21116c46d0a3fbfb1d9cc (patch) | |
tree | 06be95b51a8eec45b9f4b2560ecc7d7e023f6846 /compiler | |
parent | b4e5c9d075d9c2ef6192749b02738966b3dc943d (diff) | |
download | Nim-265003df1a6418f37ba21116c46d0a3fbfb1d9cc.tar.gz |
deprecated regionized pointers
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/semtypes.nim | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/semtypes.nim b/compiler/semtypes.nim index 972c8c709..99f2cf20d 100644 --- a/compiler/semtypes.nim +++ b/compiler/semtypes.nim @@ -193,6 +193,8 @@ proc semAnyRef(c: PContext; n: PNode; kind: TTypeKind; prev: PType): PType = if region.skipTypes({tyGenericInst, tyAlias, tySink}).kind notin { tyError, tyObject}: message c.config, n[i].info, errGenerated, "region needs to be an object type" + else: + message(c.config, n.info, warnDeprecated, "region for pointer types") addSonSkipIntLit(result, region) addSonSkipIntLit(result, t) if tfPartial in result.flags: |