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

Unified Diff: pkg/analyzer/test/src/task/strong/inferred_type_test.dart

Issue 2781443003: Fix #28120, strong mode allows field overrides (Closed)
Patch Set: fix Created 3 years, 9 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
Index: pkg/analyzer/test/src/task/strong/inferred_type_test.dart
diff --git a/pkg/analyzer/test/src/task/strong/inferred_type_test.dart b/pkg/analyzer/test/src/task/strong/inferred_type_test.dart
index 67f38510f4682cc1d1fb315d008cd45f5e71556c..67768780f1a64a26bd0e9610e8b2171fa5249758 100644
--- a/pkg/analyzer/test/src/task/strong/inferred_type_test.dart
+++ b/pkg/analyzer/test/src/task/strong/inferred_type_test.dart
@@ -3285,7 +3285,7 @@ main() {
test_inferParameterType_setter_fromField() async {
var mainUnit = await checkFileElement('''
class C extends D {
- /*error:INVALID_FIELD_OVERRIDE*/set foo(x) {}
+ set foo(x) {}
}
class D {
int foo;
@@ -3705,7 +3705,7 @@ class A {
}
class B extends A {
- /*error:INVALID_FIELD_OVERRIDE*/get x => 3;
+ get x => 3;
}
foo() {
@@ -3845,7 +3845,7 @@ class A<T> {
class B<E> extends A<E> {
E y;
- /*error:INVALID_FIELD_OVERRIDE*/get x => y;
+ get x => y;
}
foo() {
« no previous file with comments | « pkg/analyzer/test/src/task/strong/checker_test.dart ('k') | pkg/dev_compiler/lib/src/compiler/class_property_model.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698