Bug 8078 – receiveOnly should tell which type it expected and got on mismatch
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-05-10T02:45:00Z
Last change time
2013-01-10T05:03:16Z
Keywords
pull
Assigned to
andrej.mitrovich
Creator
andrej.mitrovich
Comments
Comment #0 by andrej.mitrovich — 2012-05-10T02:45:37Z
import std.concurrency;
void test()
{
receiveOnly!string();
}
void main()
{
auto tid = spawn(&test);
tid.send(1);
}
std.concurrency.MessageMismatch@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..
Comment #1 by andrej.mitrovich — 2013-01-08T19:10:05Z