https://issues.dlang.org/show_bug.cgi?id=16590
--- Comment #1 from Satoshi <sato...@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 } --