diff options
-rw-r--r-- | compiler/types.nim | 2 | ||||
-rw-r--r-- | 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)] ''' """ |