- 
    Bug 
- 
    Resolution: Fixed
- 
    P1: Critical 
- 
    6.4.1
- 
    None
- 
        c7c4ac6e3 (dev)
The following snippet (or the one from the documentation)
import QtQuick Window { id: root width: 640 height: 480 visible: true title: "Foo" Text { id: label states: [ State { when: true AnchorChanges { target: item anchors.top: label.bottom } } ] anchors.top: parent.top } Item { id: item } }
compiles to
Warning: main.qml:18:33: Cannot assign binding of type QQuickAnchorLine to QQmlScriptString
                   anchors.top: label.bottom
                                ^^^^^^^^^^^^
Error: main.qml:18:45: Could not compile binding for top: cannot convert from QQuickAnchorLine of QQuickItem::bottom with type QQuickAnchorLine to QQmlScriptString of QQmlScriptString
                }
            }
        ]        anchors.top: parent.top
    }    Item {
        id: item
    }
}
                                                                                                                       ^
. Additionally the remaining parts of the file is pasted to the console.
- resulted in
- 
                    QTBUG-108854 AnchorChanges uses QQmlScriptString -         
- Reported
 
-