www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 13934] New: Cannot pass 'this' to function by reference


          Issue ID: 13934
           Summary: Cannot pass 'this' to function by reference
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: regression
          Priority: P1
         Component: DMD
          Assignee: nobody puremagic.com
          Reporter: doob me.com

The following code compiles with 2.066.1 but fails to compile with 2.067.0-b1:

void bar (ref Foo) {}

class Foo
    void foo()

The errors message is:

main.d(7): Error: function main.bar (ref Foo _param_0) is not callable using
argument types (Foo)

Jan 04 2015