swift icon indicating copy to clipboard operation
swift copied to clipboard

[Sema] Fold SequenceExpr in pre-checking pre-walk

Open hamishknight opened this issue 1 year ago • 2 comments

Doing it in the post-walk meant we ended up walking the children twice, which led to duplicate diagnostics and incorrect inference of the level of application for function references. Move it to the pre-walk, ensuring that we resolve any operator references before folding.

Resolves #75527

hamishknight avatar Jul 27 '24 23:07 hamishknight

@swift-ci please test

hamishknight avatar Jul 28 '24 23:07 hamishknight

@swift-ci please test source compatibility

hamishknight avatar Jul 28 '24 23:07 hamishknight

@swift-ci please smoke test

hamishknight avatar Jul 31 '24 21:07 hamishknight