Index: pkg/compiler/lib/src/closure.dart |
diff --git a/pkg/compiler/lib/src/closure.dart b/pkg/compiler/lib/src/closure.dart |
index 70ce85f6951943bf51789b7aef25d904ef9a6025..2d0ee9978392aaab089b9cd05f0a4bf5eb672b49 100644 |
--- a/pkg/compiler/lib/src/closure.dart |
+++ b/pkg/compiler/lib/src/closure.dart |
@@ -185,7 +185,7 @@ class ClosureClassElement extends ClassElementX { |
// By assigning a fresh class-id we make sure that the hashcode |
// is unique, but also emit closure classes after all other |
// classes (since the emitter sorts classes by their id). |
- compiler.getNextFreeClassId(), |
+ compiler.getNextFreeId(), |
STATE_DONE) { |
JavaScriptBackend backend = compiler.backend; |
ClassElement superclass = methodElement.isInstanceMember |