blob: ff2aae404fe410ef6f0ce0d5d958649e02cd05cd [file] [log] [blame]
// Copyright (c) 2022, 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.
// @dart=2.16
var c = new C();
var z = 42;
class C {
void instance1({z}) {}
void instance2(a, {z}) {}
}
main() {}
class Bad {
method() {
c.instance1(z:z,,);
c.instance2(z:z,,);
}
}