From a6428657e90d68c3993de4fa6ad05c6006378fc3 Mon Sep 17 00:00:00 2001 From: Albert Safin Date: Sat, 31 Aug 2019 09:52:21 +0000 Subject: [PATCH] $typeof(nil) is now "typeof(nil)", not "nil" --- compiler/types.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/types.nim b/compiler/types.nim index 3a5f5fa620..29d880ff69 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",