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

Unified Diff: tests/language_strong/bad_constructor_test.dart

Issue 2990933002: Migrate block 43. (Closed)
Patch Set: Update tests and status file. Created 3 years, 5 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/language_2.status ('k') | tests/language_strong/bad_initializer1_negative_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language_strong/bad_constructor_test.dart
diff --git a/tests/language_strong/bad_constructor_test.dart b/tests/language_strong/bad_constructor_test.dart
deleted file mode 100644
index 31f7ef97110a7935d5d81a80bec38bf559a6525c..0000000000000000000000000000000000000000
--- a/tests/language_strong/bad_constructor_test.dart
+++ /dev/null
@@ -1,28 +0,0 @@
-// Copyright (c) 2012, 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.
-
-class A {
- // Constructor may not be static.
- static A(); // //# 00: compile-time error
-
- // Factory may not be static.
- static factory A() { return null; } // //# 01: compile-time error
-
- // Named constructor may not conflict with names of methods and fields.
- var m;
- A.m() { m = 0; } // //# 04: compile-time error
-
- set q(var value) {
- m = q;
- } // No name conflict with q=.
- // The runtime error occurs because main calls new A() instead of new A.q().
- A.q(); // //# 05: runtime error
-
- A.foo() : m = 0; // //# 06: compile-time error
- int foo(int a, int b) => a + b * m;
-}
-
-main() {
- new A();
-}
« no previous file with comments | « tests/language_2/language_2.status ('k') | tests/language_strong/bad_initializer1_negative_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698