You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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.edit: It does work fine if you change
record class
torecord struct
The text was updated successfully, but these errors were encountered: