Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add load_instance_mode #11557

Merged
merged 1 commit into from
Feb 7, 2024
Merged

Add load_instance_mode #11557

merged 1 commit into from
Feb 7, 2024

Conversation

Simn
Copy link
Member

@Simn Simn commented Feb 7, 2024

This passes an additional argument to all type instance loading operations, which currently has three possible values:

type load_instance_mode =
	| LoadNormal
	| LoadReturn
	| LoadAny (* We don't necessarily know why we're loading, so let's just load anything *)

I primarily want to use it to disallow loading Void in places that aren't return types, but there might be some other applications for this as well. Shouldn't have any observable impact.

@Simn Simn marked this pull request as ready for review February 7, 2024 09:36
@Simn Simn merged commit 2fb7155 into development Feb 7, 2024
110 checks passed
@Simn Simn deleted the load_instance_mode branch February 7, 2024 10:43
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.

1 participant