Index: pkg/analyzer/lib/src/task/strong/checker.dart |
diff --git a/pkg/analyzer/lib/src/task/strong/checker.dart b/pkg/analyzer/lib/src/task/strong/checker.dart |
index b32ff6e515e26aa2b913ea66939586deaee448f5..453f14c142aa2a0dc6841c0ec27e7f1f91175fd6 100644 |
--- a/pkg/analyzer/lib/src/task/strong/checker.dart |
+++ b/pkg/analyzer/lib/src/task/strong/checker.dart |
@@ -1088,7 +1088,7 @@ class CodeChecker extends RecursiveAstVisitor { |
downCastComposite = |
typeArgs.isEmpty || typeArgs.any((t) => t.isDynamic); |
} else { |
- downCastComposite = true; |
+ downCastComposite = !from.isDynamic; |
} |
} |