summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlbert Safin <xzfcpw@gmail.com>2019-08-31 09:52:21 +0000
committerAlbert Safin <xzfcpw@gmail.com>2019-08-31 10:16:26 +0000
commita6428657e90d68c3993de4fa6ad05c6006378fc3 (patch)
tree311d7e13dac0097ee110433f867a22089930aba1
parentefe1bed82e8fa9476b4c9ed2a85802f6fb222cc6 (diff)
downloadNim-a6428657e90d68c3993de4fa6ad05c6006378fc3.tar.gz
$typeof(nil) is now "typeof(nil)", not "nil"
-rw-r--r--compiler/types.nim2
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",