| Index: sdk/lib/_internal/compiler/implementation/ir/const_expression.dart
|
| diff --git a/sdk/lib/_internal/compiler/implementation/ir/const_expression.dart b/sdk/lib/_internal/compiler/implementation/ir/const_expression.dart
|
| index b375517d02f7cab8e2a5ef6d9b356fc749423b5d..f451e0f785f6d1322702e4fcc0c622940340328b 100644
|
| --- a/sdk/lib/_internal/compiler/implementation/ir/const_expression.dart
|
| +++ b/sdk/lib/_internal/compiler/implementation/ir/const_expression.dart
|
| @@ -90,9 +90,12 @@ class SymbolConstExp extends ConstExp {
|
|
|
| /// Type literal.
|
| class TypeConstExp extends ConstExp {
|
| - final TypeDeclarationElement element;
|
| + /// Either [DynamicType] or a raw [GenericType].
|
| + final DartType type;
|
|
|
| - TypeConstExp(this.element);
|
| + TypeConstExp(this.type) {
|
| + assert(type is GenericType || type is DynamicType);
|
| + }
|
|
|
| accept(ConstExpVisitor visitor) => visitor.visitType(this);
|
| }
|
|
|