[Issue 14244] New: 2.067: Error when 'this' used as ref parameter
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Wed Mar 4 08:55:28 PST 2015
https://issues.dlang.org/show_bug.cgi?id=14244
Issue ID: 14244
Summary: 2.067: Error when 'this' used as ref parameter
Product: D
Version: D2
Hardware: x86_64
OS: Linux
Status: NEW
Severity: regression
Priority: P1
Component: DMD
Assignee: nobody at puremagic.com
Reporter: dragoscarp at gmail.com
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).
--
More information about the Digitalmars-d-bugs
mailing list