Skip to content

Commit add079c

Browse files
stereotype441commit-bot@chromium.org
authored andcommitted
Flow analysis: Fix test function name.
In a previous commit, I accidentally named these test functions `test`. Replace with a more descriptive name. Bug: #44898 Change-Id: I662b6003a893dbb05fea88000f39e4e56b0cb725 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/196107 Reviewed-by: Konstantin Shcheglov <[email protected]> Commit-Queue: Paul Berry <[email protected]>
1 parent fc3ce31 commit add079c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pkg/_fe_analyzer_shared/test/flow_analysis/why_not_promoted/data/argument_type_not_assignable_nullability_error.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ class C33 {
446446
int? bad;
447447
}
448448

449-
test(C33 c) {
449+
explicitExtensionInvocation(C33 c) {
450450
if (c.bad == null) return;
451451
E33(c.
452452
/*notPromoted(propertyNotPromoted(target: member:C33.bad, type: int?))*/ bad)

tests/language/why_not_promoted/argument_type_not_assignable_nullability_error_test.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -655,7 +655,7 @@ class C33 {
655655
// [context 94] 'bad' refers to a property so it couldn't be promoted.
656656
}
657657

658-
test(C33 c) {
658+
explicitExtensionInvocation(C33 c) {
659659
if (c.bad == null) return;
660660
E33(c.bad).f();
661661
// ^^^^^

0 commit comments

Comments
 (0)