Skip to content

Commit

Permalink
More tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vova-beloded-solid committed Nov 15, 2023
1 parent 84a84df commit ee44662
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lint_test/no_magic_number_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ void fun() {
// Allowed in indexed expression
final result = list[1];

// Allowed in DateTime because it doesn't have cons constructor
// Allowed in DateTime because it doesn't have const constructor
final apocalypse = DateTime(2012, 12, 21);
}

Expand All @@ -75,3 +75,7 @@ class DefaultValues {

void methodWithPositionalParam([int value = 5]) {}
}

void topLevelFunctionWithDefaultParam({int value = 6}) {
({int value = 7}) {};
}

0 comments on commit ee44662

Please sign in to comment.