-
Notifications
You must be signed in to change notification settings - Fork 18
Open
replaysMike/TypeSupport
#24Description
Diff hangs when using records. This leads to a nearly infinite loop. After 25 seconds, it prints that there are 21460 differences. If I remove the record
keyword it works as expected.
using AnyDiff;
record class Cat(string name, bool claws, int age);
Cat black = new Cat("Whiskers", true, 3);
Cat calico= new Cat("Whiskers", true, 3);
var diff2 = AnyDiff.AnyDiff.Diff(black, calico);
Console.WriteLine(diff2.Count);
edit: It does work fine if you change record class
to record struct
sommmen
Metadata
Metadata
Assignees
Labels
No labels