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

Unified Diff: tests/language/parameter_metadata_test.dart

Issue 296463003: Handle metadata on nested function parameters. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated cf. comment. Created 6 years, 7 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 | « tests/language/metadata_self_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/parameter_metadata_test.dart
diff --git a/tests/language/parameter_metadata_test.dart b/tests/language/parameter_metadata_test.dart
new file mode 100644
index 0000000000000000000000000000000000000000..3f256900696d9920df3f13fbfc8ebd3be5687757
--- /dev/null
+++ b/tests/language/parameter_metadata_test.dart
@@ -0,0 +1,19 @@
+// Copyright (c) 2014, 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.
+
+// Test that metadata annotations can be handled on nested parameters.
+
+test(
+ @deprecated /// 01: ok
+ f(
+ @deprecated /// 02: ok
+ a,
+ @deprecated /// 03: ok
+ g(
+ @deprecated /// 04: ok
+ b))) {}
+
+main() {
+ test(null);
+}
« no previous file with comments | « tests/language/metadata_self_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698