[Issue 1010] Abstract class template does not compile when parametrized with char[]
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Apr 23 02:05:45 PDT 2009
http://d.puremagic.com/issues/show_bug.cgi?id=1010
------- Comment #4 from gide at nwawudu.com 2009-04-23 04:05 -------
Example and DStress test cases compile in D1.041. The DStress test cases fail
in D2, because the template parameter is declared as a char[] rather than a
string.
C:\> dmd template_class_20_A.d
template_class_20_A.d(17): template instance Foo!("abc") does not match
template declaration Foo(char[] bar)
template_class_20_A.d(17): Error: Foo!("abc") is used as a type
template_class_20_A.d(17): class dstress.run.t.template_class_20_A.Bar base
type must be class or interface, not void
The following code compiles, should this bug be marked as a DStress issue?
abstract class Foo(string bar)
{
}
class Bar : Foo!("abc") {
}
int main(char[][] args)
{
return 0;
}
--
More information about the Digitalmars-d-bugs
mailing list