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

Unified Diff: pkg/analyzer/test/src/summary/resynthesize_common.dart

Issue 2947703002: Fix ParameterElementImpl.hasImplicitType for function-typed parameters. (Closed)
Patch Set: Created 3 years, 6 months 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 | « pkg/analyzer/lib/src/dart/element/element.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/test/src/summary/resynthesize_common.dart
diff --git a/pkg/analyzer/test/src/summary/resynthesize_common.dart b/pkg/analyzer/test/src/summary/resynthesize_common.dart
index 42025c213361651c2de80972b2b0d5bad55b8057..ef645ecd62e596dafd98ed5b638a9c7286262c23 100644
--- a/pkg/analyzer/test/src/summary/resynthesize_common.dart
+++ b/pkg/analyzer/test/src/summary/resynthesize_common.dart
@@ -8417,6 +8417,14 @@ void f<T, U>((U) → T x) {}
}
}
+ test_function_typed_parameter_implicit() {
+ var library = checkLibrary('f(g()) => null;');
+ expect(
+ library
+ .definingCompilationUnit.functions[0].parameters[0].hasImplicitType,
+ isFalse);
+ }
+
test_functions() {
var library = checkLibrary('f() {} g() {}');
if (isStrongMode) {
« no previous file with comments | « pkg/analyzer/lib/src/dart/element/element.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698