[Issue 15839] New: this.outer is of wrong type
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Sun Mar 27 03:30:18 PDT 2016
https://issues.dlang.org/show_bug.cgi?id=15839
Issue ID: 15839
Summary: this.outer is of wrong type
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: regression
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: doob at me.com
Compiling the code below will result in the following error:
main.d(15): Error: constructor main.GC.this (AnimatedProgress ap) is not
callable using argument types (void*)
interface Runnable {}
class GC
{
this(AnimatedProgress ap) {}
}
class AnimatedProgress
{
void start()
{
auto r = new class Runnable {
void run()
{
GC gc = new GC(this.outer);
}
};
}
}
--
More information about the Digitalmars-d-bugs
mailing list