| Index: pkg/compiler/lib/src/ssa/builder_kernel.dart
|
| diff --git a/pkg/compiler/lib/src/ssa/builder_kernel.dart b/pkg/compiler/lib/src/ssa/builder_kernel.dart
|
| index fd1fef4487ba3ad08899e920a1f19222206846ea..a36a7bb0086a20de3720a4ba3fdabace56d79745 100644
|
| --- a/pkg/compiler/lib/src/ssa/builder_kernel.dart
|
| +++ b/pkg/compiler/lib/src/ssa/builder_kernel.dart
|
| @@ -997,8 +997,16 @@ class KernelSsaBuilder extends ir.Visitor with GraphBuilder {
|
| return;
|
| }
|
| if (type is ir.TypeParameterType) {
|
| - // TODO(27394): Load type parameter from current 'this' object.
|
| - defaultExpression(typeLiteral);
|
| + // TODO(sra): Convert the type logic here to use ir.DartType.
|
| + DartType dartType = astAdapter.getDartType(type);
|
| + dartType = localsHandler.substInContext(dartType);
|
| + HInstruction value = typeBuilder.analyzeTypeArgument(
|
| + dartType, sourceElement,
|
| + sourceInformation: null);
|
| + _pushStaticInvocation(astAdapter.runtimeTypeToString,
|
| + <HInstruction>[value], backend.stringType);
|
| + _pushStaticInvocation(astAdapter.createRuntimeType, <HInstruction>[pop()],
|
| + astAdapter.createRuntimeTypeReturnType);
|
| return;
|
| }
|
| // TODO(27394): 'dynamic' and function types observed. Where are they from?
|
|
|