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

Unified Diff: pkg/analyzer/lib/src/generated/resolver.dart

Issue 2662973005: Suppress NO_DEFAULT_BOUND errors. (Closed)
Patch Set: Created 3 years, 11 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 | « no previous file | pkg/analyzer/lib/src/generated/type_system.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/generated/resolver.dart
diff --git a/pkg/analyzer/lib/src/generated/resolver.dart b/pkg/analyzer/lib/src/generated/resolver.dart
index 6287f80eda76cd463a4b9d1f5ebe9d307fe27100..263fd35063b04a1ed60ec47ee276e4ae708eb81e 100644
--- a/pkg/analyzer/lib/src/generated/resolver.dart
+++ b/pkg/analyzer/lib/src/generated/resolver.dart
@@ -8371,12 +8371,7 @@ class TypeNameResolver {
}
type = typeSystem.instantiateType(type, typeArguments);
} else {
- List<bool> hasError = [false];
- type = typeSystem.instantiateToBounds(type, hasError: hasError);
- if (hasError[0]) {
- errorListener.onError(new AnalysisError(source, node.offset,
- node.length, StrongModeCode.NO_DEFAULT_BOUNDS));
- }
+ type = typeSystem.instantiateToBounds(type);
}
typeName.staticType = type;
node.type = type;
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/generated/type_system.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698