mirror of
https://github.com/nim-lang/Nim.git
synced 2026-06-07 04:14:19 +00:00
fixes #4145
This commit is contained in:
@@ -570,7 +570,8 @@ proc getTypeDescAux(m: BModule, typ: PType, check: var IntSet): Rope =
|
||||
of tyRange, tyEnum:
|
||||
let t = if t.kind == tyRange: t.lastSon else: t
|
||||
result = getTypeName(t)
|
||||
if isImportedCppType(t): return
|
||||
if isImportedCppType(t) or
|
||||
(sfImportc in t.sym.flags and t.sym.magic == mNone): return
|
||||
idTablePut(m.typeCache, t, result)
|
||||
var size: int
|
||||
if firstOrd(t) < 0:
|
||||
|
||||
Reference in New Issue
Block a user