blob: ff69c99eb27f32cc17b261288a0e1cc6759d8079 [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.md file.
main.dart.patch: |
// Test that deleting an instance method with optional parameters works, even if
// stored in a tear-off
class C {
<<<< ["closure is null","v1","v1"]
m([a = "a"]) {
print('v1');
}
==== {"messages":[],"hasCompileTimeError":1}
>>>>
}
var closure;
main() {
if (closure == null) {
print('closure is null');
closure = new C().m;
}
closure();
closure("b");
}