[Issue 16590] Wrong di generation for ref methods

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Mon Oct 17 01:45:39 PDT 2016


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

--- Comment #1 from Satoshi <satoshi at rikarin.org> ---
When I create function like:

class TestClass {
    int aa;

    auto ref foo() {
        return aa;
    }
}

It is exported correctly, but when I create it like:
class TestClass {
    int aa;

    ref foo() { // without auto
        return aa;
    }
}

it is exported like:
class TestClass {
    int aa;

    ref foo(); // Cannot deduce return type
}

--


More information about the Digitalmars-d-bugs mailing list