March 27, 2016 [Issue 15839] New: this.outer is of wrong type | ||||
|---|---|---|---|---|
| ||||
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@puremagic.com Reporter: doob@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); } }; } } -- | ||||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply