blob: c5130432e2e4d5b48a78c9e194533135c0d992df [file] [log] [blame]
# Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file
# for details. All rights reserved. Use of this source code is governed by a
# BSD-style license that can be found in the LICENSE file.
main.dart.patch: |
// Test that we can introduce a change that causes a method used as tear-off
// to be recompiled.
class A {
m() => print("v1");
}
class B extends A {
<<<< ["closure is null","v1"]
==== []
m() => null;
>>>>
}
var closure;
main() {
if (closure == null) {
print('closure is null');
closure = new B().m;
closure();
}
}