| Index: sdk/lib/_internal/compiler/implementation/compile_time_constants.dart
|
| diff --git a/sdk/lib/_internal/compiler/implementation/compile_time_constants.dart b/sdk/lib/_internal/compiler/implementation/compile_time_constants.dart
|
| index 3505466746b2aef2374d67c6692c7cc33639bbcf..2b7b1ea3da48148309724be678033adb9eb9aa8f 100644
|
| --- a/sdk/lib/_internal/compiler/implementation/compile_time_constants.dart
|
| +++ b/sdk/lib/_internal/compiler/implementation/compile_time_constants.dart
|
| @@ -416,6 +416,12 @@ class CompileTimeConstantEvaluator extends Visitor {
|
| result = compiler.compileVariable(element);
|
| }
|
| if (result != null) return result;
|
| + } else if (Elements.isClass(element) || Elements.isTypedef(element)) {
|
| + DartType type = element.computeType(compiler).asRaw();
|
| + Constant constant =
|
| + new TypeConstant(type, compiler.typeClass.computeType(compiler));
|
| + compiler.constantHandler.registerCompileTimeConstant(constant);
|
| + return constant;
|
| }
|
| return signalNotCompileTimeConstant(send);
|
| } else if (send.isCall) {
|
|
|