Skip to content

Update inference of closures with no context. #3151

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

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update inference.md
Typo.
  • Loading branch information
lrhn authored Mar 19, 2024
commit 42dd5cf08228b3b9df3d9daa27d2df91f0616f03
2 changes: 1 addition & 1 deletion resources/type-system/inference.md
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ algorithm described below._
The actual value type of a function literal with an expression body, `=> e`,
_(which cannot be a generator function)_ is computed as follows:
- If the function literal is marked `async`,
then let `T` be the inferred type of the returned expession with
then let `T` be the inferred type of the returned expression with
`FutureOr<K>` as typing context.
The actual value type is **flatten**(`T`).
- If the function literal is not marked `async`, let `T` be the inferred
Expand Down