Skip to content

Conversation

@som-snytt
Copy link
Contributor

Fixes #23940

@som-snytt
Copy link
Contributor Author

Apparently I'm the only one who can't run tests after recent repo changes.

Compilation failed for: tests/warn/private-this-3.4.scala
-> following the diagnostics:
 at 1: value 3.4 is not a member of object language
 at 3: package scala.compiletime does not have a member method summonFrom
 at 4: Ignoring [this] qualifier.

-- Warning: tests/warn/private-this-3.4.scala:5:18 ---------------------------------------------------------------------
| ^^^^^^
| Ignoring [this] qualifier.
| This syntax will be deprecated in the future; it should be dropped.
Copy link
Contributor

Choose a reason for hiding this comment

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

[this] syntax ... ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That was a joke, but maybe you are right.

One must be totally committed to one's craft.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I added more sober words which I hope are helpful.

We take for granted what "this" and "it" mean in an ordinary sentence, but the reader must perform the substitutions. We can make our meaning more plain by avoiding variables (pronouns) when we can.

@som-snytt som-snytt force-pushed the issue/23940-this-span branch from 2da56bc to 7945798 Compare September 17, 2025 20:44
@som-snytt som-snytt marked this pull request as ready for review September 17, 2025 21:37
Copy link
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 55faeeb into scala:main Sep 18, 2025
102 of 104 checks passed
@som-snytt som-snytt deleted the issue/23940-this-span branch September 18, 2025 11:24
@WojciechMazur WojciechMazur added this to the 3.8.0 milestone Oct 28, 2025
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.

wrong position for [this]

5 participants