mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
28 lines
1.4 KiB
Plaintext
28 lines
1.4 KiB
Plaintext
//// [tests/cases/compiler/extendGenericArray2.ts] ////
|
|
|
|
=== extendGenericArray2.ts ===
|
|
interface IFoo<T> {
|
|
>IFoo : Symbol(IFoo, Decl(extendGenericArray2.ts, 0, 0))
|
|
>T : Symbol(T, Decl(extendGenericArray2.ts, 0, 15))
|
|
|
|
x: T;
|
|
>x : Symbol(IFoo.x, Decl(extendGenericArray2.ts, 0, 19))
|
|
>T : Symbol(T, Decl(extendGenericArray2.ts, 0, 15))
|
|
}
|
|
|
|
interface Array<T> extends IFoo<T> { }
|
|
>Array : Symbol(Array, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --) ... and 1 more)
|
|
>T : Symbol(T, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(extendGenericArray2.ts, 4, 16))
|
|
>IFoo : Symbol(IFoo, Decl(extendGenericArray2.ts, 0, 0))
|
|
>T : Symbol(T, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(extendGenericArray2.ts, 4, 16))
|
|
|
|
var arr: string[] = [];
|
|
>arr : Symbol(arr, Decl(extendGenericArray2.ts, 6, 3))
|
|
|
|
var y: number = arr.x;
|
|
>y : Symbol(y, Decl(extendGenericArray2.ts, 7, 3))
|
|
>arr.x : Symbol(IFoo.x, Decl(extendGenericArray2.ts, 0, 19))
|
|
>arr : Symbol(arr, Decl(extendGenericArray2.ts, 6, 3))
|
|
>x : Symbol(IFoo.x, Decl(extendGenericArray2.ts, 0, 19))
|
|
|