Index: pkg/analyzer/lib/src/fasta/resolution_applier.dart |
diff --git a/pkg/analyzer/lib/src/fasta/resolution_applier.dart b/pkg/analyzer/lib/src/fasta/resolution_applier.dart |
index f6b09e8fcabf4c2da380b8567472d0826da60dc4..3624811ffc8b13a58491e1bbf1402c078eabc927 100644 |
--- a/pkg/analyzer/lib/src/fasta/resolution_applier.dart |
+++ b/pkg/analyzer/lib/src/fasta/resolution_applier.dart |
@@ -44,6 +44,12 @@ class ResolutionApplier extends GeneralizingAstVisitor { |
node.staticType = _getTypeFor(node.methodName); |
} |
+ @override |
+ void visitParenthesizedExpression(ParenthesizedExpression node) { |
+ node.visitChildren(this); |
+ node.staticType = node.expression.staticType; |
+ } |
+ |
@override |
void visitVariableDeclaration(VariableDeclaration node) { |
if (node.parent is VariableDeclarationList && |