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


--- Comment #0 from Andrej Mitrovic <andrej.mitrovich gmail.com> 2013-02-25
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


--- Comment #1 from Kenji Hara <k.hara.pg gmail.com> 2013-04-24 01:01:53 PDT ---
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



--- Comment #2 from github-bugzilla puremagic.com 2013-04-24 03:39:27 PDT ---
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
Merge pull request #1929 from 9rnsr/fix9590

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