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

Return statement value type not checked against function return type #297

Closed
degory opened this issue Aug 22, 2020 · 0 comments
Closed

Return statement value type not checked against function return type #297

degory opened this issue Aug 22, 2020 · 0 comments
Labels

Comments

@degory
Copy link
Owner

degory commented Aug 22, 2020

Type of values returned from functions, properties and indexers are not checked against the declared return type.

Also, it's possible to return values from void functions and vice versa (the latter is allowed in ghul, and results in a default value being returned, but should give a warning message)

@degory degory added the bug label Aug 22, 2020
@degory degory closed this as completed Aug 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant