| Index: lib/compiler/implementation/ssa/codegen.dart
|
| diff --git a/lib/compiler/implementation/ssa/codegen.dart b/lib/compiler/implementation/ssa/codegen.dart
|
| index f9618acb09f095f284ea38eda5b77116c8318f99..c96933db2c25a0d7bcc6987c5f64957662cec382 100644
|
| --- a/lib/compiler/implementation/ssa/codegen.dart
|
| +++ b/lib/compiler/implementation/ssa/codegen.dart
|
| @@ -2572,16 +2572,17 @@ class SsaCodeGenerator implements HVisitor, HBlockInformationVisitor {
|
| if (compiler.codegenWorld.rti.hasTypeArguments(type)) {
|
| InterfaceType interfaceType = type;
|
| ClassElement cls = type.element;
|
| - Link<Type> arguments = interfaceType.arguments;
|
| + Link<Type> arguments = interfaceType.typeArguments;
|
| buffer.add(' && ');
|
| checkObject(node.typeInfoCall, '===');
|
| - cls.typeParameters.forEach((name, _) {
|
| + for (TypeVariableType typeVariable in cls.typeVariables) {
|
| buffer.add(' && ');
|
| beginExpression(JSPrecedence.LOGICAL_AND_PRECEDENCE);
|
| use(node.typeInfoCall, JSPrecedence.EQUALITY_PRECEDENCE);
|
| - buffer.add(".${name.slowToString()} === '${arguments.head}'");
|
| + buffer.add(
|
| + ".${typeVariable} === '${arguments.head}'");
|
| endExpression(JSPrecedence.LOGICAL_AND_PRECEDENCE);
|
| - });
|
| + }
|
| }
|
| if (node.nullOk) {
|
| expectedPrecedence = oldPrecedence;
|
|
|