Skip to content

Commit

Permalink
Isolated for untyped anonymous functions
Browse files Browse the repository at this point in the history
Part of #145.
  • Loading branch information
jclark committed Sep 21, 2020
1 parent e6b19ae commit 6b4bbd0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lang/spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -5041,7 +5041,8 @@ <h3>Anonymous function expression</h3>
</pre>
<p>
An infer-anonymous-function-expr can only be used in a context where a function
type is expected. The types of the parameters are inferred from the expected
type is expected. Both the types of the parameters and whether the function is
isolated are inferred from the expected
function type. The scope of the parameters is <code>expr-function-body</code>.
The static type of the infer-anonymous-function-expr will be a function type
whose return type is the static type of the <code>expression</code> in
Expand Down

0 comments on commit 6b4bbd0

Please sign in to comment.