From d5492155d6d8b16f262c09f72d8653e3e675b616 Mon Sep 17 00:00:00 2001 From: Yong He Date: Sun, 10 Mar 2019 09:38:20 -0700 Subject: Fix `spReflection_FindTypeByName` (#891) --- source/slang/slang.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/slang/slang.cpp') 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 typeExpr = linkage->parseTypeString( typeStr, s); type = checkProperType(linkage, TypeExp(typeExpr), sink); - if(type) + if (type && !type.as()) break; } if( type ) -- cgit v1.2.3