3d27f5cb79
This fix is analogous to that made in _TypeSubstitutor in https://dart-review.googlesource.com/c/sdk/+/240049, but made for ReplacementVisitor. Closes https://github.com/dart-lang/sdk/issues/48768 Change-Id: Ie3ac8fe834210d1249cbd5bd3d68b416f9efc034 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/240722 Auto-Submit: Chloe Stefantsova <cstefantsova@google.com> Reviewed-by: Johnni Winther <johnniwinther@google.com> Commit-Queue: Johnni Winther <johnniwinther@google.com>