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

Unified Diff: pkg/kernel/testcases/input/named_parameters.dart

Issue 2825063002: Move kernel baseline tests to front_end. (Closed)
Patch Set: Created 3 years, 8 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/kernel/testcases/input/micro.dart ('k') | pkg/kernel/testcases/input/null_aware.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/kernel/testcases/input/named_parameters.dart
diff --git a/pkg/kernel/testcases/input/named_parameters.dart b/pkg/kernel/testcases/input/named_parameters.dart
deleted file mode 100644
index edf1f1dc4f7a2cf3dc3b9eff4173445dda7af3cb..0000000000000000000000000000000000000000
--- a/pkg/kernel/testcases/input/named_parameters.dart
+++ /dev/null
@@ -1,29 +0,0 @@
-// Copyright (c) 2016, 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.
-class Superclass {
- foo({alpha, beta}) {}
- bar({beta, alpha}) {}
-
- namedCallback(callback({String alpha, int beta})) {
- callback(alpha: 'one', beta: 2);
- callback(beta: 1, alpha: 'two');
- }
-}
-
-class Subclass extends Superclass {
- foo({beta, alpha}) {}
- bar({alpha, beta}) {}
-
- namedCallback(callback({int beta, String alpha})) {}
-}
-
-topLevelNamed(beta, alpha, {gamma, delta}) {}
-topLevelOptional(beta, alpha, [gamma, delta]) {}
-
-main() {
- new Subclass().foo(beta: 1, alpha: 2);
- new Subclass().foo(alpha: 1, beta: 2);
- topLevelNamed(1, 2, gamma: 3, delta: 4);
- topLevelNamed(1, 2, delta: 3, gamma: 4);
-}
« no previous file with comments | « pkg/kernel/testcases/input/micro.dart ('k') | pkg/kernel/testcases/input/null_aware.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698