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
Comment #2 by github-bugzilla — 2013-01-10T05:02:00Z
Commits pushed to master at https://github.com/D-Programming-Language/phobos https://github.com/D-Programming-Language/phobos/commit/8592a34d4b3f958af2bdadc30f158d67ed286a5a Fixes Issue 8078 - receiveOnly exceptions should be informative. https://github.com/D-Programming-Language/phobos/commit/f1ad5d359c3a37a67fdc83dfcd9a8c64d37a01c6 Merge pull request #1062 from AndrejMitrovic/Fix8078 Issue 8078 - receiveOnly exceptions should be informative