summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/core/parser/ParserScope.cpp3
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 \"") +