29 lines
1.3 KiB
Plaintext
29 lines
1.3 KiB
Plaintext
|
=== tests/cases/conformance/types/typeAliases/interfaceDoesNotDependOnBaseTypes.ts ===
|
||
|
var x: StringTree;
|
||
|
>x : Symbol(x, Decl(interfaceDoesNotDependOnBaseTypes.ts, 0, 3))
|
||
|
>StringTree : Symbol(StringTree, Decl(interfaceDoesNotDependOnBaseTypes.ts, 4, 1))
|
||
|
|
||
|
if (typeof x !== "string") {
|
||
|
>x : Symbol(x, Decl(interfaceDoesNotDependOnBaseTypes.ts, 0, 3))
|
||
|
|
||
|
x.push("");
|
||
|
>x.push : Symbol(Array.push, Decl(lib.d.ts, 1016, 29))
|
||
|
>x : Symbol(x, Decl(interfaceDoesNotDependOnBaseTypes.ts, 0, 3))
|
||
|
>push : Symbol(Array.push, Decl(lib.d.ts, 1016, 29))
|
||
|
|
||
|
x.push([""]);
|
||
|
>x.push : Symbol(Array.push, Decl(lib.d.ts, 1016, 29))
|
||
|
>x : Symbol(x, Decl(interfaceDoesNotDependOnBaseTypes.ts, 0, 3))
|
||
|
>push : Symbol(Array.push, Decl(lib.d.ts, 1016, 29))
|
||
|
}
|
||
|
|
||
|
type StringTree = string | StringTreeArray;
|
||
|
>StringTree : Symbol(StringTree, Decl(interfaceDoesNotDependOnBaseTypes.ts, 4, 1))
|
||
|
>StringTreeArray : Symbol(StringTreeArray, Decl(interfaceDoesNotDependOnBaseTypes.ts, 6, 43))
|
||
|
|
||
|
interface StringTreeArray extends Array<StringTree> { }
|
||
|
>StringTreeArray : Symbol(StringTreeArray, Decl(interfaceDoesNotDependOnBaseTypes.ts, 6, 43))
|
||
|
>Array : Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11))
|
||
|
>StringTree : Symbol(StringTree, Decl(interfaceDoesNotDependOnBaseTypes.ts, 4, 1))
|
||
|
|