| Index: pkg/analyzer/test/generated/non_error_resolver_test.dart
|
| diff --git a/pkg/analyzer/test/generated/non_error_resolver_test.dart b/pkg/analyzer/test/generated/non_error_resolver_test.dart
|
| index c518a0e27fbff20afcb2e10f579c7cf1f8dace60..fae2d4f26bbf0ffcf2bf908212526f0ce9f87d55 100644
|
| --- a/pkg/analyzer/test/generated/non_error_resolver_test.dart
|
| +++ b/pkg/analyzer/test/generated/non_error_resolver_test.dart
|
| @@ -1456,6 +1456,34 @@ foo() {}''');
|
| verify([source]);
|
| }
|
|
|
| + test_constEvalThrowsException_assertInitializer_notConst() async {
|
| + resetWith(
|
| + options: new AnalysisOptionsImpl()..enableAssertInitializer = true);
|
| + Source source = addSource(r'''
|
| +class A {
|
| + A(int p) : assert(p != 0);
|
| +}
|
| +var a = new A(0);
|
| +''');
|
| + await computeAnalysisResult(source);
|
| + assertNoErrors(source);
|
| + verify([source]);
|
| + }
|
| +
|
| + test_constEvalThrowsException_assertInitializer_true() async {
|
| + resetWith(
|
| + options: new AnalysisOptionsImpl()..enableAssertInitializer = true);
|
| + Source source = addSource(r'''
|
| +class A {
|
| + const A(int p) : assert(p != 0);
|
| +}
|
| +const a = const A(1);
|
| +''');
|
| + await computeAnalysisResult(source);
|
| + assertNoErrors(source);
|
| + verify([source]);
|
| + }
|
| +
|
| test_constEvalTypeBoolNumString_equal() async {
|
| Source source = addSource(r'''
|
| class A {
|
|
|