Fixes broken emit with useDefineForClassFields + private field (#35898)

* Fixes broken emit with useDefineForClassFields + private field

* use simpler function for condition
This commit is contained in:
M.Yoshimura
2020-01-10 03:21:49 +09:00
committed by Nathan Shively-Sanders
parent 66b5c47854
commit 5fc917be2e
8 changed files with 109 additions and 49 deletions

View File

@@ -4,6 +4,7 @@ var x: "p" = "p"
class A {
a = this.y
b
public c;
["computed"] = 13
;[x] = 14
m() { }
@@ -12,8 +13,10 @@ class A {
declare notEmitted;
}
class B {
public a;
}
class C extends B {
declare public a;
z = this.ka
constructor(public ka: number) {
super()