Skip to content

Commit 0a73d1c

Browse files
committed
fix: handle super fields in copyWith, toString, == and hashCode correctly
1 parent f2c7724 commit 0a73d1c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/freezed/lib/src/models.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1335,7 +1335,8 @@ To fix, either:
13351335
) {
13361336
for (final unit in units) {
13371337
for (final declaration in unit.declarations) {
1338-
if (declaration is ClassDeclaration && declaration.name.lexeme == name) {
1338+
if (declaration is ClassDeclaration &&
1339+
declaration.name.lexeme == name) {
13391340
return declaration;
13401341
}
13411342
}

0 commit comments

Comments
 (0)