mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-30 01:04:49 -05:00
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:
committed by
Nathan Shively-Sanders
parent
66b5c47854
commit
5fc917be2e
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user