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

Unified Diff: tests/language/const_factory_with_body_test.dart

Issue 23519005: Change test language/const_factory_negative_test.dart into a multi-test (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Addressed review comments Created 7 years, 3 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/const_factory_negative_test.dart ('k') | tests/language/language_dart2js.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/const_factory_with_body_test.dart
diff --git a/tests/language/getter_declaration_negative_test.dart b/tests/language/const_factory_with_body_test.dart
similarity index 50%
copy from tests/language/getter_declaration_negative_test.dart
copy to tests/language/const_factory_with_body_test.dart
index 813b8d3b2935107a4ec891e5d3a949b4bf629bf7..e7830d6d9de9be2e147e0e8609c4bfc022a7e392 100644
--- a/tests/language/getter_declaration_negative_test.dart
+++ b/tests/language/const_factory_with_body_test.dart
@@ -2,12 +2,12 @@
// 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.
//
-// Test that a getter has no arguments
-get m(var extraParam) {
- return null;
+// Tests that a "const factory" with body produces a compile-time error.
+
+class ConstFactoryWithBody {
+ const factory ConstFactoryWithBody.one() { } /// 01: compile-time error
}
main() {
- m;
+ const ConstFactoryWithBody.one(); /// 01: continued
}
-
« no previous file with comments | « tests/language/const_factory_negative_test.dart ('k') | tests/language/language_dart2js.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698