diff --git a/spec/lang/master/index.html b/spec/lang/master/index.html index fd0b309a98..9943bd1e90 100644 --- a/spec/lang/master/index.html +++ b/spec/lang/master/index.html @@ -10147,6 +10147,9 @@

7.22 Lock statement

directly or indirectly in a call to that defined function.

+It is a compile-time error if a lock-stmt contains a sync-send-action or a receive-action. +

+

There are two cases where a variable is restricted to be used only within a lock statement:

@@ -14483,6 +14486,7 @@

B.1 Summary of changes from 2023R1 to 2024R1

  • Isolated inference can infer isolated for an object constructor expression.
  • A query-select-expr can construct a stream without explicitly specififying the stream keyword.
  • +
  • It is no longer allowed for a lock statement to contain a sync-send-action or a receive-action.
  • diff --git a/spec/lang/master/spec.xml b/spec/lang/master/spec.xml index 21b829b9e2..79aac963a2 100644 --- a/spec/lang/master/spec.xml +++ b/spec/lang/master/spec.xml @@ -9627,6 +9627,9 @@ there is a function call lexically within the lock-stmt that might result directly or indirectly in a call to that defined function.

    +It is a compile-time error if a lock-stmt contains a sync-send-action or a receive-action. +

    +

    There are two cases where a variable is restricted to be used only within a lock statement:

    @@ -13988,6 +13991,7 @@ public isolated function last(Type v, Type... vs) returns Type = external;
  • Isolated inference can infer isolated for an object constructor expression.
  • A query-select-expr can construct a stream without explicitly specififying the stream keyword.
  • +
  • It is no longer allowed for a lock statement to contain a sync-send-action or a receive-action.