www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 15839] New: this.outer is of wrong type


          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);

Mar 27 2016