diff options
author | Andreas Stöckel <astoecke@techfak.uni-bielefeld.de> | 2015-02-03 21:43:18 +0100 |
---|---|---|
committer | Andreas Stöckel <astoecke@techfak.uni-bielefeld.de> | 2015-02-03 21:43:18 +0100 |
commit | d4f6c5e63c1dd1503b1bc7d237803695ca1763bb (patch) | |
tree | e343bc42e99e873e9b4676d87cf15fce409d7092 /src/core/parser/ParserScope.cpp | |
parent | 6a1529fc7e5d9022fa95434cc90809173d9708ed (diff) |
Using correct "isa" provided by Type
Diffstat (limited to 'src/core/parser/ParserScope.cpp')
-rw-r--r-- | src/core/parser/ParserScope.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
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> 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<Type> 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 \"") + |