Skip to content

Commit fc5b2e5

Browse files
committed
Fix for issue #442
1 parent 66f6f9b commit fc5b2e5

File tree

2 files changed

+51
-0
lines changed

2 files changed

+51
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
// @target: es5
2+
3+
// static name
4+
class A {
5+
static name: number; // error
6+
name: string; // ok
7+
}
8+
9+
class B {
10+
static name() {} // error
11+
name() {} // ok
12+
}
13+
14+
15+
16+
// static length...
17+
class C {
18+
static length: number; // error
19+
length: string; // ok
20+
}
21+
22+
class D {
23+
static length() {} // error
24+
length() {} // ok
25+
}
26+
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
// @target: es6
2+
3+
4+
// static name
5+
class A {
6+
static name: string; // ok
7+
name: string; // ok
8+
}
9+
10+
class B {
11+
static name() {}; // ok
12+
name() {}; // ok
13+
}
14+
15+
16+
// static length
17+
class C {
18+
static length: number; // ok
19+
length: string; // ok
20+
}
21+
22+
class D {
23+
static length() {} // ok
24+
length() {} // ok
25+
}

0 commit comments

Comments
 (0)