class Foo { public int baz() { return bar(this); } } public int bar(ref Foo foo) { return 0; } int main() { return 0; } 2.066 compiles without error, 2.067-b3 outputs: test.d(5) function test.bar (ref Foo foo) is not callable using argument types (Foo).
Looks like it was a bug before and fixed in 2.067. It might have been fixed as part of issue 13116. The error message should be improved (IMO.)
*** This issue has been marked as a duplicate of issue 13934 ***