Skip to content

Conversation

@ThakeeNathees
Copy link
Collaborator

This PR improves inheritance handling in the type system:

  • Fix: Improve inheritance handling in type system
  • Test: Add test fixtures for inheritance member lookup

These changes enhance the type checker to properly handle member lookups in inherited classes and initialization parameters.

- Fix ClassType.lookup_member_symbol to traverse MRO correctly
- Update synthesized __init__ to collect parameters from all base classes in MRO
- Ensures proper member resolution and initialization parameter ordering in inheritance hierarchies
Update expected end line in types.py range from 291:8 to 294:8 to match current codebase state.
@RandiJay96 RandiJay96 linked an issue Nov 21, 2025 that may be closed by this pull request
3 tasks
Copy link
Collaborator

@kugesan1105 kugesan1105 left a comment

Choose a reason for hiding this comment

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

good to merge!!

@marsninja marsninja merged commit ea15053 into jaseci-labs:main Nov 26, 2025
8 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Minor tweaks in TypeChecker

4 participants