blob: c74229c06d0d6152b32ca057b1279971065e7cb7 [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 file.
main.dart.patch: |
// Test that an instance tear-off with named parameters can be called
class C {
foo({a, named: 'v1', x}) {
var closure;
main() {
if (closure == null) {
print('closure is null');
closure = new C().foo;
<<<< ["closure is null","v1"]
==== "v2"
closure(named: 'v2');