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

Unified Diff: tests/language_2/class_literal_static_test.dart

Issue 2997723002: Revert "Migrating a block of dart 2:" (Closed)
Patch Set: Created 3 years, 4 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_2/class_keyword_test.dart ('k') | tests/language_2/class_literal_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language_2/class_literal_static_test.dart
diff --git a/tests/language_2/class_literal_static_test.dart b/tests/language_2/class_literal_static_test.dart
deleted file mode 100644
index 8d86d6c0b6488a64db35af19fef78895f10057b1..0000000000000000000000000000000000000000
--- a/tests/language_2/class_literal_static_test.dart
+++ /dev/null
@@ -1,42 +0,0 @@
-// Copyright (c) 2011, 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.
-
-import "package:expect/expect.dart";
-
-// Test class literal expressions.
-
-class Class {
- static fisk() => 42;
-}
-
-foo(x) {}
-
-main() {
- // Verify that dereferencing a class literal is a compile-time error.
- Class(); //# 01: compile-time error
- Class[0]; //# 02: compile-time error
- var x = Class(); //# 03: compile-time error
- var y = Class[0]; //# 04: compile-time error
- var z = Class[0].field; //# 05: compile-time error
- var w = Class[0].method(); //# 06: compile-time error
- foo(Class()); //# 07: compile-time error
- foo(Class[0]); //# 08: compile-time error
- foo(Class[0].field); //# 09: compile-time error
- foo(Class[0].method()); //# 10: compile-time error
- Class[0] = 91; //# 11: compile-time error
- Class++; //# 12: compile-time error
- ++Class; //# 13: compile-time error
- Class[0] += 3; //# 14: compile-time error
- ++Class[0]; //# 15: compile-time error
- Class[0]++; //# 16: compile-time error
- Class.method(); //# 17: compile-time error
- Class.field; //# 18: compile-time error
- var p = Class.method(); //# 19: compile-time error
- var q = Class.field; //# 20: compile-time error
- foo(Class.method()); //# 21: compile-time error
- foo(Class.field); //# 22: compile-time error
- Class / 3; //# 23: compile-time error
- Class += 3; //# 24: compile-time error
- Class.toString(); //# 25: compile-time error
-}
« no previous file with comments | « tests/language_2/class_keyword_test.dart ('k') | tests/language_2/class_literal_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698