September 16, 2015 What kind of sorcery is that? | ||||
---|---|---|---|---|
| ||||
import std.stdio; void main() { Stuff!(Thing!float) s; writeln(typeid(s.var)); writeln(typeid(s.var.varling)); writeln(typeid(s)); } class Stuff(T) { T!int var; } class Thing(T) { T varling; } |
September 16, 2015 Re: What kind of sorcery is that? | ||||
---|---|---|---|---|
| ||||
Posted in reply to NX | On Wednesday, 16 September 2015 at 08:28:24 UTC, NX wrote: > import std.stdio; > void main() > { > Stuff!(Thing!float) s; > writeln(typeid(s.var)); > writeln(typeid(s.var.varling)); > writeln(typeid(s)); > } > class Stuff(T) > { > T!int var; > } > class Thing(T) > { > T varling; > } Filed a bug: https://issues.dlang.org/show_bug.cgi?id=15069 |
Copyright © 1999-2021 by the D Language Foundation