Bug in header file generation
Satoshi via Digitalmars-d
digitalmars-d at puremagic.com
Mon Oct 17 00:50:17 PDT 2016
On Saturday, 15 October 2016 at 06:55:31 UTC, Uplink_Coder wrote:
> On Saturday, 15 October 2016 at 06:51:44 UTC, Satoshi wrote:
>> Hello,
>> can someone look at this quite simple bug in dmd please?
>> https://issues.dlang.org/show_bug.cgi?id=16590
>>
>> I cannot release non-opensource libraries without this.
>
> You mean auto ref right ?
> please attach a small test-case.
>
> You can force the function body to be there by making it a
> template
> just give it another pair of parens.
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
mailing list