Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(495)

Unified Diff: test/rules/parameter_assignments.dart

Issue 2403443003: Fix failure when linting getters (issue 27545) (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/src/rules/parameter_assignments.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/rules/parameter_assignments.dart
diff --git a/test/rules/parameter_assignments.dart b/test/rules/parameter_assignments.dart
index c830990ffeb2fe78f7c526f2b689ab0f836c9673..4a95dfbd741c1a001fd5b0506e2fc0096838ae8f 100644
--- a/test/rules/parameter_assignments.dart
+++ b/test/rules/parameter_assignments.dart
@@ -13,7 +13,13 @@ void ok(String parameter) {
}
class A {
- void badFunction(int parameter) { // LINT
+ int get x => 0;
+
+ set x(int value) { // LINT
+ value = 5;
+ }
+
+ void badFunction(int parameter) { // LINT
parameter = 4;
}
« no previous file with comments | « lib/src/rules/parameter_assignments.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698