[Issue 7684] New: IFTI and shared overload doesn't work
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Mar 11 05:38:30 PDT 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7684
Summary: IFTI and shared overload doesn't work
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Keywords: rejects-valid
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: k.hara.pg at gmail.com
--- Comment #0 from Kenji Hara <k.hara.pg at gmail.com> 2012-03-11 05:38:38 PDT ---
This code doesn't work.
----
U[] id(U)( U[] );
shared(U[]) id(U)( shared(U[]) );
void main()
{
shared(int)[] x;
static assert(is( typeof(id(x)) == shared(int)[] ));
// Error: static assert (is(typeof(__error) == shared(int)[])) is false
}
--
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