qt6-bb10/qtdeclarative/tests/auto/qmldom/domdata/reformatter/arrowFunctions.qml

7 lines
141 B
QML

Item {
arrow1: (x) => x
arrow2: (x) => x + x
arrow3: (x) => x > 3 ? x * x : x
arrow4: (x) => { return x > 3 ? x * x : x; }
}