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

Input assignability should consider output type never. #1673

Open
RunDevelopment opened this issue Mar 23, 2023 · 0 comments · May be fixed by #1725
Open

Input assignability should consider output type never. #1673

RunDevelopment opened this issue Mar 23, 2023 · 0 comments · May be fixed by #1725
Labels
enhancement New feature or request

Comments

@RunDevelopment
Copy link
Member

Motivation
As pointed out here, if you can connect 2 things, it should just work. However, this is currently not the case because of output types. Output types can become never which signifies invalid inputs. These types of errors are currently not accounted for when checking whether for compatibility.

Description
Check for output type never when checking assignability. If assigning some input type causes any node output to become never, then the assignment should be invalid.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant