Skip to content

Commit

Permalink
Fix incorrect test comments in avoid_final_with_getter_test.dart
Browse files Browse the repository at this point in the history
  • Loading branch information
4akloon committed Apr 18, 2024
1 parent 8ca5222 commit 429fa30
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lint_test/avoid_final_with_getter_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,13 @@ class Fail {
class Skipped {
final int _myField = 0;

int get myField => _myField + 1;
int get myField => _myField + 1; // it is not a getter for the field
}

class Skipped2 {
final int _myField = 0;

int get myFieldInt => _myField; // it is not a getter for the field too
}

class Good {
Expand Down

0 comments on commit 429fa30

Please sign in to comment.