dart-sdk/pkg/front_end/testcases/duplicated_named_args_3.dart
Paul Berry 70c76a248e Fix parent pointers in the general case of duplicate named args
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>
2017-11-09 00:55:23 +00:00

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() {}