Logo
Explore Help
Sign In
feedc0de/qt-creator
1
0
Fork 0
You've already forked qt-creator
forked from qt-creator/qt-creator
Code Pull Requests Activity
Files
afea900b966d202435292cb15101ee71b9299f19
qt-creator/tests/auto/qml/codemodel/check/confusing-plus-minus.qml

15 lines
305 B
QML
Raw Normal View History

qmljs: fix qmljscheck * fix ASTVariableReference::value: correctly get reference value type by using either initialiser of bindingTarget (broken since a codemodel update in 2018) * disable warning for casting in bool to null comparison (it does not cast, is always false) * fix property checks (where skipped without default of readonly) * remove non relevant checks (ErrInvalidPropertyType for lowercase now that custom value types are supported, and for properties called data) * updated import version Change-Id: I38407acf327d0f773b38dda4c02fb4d95a420851 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
2021-01-13 02:02:49 +01:00
import QtQuick 2.0
QmlJS checks: Add confusing +/- check. Migrated from QtChecker. Change-Id: I06115152f979f9abfa9cbdf4a3e2e63a51ea7284 Reviewed-on: http://codereview.qt-project.org/5858 Reviewed-by: Fawzi Mohamed <fawzi.mohamed@nokia.com> Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com>
2011-09-30 10:39:00 +02:00
Item {
function foo() {
var x, y
x = 1 + +2 // 117 15 17
x = 1 + ++x // 117 15 17
x = x++ + x // 117 15 17
x = 1 - -2 // 119 15 17
x = 1 - --x // 119 15 17
x = x-- - x // 119 15 17
x = x + --y + y-- + x++ - y
}
}
Copy Permalink
Powered by Gitea Version: 1.25.1 Page: 394ms Template: 1ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API