Index: pkg/kernel/lib/transformations/closure/converter.dart |
diff --git a/pkg/kernel/lib/transformations/closure/converter.dart b/pkg/kernel/lib/transformations/closure/converter.dart |
index b4edd6df9e61333a438ca0c26d84a3f0bd8d9fbf..ecf7efbd8e1c4cf59dfb0a3d6160356678d8f93f 100644 |
--- a/pkg/kernel/lib/transformations/closure/converter.dart |
+++ b/pkg/kernel/lib/transformations/closure/converter.dart |
@@ -416,6 +416,7 @@ class ClosureConverter extends Transformer { |
// We rename the getter to avoid an indirection in most cases. |
Name oldName = node.name; |
node.name = tearOffName; |
+ node.reference.canonicalName.unbind(); |
addGetterForwarder(oldName, node); |
} else if (node.kind == ProcedureKind.Method) { |
addTearOffMethod(tearOffName, node); |