March 04, 2015 [Issue 14244] New: 2.067: Error when 'this' used as ref parameter | ||||
|---|---|---|---|---|
| ||||
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@puremagic.com Reporter: dragoscarp@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). -- | ||||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply