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

Unified Diff: pkg/compiler/lib/src/universe/resolution_world_builder.dart

Issue 2850143002: Reuse RuntimeTypesNeedBuilderImpl and _RuntimeTypesNeed for kernel based elements (Closed)
Patch Set: Fix comment Created 3 years, 8 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
Index: pkg/compiler/lib/src/universe/resolution_world_builder.dart
diff --git a/pkg/compiler/lib/src/universe/resolution_world_builder.dart b/pkg/compiler/lib/src/universe/resolution_world_builder.dart
index a5ace63770a68794d925960c51e752aa314e9b63..afd379a1e39634d971371335fad601edc8aa3bfc 100644
--- a/pkg/compiler/lib/src/universe/resolution_world_builder.dart
+++ b/pkg/compiler/lib/src/universe/resolution_world_builder.dart
@@ -712,7 +712,7 @@ abstract class ResolutionWorldBuilderBase
}
if (member.isFunction &&
member.name == Identifiers.call &&
- _elementEnvironment.getThisType(cls).typeArguments.isNotEmpty) {
+ _elementEnvironment.isGenericClass(cls)) {
closurizedMembersWithFreeTypeVariables.add(member);
}

Powered by Google App Engine
This is Rietveld 408576698