Bug 465 – errors when trying to use static templated methods
Status
RESOLVED
Resolution
FIXED
Severity
minor
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
x86
OS
Windows
Creation time
2006-10-27T17:56:00Z
Last change time
2014-02-15T13:18:54Z
Keywords
rejects-valid
Assigned to
bugzilla
Creator
h3r3tic
Comments
Comment #0 by h3r3tic — 2006-10-27T17:56:09Z
struct Foo {
static void func(T)(T a) {
}
}
void main() {
Foo.init.func(1); // ok
Foo.init.func!(int)(1); // template func!(int) is not a member of Foo
Foo.func(1); // type Foo is not an expression
Foo.func!(int)(1); // template func!(int) is not a member of Foo
}