| Index: lib/compiler/implementation/ssa/ssa.dart
|
| diff --git a/lib/compiler/implementation/ssa/ssa.dart b/lib/compiler/implementation/ssa/ssa.dart
|
| index d8e0b6bedc651ce2e0cfa76bdcbe09f7ab3c51fb..cfa5a16b2db9ddf16a6796929c64b4bcb0b864b1 100644
|
| --- a/lib/compiler/implementation/ssa/ssa.dart
|
| +++ b/lib/compiler/implementation/ssa/ssa.dart
|
| @@ -33,13 +33,17 @@ class RuntimeTypeInformation {
|
| ClassElement element = type.element;
|
| StringBuffer buffer = new StringBuffer();
|
| Link<Type> arguments = type.arguments;
|
| - int index = 0;
|
| - element.typeParameters.forEach((name, _) {
|
| - buffer.add("${name.slowToString()}: '${arguments.head}'");
|
| - if (++index < element.typeParameters.length) {
|
| + Link<Type> typeVariables = element.typeVariables;
|
| + while (!typeVariables.isEmpty()) {
|
| + TypeVariableType typeVariable = typeVariables.head;
|
| + // TODO(johnniwinther): Retrieve the type name properly and not through
|
| + // [toString]. Note: Two cases below [typeVariable] and [arguments.head].
|
| + buffer.add("${typeVariable}: '${arguments.head}'");
|
| + typeVariables = typeVariables.tail;
|
| + if (!typeVariables.isEmpty()) {
|
| buffer.add(', ');
|
| }
|
| - });
|
| + }
|
| return "{$buffer}";
|
| }
|
|
|
|
|