Chromium Code Reviews| 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 |
| } |