Improve diagnostics deduplication (#58220)

This commit is contained in:
Gabriela Araujo Britto
2024-04-26 15:44:09 -07:00
committed by GitHub
parent 1db1376d8a
commit ebcb09d71a
13 changed files with 476 additions and 35 deletions

View File

@@ -0,0 +1,22 @@
// @strict: true
interface ComplicatedTypeBase {
[s: string]: ABase;
}
interface ComplicatedTypeDerived {
[s: string]: ADerived;
}
interface ABase {
a: string;
}
interface ADerived {
b: string;
}
class Base {
foo!: ComplicatedTypeBase;
}
const x = class Derived extends Base {
foo!: ComplicatedTypeDerived;
}
let obj: { 3: string } = { 3: "three" };
obj[x];