Skip to content

Commit

Permalink
explore scenario that currently works re #1571
Browse files Browse the repository at this point in the history
  • Loading branch information
mgravell committed Nov 16, 2020
1 parent 8a14c5e commit d2ac205
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/Dapper.Tests/MiscTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit d2ac205

Please sign in to comment.