summaryrefslogtreecommitdiffstats
path: root/source/slang/slang.cpp
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2019-03-10 09:38:20 -0700
committerTim Foley <tfoleyNV@users.noreply.github.com>2019-03-10 09:38:20 -0700
commitd5492155d6d8b16f262c09f72d8653e3e675b616 (patch)
treecccaa41ea4d61351e802cf8b5137f69b1bfce13e /source/slang/slang.cpp
parent4f94dd46a2d885e570814dd14a5e46f8e0814802 (diff)
Fix `spReflection_FindTypeByName` (#891)
Diffstat (limited to 'source/slang/slang.cpp')
-rw-r--r--source/slang/slang.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/slang/slang.cpp b/source/slang/slang.cpp
index 3582a6571..e97f5bb1b 100644
--- a/source/slang/slang.cpp
+++ b/source/slang/slang.cpp
@@ -557,7 +557,7 @@ Type* Program::getTypeFromString(String typeStr, DiagnosticSink* sink)
RefPtr<Expr> typeExpr = linkage->parseTypeString(
typeStr, s);
type = checkProperType(linkage, TypeExp(typeExpr), sink);
- if(type)
+ if (type && !type.as<ErrorType>())
break;
}
if( type )