diff options
author | Araq <rumpf_a@web.de> | 2017-10-24 09:16:53 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2017-10-25 17:37:03 +0200 |
commit | 5258447e01e7b02d6a16b7203eb01a0199c9b335 (patch) | |
tree | c1e053bbbfa726d35c5c89985c38d528515cdb8f /compiler | |
parent | 9df766491d35e0c450f5f06c388d9f2ec48a41bf (diff) | |
download | Nim-5258447e01e7b02d6a16b7203eb01a0199c9b335.tar.gz |
concepts: make codegen aware of 'tyInferred'
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/ccgtrav.nim | 2 | ||||
-rw-r--r-- | compiler/ccgtypes.nim | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/compiler/ccgtrav.nim b/compiler/ccgtrav.nim index 4215a84b1..7a2e221ee 100644 --- a/compiler/ccgtrav.nim +++ b/compiler/ccgtrav.nim @@ -66,7 +66,7 @@ proc genTraverseProc(c: var TTraversalClosure, accessor: Rope, typ: PType) = var p = c.p case typ.kind - of tyGenericInst, tyGenericBody, tyTypeDesc, tyAlias, tyDistinct: + of tyGenericInst, tyGenericBody, tyTypeDesc, tyAlias, tyDistinct, tyInferred: genTraverseProc(c, accessor, lastSon(typ)) of tyArray: let arraySize = lengthOrd(typ.sons[0]) diff --git a/compiler/ccgtypes.nim b/compiler/ccgtypes.nim index 4c85294b2..80383ea84 100644 --- a/compiler/ccgtypes.nim +++ b/compiler/ccgtypes.nim @@ -119,7 +119,7 @@ proc scopeMangledParam(p: BProc; param: PSym) = const irrelevantForBackend = {tyGenericBody, tyGenericInst, tyGenericInvocation, - tyDistinct, tyRange, tyStatic, tyAlias} + tyDistinct, tyRange, tyStatic, tyAlias, tyInferred} proc typeName(typ: PType): Rope = let typ = typ.skipTypes(irrelevantForBackend) |