From 194d80172fcd92e629239c6b037462e30bbb293a Mon Sep 17 00:00:00 2001 From: Lukas Wirth Date: Mon, 7 Aug 2023 10:13:25 +0200 Subject: [PATCH] Specify how to treat ambigious trailing block statement --- src/expressions.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/expressions.rst b/src/expressions.rst index 8091c683..7ac66dea 100644 --- a/src/expressions.rst +++ b/src/expressions.rst @@ -670,6 +670,10 @@ An :t:`anonymous block expression` is a :t:`block expression` without a A :t:`tail expression` is the last :t:`expression` within a :t:`block expression`. +:dp:`fls_DfCne8YWevLE` +When the remaining :t:`[lexical element]s` of a :s:`StatementList` match either +an :s:`Expression` or :s:`Statement` they are interpreted as an :s:`Expression`. + :dp:`fls_u4gj2lnkq9ub` The :t:`type` of a :t:`block expression` is determined as follows: