// @declaration: true interface G { x: T; } var v2: G; var z = v2.x; // 'y' should be of type 'string'