diff options
author | Simon Hausmann <simon.hausmann@qt.io> | 2019-01-22 16:03:28 +0100 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@qt.io> | 2019-07-09 16:52:31 +0200 |
commit | 2377a02afe8d8b4237b703e88ef3423242ec7cf8 (patch) | |
tree | 3a091f50f80612ae3c25fcacc2edef6df0bbf34a /tests/auto/qml/qqmllanguage | |
parent | 1b866db65eb45ff347b51a2bc3b08d2a0bc166d6 (diff) |
Collect type information for function parameters
Change-Id: Ia9ba819ce77eee7e582cf90aacf5baa4813d9fca
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'tests/auto/qml/qqmllanguage')
-rw-r--r-- | tests/auto/qml/qqmllanguage/data/typeAnnotations.3.errors.txt | 1 | ||||
-rw-r--r-- | tests/auto/qml/qqmllanguage/data/typeAnnotations.3.qml | 7 | ||||
-rw-r--r-- | tests/auto/qml/qqmllanguage/tst_qqmllanguage.cpp | 1 |
3 files changed, 9 insertions, 0 deletions
diff --git a/tests/auto/qml/qqmllanguage/data/typeAnnotations.3.errors.txt b/tests/auto/qml/qqmllanguage/data/typeAnnotations.3.errors.txt new file mode 100644 index 0000000000..141ea9c7bc --- /dev/null +++ b/tests/auto/qml/qqmllanguage/data/typeAnnotations.3.errors.txt @@ -0,0 +1 @@ +4:26:Type annotations are not supported (yet). diff --git a/tests/auto/qml/qqmllanguage/data/typeAnnotations.3.qml b/tests/auto/qml/qqmllanguage/data/typeAnnotations.3.qml new file mode 100644 index 0000000000..03272e9d50 --- /dev/null +++ b/tests/auto/qml/qqmllanguage/data/typeAnnotations.3.qml @@ -0,0 +1,7 @@ +import QtQml 2.0 + +QtObject { + function notYet(param: string) { + return param + } +} diff --git a/tests/auto/qml/qqmllanguage/tst_qqmllanguage.cpp b/tests/auto/qml/qqmllanguage/tst_qqmllanguage.cpp index cc7935f383..ac7874b701 100644 --- a/tests/auto/qml/qqmllanguage/tst_qqmllanguage.cpp +++ b/tests/auto/qml/qqmllanguage/tst_qqmllanguage.cpp @@ -625,6 +625,7 @@ void tst_qqmllanguage::errors_data() QTest::newRow("typeAnnotations") << "typeAnnotations.qml" << "typeAnnotations.errors.txt" << false; QTest::newRow("typeAnnotations.2") << "typeAnnotations.2.qml" << "typeAnnotations.2.errors.txt" << false; + QTest::newRow("typeAnnotations.3") << "typeAnnotations.3.qml" << "typeAnnotations.3.errors.txt" << false; } |