| Index: lib/compiler/implementation/enqueue.dart
|
| diff --git a/lib/compiler/implementation/enqueue.dart b/lib/compiler/implementation/enqueue.dart
|
| index d1449cd9a29ce3fbc7bff8068ff15a644acf6d80..72122b389384d58940b7b78f0c35f93fc8afa006 100644
|
| --- a/lib/compiler/implementation/enqueue.dart
|
| +++ b/lib/compiler/implementation/enqueue.dart
|
| @@ -128,8 +128,8 @@ class Enqueuer {
|
|
|
| queue.add(new WorkItem(element, elements, itemCompilationContextCreator()));
|
|
|
| - // Enable runtime type support if we discover a method called runtimeType.
|
| - if (element.isFunction() && element.name == Compiler.RUNTIME_TYPE) {
|
| + // Enable runtime type support if we discover a getter called runtimeType.
|
| + if (element.isGetter() && element.name == Compiler.RUNTIME_TYPE) {
|
| compiler.enabledRuntimeType = true;
|
| }
|
|
|
|
|