* improve error message when type have same name * fix lint and function name * update test case * accept baseline
41 lines
498 B
TypeScript
41 lines
498 B
TypeScript
//// [tests/cases/compiler/errorWithSameNameType.ts] ////
|
|
|
|
//// [a.ts]
|
|
export interface F {
|
|
foo1: number
|
|
}
|
|
|
|
//// [b.ts]
|
|
export interface F {
|
|
foo2: number
|
|
}
|
|
|
|
//// [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
|
|
|
|
|
|
//// [a.js]
|
|
"use strict";
|
|
exports.__esModule = true;
|
|
//// [b.js]
|
|
"use strict";
|
|
exports.__esModule = true;
|
|
//// [c.js]
|
|
"use strict";
|
|
exports.__esModule = true;
|
|
var a;
|
|
var b;
|
|
if (a === b) {
|
|
}
|
|
a = b;
|