diff options
author | flywind <xzsflywind@gmail.com> | 2021-04-01 14:49:10 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-01 08:49:10 +0200 |
commit | f3c504e49a4e24b7fbdcd5c8eec786fa86616233 (patch) | |
tree | b3bf92c3f57ee0f15e85a68fdea470fda72ce7f1 /compiler | |
parent | a31e601550cc6f9fd9e09b385bfbd869a408cd4b (diff) | |
download | Nim-f3c504e49a4e24b7fbdcd5c8eec786fa86616233.tar.gz |
a bit better message (#17606)
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/ccgtypes.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/ccgtypes.nim b/compiler/ccgtypes.nim index 761fd5bf8..9d95e3f67 100644 --- a/compiler/ccgtypes.nim +++ b/compiler/ccgtypes.nim @@ -194,8 +194,8 @@ proc mapType(conf: ConfigRef; typ: PType; kind: TSymKind): TCTypeKind = result = TCTypeKind(ord(typ.kind) - ord(tyInt) + ord(ctInt)) of tyStatic: if typ.n != nil: result = mapType(conf, lastSon typ, kind) - else: doAssert(false, "mapType") - else: doAssert(false, "mapType") + else: doAssert(false, "mapType: " & $typ.kind) + else: doAssert(false, "mapType: " & $typ.kind) proc mapReturnType(conf: ConfigRef; typ: PType): TCTypeKind = #if skipTypes(typ, typedescInst).kind == tyArray: result = ctPtr |