www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 9590] New: UFCS does not work with void lazy expressions

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9590

           Summary: UFCS does not work with void lazy expressions
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: andrej.mitrovich gmail.com



18:03:15 PST ---
private auto test(E)(lazy E expr) { }

int f1()  { assert(0); }
void f2() { assert(0); }

void main()
{
    test(f1());  // ok, no exceptions (lazy)
    f1().test;   // ok, no exceptions (lazy)

    test(f2());  // ok, no exceptions (lazy)
    f2().test;   // L12: NG
}

$ test.d(12): Error: no property 'test' for type 'void'

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Feb 25 2013
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9590


Kenji Hara <k.hara.pg gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull



Problem fixed in 2.063a.

https://github.com/D-Programming-Language/dmd/pull/1929

The pull request adds only a test in dmd repo.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Apr 24 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9590




Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/5df2219bae5614e696694dae2db88309a848eb4c
fix Issue 9590 - UFCS does not work with void lazy expressions

https://github.com/D-Programming-Language/dmd/commit/3167ef5ca07cc40778649d0cb585a8875cfa9254


Issue 9590 - UFCS does not work with void lazy expressions

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Apr 24 2013
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9590


Kenji Hara <k.hara.pg gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Apr 24 2013