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

Unified Diff: dart/sdk/lib/_internal/compiler/samples/constants/sample_input.dart

Issue 257863002: Prototype API for accessing AST nodes. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 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
Index: dart/sdk/lib/_internal/compiler/samples/constants/sample_input.dart
diff --git a/dart/tests/language/check_member_static_test.dart b/dart/sdk/lib/_internal/compiler/samples/constants/sample_input.dart
similarity index 55%
copy from dart/tests/language/check_member_static_test.dart
copy to dart/sdk/lib/_internal/compiler/samples/constants/sample_input.dart
index e66c37da0bfd939d4a2c57a2aa3e80e314249be8..54f53fd74752620babc44e40ae2409bb1b2e82f7 100644
--- a/dart/tests/language/check_member_static_test.dart
+++ b/dart/sdk/lib/_internal/compiler/samples/constants/sample_input.dart
@@ -2,20 +2,15 @@
// 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 A {
- static var a;
- var b;
+@Fisk()
+class Fisk {
+ const Fisk();
}
-class B extends A {
+const toplevel = const Fisk();
+methodWithNamedArguments({foo, bar: const Fisk()}) {
}
-class C extends B {
- var a; /// 01: static type warning
- static var b; /// 02: compile-time error
+methodWithOptionalArguments([foo, bar = const Fisk()]) {
}
-
-void main() {
- new C();
-}

Powered by Google App Engine
This is Rietveld 408576698