Bug 5298 – Template identifier in template scope short hand is undocumented.
Status
RESOLVED
Resolution
DUPLICATE
Severity
minor
Priority
P2
Component
dlang.org
Product
D
Version
D2
Platform
Other
OS
All
Creation time
2010-12-01T05:33:00Z
Last change time
2015-06-09T05:14:48Z
Keywords
spec
Assigned to
nobody
Creator
b.helyer
Comments
Comment #0 by b.helyer — 2010-12-01T05:33:40Z
The following behaviour:
class C(T) {
C[] ary;
void foo() {
foreach( a; ary ) {
a.bar();
}
}
void bar() {
}
}
where C gets the type of the current instantiation is undocumented.
Comment #1 by simen.kjaras — 2010-12-01T05:37:26Z
*** This issue has been marked as a duplicate of issue 5295 ***