| 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
|
| }
|
| -
|
|
|