Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.15.2
-
b3fe31a0ff129bb87f81901f2f50c0041b8f4a80 (qt/qtdeclarative/dev) 2805015ebd93c9e5e64825cb21e4d23724a78b28 (qt/qtdeclarative/6.2)
Description
class Tester { constructor () { this.a = 1; this.b = 1; } get sum() { const sum = this.a + this.b; return sum; } }
This will error with the message:
Identifier sum has already been declared const sum = this.a + this.b;