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

Unified Diff: test/rules/type_annotate_public_apis.dart

Issue 1496603002: Fix NSME in `type_annotate_public_apis` (#151). (Closed) Base URL: https://github.com/dart-lang/linter.git@master
Patch Set: Created 5 years 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/type_annotate_public_apis.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/rules/type_annotate_public_apis.dart
diff --git a/test/rules/type_annotate_public_apis.dart b/test/rules/type_annotate_public_apis.dart
index c0c450b5a05a3449d3986e59d3c00200547338ad..e4bb2375f86f80c021f22843b02351c348e9cdff 100644
--- a/test/rules/type_annotate_public_apis.dart
+++ b/test/rules/type_annotate_public_apis.dart
@@ -12,6 +12,14 @@ typedef Foo(x); //LINT
typedef void Bar(int x);
+int get xxx => 42; //OK: #151
+
+get xxxx => 42; //LINT
+
+set x(x) { } //LINT
+
+set xx(int x) { } //OK
+
_f() {}
const _X = '';
@@ -22,6 +30,14 @@ class A {
static const y = ''; //LINT
static final z = 3; //LINT
+ int get xxx => 42; //OK: #151
+
+ set xxxxx(x) { } //LINT
+
+ set xx(int x) { } //OK
+
+ get xxxx => 42; //LINT
+
var zzz, //LINT
_zzz;
« no previous file with comments | « lib/src/rules/type_annotate_public_apis.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698