fix 'Unexpected item type' error message
authorJoerg Bornemann <joerg.bornemann@digia.com>
Wed, 13 Nov 2013 16:01:37 +0000 (17:01 +0100)
committerChristian Kandeler <christian.kandeler@digia.com>
Thu, 14 Nov 2013 09:31:21 +0000 (10:31 +0100)
commit42c835bd8716a8f0a986eed47088998e0c297b18
treef84aa1fd9d7b329ade321e84385c3c68459f01b8
parent753b1e224f1d5811a621e8bc49b11fd11d5e035a
fix 'Unexpected item type' error message

The property declaration check shadowed this error.
An erroneous file like

Appliaction {   // mis-spelled Application
    name: "foo"
}

Yielded the error "undeclared property 'name'", when it
should say "I know nothing about Appliaction".

Change-Id: I20d03b13a3fa02b6539950a50d7bae1c5acbfbac
Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>
src/lib/language/builtindeclarations.cpp
src/lib/language/builtindeclarations.h
src/lib/language/moduleloader.cpp
src/lib/language/projectresolver.cpp
src/lib/language/testdata/erroneous/unknown_item_type.qbs [new file with mode: 0644]
src/lib/language/tst_language.cpp