Fix for issue #442
This commit is contained in:
parent
66f6f9ba05
commit
fc5b2e524d
2 changed files with 51 additions and 0 deletions
|
@ -0,0 +1,26 @@
|
|||
// @target: es5
|
||||
|
||||
// static name
|
||||
class A {
|
||||
static name: number; // error
|
||||
name: string; // ok
|
||||
}
|
||||
|
||||
class B {
|
||||
static name() {} // error
|
||||
name() {} // ok
|
||||
}
|
||||
|
||||
|
||||
|
||||
// static length...
|
||||
class C {
|
||||
static length: number; // error
|
||||
length: string; // ok
|
||||
}
|
||||
|
||||
class D {
|
||||
static length() {} // error
|
||||
length() {} // ok
|
||||
}
|
||||
|
|
@ -0,0 +1,25 @@
|
|||
// @target: es6
|
||||
|
||||
|
||||
// static name
|
||||
class A {
|
||||
static name: string; // ok
|
||||
name: string; // ok
|
||||
}
|
||||
|
||||
class B {
|
||||
static name() {}; // ok
|
||||
name() {}; // ok
|
||||
}
|
||||
|
||||
|
||||
// static length
|
||||
class C {
|
||||
static length: number; // ok
|
||||
length: string; // ok
|
||||
}
|
||||
|
||||
class D {
|
||||
static length() {} // ok
|
||||
length() {} // ok
|
||||
}
|
Loading…
Reference in a new issue