From d2ac205cfe11d29fdacc449bb7994ea20742750f Mon Sep 17 00:00:00 2001 From: mgravell Date: Mon, 16 Nov 2020 15:46:11 +0000 Subject: [PATCH] explore scenario that currently works re #1571 --- tests/Dapper.Tests/MiscTests.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tests/Dapper.Tests/MiscTests.cs b/tests/Dapper.Tests/MiscTests.cs index ad675c865..ae6eb31a6 100644 --- a/tests/Dapper.Tests/MiscTests.cs +++ b/tests/Dapper.Tests/MiscTests.cs @@ -69,13 +69,16 @@ private struct CarWithAllProps public Car.TrapEnum Trap { get; init; } } - private record PositionalCarRecord(string Name, int Age, Car.TrapEnum Trap); + private record PositionalCarRecord(int Age, Car.TrapEnum Trap, string Name) + { + public PositionalCarRecord() : this(default, default, default) { } + } private record NominalCarRecord { - public string Name { get; init; } public int Age { get; init; } public Car.TrapEnum Trap { get; init; } + public string Name { get; init; } } [Fact]