mirror of
https://github.com/dart-lang/sdk
synced 2024-10-14 07:31:43 +00:00
70c76a248e
Note: there special case code to check for duplicate named args when exactly two named arguments are given. The special case code already works; this CL fixes the general case. Change-Id: I36ad6eff8f4377b15a4730a0e35c109605f2b763 Reviewed-on: https://dart-review.googlesource.com/19404 Reviewed-by: Konstantin Shcheglov <scheglov@google.com> Commit-Queue: Paul Berry <paulberry@google.com>
17 lines
350 B
Dart
17 lines
350 B
Dart
// 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.
|
|
|
|
/*@testedFeatures=checks*/
|
|
library test;
|
|
|
|
class C {
|
|
static m({int a: 0}) {}
|
|
}
|
|
|
|
void test() {
|
|
C.m(a: 1, a: 2, a: 3);
|
|
}
|
|
|
|
main() {}
|