1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106
|
=== tests/cases/conformance/classes/propertyMemberDeclarations/decl.d.ts ===
// name
declare class StaticName {
>StaticName : Symbol(StaticName, Decl(decl.d.ts, 0, 0))
static name: number; // ok
>name : Symbol(StaticName.name, Decl(decl.d.ts, 1, 26))
name: string; // ok
>name : Symbol(StaticName.name, Decl(decl.d.ts, 2, 24))
}
declare class StaticNameFn {
>StaticNameFn : Symbol(StaticNameFn, Decl(decl.d.ts, 4, 1))
static name(): string; // ok
>name : Symbol(StaticNameFn.name, Decl(decl.d.ts, 6, 28))
name(): string; // ok
>name : Symbol(StaticNameFn.name, Decl(decl.d.ts, 7, 26))
}
// length
declare class StaticLength {
>StaticLength : Symbol(StaticLength, Decl(decl.d.ts, 9, 1))
static length: number; // ok
>length : Symbol(StaticLength.length, Decl(decl.d.ts, 12, 28))
length: string; // ok
>length : Symbol(StaticLength.length, Decl(decl.d.ts, 13, 26))
}
declare class StaticLengthFn {
>StaticLengthFn : Symbol(StaticLengthFn, Decl(decl.d.ts, 15, 1))
static length(): number; // ok
>length : Symbol(StaticLengthFn.length, Decl(decl.d.ts, 17, 30))
length(): number; // ok
>length : Symbol(StaticLengthFn.length, Decl(decl.d.ts, 18, 28))
}
// prototype
declare class StaticPrototype {
>StaticPrototype : Symbol(StaticPrototype, Decl(decl.d.ts, 20, 1))
static prototype: number; // ok
>prototype : Symbol(StaticPrototype.prototype, Decl(decl.d.ts, 23, 31))
prototype: string; // ok
>prototype : Symbol(StaticPrototype.prototype, Decl(decl.d.ts, 24, 29))
}
declare class StaticPrototypeFn {
>StaticPrototypeFn : Symbol(StaticPrototypeFn, Decl(decl.d.ts, 26, 1))
static prototype: any; // ok
>prototype : Symbol(StaticPrototypeFn.prototype, Decl(decl.d.ts, 28, 33))
prototype(): any; // ok
>prototype : Symbol(StaticPrototypeFn.prototype, Decl(decl.d.ts, 29, 26))
}
// caller
declare class StaticCaller {
>StaticCaller : Symbol(StaticCaller, Decl(decl.d.ts, 31, 1))
static caller: number; // ok
>caller : Symbol(StaticCaller.caller, Decl(decl.d.ts, 34, 28))
caller: string; // ok
>caller : Symbol(StaticCaller.caller, Decl(decl.d.ts, 35, 26))
}
declare class StaticCallerFn {
>StaticCallerFn : Symbol(StaticCallerFn, Decl(decl.d.ts, 37, 1))
static caller(): any; // ok
>caller : Symbol(StaticCallerFn.caller, Decl(decl.d.ts, 39, 30))
caller(): any; // ok
>caller : Symbol(StaticCallerFn.caller, Decl(decl.d.ts, 40, 25))
}
// arguments
declare class StaticArguments {
>StaticArguments : Symbol(StaticArguments, Decl(decl.d.ts, 42, 1))
static arguments: number; // ok
>arguments : Symbol(StaticArguments.arguments, Decl(decl.d.ts, 45, 31))
arguments: string; // ok
>arguments : Symbol(StaticArguments.arguments, Decl(decl.d.ts, 46, 29))
}
declare class StaticArgumentsFn {
>StaticArgumentsFn : Symbol(StaticArgumentsFn, Decl(decl.d.ts, 48, 1))
static arguments(): any; // ok
>arguments : Symbol(StaticArgumentsFn.arguments, Decl(decl.d.ts, 50, 33))
arguments(): any; // ok
>arguments : Symbol(StaticArgumentsFn.arguments, Decl(decl.d.ts, 51, 28))
}
|