mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-06-11 20:37:46 -05:00
Improve diagnostics deduplication (#58220)
This commit is contained in:
committed by
GitHub
parent
1db1376d8a
commit
ebcb09d71a
22
tests/cases/compiler/duplicateErrorClassExpression.ts
Normal file
22
tests/cases/compiler/duplicateErrorClassExpression.ts
Normal 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];
|
||||
Reference in New Issue
Block a user