Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(125)

Side by Side Diff: testcases/input/named_parameters.dart

Issue 2502343002: Store named parameters in sorted lists instead of using maps. (Closed)
Patch Set: Add testcase Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file.
4 class Superclass {
5 foo({alpha, beta}) {}
6 bar({beta, alpha}) {}
7 }
8
9 class Subclass extends Superclass {
10 foo({beta, alpha}) {}
11 bar({alpha, beta}) {}
12 }
13
14 topLevelNamed(beta, alpha, {gamma, delta}) {}
15 topLevelOptional(beta, alpha, [gamma, delta]) {}
16
17 main() {
18 new Subclass().foo(beta: 1, alpha: 2);
19 new Subclass().foo(alpha: 1, beta: 2);
20 topLevelNamed(1, 2, gamma: 3, delta: 4);
21 topLevelNamed(1, 2, delta: 3, gamma: 4);
22 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698