Index: sdk/lib/_internal/pub/lib/src/dart.dart |
diff --git a/sdk/lib/_internal/pub/lib/src/dart.dart b/sdk/lib/_internal/pub/lib/src/dart.dart |
index c912fab983dc626c2983f9454583279901009dc8..ce4d59d50873eae05f9839e2eeb583393b0ff59c 100644 |
--- a/sdk/lib/_internal/pub/lib/src/dart.dart |
+++ b/sdk/lib/_internal/pub/lib/src/dart.dart |
@@ -66,6 +66,6 @@ bool isEntrypoint(CompilationUnit dart) { |
// but it parts in another file that does. |
return dart.declarations.any((node) { |
return node is FunctionDeclaration && node.name.name == "main" && |
- node.functionExpression.parameters.elements.isEmpty; |
+ node.functionExpression.parameters.parameters.isEmpty; |
}); |
} |