From d4f6c5e63c1dd1503b1bc7d237803695ca1763bb Mon Sep 17 00:00:00 2001 From: Andreas Stöckel Date: Tue, 3 Feb 2015 21:43:18 +0100 Subject: Using correct "isa" provided by Type --- src/core/parser/ParserScope.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/core/parser/ParserScope.cpp') diff --git a/src/core/parser/ParserScope.cpp b/src/core/parser/ParserScope.cpp index e10302b..4f44a96 100644 --- a/src/core/parser/ParserScope.cpp +++ b/src/core/parser/ParserScope.cpp @@ -354,10 +354,9 @@ bool ParserScope::resolveValue(Variant &data, Handle type, // Check whether the inner type of the constant is correct - // TODO: Use correct "isa" provided by Type Type::MagicCallbackResult res = Type::MagicCallbackResult::FOUND_VALID; Rooted constantType = constant->getType(); - if (innerType != constantType) { + if (!constantType->checkIsa(innerType)) { logger.error(std::string("Expected value of type \"") + innerType->getName() + std::string("\" but found constant \"") + -- cgit v1.2.3