class C { struct S { uint data; } S s; struct T { uint f() { return s.data; // this for s needs to be type C not type T * } } } void main(){}