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

Fixed issue enumerating over concrete interface

This commit is contained in:
Brian Fiete 2021-01-15 15:01:45 -08:00
parent a681da30be
commit 83069fa216

View file

@ -6018,6 +6018,9 @@ void BfModule::Visit(BfForEachStatement* forEachStmt)
} }
} }
if (target.mType->IsConcreteInterfaceType())
target.mType = target.mType->GetUnderlyingType();
if (isArray || isSizedArray) if (isArray || isSizedArray)
{ {
itrType = GetPrimitiveType(BfTypeCode_IntPtr); itrType = GetPrimitiveType(BfTypeCode_IntPtr);