Document function limitation of var properties
[profile/ivi/qtdeclarative.git] / tests / auto / declarative / qdeclarativeecmascript / data / scarceResourceCopy.variant.qml
1 import QtQuick 2.0
2 import Qt.test 1.0
3
4 // Here we import a scarce resource directly.
5 // The instance has a property which is a copy
6 // of the scarce resource, so it should not be
7 // detached (but we should automatically release
8 // the resource from our engine internal list).
9
10 QtObject {
11     property MyScarceResourceObject a;
12     a: MyScarceResourceObject { id: scarceResourceProvider }
13     property variant scarceResourceCopy: scarceResourceProvider.scarceResource
14 }
15