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

Unified Diff: pkg/compiler/lib/src/ssa/builder.dart

Issue 2257813003: Add test case for type with partial parameterization by method type parameter (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 4 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 | « no previous file | tests/language/generic_methods_new_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/ssa/builder.dart
diff --git a/pkg/compiler/lib/src/ssa/builder.dart b/pkg/compiler/lib/src/ssa/builder.dart
index 77025b0cc96e44c2c2224bc462b7a3d62b9d76ad..0be1efb8b9824332d66467b58b758971319c9de0 100644
--- a/pkg/compiler/lib/src/ssa/builder.dart
+++ b/pkg/compiler/lib/src/ssa/builder.dart
@@ -4753,6 +4753,9 @@ class SsaBuilder extends ast.Visitor
HInstruction addTypeVariableReference(TypeVariableType type,
{SourceInformation sourceInformation}) {
assert(assertTypeInContext(type));
+ if (type is MethodTypeVariableType) {
+ return graph.addConstantNull(compiler);
+ }
eernst 2016/08/22 14:58:50 This looked a bit surprising at first, but it ende
Element member = sourceElement;
bool isClosure = member.enclosingElement.isClosure;
if (isClosure) {
« no previous file with comments | « no previous file | tests/language/generic_methods_new_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698