We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dec3165 commit 0b81facCopy full SHA for 0b81fac
pkg/analyzer/lib/src/dart/resolver/function_expression_resolver.dart
@@ -24,9 +24,7 @@ class FunctionExpressionResolver {
24
25
void resolve(FunctionExpressionImpl node, {required DartType contextType}) {
26
var parent = node.parent;
27
- // Note: `isFunctionDeclaration` must have an explicit type to work around
28
- // https://github.com/dart-lang/language/issues/1785.
29
- bool isFunctionDeclaration = parent is FunctionDeclaration;
+ var isFunctionDeclaration = parent is FunctionDeclaration;
30
var body = node.body;
31
32
if (_resolver.flowAnalysis.flow != null && !isFunctionDeclaration) {
0 commit comments