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

Unified Diff: pkg/analyzer/test/generated/type_system_test.dart

Issue 2456803004: fixes #27586, prefer context type in generic inference (Closed)
Patch Set: more tweaks Created 4 years, 1 month 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
Index: pkg/analyzer/test/generated/type_system_test.dart
diff --git a/pkg/analyzer/test/generated/type_system_test.dart b/pkg/analyzer/test/generated/type_system_test.dart
index 6aa2ad152ee9a8bd88438adcae751e4ab20ea842..c8d80700a5f7a2ab0b4971555cb2a9c699be1b00 100644
--- a/pkg/analyzer/test/generated/type_system_test.dart
+++ b/pkg/analyzer/test/generated/type_system_test.dart
@@ -1124,10 +1124,10 @@ class StrongGenericFunctionInferenceTest {
List<DartType> _inferCall(FunctionTypeImpl ft, List<DartType> arguments,
[DartType returnType]) {
- FunctionType inferred = typeSystem.inferGenericFunctionCall(
+ FunctionType inferred = typeSystem.inferGenericFunctionOrType(
typeProvider,
ft,
- ft.parameters.map((p) => p.type).toList(),
+ ft.parameters,
arguments,
ft.returnType,
returnType);

Powered by Google App Engine
This is Rietveld 408576698