diff --git a/tests/constructors/t5965_1.nim b/tests/constructors/t5965_1.nim index b4f496941f..374b7aa0d7 100644 --- a/tests/constructors/t5965_1.nim +++ b/tests/constructors/t5965_1.nim @@ -1,3 +1,9 @@ +discard """ + errormsg: "When mixing named fields and unnamed fields, every field needs to be initialized in order" + file: "t5965_1.nim" + line: 10 +""" + type Foo = object a, b, c: int diff --git a/tests/constructors/t5965_2.nim b/tests/constructors/t5965_2.nim index e04f1b7157..6627cfeafb 100644 --- a/tests/constructors/t5965_2.nim +++ b/tests/constructors/t5965_2.nim @@ -1,5 +1,5 @@ discard """ - errormsg: "incorrect object construction syntax" + errormsg: "The object construction is given more fields than required" file: "t5965_2.nim" line: 10 """