| Index: lib/compiler/implementation/compile_time_constants.dart
|
| diff --git a/lib/compiler/implementation/compile_time_constants.dart b/lib/compiler/implementation/compile_time_constants.dart
|
| index 420ff059152de063042d9edcaa54d96d36c5deb1..87792a842b6d10d6b339d87c06449debb8d094db 100644
|
| --- a/lib/compiler/implementation/compile_time_constants.dart
|
| +++ b/lib/compiler/implementation/compile_time_constants.dart
|
| @@ -987,11 +987,11 @@ class CompileTimeConstantEvaluator extends AbstractVisitor {
|
|
|
| Send send = node.send;
|
| FunctionElement constructor = elements[send];
|
| - ClassElement classElement = constructor.enclosingElement;
|
| + ClassElement classElement = constructor.getEnclosingClass();
|
| if (classElement.isInterface()) {
|
| compiler.resolver.resolveMethodElement(constructor);
|
| constructor = constructor.defaultImplementation;
|
| - classElement = constructor.enclosingElement;
|
| + classElement = constructor.getEnclosingClass();
|
| }
|
|
|
| Selector selector = elements.getSelector(send);
|
| @@ -1126,7 +1126,7 @@ class ConstructorEvaluator extends CompileTimeConstantEvaluator {
|
| if (!foundSuperOrRedirect) {
|
| // No super initializer found. Try to find the default constructor if
|
| // the class is not Object.
|
| - ClassElement enclosingClass = constructor.enclosingElement;
|
| + ClassElement enclosingClass = constructor.getEnclosingClass();
|
| ClassElement superClass = enclosingClass.superclass;
|
| if (enclosingClass != compiler.objectClass) {
|
| assert(superClass !== null);
|
|
|