QmlJS: Fix build of tst_check.cpp

tst_check.cpp:151:36: error: reference to 'Type' is ambiguous
In file included from src/libs/qmljs/qmljscheck.h:30:0,
 src/libs/qmljs/qmljsstaticanalysismessage.h:42:6:
	note: candidates are: enum QmlJS::StaticAnalysis::Type
 src/libs/qmljs/parser/qmljsast_p.h:347:46:
	note:                 class QmlJS::AST::Type

Change-Id: I2f2af3e19fc0cbb7cef359c28d5f5d1505778882
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
This commit is contained in:
Nikolai Kosjar
2019-10-07 09:52:52 +02:00
parent 942ff625fe
commit ea0b7e4563

View File

@@ -148,7 +148,7 @@ void tst_Check::test()
columnEnd - columnStart,
comment.startLine,
columnStart),
message.type = static_cast<Type>(type);
message.type = static_cast<QmlJS::StaticAnalysis::Type>(type);
expectedMessages += message;
}