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

Backport "fix(#i18645): overload ext method body in braces didn't compile" to LTS #20916

Merged
merged 1 commit into from
Jul 2, 2024

Conversation

WojciechMazur
Copy link
Contributor

Backports #19651 to the LTS branch.

PR submitted by the release tooling.
[skip ci]

`tryWithImplicitOnQualifier` returned without attempting `tryInsertImplicitOnQualifier`,
which prevented the compiler from finding overloaded method, because `hasInnerErrors`
in `ProtoTypes` picked up the inner error propagated back from outer error.

When compiling `x.pprint(()=> { 123 })` before this commit, in `hasInnerErrors`,
`t` contains two sub trees; `Block(stmt, expr)` and `stmt`. The span of the former matches
the span of `t`, but that of the latter does not, which caused `hasInnerErrors` to return `true`,
but the error from the latter is duplicated with the error of parent tree `t`.

[Cherry-picked 5cf6707]
Base automatically changed from lts-19658 to lts-3.3 July 2, 2024 07:34
@WojciechMazur
Copy link
Contributor Author

No regressions detected in the community build up to lts-19080.

Reference

@WojciechMazur WojciechMazur merged commit 6ccc786 into lts-3.3 Jul 2, 2024
19 checks passed
@WojciechMazur WojciechMazur deleted the lts-19651 branch July 2, 2024 07:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants