diff options
| -rw-r--r-- | source/slang/check.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/slang/check.cpp b/source/slang/check.cpp index cc245b5f4..921ef61e6 100644 --- a/source/slang/check.cpp +++ b/source/slang/check.cpp @@ -2310,6 +2310,11 @@ namespace Slang return; } } + else if(base.type.is<ErrorType>()) + { + // If an error was already produced, don't emit a cascading error. + return; + } // If type expression didn't name an interface, we'll emit an error here // TODO: deal with the case of an error in the type expression (don't cascade) |
