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