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

Unified Diff: pkg/analyzer/test/src/dart/analysis/driver_test.dart

Issue 2956923003: Fix for crash because of missing type of default generic 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/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/dart/analysis/driver_test.dart
diff --git a/pkg/analyzer/test/src/dart/analysis/driver_test.dart b/pkg/analyzer/test/src/dart/analysis/driver_test.dart
index 607401ec002dcfebe857d95aebc908383567524f..30c89f5762b536fc79654b89dbf370851631003d 100644
--- a/pkg/analyzer/test/src/dart/analysis/driver_test.dart
+++ b/pkg/analyzer/test/src/dart/analysis/driver_test.dart
@@ -1323,6 +1323,18 @@ class B {}
expect(result.path, testFile);
}
+ test_getResult_genericFunctionType_parameter_named() async {
+ String content = '''
+class C {
+ test({bool Function(String) p}) {}
+}
+''';
+ addTestFile(content, priority: true);
+
+ var result = await driver.getResult(testFile);
+ expect(result.errors, isEmpty);
+ }
+
test_getResult_inferTypes_finalField() async {
addTestFile(
r'''
« 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