Files
test-repo/tests/interface/test3.js
T

7 lines
242 B
JavaScript
Raw Normal View History

2016-12-23 19:31:38 +00:00
interface I { x: number, y : string }
interface J { y : number }
interface K extends I, J { x: string } // error: x is number in I
function foo(k: K) {
(k.x: number); // error: x is string in K
(k.y: number); // error: y is string in I
}