1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 12:32:20 +02:00

Diallowed unbound generics for 'is'

This commit is contained in:
Brian Fiete 2020-08-11 12:32:04 -07:00
parent 85b4afcd94
commit b53089a3e4

View file

@ -8885,7 +8885,7 @@ void BfExprEvaluator::Visit(BfCheckTypeExpression* checkTypeExpr)
if (autoComplete != NULL)
autoComplete->CheckTypeRef(checkTypeExpr->mTypeRef, false, true);
auto targetType = mModule->ResolveTypeRefAllowUnboundGenerics(checkTypeExpr->mTypeRef);
auto targetType = mModule->ResolveTypeRef(checkTypeExpr->mTypeRef);
if (!targetType)
{
mModule->AssertErrorState();