diff --git a/lang/spec.html b/lang/spec.html index 725d3b7a..41d6684f 100644 --- a/lang/spec.html +++ b/lang/spec.html @@ -5524,9 +5524,11 @@
An infer-anonymous-function-expr can only be used in a context where a function
-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 expr-function-body
.
+type is expected. Both the types of the parameters and whether the function type
+is isolated
are inferred from the expected function type. The
+function type will be inferred to be transactional
if the
+expr-function-body calls any functions with a transactional type.
+The scope of the parameters is expr-function-body
.
The static type of the infer-anonymous-function-expr will be a function type
whose return type is the static type of the expression
in
expr-function-body
. If the contextually expected type for the