Skip to content

Conversation

@jez
Copy link
Collaborator

@jez jez commented Dec 17, 2025

Motivation

This doesn't actually matter for us, because we don't allow putting a sig
on a <static-init> and thus you can't actually use the result of
evaluating a class def.

But I'm working on a change that removes class_flatten, and it's easier to
model the "true" Ruby behavior where the last thing is returned, than it is
to model the current behavior. So for the sake of showing the change to the
exp files, I want to make this as a separate change.

Test plan

See included automated tests.

@jez jez requested a review from a team as a code owner December 17, 2025 22:08
@jez jez requested review from neilparikh and removed request for a team December 17, 2025 22:08
Base automatically changed from jez-static-init to master December 17, 2025 22:24
jez added 6 commits December 18, 2025 11:37
This doesn't actually matter for us, because we don't allow putting a
sig on a `<static-init>` and thus you can't actually use the result
of evaluating a class def.

But I'm working on a change that removes class_flatten, and it's easier
to model the "true" Ruby behavior where the last thing is returned, than
it is to model the current behavior. So for the sake of showing the
change to the exp files, I want to make this as a separate change.
@jez jez force-pushed the jez-flatten-stats branch from c356825 to c915c73 Compare December 18, 2025 19:37
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