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;
Attachments
For Gerrit Dashboard: QTBUG-96625 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
372801,7 | Fix scoping of JavaScript function names | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
373924,2 | Fix scoping of JavaScript function names | 6.2 | qt/qtdeclarative | Status: MERGED | +2 | 0 |