method static-ness has no effect on the type?

ag0aep6g via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Aug 8 03:21:47 PDT 2016


On 08/08/2016 12:14 PM, Cauterite wrote:
> On Monday, 8 August 2016 at 10:05:58 UTC, ag0aep6g wrote:
>> The first assert compares the return types of f1 and f2. They both
>> return `void`, so everything's fine there.
>
> I think you're mistaken about this. typeof(S.f1) definitely gives the
> type of the function, not of the return. Try it out:

Yup. My mistake. It's the same as with & then.



More information about the Digitalmars-d-learn mailing list