We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
unnecessary_final
1 parent e43f086 commit f4a5b2dCopy full SHA for f4a5b2d
pkg/linter/test/rules/unnecessary_final_test.dart
@@ -73,6 +73,29 @@ void f() {
73
]);
74
}
75
76
+ test_localVariable_final_wildcard() async {
77
+ await assertDiagnostics(r'''
78
+void f() {
79
+ final _ = '';
80
+}
81
+''', [
82
+ lint(13, 5),
83
+ ]);
84
+ }
85
+
86
+ test_localVariable_final_wildcard_preWildcards() async {
87
88
+// @dart = 3.4
89
+// (pre wildcard-variables)
90
91
92
93
94
95
+ lint(57, 5),
96
97
98
99
test_localVariable_var() async {
100
await assertNoDiagnostics(r'''
101
void f() {
0 commit comments