From 029003851b5f9f5062385884d5591c46c4ebb1d2 Mon Sep 17 00:00:00 2001 From: Thomas McGuire Date: Wed, 17 Feb 2016 15:45:46 +0100 Subject: Properly signal errors when accessing lowercase enum values Task-number: QTBUG-46758 Change-Id: I14e394021c231bda5552c8d1c98f20c903a62f12 Reviewed-by: Simon Hausmann --- tests/auto/qml/qqmllanguage/data/lowercaseEnumRuntime.2.qml | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 tests/auto/qml/qqmllanguage/data/lowercaseEnumRuntime.2.qml (limited to 'tests/auto/qml/qqmllanguage/data/lowercaseEnumRuntime.2.qml') diff --git a/tests/auto/qml/qqmllanguage/data/lowercaseEnumRuntime.2.qml b/tests/auto/qml/qqmllanguage/data/lowercaseEnumRuntime.2.qml new file mode 100644 index 0000000000..686977a11a --- /dev/null +++ b/tests/auto/qml/qqmllanguage/data/lowercaseEnumRuntime.2.qml @@ -0,0 +1,10 @@ +import QtQuick 2.0 +import Test 1.0 + +MyTypeObject { + intProperty: MyTypeObjectSingleton.EnumVal1 + Component.onCompleted: { + var a = MyTypeObjectSingleton.EnumVal1; + var b = MyTypeObjectSingleton.lowercaseEnumVal; + } +} -- cgit v1.2.3