mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 12:32:20 +02:00
Added reflect method filters
This commit is contained in:
parent
f566daacea
commit
f9c0f2a311
9 changed files with 204 additions and 112 deletions
|
@ -6932,7 +6932,7 @@ BfTypedValue BfExprEvaluator::MatchMethod(BfAstNode* targetSrc, BfMethodBoundExp
|
|||
|
||||
// If we call "GetType" on a value type, statically determine the type rather than boxing and then dispatching
|
||||
if ((methodDef) && (target) && (curTypeInst == mModule->mContext->mBfObjectType) &&
|
||||
(methodDef->mName == "GetType") && (target.mType->IsValueType()))
|
||||
(methodDef->mName == "GetType") && (target.mType->IsValueType()) && (argValues.mArguments->IsEmpty()))
|
||||
{
|
||||
BfType* targetType = target.mType;
|
||||
if (origTarget)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue