http://d.puremagic.com/issues/show_bug.cgi?id=900
Jesse Phillips <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] | |m --- Comment #6 from Jesse Phillips <[email protected]> 2010-03-29 16:42:17 PDT --- I seem to have run across this in DMD 2.042. Here a static assert fails with the error: ===================== C:\opt\dmd\windows\bin\..\..\src\phobos\std\typecons.d(424): Error: static assert (is(Tuple!(string,float) == Tuple!(string,float))) is false C:\opt\dmd\windows\bin\..\..\src\phobos\std\typecons.d(413): instantiated from here: Tuple!(string,float) C:\opt\dmd\windows\bin\..\..\src\phobos\std\typecons.d(423): instantiated from here: slice!(1,3) C:\opt\dmd\windows\bin\..\..\src\phobos\std\typecons.d(420): instantiated from here: Tuple!(int,string,float,double) C:\opt\dmd\windows\bin\..\..\src\phobos\std\regex.d(260): instantiated from here: Tuple!(string,string) C:\opt\dmd\windows\bin\..\..\src\phobos\std\regex.d(280): instantiated from here: opCall!(string) C:\opt\dmd\windows\bin\..\..\src\phobos\std\regex.d(1519): instantiated from here: Regex!(char).\test2.d(7): instantiated from here: regex!(string) =================== -------------------------- // Place string after import test2 to make this work import std.string; import test2; void main() { new TestMe(); } ------------------------------ -------------------- module test2; import std.regex; class TestMe { void test(string input) { auto foo = !match(input, regex("fish")).empty; } } -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
