| Index: pkg/compiler/lib/src/resolution/resolution.dart
|
| diff --git a/pkg/compiler/lib/src/resolution/resolution.dart b/pkg/compiler/lib/src/resolution/resolution.dart
|
| index b844779104f284bc83e800cca59af1db8162669c..3459bb74190c5eb705ef0aab2476c77529bd7df4 100644
|
| --- a/pkg/compiler/lib/src/resolution/resolution.dart
|
| +++ b/pkg/compiler/lib/src/resolution/resolution.dart
|
| @@ -1083,8 +1083,8 @@ class ResolverTask extends CompilerTask {
|
| switch (constant.kind) {
|
| case ConstantExpressionKind.CONSTRUCTED:
|
| ConstructedConstantExpression constructedConstant = constant;
|
| - if (constructedConstant.type.isGeneric &&
|
| - !constructedConstant.type.isRaw) {
|
| + ResolutionInterfaceType type = constructedConstant.type;
|
| + if (type.isGeneric && !type.isRaw) {
|
| // Const constructor calls cannot have type arguments.
|
| // TODO(24312): Remove this.
|
| reporter.reportErrorMessage(
|
| @@ -1092,7 +1092,7 @@ class ResolverTask extends CompilerTask {
|
| constant = new ErroneousConstantExpression();
|
| }
|
| break;
|
| - case ConstantExpressionKind.VARIABLE:
|
| + case ConstantExpressionKind.FIELD:
|
| case ConstantExpressionKind.ERRONEOUS:
|
| break;
|
| default:
|
|
|