[Issue 900] changing import order causes type mismatch
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Mar 29 16:42:18 PDT 2010
http://d.puremagic.com/issues/show_bug.cgi?id=900
Jesse Phillips <Jesse.K.Phillips+D at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |Jesse.K.Phillips+D at gmail.co
| |m
--- Comment #6 from Jesse Phillips <Jesse.K.Phillips+D at gmail.com> 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: -------
More information about the Digitalmars-d-bugs
mailing list