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

run should use the TypeLookup from the file too #5483

Merged
merged 1 commit into from
Dec 11, 2024
Merged

run should use the TypeLookup from the file too #5483

merged 1 commit into from
Dec 11, 2024

Conversation

aryairani
Copy link
Contributor

run checks the type of the argument to make sure that it's runnable; but in type checking, it doesn't know about types from the scratch file, which sometimes led to an ugly crash.

fixes #5448

Copy link
Contributor

@ChrisPenner ChrisPenner left a comment

Choose a reason for hiding this comment

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

Looks good, are there any other 'run's that might need similar treatment?

@aryairani
Copy link
Contributor Author

aryairani commented Dec 11, 2024

There probably are — I went down a rabbit hole trying to see where we needed to clean up and standardize CodeLookup, TypeLookup and Names, but not finished.

@aryairani aryairani merged commit ad45e5d into trunk Dec 11, 2024
32 checks passed
@aryairani aryairani deleted the fix/5448 branch December 11, 2024 19:58
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.

run with a return type that's not in the codebase can cause a crash that mentions kind inference
2 participants