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
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
recordkeyword it works as expected.edit: It does work fine if you change
record classtorecord struct