Skip to content

[SUPERSEDED] Insert stabilizers at definitions#8208

Closed
som-snytt wants to merge 1 commit intoscala:2.13.xfrom
som-snytt:issue/11397
Closed

[SUPERSEDED] Insert stabilizers at definitions#8208
som-snytt wants to merge 1 commit intoscala:2.13.xfrom
som-snytt:issue/11397

Conversation

@som-snytt
Copy link
Contributor

@som-snytt som-snytt commented Jul 9, 2019

Includes commits from the related PR.

An alternative implementation might be to use the "synthetics" mechanism, where the synthetic is created and then subsequently emitted together with its sibling code. This mechanism wants to be improved, so that the synthetic is more directly tied to its source tree.

This PR tries to be minimal change.

Fixes scala/bug#11609

@scala-jenkins scala-jenkins added this to the 2.13.1 milestone Jul 9, 2019
@som-snytt som-snytt added the WIP label Jul 11, 2019
@lrytz
Copy link
Member

lrytz commented Jul 22, 2019

rebased

@som-snytt
Copy link
Contributor Author

I'll get back to this.

@szeiger szeiger modified the milestones: 2.13.1, 2.13.2 Aug 26, 2019
@lrytz lrytz self-assigned this Jan 31, 2020
@SethTisue SethTisue modified the milestones: 2.13.2, 2.13.3 Feb 6, 2020
Don't blow through definitions looking
for a suitable context to insert stabilizers.
If the definition happens to be a valdef,
stick the attachments with stabilizers to
the RHS, which must be the maximal expression
getting typechecked.
@som-snytt
Copy link
Contributor Author

Lukas got back to this.

@som-snytt som-snytt closed this Feb 14, 2020
@SethTisue SethTisue removed this from the 2.13.3 milestone Feb 15, 2020
@som-snytt som-snytt changed the title Insert stabilizers at definitions [SUPERSEDED] Insert stabilizers at definitions Apr 19, 2024
@som-snytt som-snytt deleted the issue/11397 branch April 19, 2024 17:21
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.

Scala 2.13 failing to emit code that works with previous Scala versions

5 participants