Skip to content

Conversation

@tesonep
Copy link
Collaborator

@tesonep tesonep commented Jun 4, 2025

Fix #18227

@tesonep tesonep added the Version: Pharo 13 Issue to fix in Pharo 13 label Jun 4, 2025
@Ducasse
Copy link
Member

Ducasse commented Jun 4, 2025

I read the code and I'm surprised not to see a walk down the subclasses.
Because imagine that I have a hierarchy

A
    B
       C with slot x

then I have a class

AA with slot x

and I change the superclass of A to be AA.
This should not be possible because C is in conflict with AA.

May be your change support this scenario but it was not obvious to me.

@tesonep
Copy link
Collaborator Author

tesonep commented Jun 5, 2025

You are right, I am fixing it and adding a new test.
This idea of reviewing PRs is really cool!!!
Thanks!!!

@tesonep tesonep merged commit 0e8055b into pharo-project:Pharo13 Jun 5, 2025
1 check failed
@tesonep tesonep deleted the 18227-How-to-break-a-hierarchy-P13 branch June 5, 2025 19:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Version: Pharo 13 Issue to fix in Pharo 13

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants