Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 5278d40

Browse files
stereotype441commit-bot@chromium.org
authored andcommitted
Sort non_nullable_test.dart
Change-Id: I356b49fb64daf4245f936d795ccaad5b0588a408 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/103550 Reviewed-by: Brian Wilkerson <[email protected]> Commit-Queue: Paul Berry <[email protected]> Auto-Submit: Paul Berry <[email protected]>
1 parent 0fb0185 commit 5278d40

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

pkg/analyzer/test/src/dart/resolution/non_nullable_test.dart

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -26,18 +26,6 @@ class NonNullableTest extends DriverResolutionTest {
2626
@override
2727
bool get typeToStringWithNullability => true;
2828

29-
test_member_potentiallyNullable_called() async {
30-
addTestFile(r'''
31-
m<T extends Function>() {
32-
List<T?> x;
33-
x.first();
34-
}
35-
''');
36-
await resolveTestFile();
37-
// Do not assert no test errors. Deliberately invokes nullable type.
38-
assertType(findNode.methodInvocation('first').methodName, 'Function?');
39-
}
40-
4129
test_local_getterNullAwareAccess_interfaceType() async {
4230
addTestFile(r'''
4331
m() {
@@ -207,6 +195,18 @@ class A<T> {
207195
assertType(findNode.typeName('T? b'), 'T?');
208196
}
209197

198+
test_member_potentiallyNullable_called() async {
199+
addTestFile(r'''
200+
m<T extends Function>() {
201+
List<T?> x;
202+
x.first();
203+
}
204+
''');
205+
await resolveTestFile();
206+
// Do not assert no test errors. Deliberately invokes nullable type.
207+
assertType(findNode.methodInvocation('first').methodName, 'Function?');
208+
}
209+
210210
test_null_assertion_operator_removes_nullability() async {
211211
addTestFile('''
212212
main() {

0 commit comments

Comments
 (0)