39 lines
1.7 KiB
Plaintext
39 lines
1.7 KiB
Plaintext
=== tests/cases/compiler/genericWithCallSignatures_1.ts ===
|
|
///<reference path="genericWithCallSignatures_0.ts"/>
|
|
class MyClass {
|
|
>MyClass : Symbol(MyClass, Decl(genericWithCallSignatures_1.ts, 0, 0))
|
|
|
|
public callableThing: CallableExtention<string>;
|
|
>callableThing : Symbol(callableThing, Decl(genericWithCallSignatures_1.ts, 1, 15))
|
|
>CallableExtention : Symbol(CallableExtention, Decl(genericWithCallSignatures_0.ts, 3, 1))
|
|
|
|
public myMethod() {
|
|
>myMethod : Symbol(myMethod, Decl(genericWithCallSignatures_1.ts, 2, 52))
|
|
|
|
var x = <string> this.callableThing();
|
|
>x : Symbol(x, Decl(genericWithCallSignatures_1.ts, 5, 11))
|
|
>this.callableThing : Symbol(callableThing, Decl(genericWithCallSignatures_1.ts, 1, 15))
|
|
>this : Symbol(MyClass, Decl(genericWithCallSignatures_1.ts, 0, 0))
|
|
>callableThing : Symbol(callableThing, Decl(genericWithCallSignatures_1.ts, 1, 15))
|
|
}
|
|
}
|
|
=== tests/cases/compiler/genericWithCallSignatures_0.ts ===
|
|
interface Callable<T> {
|
|
>Callable : Symbol(Callable, Decl(genericWithCallSignatures_0.ts, 0, 0))
|
|
>T : Symbol(T, Decl(genericWithCallSignatures_0.ts, 0, 19))
|
|
|
|
(): T;
|
|
>T : Symbol(T, Decl(genericWithCallSignatures_0.ts, 0, 19))
|
|
|
|
(value: T): void;
|
|
>value : Symbol(value, Decl(genericWithCallSignatures_0.ts, 2, 5))
|
|
>T : Symbol(T, Decl(genericWithCallSignatures_0.ts, 0, 19))
|
|
}
|
|
|
|
interface CallableExtention<T> extends Callable<T> { }
|
|
>CallableExtention : Symbol(CallableExtention, Decl(genericWithCallSignatures_0.ts, 3, 1))
|
|
>T : Symbol(T, Decl(genericWithCallSignatures_0.ts, 5, 28))
|
|
>Callable : Symbol(Callable, Decl(genericWithCallSignatures_0.ts, 0, 0))
|
|
>T : Symbol(T, Decl(genericWithCallSignatures_0.ts, 5, 28))
|
|
|