Skip to content

Add more tests for superclass resolution behaviour#860

Open
amomchilov wants to merge 3 commits into
mainfrom
Alex/superclass-resolution-tests
Open

Add more tests for superclass resolution behaviour#860
amomchilov wants to merge 3 commits into
mainfrom
Alex/superclass-resolution-tests

Conversation

@amomchilov

@amomchilov amomchilov commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

Documents existing behaviour as-is.

Adds some pending tests that will need to be fixed in the future for:

  1. Diagnose for contradictory superclasses on the same class #857
  2. Diagnose superclass set in one definition, after another definition left it implicit #858

@amomchilov amomchilov requested a review from a team as a code owner June 12, 2026 17:29
);
}

// Contrast with this case, which Ruby allows::

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think this is already encoded in the other tests, so I would remove it from this one.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Which one? I don't see it

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Is this not the same as C1 in superclass_is_load_order_independent? Also, I would split each thing into their own test rather than checking multiple things in each example.

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