TypeScript/tests/baselines/reference/inheritSameNamePropertiesWithDifferentVisibility.js
2014-07-12 17:30:19 -07:00

25 lines
398 B
JavaScript

//// [inheritSameNamePropertiesWithDifferentVisibility.ts]
class C {
public x: number;
}
class C2 {
private x: number;
}
interface A extends C, C2 { // error
y: string;
}
//// [inheritSameNamePropertiesWithDifferentVisibility.js]
var C = (function () {
function C() {
}
return C;
})();
var C2 = (function () {
function C2() {
}
return C2;
})();