==== tests/cases/compiler/wrappedRecursiveGenericType.ts (2 errors) ==== interface X { e: T; } interface A { a: B; val: T; } interface B { b: A>; val: T; } var x: A; x.val = 5; // val -> number x.a.val = 5; // val -> number x.a.b.val = 5; // val -> X (This should be an error) ~~~~~~~~~ !!! Type 'number' is not assignable to type 'X': !!! Property 'e' is missing in type 'Number'. x.a.b.a.val = 5; // val -> X (This should be an error) ~~~~~~~~~~~ !!! Type 'number' is not assignable to type 'X'.