Skip to content

Commit 1e5b7c5

Browse files
committed
Add tests
1 parent 02af00f commit 1e5b7c5

File tree

1 file changed

+56
-0
lines changed

1 file changed

+56
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
2+
//@Filename: decl.d.ts
3+
// name
4+
declare class StaticName {
5+
static name: number; // ok
6+
name: string; // ok
7+
}
8+
9+
declare class StaticNameFn {
10+
static name(): string; // ok
11+
name(): string; // ok
12+
}
13+
14+
// length
15+
declare class StaticLength {
16+
static length: number; // ok
17+
length: string; // ok
18+
}
19+
20+
declare class StaticLengthFn {
21+
static length(): number; // ok
22+
length(): number; // ok
23+
}
24+
25+
// prototype
26+
declare class StaticPrototype {
27+
static prototype: number; // ok
28+
prototype: string; // ok
29+
}
30+
31+
declare class StaticPrototypeFn {
32+
static prototype: any; // ok
33+
prototype(): any; // ok
34+
}
35+
36+
// caller
37+
declare class StaticCaller {
38+
static caller: number; // ok
39+
caller: string; // ok
40+
}
41+
42+
declare class StaticCallerFn {
43+
static caller(): any; // ok
44+
caller(): any; // ok
45+
}
46+
47+
// arguments
48+
declare class StaticArguments {
49+
static arguments: number; // ok
50+
arguments: string; // ok
51+
}
52+
53+
declare class StaticArgumentsFn {
54+
static arguments(): any; // ok
55+
arguments(): any; // ok
56+
}

0 commit comments

Comments
 (0)