45 lines
3 KiB
Plaintext
45 lines
3 KiB
Plaintext
=== tests/cases/compiler/staticMethodWithTypeParameterExtendsClauseDeclFile.ts ===
|
|
class privateClass {
|
|
>privateClass : Symbol(privateClass, Decl(staticMethodWithTypeParameterExtendsClauseDeclFile.ts, 0, 0))
|
|
}
|
|
|
|
export class publicClass {
|
|
>publicClass : Symbol(publicClass, Decl(staticMethodWithTypeParameterExtendsClauseDeclFile.ts, 1, 1))
|
|
}
|
|
|
|
export class publicClassWithWithPrivateTypeParameters {
|
|
>publicClassWithWithPrivateTypeParameters : Symbol(publicClassWithWithPrivateTypeParameters, Decl(staticMethodWithTypeParameterExtendsClauseDeclFile.ts, 4, 1))
|
|
|
|
private static myPrivateStaticMethod1<T extends privateClass>() { // do not emit extends clause
|
|
>myPrivateStaticMethod1 : Symbol(publicClassWithWithPrivateTypeParameters.myPrivateStaticMethod1, Decl(staticMethodWithTypeParameterExtendsClauseDeclFile.ts, 6, 55))
|
|
>T : Symbol(T, Decl(staticMethodWithTypeParameterExtendsClauseDeclFile.ts, 7, 42))
|
|
>privateClass : Symbol(privateClass, Decl(staticMethodWithTypeParameterExtendsClauseDeclFile.ts, 0, 0))
|
|
}
|
|
private myPrivateMethod1<T extends privateClass>() { // do not emit extends clause
|
|
>myPrivateMethod1 : Symbol(myPrivateMethod1, Decl(staticMethodWithTypeParameterExtendsClauseDeclFile.ts, 8, 5))
|
|
>T : Symbol(T, Decl(staticMethodWithTypeParameterExtendsClauseDeclFile.ts, 9, 29))
|
|
>privateClass : Symbol(privateClass, Decl(staticMethodWithTypeParameterExtendsClauseDeclFile.ts, 0, 0))
|
|
}
|
|
private static myPrivateStaticMethod2<T extends publicClass>() { // do not emit extends clause
|
|
>myPrivateStaticMethod2 : Symbol(publicClassWithWithPrivateTypeParameters.myPrivateStaticMethod2, Decl(staticMethodWithTypeParameterExtendsClauseDeclFile.ts, 10, 5))
|
|
>T : Symbol(T, Decl(staticMethodWithTypeParameterExtendsClauseDeclFile.ts, 11, 42))
|
|
>publicClass : Symbol(publicClass, Decl(staticMethodWithTypeParameterExtendsClauseDeclFile.ts, 1, 1))
|
|
}
|
|
private myPrivateMethod2<T extends publicClass>() { // do not emit extends clause
|
|
>myPrivateMethod2 : Symbol(myPrivateMethod2, Decl(staticMethodWithTypeParameterExtendsClauseDeclFile.ts, 12, 5))
|
|
>T : Symbol(T, Decl(staticMethodWithTypeParameterExtendsClauseDeclFile.ts, 13, 29))
|
|
>publicClass : Symbol(publicClass, Decl(staticMethodWithTypeParameterExtendsClauseDeclFile.ts, 1, 1))
|
|
}
|
|
public static myPublicStaticMethod<T extends publicClass>() {
|
|
>myPublicStaticMethod : Symbol(publicClassWithWithPrivateTypeParameters.myPublicStaticMethod, Decl(staticMethodWithTypeParameterExtendsClauseDeclFile.ts, 14, 5))
|
|
>T : Symbol(T, Decl(staticMethodWithTypeParameterExtendsClauseDeclFile.ts, 15, 39))
|
|
>publicClass : Symbol(publicClass, Decl(staticMethodWithTypeParameterExtendsClauseDeclFile.ts, 1, 1))
|
|
}
|
|
public myPublicMethod<T extends publicClass>() {
|
|
>myPublicMethod : Symbol(myPublicMethod, Decl(staticMethodWithTypeParameterExtendsClauseDeclFile.ts, 16, 5))
|
|
>T : Symbol(T, Decl(staticMethodWithTypeParameterExtendsClauseDeclFile.ts, 17, 26))
|
|
>publicClass : Symbol(publicClass, Decl(staticMethodWithTypeParameterExtendsClauseDeclFile.ts, 1, 1))
|
|
}
|
|
}
|
|
|