[Issue 3345] Static and nonstatic methods with the same name should be allowed

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Jul 29 14:31:46 UTC 2021


https://issues.dlang.org/show_bug.cgi?id=3345

Richard Cattermole <alphaglosined at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |alphaglosined at gmail.com

--- Comment #13 from Richard Cattermole <alphaglosined at gmail.com> ---
Add @safe to your main function.

onlineapp.d(11): Error: `this` reference necessary to take address of member
`foo` in `@safe` function `main`
onlineapp.d(12): Error: `@safe` function `D main` cannot call `@system`
function pointer `f`

--


More information about the Digitalmars-d-bugs mailing list