From 4ed7507cb2320aecbe10c753ee9b80e81b87211d Mon Sep 17 00:00:00 2001 From: Araq Date: Fri, 8 Feb 2019 12:11:40 +0100 Subject: [PATCH] error messages can have spaces, don't be dyslexic --- compiler/types.nim | 2 +- tests/errmsgs/t8794.nim | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler/types.nim b/compiler/types.nim index 1d6e71f14..23902459e 100644 --- a/compiler/types.nim +++ b/compiler/types.nim @@ -124,7 +124,7 @@ proc getProcHeader*(conf: ConfigRef; sym: PSym; prefer: TPreferedDesc = preferNa add(result, ')') if n.sons[0].typ != nil: result.add(": " & typeToString(n.sons[0].typ, prefer)) - result.add "[declared in " + result.add " [declared in " result.add(conf$sym.info) result.add "]" diff --git a/tests/errmsgs/t8794.nim b/tests/errmsgs/t8794.nim index 7f16a42fe..22e4014f1 100644 --- a/tests/errmsgs/t8794.nim +++ b/tests/errmsgs/t8794.nim @@ -2,7 +2,7 @@ discard """ cmd: "nim check $options $file" errormsg: "" nimout: ''' -t8794.nim(39, 27) Error: undeclared field: 'a3' for type m8794.Foo3[declared in m8794.nim(1, 6)] +t8794.nim(39, 27) Error: undeclared field: 'a3' for type m8794.Foo3 [declared in m8794.nim(1, 6)] ''' """