Fix for issue #442

This commit is contained in:
about-code 2016-10-16 18:34:57 +02:00
parent 66f6f9ba05
commit fc5b2e524d
2 changed files with 51 additions and 0 deletions

View file

@ -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
}

View file

@ -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
}