[Issue 8078] New: receiveOnly should tell which type it expected and got on mismatch

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu May 10 02:44:16 PDT 2012


http://d.puremagic.com/issues/show_bug.cgi?id=8078

           Summary: receiveOnly should tell which type it expected and got
                    on mismatch
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: nobody at puremagic.com
        ReportedBy: andrej.mitrovich at gmail.com


--- Comment #0 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2012-05-10 02:45:37 PDT ---
import std.concurrency;

void test()
{
    receiveOnly!string();
}

void main()
{
    auto tid = spawn(&test);
    tid.send(1);
}

std.concurrency.MessageMismatch at std\concurrency.d(235): Unexpected message type

Which type was expected? And which type did it receive? This needs to be part
of the error message..

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


More information about the Digitalmars-d-bugs mailing list