Bug 2885 – Silent forward reference bug using ReturnType

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2009-04-23T02:19:00Z
Last change time
2013-11-22T01:50:00Z
Keywords
wrong-code
Assigned to
nobody
Creator
bus_dbugzilla
Blocks
340

Comments

Comment #0 by bus_dbugzilla — 2009-04-23T02:19:00Z
----------------- import std.traits; // Outputs: "false" pragma(msg, is(ReturnType!(foo):int)? "true":"false"); int foo() { return 1; } // Outputs: "true" pragma(msg, is(ReturnType!(foo):int)? "true":"false"); -----------------
Comment #1 by kennytm — 2011-04-24T00:14:44Z
Same issue as 5601. (Also, the error is *not* silent. It is silent only because of the is() expression. Not a 'wrong-code', just 'reject-valid'.) *** This issue has been marked as a duplicate of issue 5601 ***
Comment #2 by k.hara.pg — 2013-11-22T01:50:00Z
This is not a dup of 5601, and was fixed in 2.047 (at least in D2).