[Issue 9274] New: is + alias this = wrong code
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Jan 6 05:55:11 PST 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9274
Summary: is + alias this = wrong code
Product: D
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: zheny at list.ru
--- Comment #0 from Zhenya Chapovsky <zheny at list.ru> 2013-01-06 05:55:10 PST ---
struct OhWhy(S) {
S[] arr;
alias arr this;
}
void main() {
static assert(!is(OhWhy!float unused == T[],T));/*fails,but shouldn't
since struct OhWhy isn't an array */
}
--
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