Skip to content

Bug fix: Put the datatypes defined inside Python prelude on the top of Laurel Prelude.#618

Closed
thanhnguyen-aws wants to merge 12 commits intostrata-org:mainfrom
thanhnguyen-aws:swapprelude
Closed

Bug fix: Put the datatypes defined inside Python prelude on the top of Laurel Prelude.#618
thanhnguyen-aws wants to merge 12 commits intostrata-org:mainfrom
thanhnguyen-aws:swapprelude

Conversation

@thanhnguyen-aws
Copy link
Contributor

Description of changes: This PR put the datatypes defined inside Python prelude on the top of Laurel Prelude. This fixes the type-checking error when adding Box constructor/destructor for Any type.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@aqjune-aws
Copy link
Contributor

Could you add a test for this?

Copy link
Contributor

@keyboardDrummer keyboardDrummer left a comment

Choose a reason for hiding this comment

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

I don't think this change is right. The current setup allows anything in the Core part of the prelude to refer to the Laurel part of the prelude, but not the other way around. I think that is sufficient.

If there's a definition in the Core part of the prelude that you want to refer to from the Laurel prelude part, you should include that definition in the Laurel prelude as well.

@thanhnguyen-aws
Copy link
Contributor Author

Replaced by: #630

github-merge-queue bot pushed a commit that referenced this pull request Mar 21, 2026
*Description of changes:* This PR adds collectTypeRefs for TCore, which
fix the bug of unrecognized dependency between Box and Any.
Thanks @keyboardDrummer.

This PR replaces #618


By submitting this pull request, I confirm that you can use, modify,
copy, and redistribute this contribution, under the terms of your
choice.
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.

3 participants