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

Check return type of functions (opt-in) #8240

Closed
3 tasks
radeusgd opened this issue Nov 7, 2023 · 0 comments · Fixed by #8502
Closed
3 tasks

Check return type of functions (opt-in) #8240

radeusgd opened this issue Nov 7, 2023 · 0 comments · Fixed by #8502
Assignees
Labels
-compiler -type-system Category: type system and type inference

Comments

@radeusgd
Copy link
Member

radeusgd commented Nov 7, 2023

As discussed in github.com/orgs/enso-org/discussions/5987

The ticket #6166 adds the syntax within the parser for specifying return types on a function like:

foo (arg : Integer) -> Text = "{"+arg.to_text+"}"

This ticket should:

  • update TreeToIr to handle the newly added parser construct and record the return type in the IR of the created function;
  • update IrToTruffle to add a TypeCheckExpressionNode on the return value of the function.
    • Ensure that the check works well with TCO.
@radeusgd radeusgd self-assigned this Nov 7, 2023
@radeusgd radeusgd added -type-system Category: type system and type inference -compiler labels Nov 7, 2023
@radeusgd radeusgd mentioned this issue Dec 8, 2023
5 tasks
@radeusgd radeusgd linked a pull request Dec 9, 2023 that will close this issue
5 tasks
@radeusgd radeusgd removed a link to a pull request Dec 16, 2023
5 tasks
@mergify mergify bot closed this as completed in #8502 Dec 19, 2023
mergify bot pushed a commit that referenced this issue Dec 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
-compiler -type-system Category: type system and type inference
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

1 participant