In C# binder, suggest using UnknownResultType instead of CreateErrorType() #9278
Labels
Area-Compilers
Resolution-Won't Fix
A real bug, but Triage feels that the issue is not impactful enough to spend time on.
In the C# binders, we currently use
CreateErrorType()
to create an error type during error recovery. However, we have a cached singleton error type we could use instead calledErrorTypeSymbol.UnknownResultType
. Consider refactoring the former to the latter throughout the compiler.(Thanks to @AlekseyTs for observing this)
The text was updated successfully, but these errors were encountered: