Skip to content

Commit 85727ca

Browse files
pqCommit Queue
authored andcommitted
[element model] migrate least_greatest_closure
Change-Id: Ide8b5cb1659785d6b84e373ee798dde43e8a136b Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/403624 Commit-Queue: Phil Quitslund <[email protected]> Reviewed-by: Konstantin Shcheglov <[email protected]>
1 parent 2766858 commit 85727ca

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

pkg/analyzer/analyzer_use_new_elements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ lib/src/dart/element/field_name_non_promotability_info.dart
3131
lib/src/dart/element/generic_inferrer.dart
3232
lib/src/dart/element/greatest_lower_bound.dart
3333
lib/src/dart/element/inheritance_manager3.dart
34-
lib/src/dart/element/least_greatest_closure.dart
3534
lib/src/dart/element/least_upper_bound.dart
3635
lib/src/dart/element/member.dart
3736
lib/src/dart/element/name_union.dart

pkg/analyzer/lib/src/dart/element/least_greatest_closure.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ class LeastGreatestClosureHelper extends ReplacementVisitor {
7070
// and `L` contains any free type variables from any of the `Bi`:
7171
// - The least closure of `S` with respect to `L` is `Never`
7272
// - The greatest closure of `S` with respect to `L` is `Function`
73-
for (var typeParameter in node.typeFormals) {
73+
for (var typeParameter in node.typeParameters) {
7474
if (typeParameter.bound case TypeImpl bound?
7575
when bound.referencesAny2(eliminationTargets)) {
7676
return _functionReplacement;

0 commit comments

Comments
 (0)