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

Unified Diff: pkg/analyzer/test/src/context/context_test.dart

Issue 2441483002: In DeclarationResolver, handle generic function-typed parameters. (Closed)
Patch Set: Created 4 years, 2 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/generated/declaration_resolver.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/context/context_test.dart
diff --git a/pkg/analyzer/test/src/context/context_test.dart b/pkg/analyzer/test/src/context/context_test.dart
index 4c3ecb872dcdfffb5ad51afaca4a650614089ee7..83de70da6e109140a6e2373f59df78a9d07014d2 100644
--- a/pkg/analyzer/test/src/context/context_test.dart
+++ b/pkg/analyzer/test/src/context/context_test.dart
@@ -2424,6 +2424,9 @@ import 'package:crypto/crypto.dart';
}
void test_resolveCompilationUnit_existingElementModel() {
+ prepareAnalysisContext(new AnalysisOptionsImpl()
+ ..enableGenericMethods = true
+ ..strongMode = true);
Source source = addSource(
'/test.dart',
r'''
@@ -2470,6 +2473,8 @@ class ClassTwo {
void topLevelFunctionWithLocalFunction() {
void localFunction({bool b: false}) {}
}
+
+void functionWithGenericFunctionTypedParam/*<S>*/(/*=T*/ pf/*<T>*/(/*=T*/ e)) {}
''');
context.resolveCompilationUnit2(source, source);
LibraryElement firstElement = context.computeLibraryElement(source);
« no previous file with comments | « pkg/analyzer/lib/src/generated/declaration_resolver.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698