www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 2721] New: func(ref X) does not match parameter types (X)

reply d-bugmail puremagic.com writes:

           Summary: func(ref X) does not match parameter types (X)
           Product: D
           Version: unspecified
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: critical
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: kk_tnr hotmail.com

DMD2.026 on Windows
See this code.

struct S{
void main(){
    S s;
    func(s); // work correctly
    func(retS()); //// should not be error.
void func(ref S s){
S retS(){
    S s;

I got this message.
function example.func(ref S s) does not match parameter types (S)
This is definitely a bug.

Mar 09 2009
parent d-bugmail puremagic.com writes:

gide nwawudu.com changed:

           What    |Removed                     |Added
             Status|NEW                         |RESOLVED
         Resolution|                            |DUPLICATE

------- Comment #1 from gide nwawudu.com  2009-03-09 17:49 -------

*** This bug has been marked as a duplicate of 2719 ***

Mar 09 2009