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

Unified Diff: pkg/analyzer/test/src/summary/top_level_inference_test.dart

Issue 2828573002: Fix for instance fields inference when a setter has no parameter. (Closed)
Patch Set: Created 3 years, 8 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 | « pkg/analyzer/lib/src/task/strong_mode.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/test/src/summary/top_level_inference_test.dart
diff --git a/pkg/analyzer/test/src/summary/top_level_inference_test.dart b/pkg/analyzer/test/src/summary/top_level_inference_test.dart
index 9ed86a7d18cfa62e0bfb0cd6da5a2a7e87390e77..9ae0ad563ca290b6e8eeab521c1e1a6e84bc8da0 100644
--- a/pkg/analyzer/test/src/summary/top_level_inference_test.dart
+++ b/pkg/analyzer/test/src/summary/top_level_inference_test.dart
@@ -1450,6 +1450,27 @@ Null V;
''');
}
+ test_instanceField_error_noSetterParameter() async {
+ var library = await _encodeDecodeLibrary(r'''
+abstract class A {
+ int x;
+}
+class B implements A {
+ set x() {}
+}
+''');
+ checkElementText(
+ library,
+ r'''
+abstract class A {
+ int x;
+}
+class B implements A {
+ void set x() {}
+}
+''');
+ }
+
test_instanceField_fieldFormal() async {
var library = await _encodeDecodeLibrary(r'''
class A {
« no previous file with comments | « pkg/analyzer/lib/src/task/strong_mode.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698