Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tighten closure extractor in TreeInfo #21621

Merged
merged 2 commits into from
Sep 22, 2024
Merged

Commits on Sep 20, 2024

  1. Tighten closure extractor in TreeInfo

    The previous extractor for closures matches also arbitrary blocks that ended in a
    (possible deeply nested) closure. This caused wrong use sets in scala#21620. The new
    definition is stricter. There is also a new blockEndingInclosure extractor that
    keeps the old behavior.
    
    Fixes scala#21620
    odersky committed Sep 20, 2024
    Configuration menu
    Copy the full SHA
    b410f30 View commit details
    Browse the repository at this point in the history

Commits on Sep 22, 2024

  1. Update compiler/src/dotty/tools/dotc/ast/TreeInfo.scala

    Co-authored-by: Dale Wijnand <[email protected]>
    odersky and dwijnand authored Sep 22, 2024
    Configuration menu
    Copy the full SHA
    614314a View commit details
    Browse the repository at this point in the history