| Index: pkg/compiler/lib/src/constants/expressions.dart
|
| diff --git a/pkg/compiler/lib/src/constants/expressions.dart b/pkg/compiler/lib/src/constants/expressions.dart
|
| index 159488ab4364e7bb89b0f9374f5b1b93012736c6..b526071eda96332e9186a19942053abc2968eb34 100644
|
| --- a/pkg/compiler/lib/src/constants/expressions.dart
|
| +++ b/pkg/compiler/lib/src/constants/expressions.dart
|
| @@ -741,8 +741,10 @@ class TypeConstantExpression extends ConstantExpression {
|
| assert(
|
| type.isInterfaceType ||
|
| type.isTypedef ||
|
| - type.isFunctionType ||
|
| - type.isDynamic,
|
| + type.isDynamic ||
|
| + // TODO(johnniwinther): Remove `type.isFunctionType` when
|
| + // [KernelAstAdapter] is removed.
|
| + type.isFunctionType,
|
| "Unexpected type constant type: $type");
|
| }
|
|
|
|
|