Thread overview
[Issue 19869] `FunctionLiteral` allows incorrect forms
[Issue 19869] `PrimaryExpression` allows incorrect forms of function literals
May 14, 2019
Basile-z
Dec 22, 2019
Basile-z
Jul 23, 2022
Dlang Bot
Jul 23, 2022
Nick Treleaven
Jul 23, 2022
Nick Treleaven
Jul 27, 2022
Dlang Bot
Jul 29, 2022
RazvanN
May 14, 2019
https://issues.dlang.org/show_bug.cgi?id=19869

--- Comment #1 from Basile-z <b2.temp@gmx.com> ---
BodyStatement is probably for https://dlang.org/spec/function.html#SpecifiedFunctionBody

There are two options:

1. The easy way, remove the rule
2. Fix the compiler to allow `FunctionContractsopt SpecifiedFunctionBody` as
subrule of FunctionLiteralBody

--
December 22, 2019
https://issues.dlang.org/show_bug.cgi?id=19869

Basile-z <b2.temp@gmx.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Blocks|                            |10233


Referenced Issues:

https://issues.dlang.org/show_bug.cgi?id=10233
[Issue 10233] [Tracker] Grammar issues
--
July 23, 2022
https://issues.dlang.org/show_bug.cgi?id=19869

--- Comment #2 from Dlang Bot <dlang-bot@dlang.rocks> ---
@ntrel created dlang/dlang.org pull request #3350 "[spec] Fix Issue 19869 - `FunctionLiteral` allows incorrect forms" mentioning this issue:

- [spec] Fix Issue 19869 - `FunctionLiteral` allows incorrect forms

  SpecifiedFunctionBody allows `do` and contracts.
  https://dlang.org/spec/function.html#SpecifiedFunctionBody

https://github.com/dlang/dlang.org/pull/3350

--
July 23, 2022
https://issues.dlang.org/show_bug.cgi?id=19869

Nick Treleaven <nick@geany.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |briancschott@gmail.com

--- Comment #3 from Nick Treleaven <nick@geany.org> ---
*** Issue 15620 has been marked as a duplicate of this issue. ***

--
July 23, 2022
https://issues.dlang.org/show_bug.cgi?id=19869

Nick Treleaven <nick@geany.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |nick@geany.org
            Summary|`PrimaryExpression` allows  |`FunctionLiteral` allows
                   |incorrect forms of function |incorrect forms
                   |literals                    |

--
July 27, 2022
https://issues.dlang.org/show_bug.cgi?id=19869

--- Comment #4 from Dlang Bot <dlang-bot@dlang.rocks> ---
dlang/dlang.org pull request #3350 "Fix Issue 19869 - `FunctionLiteral` allows incorrect forms" was merged into master:

- e37ea0ca77ef0d8ecb65637a315a3921b258b7aa by Nick Treleaven:
  [spec] Fix Issue 19869 - `FunctionLiteral` allows incorrect forms

  SpecifiedFunctionBody allows `do` and contracts.
  https://dlang.org/spec/function.html#SpecifiedFunctionBody

https://github.com/dlang/dlang.org/pull/3350

--
July 29, 2022
https://issues.dlang.org/show_bug.cgi?id=19869

RazvanN <razvan.nitu1305@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |razvan.nitu1305@gmail.com
         Resolution|---                         |FIXED

--