Resolve aliases before using getTypereferenceType (#24594)

This commit is contained in:
Wesley Wigham
2018-06-04 14:19:41 -07:00
committed by GitHub
parent b3a4b72a16
commit cbbf2e4e6f
5 changed files with 243 additions and 3 deletions

View File

@@ -0,0 +1,33 @@
// @declaration: true
// @filename: b.ts
export {
Hash,
StringHash, StringHash2
};
interface Hash<T> {
[key: string]: T;
}
type StringHash = Hash<string>;
interface StringHash2 extends Hash<string> {}
// @filename: a.ts
import {StringHash, StringHash2} from "./b";
export {
doSome
}
const MAP: StringHash = {
a: "a"
};
const MAP2: StringHash2 = {
a: "a"
};
function doSome(arg1: string,
arg2 = MAP,
arg3 = MAP2) {
}