Index: pkg/front_end/test/fasta/rasta/static.dart |
diff --git a/pkg/front_end/test/fasta/rasta/static.dart b/pkg/front_end/test/fasta/rasta/static.dart |
deleted file mode 100644 |
index a95c6e6369fee243708e9b9e0dbebfa338c25d8d..0000000000000000000000000000000000000000 |
--- a/pkg/front_end/test/fasta/rasta/static.dart |
+++ /dev/null |
@@ -1,88 +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.md file. |
- |
-class Foo { |
- static const staticConstant = 42; |
- static var staticField = 42; |
- static staticFunction() {} |
- |
- static get staticGetter => null; |
- static set staticSetter(_) {} |
-} |
- |
-use(x) { |
- if (x == new DateTime.now().millisecondsSinceEpoch) throw "Shouldn't happen"; |
-} |
- |
-main() { |
- try { |
- Foo.staticConstant; |
- use(Foo.staticConstant); |
- Foo.staticField; |
- use(Foo.staticField); |
- Foo.staticFunction; |
- use(Foo.staticFunction); |
- Foo.staticGetter; |
- use(Foo.staticGetter); |
- Foo.staticSetter; |
- use(Foo.staticSetter); |
- |
- Foo.staticConstant++; |
- use(Foo.staticConstant++); |
- Foo.staticField++; |
- use(Foo.staticField++); |
- Foo.staticFunction++; |
- use(Foo.staticFunction++); |
- Foo.staticGetter++; |
- use(Foo.staticGetter++); |
- Foo.staticSetter++; |
- use(Foo.staticSetter++); |
- |
- ++Foo.staticConstant; |
- use(++Foo.staticConstant); |
- ++Foo.staticField; |
- use(++Foo.staticField); |
- ++Foo.staticFunction; |
- use(++Foo.staticFunction); |
- ++Foo.staticGetter; |
- use(++Foo.staticGetter); |
- ++Foo.staticSetter; |
- use(++Foo.staticSetter); |
- |
- Foo.staticConstant(); |
- use(Foo.staticConstant()); |
- Foo.staticField(); |
- use(Foo.staticField()); |
- Foo.staticFunction(); |
- use(Foo.staticFunction()); |
- Foo.staticGetter(); |
- use(Foo.staticGetter()); |
- Foo.staticSetter(); |
- use(Foo.staticSetter()); |
- |
- Foo.staticConstant = 87; |
- use(Foo.staticConstant = 87); |
- Foo.staticField = 87; |
- use(Foo.staticField = 87); |
- Foo.staticFunction = 87; |
- use(Foo.staticFunction = 87); |
- Foo.staticGetter = 87; |
- use(Foo.staticGetter = 87); |
- Foo.staticSetter = 87; |
- use(Foo.staticSetter = 87); |
- |
- Foo.staticConstant ??= 87; |
- use(Foo.staticConstant ??= 87); |
- Foo.staticField ??= 87; |
- use(Foo.staticField ??= 87); |
- Foo.staticFunction ??= 87; |
- use(Foo.staticFunction ??= 87); |
- Foo.staticGetter ??= 87; |
- use(Foo.staticGetter ??= 87); |
- Foo.staticSetter ??= 87; |
- use(Foo.staticSetter ??= 87); |
- } on NoSuchMethodError { |
- // Expected. |
- } |
-} |