Details
-
Bug
-
Resolution: Done
-
P2: Important
-
Qt Creator 4.9.0
-
None
Description
This relates to QTBUG-71812, but I'm still having a problem with it. I'm getting a pair of warnings on the following line:
html += `<p style="margin-left: ${20 * (indents.length - 1)}"><a href="${thisUrl}">${title}</a></p>\n`
The two warnings are:
Expected token `(Template tail)'
Expected token `;'
I'm doing exactly this sort of thing in lots of places without getting the warning, and this code compiles and runs just fine, so the warning is wrong. The red underline starts at the close brace after the word "title", so it underlines the last twelve characters, plus every remaining line in the file. That smells like there's something about the choice of the name "title" that it objects to.
Attachments
Issue Links
- relates to
-
QTBUG-71812 ES7: Template literals, nested strings are not working
- Closed