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:
parent
a681da30be
commit
83069fa216
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue