dlang / ddox

Advanced D documentation engine
MIT License
63 stars 21 forks source link

return parameter not supported #181

Closed MartinNowak closed 7 years ago

MartinNowak commented 7 years ago
///
module test;

///
ref int foo(return ref int a) @safe
{
    return a;
}

///
int* foo(return scope int* a) @safe
{
    return a;
}

///
ref int* foo(scope return ref int* a) @safe
{
    return a;
}

///
struct S
{
@safe:
    ///
    ref S foo() return
    {
        return this;
    }

    ///
    S foo() return scope
    {
        return this;
    }

    ///
    ref S foo() return scope
    {
        return this;
    }

    int* p;
}
MartinNowak commented 7 years ago

duplicate of #181