January 06, 2013 [Issue 9274] New: is + alias this = wrong code | ||||
---|---|---|---|---|
| ||||
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@puremagic.com ReportedBy: zheny@list.ru --- Comment #0 from Zhenya Chapovsky <zheny@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: ------- |
Copyright © 1999-2021 by the D Language Foundation