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

Unified Diff: pkg/analyzer/test/generated/hint_code_test.dart

Issue 2983293002: Remove toplevel inference restriction hints, and restore as much (Closed)
Patch Set: Keep error filter Created 3 years, 5 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') | pkg/analyzer/test/src/summary/linker_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/test/generated/hint_code_test.dart
diff --git a/pkg/analyzer/test/generated/hint_code_test.dart b/pkg/analyzer/test/generated/hint_code_test.dart
index 7f1f4fc6be3e0dbf4f903c4195de7effc197bea4..0456fede20cc137467816826238bf4319292df5f 100644
--- a/pkg/analyzer/test/generated/hint_code_test.dart
+++ b/pkg/analyzer/test/generated/hint_code_test.dart
@@ -2587,20 +2587,6 @@ main() {
verify([source]);
}
- test_strongMode_topLevelInstanceGetter() async {
- resetWith(options: new AnalysisOptionsImpl()..strongMode = true);
- Source source = addSource(r'''
-class A {
- int get g => 0;
-}
-var a = new A();
-var b = a.g;
-''');
- await computeAnalysisResult(source);
- assertErrors(source, [StrongModeCode.TOP_LEVEL_INSTANCE_GETTER]);
- verify([source]);
- }
-
test_typeCheck_type_is_Null() async {
Source source = addSource(r'''
m(i) {
« no previous file with comments | « pkg/analyzer/lib/src/task/strong_mode.dart ('k') | pkg/analyzer/test/src/summary/linker_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698