Skip to content

Commit

Permalink
Add a repro for flutter#40871
Browse files Browse the repository at this point in the history
Change-Id: I11e65b49f3c234e9204c503d20d9980048a96a32
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/138265
Auto-Submit: Paul Berry <paulberry@google.com>
Commit-Queue: Mike Fairhurst <mfairhurst@google.com>
Reviewed-by: Mike Fairhurst <mfairhurst@google.com>
  • Loading branch information
stereotype441 authored and commit-bot@chromium.org committed Mar 4, 2020
1 parent 95bb6d8 commit 57462f9
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions pkg/nnbd_migration/test/api_test.dart
Expand Up @@ -2704,6 +2704,23 @@ int? g(C c) => c.f();
await _checkSingleFileChanges(content, expected);
}

@FailingTest(issue: 'https://github.com/dart-lang/sdk/issues/40871')
Future<void> test_insert_type_with_prefix() async {
var content = '''
import 'dart:async' as a;
a.Future f(Object o) {
return o;
}
''';
var expected = '''
import 'dart:async' as a;
a.Future f(Object o) {
return o as a.Future;
}
''';
await _checkSingleFileChanges(content, expected);
}

@FailingTest(issue: 'https://github.com/dart-lang/sdk/issues/38469')
Future<void> test_inserted_nodes_properly_wrapped() async {
addMetaPackage();
Expand Down

0 comments on commit 57462f9

Please sign in to comment.