diff options
Diffstat (limited to 'tests/auto/qml/qqmllanguage/data/SingletonTest.qml')
-rw-r--r-- | tests/auto/qml/qqmllanguage/data/SingletonTest.qml | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/auto/qml/qqmllanguage/data/SingletonTest.qml b/tests/auto/qml/qqmllanguage/data/SingletonTest.qml new file mode 100644 index 0000000000..70e1671754 --- /dev/null +++ b/tests/auto/qml/qqmllanguage/data/SingletonTest.qml @@ -0,0 +1,14 @@ +pragma Singleton + +import QtQml 2.0 + +// This causes a duplicate id error on purpose +QtObject { + id: foo + + QtObject { + id: foo + } + + function test() { return "Foobar"; } +} |