diff options
Diffstat (limited to 'source/slang/lookup.cpp')
| -rw-r--r-- | source/slang/lookup.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source/slang/lookup.cpp b/source/slang/lookup.cpp index d9e63ff09..0ded328c7 100644 --- a/source/slang/lookup.cpp +++ b/source/slang/lookup.cpp @@ -404,8 +404,7 @@ void DoLocalLookupImpl( } // if we are looking inside an interface decl, try find in the interfaces it inherits from - bool isInterface = targetDeclRef.as<InterfaceDecl>() ? true : false; - if (isInterface) + if (targetDeclRef.is<InterfaceDecl>()) { if(!targetDeclRefType) { |
