March 25, 2008 [Issue 1944] New: is-expressions don't correctly define tuples named in the match expression | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=1944 Summary: is-expressions don't correctly define tuples named in the match expression Product: D Version: 2.012 Platform: PC OS/Version: Linux Status: NEW Keywords: rejects-valid Severity: normal Priority: P2 Component: DMD AssignedTo: bugzilla@digitalmars.com ReportedBy: webmaster@villagersonline.com dmd 2.012 The following code should compile just fine. Instead, the 2nd static assert() fails. BEGIN CODE template foo(TPL...) { static if( is(typeof(&TPL[0]) Tignored1 == void function(T), T) ) static assert(is(T == int)); static if( is(typeof(&TPL[0]) Tignored2 == void function(ARGS), ARGS...) ) static assert(ARGS.length > 0); } void bar(int i) {}; alias foo!(bar) baz; END CODE -- |
November 12, 2012 [Issue 1944] is-expressions don't correctly define tuples named in the match expression | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=1944 Don <clugdbug@yahoo.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WORKSFORME --- Comment #1 from Don <clugdbug@yahoo.com.au> 2012-11-12 07:33:40 PST --- Works now, probably fixed years ago. -- 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