← Back to index
|
Original Bugzilla link
Bug 15070 – Template is silently extracted from type and reinstantiated
Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2015-09-16T08:48:00Z
Last change time
2015-09-16T08:50:39Z
Keywords
accepts-invalid
Assigned to
nobody
Creator
dfj1esp02
Comments
Comment #0
by dfj1esp02 — 2015-09-16T08:48:34Z
import std.stdio; void main() { Stuff!(Thing!float) s; writeln(typeid(s.var)); writeln(typeid(s.var.varling)); writeln(typeid(s)); alias F=Thing!float; //F!int i; //doesn't compile } struct Stuff(T) { T!int var; } struct Thing(T) { T varling; }
Comment #1
by dfj1esp02 — 2015-09-16T08:50:39Z
*** This issue has been marked as a duplicate of issue 15069 ***