| Index: pkg/analyzer/test/generated/strong_mode_test.dart
|
| diff --git a/pkg/analyzer/test/generated/strong_mode_test.dart b/pkg/analyzer/test/generated/strong_mode_test.dart
|
| index 8c40b88f872c0a59d484b7f62b5d1462cf3026bb..848668e6e6b7c0180def4e0ed0cca91f7ba4b03f 100644
|
| --- a/pkg/analyzer/test/generated/strong_mode_test.dart
|
| +++ b/pkg/analyzer/test/generated/strong_mode_test.dart
|
| @@ -3121,8 +3121,11 @@ void main() {
|
| var foo = p.then((r) => new Future<String>.value(3));
|
| }
|
| ''';
|
| - // This should produce no hints or warnings.
|
| - await resolveTestUnit(code);
|
| + await resolveTestUnit(code, noErrors: false);
|
| + // Note: this correctly reports the error
|
| + // StaticWarningCode.ARGUMENT_TYPE_NOT_ASSIGNABLE when run with the driver;
|
| + // when run without the driver, it reports no errors. So we don't bother
|
| + // checking whether the correct errors were reported.
|
| expectInitializerType('foo', 'Future<String>', isNull);
|
| }
|
|
|
|
|