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

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: 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/const_factory_negative_test.dart b/tests/language/const_factory_with_body_test.dart
similarity index 69%
rename from tests/language/const_factory_negative_test.dart
rename to tests/language/const_factory_with_body_test.dart
index dd88a6c8c3f02a04085ac564e70f87167a1d9798..bb4b25e44d612805d8e0aeb75f2d3bd188e6fe5e 100644
--- a/tests/language/const_factory_negative_test.dart
+++ b/tests/language/const_factory_with_body_test.dart
@@ -4,11 +4,10 @@
// For Dart VM: tests that a "const factory" with body produces an error.
// For DartC: tests that a "const factory" is illegal.
kustermann 2013/09/04 14:22:25 DartC -> dartanalyzer
-class ConstFactoryNegativeTest {
- const factory ConstFactoryNegativeTest.one() {
- }
+class ConstFactoryWithBody {
+ const factory ConstFactoryWithBody.one() { } /// 01: compile-time error
kustermann 2013/09/04 14:22:25 Maybe ", static type warning" if the analyzer is s
}
main() {
- const ConstFactoryNegativeTest.one();
+ 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