TypeScript/tests/cases/compiler/errorWithSameNameType.ts
Wenlu Wang bd178746de improve error message when type have same name (#27065)
* improve error message when type have same name

* fix lint and function name

* update test case

* accept baseline
2019-04-23 12:56:03 -07:00

23 lines
238 B
TypeScript

// @filename: a.ts
export interface F {
foo1: number
}
// @filename: b.ts
export interface F {
foo2: number
}
// @filename: c.ts
import * as A from './a'
import * as B from './b'
let a: A.F
let b: B.F
if (a === b) {
}
a = b