TypeScript Version: 2.7.0-dev.201xxxxx
Code
interface Foo {
bold(): string;
}
interface Foo {
bold: string;
}
var x: Foo;
const j = x.bold;
Expected behavior:
j is type any, TS issues an error on both declarations of bold because their type doesn't match.
Actual behavior:
No error, j is type string.
Please note, the colors DT package (and one other package) relies on our current buggy behavior here and will need to be fixed.
TypeScript Version: 2.7.0-dev.201xxxxx
Code
Expected behavior:
jis typeany, TS issues an error on both declarations ofboldbecause their type doesn't match.Actual behavior:
No error,
jis typestring.Please note, the
colorsDT package (and one other package) relies on our current buggy behavior here and will need to be fixed.