[Issue 1010] New: Abstract class template does not compile when parametrized with char[]
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Feb 28 02:42:06 PST 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1010
Summary: Abstract class template does not compile when
parametrized with char[]
Product: D
Version: 1.007
Platform: PC
OS/Version: Windows
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: bugzilla at digitalmars.com
ReportedBy: maxter at i.com.ua
abstract class Foo(char[] bar)
{
}
int main(char[][] args)
{
return 0;
}
Fails to compile with the error message:
hello.d:1: variable hello.bar abstract cannot be applied to variable
:: === Build finished: 1 errors, 0 warnings ===
While this works:
template Foo(char[] bar)
{
abstract class Foo
{
}
}
int main(char[][] args)
{
return 0;
}
--
More information about the Digitalmars-d-bugs
mailing list