Skip to content

Commit 36f6e19

Browse files
committed
Add reference baseline
1 parent 1e5b7c5 commit 36f6e19

File tree

1 file changed

+107
-0
lines changed

1 file changed

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

0 commit comments

Comments
 (0)