diff options
author | Simon Hausmann <[email protected]> | 2014-01-27 13:09:01 +0100 |
---|---|---|
committer | The Qt Project <[email protected]> | 2014-01-28 10:41:52 +0100 |
commit | f9a285daf2033b5393d5b521d27c0cc659515632 (patch) | |
tree | 412c31c4a45847215aa82ed89c48526c9983a216 /src/qml/compiler/qv4compileddata_p.h | |
parent | cad0f7e5b9915b1f4579f25121f7b9231405bfa2 (diff) |
[new compiler] Report errors when trying to bind to read-only properties
The only exception are initializers for read-only property declarations.
Also adjusted the error location of one test to point to the correct value
location as opposed to the property location, as with all the other similar
errors.
Change-Id: I2333d3c485fc374b1b39a5f5a4408af5cf08a20f
Reviewed-by: Lars Knoll <[email protected]>
Diffstat (limited to 'src/qml/compiler/qv4compileddata_p.h')
-rw-r--r-- | src/qml/compiler/qv4compileddata_p.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/qml/compiler/qv4compileddata_p.h b/src/qml/compiler/qv4compileddata_p.h index 8fa3f83ea4..06361fbf85 100644 --- a/src/qml/compiler/qv4compileddata_p.h +++ b/src/qml/compiler/qv4compileddata_p.h @@ -282,7 +282,8 @@ struct Q_QML_EXPORT Binding enum Flags { IsSignalHandlerExpression = 0x1, - IsOnAssignment = 0x2 + IsOnAssignment = 0x2, + InitializerForReadOnlyDeclaration = 0x4 }; quint32 flags : 16; |