diff options
author | Araq <rumpf_a@web.de> | 2017-05-16 20:51:50 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2017-05-16 20:51:50 +0200 |
commit | 0f2648c56dec3681bb6e3b0d53c8a75f901c6b96 (patch) | |
tree | bf5d0761f2e9918e0082a8898624cb760204ec0b /compiler | |
parent | 321d1f8b65c1cb41995ad033ea1a6a11bb22df8d (diff) | |
parent | 0613f08b2461c5ecb64518a65e20c3769938d21e (diff) | |
download | Nim-0f2648c56dec3681bb6e3b0d53c8a75f901c6b96.tar.gz |
Merge branch 'devel' of github.com:nim-lang/Nim into devel
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/vmdeps.nim | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/compiler/vmdeps.nim b/compiler/vmdeps.nim index 8c7388643..b2b1ec92b 100644 --- a/compiler/vmdeps.nim +++ b/compiler/vmdeps.nim @@ -175,7 +175,12 @@ proc mapTypeToAstX(t: PType; info: TLineInfo; result.add mapTypeToAst(t.sons[i], info) else: result = mapTypeToAstX(t.lastSon, info, inst, allowRecursion) - of tyGenericBody, tyOrdinal: + of tyGenericBody: + if inst: + result = mapTypeToAstX(t.lastSon, info, inst, true) + else: + result = mapTypeToAst(t.lastSon, info) + of tyOrdinal: result = mapTypeToAst(t.lastSon, info) of tyDistinct: if inst: |