Skip to content

Tweak type for tryParameterless#24716

Merged
som-snytt merged 2 commits intoscala:mainfrom
som-snytt:issue/24631-paramless
Dec 10, 2025
Merged

Tweak type for tryParameterless#24716
som-snytt merged 2 commits intoscala:mainfrom
som-snytt:issue/24631-paramless

Conversation

@som-snytt
Copy link
Copy Markdown
Contributor

Fixes #24631

@som-snytt som-snytt marked this pull request as ready for review December 9, 2025 18:12
@som-snytt
Copy link
Copy Markdown
Contributor Author

The alt tweak

          alts.find(_.info.paramInfoss == ListOfNil) match
          case Some(alt) => readaptSimplified(tree.withType(alt))

@Gedochao Gedochao added the backport:nominated If we agree to backport this PR, replace this tag with "backport:accepted", otherwise delete it. label Dec 10, 2025
@Gedochao Gedochao added this to the 3.8.0 milestone Dec 10, 2025
@Gedochao Gedochao requested a review from noti0na1 December 10, 2025 09:58
Copy link
Copy Markdown
Member

@noti0na1 noti0na1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@som-snytt som-snytt merged commit 14909dd into scala:main Dec 10, 2025
46 checks passed
@som-snytt som-snytt deleted the issue/24631-paramless branch December 10, 2025 12:46
@WojciechMazur WojciechMazur added backport:accepted This PR needs to be backported, once it's been backported replace this tag by "backport:done" and removed backport:nominated If we agree to backport this PR, replace this tag with "backport:accepted", otherwise delete it. labels Dec 21, 2025
WojciechMazur added a commit that referenced this pull request Dec 22, 2025
Backports #24716 to the 3.8.0-RC4.

PR submitted by the release tooling.
[skip ci]

---------

Co-authored-by: odersky <odersky@gmail.com>
Co-authored-by: Piotr Chabelski <ged.subfan@gmail.com>
Co-authored-by: Som Snytt <som.snytt@gmail.com>
@WojciechMazur WojciechMazur added backport:done This PR was successfully backported. and removed backport:accepted This PR needs to be backported, once it's been backported replace this tag by "backport:done" labels Dec 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:done This PR was successfully backported.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Call to nullary method in generic java class is inferred as the generic type

6 participants