[Issue 2885] New: Silent forward reference bug using ReturnType
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Apr 23 00:18:52 PDT 2009
http://d.puremagic.com/issues/show_bug.cgi?id=2885
Summary: Silent forward reference bug using ReturnType
Product: D
Version: 1.041
Platform: PC
OS/Version: Windows
Status: NEW
Keywords: wrong-code
Severity: normal
Priority: P2
Component: DMD
AssignedTo: bugzilla at digitalmars.com
ReportedBy: cbkbbejeap at mailinator.com
OtherBugsDependingO 340
nThis:
-----------------
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");
-----------------
--
More information about the Digitalmars-d-bugs
mailing list