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

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

Issue 971193003: Don't set a propagate type if the variable has already the same static type. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 10 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/lib/src/generated/resolver.dart
diff --git a/pkg/analyzer/lib/src/generated/resolver.dart b/pkg/analyzer/lib/src/generated/resolver.dart
index 9b9e88dd0c39bf2c46374fc9a53053ac91086483..475c5b09df4550e1dedfc45f3b02fbcf5b5f5a07 100644
--- a/pkg/analyzer/lib/src/generated/resolver.dart
+++ b/pkg/analyzer/lib/src/generated/resolver.dart
@@ -10437,6 +10437,10 @@ class ResolverVisitor extends ScopedVisitor {
}
DartType currentType = _overrideManager.getBestType(element);
+ if (potentialType == currentType) {
+ return;
+ }
+
// If we aren't allowing precision loss then the third and fourth conditions
// check that we aren't losing precision.
//

Powered by Google App Engine
This is Rietveld 408576698