diff options
author | Albert Safin <xzfcpw@gmail.com> | 2019-08-31 09:52:21 +0000 |
---|---|---|
committer | Albert Safin <xzfcpw@gmail.com> | 2019-08-31 10:16:26 +0000 |
commit | a6428657e90d68c3993de4fa6ad05c6006378fc3 (patch) | |
tree | 311d7e13dac0097ee110433f867a22089930aba1 | |
parent | efe1bed82e8fa9476b4c9ed2a85802f6fb222cc6 (diff) | |
download | Nim-a6428657e90d68c3993de4fa6ad05c6006378fc3.tar.gz |
$typeof(nil) is now "typeof(nil)", not "nil"
-rw-r--r-- | compiler/types.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/types.nim b/compiler/types.nim index 3a5f5fa62..29d880ff6 100644 --- a/compiler/types.nim +++ b/compiler/types.nim @@ -423,7 +423,7 @@ proc rangeToStr(n: PNode): string = const typeToStr: array[TTypeKind, string] = ["None", "bool", "char", "empty", - "Alias", "nil", "untyped", "typed", "typeDesc", + "Alias", "typeof(nil)", "untyped", "typed", "typeDesc", "GenericInvocation", "GenericBody", "GenericInst", "GenericParam", "distinct $1", "enum", "ordinal[$1]", "array[$1, $2]", "object", "tuple", "set[$1]", "range[$1]", "ptr ", "ref ", "var ", "seq[$1]", "proc", |