Thread overview
[Issue 21670] [REG 2.095] Public alias to private function triggers a deprecaton when called without parens
[Issue 21670] [REG 2.095] Public alias to private function triggers a deprecaton
Mar 03, 2021
RazvanN
Dec 30, 2022
Iain Buclaw
Dec 30, 2022
Iain Buclaw
Dec 30, 2022
Iain Buclaw
March 03, 2021
https://issues.dlang.org/show_bug.cgi?id=21670

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |razvan.nitu1305@gmail.com

--- Comment #1 from RazvanN <razvan.nitu1305@gmail.com> ---
Introduced by: https://github.com/dlang/dmd/pull/11811

--
December 18, 2021
https://issues.dlang.org/show_bug.cgi?id=21670

johanengelen@weka.io changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |johanengelen@weka.io

--
December 30, 2022
https://issues.dlang.org/show_bug.cgi?id=21670

--- Comment #2 from Iain Buclaw <ibuclaw@gdcproject.org> ---
*** Issue 23592 has been marked as a duplicate of this issue. ***

--
December 30, 2022
https://issues.dlang.org/show_bug.cgi?id=21670

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ibuclaw@gdcproject.org

--- Comment #3 from Iain Buclaw <ibuclaw@gdcproject.org> ---
(In reply to Mathias LANG from comment #0)
> void main ()
> {
>     string s = up;
> }
As pointed out in issue 23592, `s = up();` works around the issue.

--
December 30, 2022
https://issues.dlang.org/show_bug.cgi?id=21670

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[REG 2.095] Public alias to |[REG 2.095] Public alias to
                   |private function triggers a |private function triggers a
                   |deprecaton                  |deprecaton when called
                   |                            |without parens

--