fork download
  1. import std.stdio;
  2. class C{}
  3. struct S{
  4. C c;
  5. }
  6. void main(){
  7. S s;
  8. s.c = new C;
  9. writeln(typeid(typeof(s.c)));
  10. }
Success #stdin #stdout 0.01s 2120KB
stdin
Standard input is empty
stdout
prog.C