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

Unified Diff: lib/ast.dart

Issue 2464843002: Fix some strong mode issues. (Closed)
Patch Set: Revert .analysis_options as there are still strong-mode issues Created 4 years, 1 month 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 | « lib/analyzer/ast_from_analyzer.dart ('k') | lib/checks.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/ast.dart
diff --git a/lib/ast.dart b/lib/ast.dart
index aa2228581e456fe3164b650aeee3e4b5514198d3..c54704711ede799efd11796932e0e1153c8f6daf 100644
--- a/lib/ast.dart
+++ b/lib/ast.dart
@@ -1247,7 +1247,7 @@ abstract class Expression extends TreeNode {
}
var type = getStaticType(types);
while (type is TypeParameterType) {
- type = type.parameter.bound;
+ type = (type as TypeParameterType).parameter.bound;
}
if (type is InterfaceType) {
var upcastType = types.hierarchy.getTypeAsInstanceOf(type, superclass);
« no previous file with comments | « lib/analyzer/ast_from_analyzer.dart ('k') | lib/checks.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698