Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.7
-
None
-
3a9d1e458 (dev), 3b8cf1f9e (6.8), 40a83e3cb (6.7)
Description
Consider the following QML code:
import QtQuick
Item {
function foo(bar: bool) : doesntexist {
}
}
Running qmllint on it produces
Warning: l.qml:4:21: "doesntexist" was not found for the return type of method "foo". [unresolved-type] function foo(bar: bool) : doesntexist { ^^^^^^
It is correct that the doesntexist type does not exist, however the bar: bool parameter annotation is highlighted instead of the return type where the actual error is. This can also be seen in qmlls
qtdeclarative commit 41a97f06981144ef80a3faf8925753f15c0ff3c6
Attachments
For Gerrit Dashboard: QTBUG-125146 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
579369,6 | ImportVisitor: Properly handle unresolved type annotations | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
579531,2 | ImportVisitor: Properly handle unresolved type annotations | 6.8 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
579736,2 | ImportVisitor: Properly handle unresolved type annotations | 6.7 | qt/qtdeclarative | Status: MERGED | +2 | 0 |