mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-11 04:52:21 +02:00
Fixed default return value for var call returns
This commit is contained in:
parent
1624b38958
commit
41629b49d1
1 changed files with 4 additions and 2 deletions
|
@ -3273,6 +3273,8 @@ BfTypedValue BfExprEvaluator::LookupIdentifier(BfAstNode* refNode, const StringI
|
||||||
if ((result) || (mPropDef != NULL))
|
if ((result) || (mPropDef != NULL))
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//TODO: Try static search
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -7120,8 +7122,8 @@ BfTypedValue BfExprEvaluator::MatchMethod(BfAstNode* targetSrc, BfMethodBoundExp
|
||||||
(((BfGenericParamType*)methodMatcher.mBestRawMethodInstance->mReturnType)->mGenericParamKind != BfGenericParamKind_Method))
|
(((BfGenericParamType*)methodMatcher.mBestRawMethodInstance->mReturnType)->mGenericParamKind != BfGenericParamKind_Method))
|
||||||
retType = methodMatcher.mBestRawMethodInstance->mReturnType;
|
retType = methodMatcher.mBestRawMethodInstance->mReturnType;
|
||||||
}
|
}
|
||||||
|
|
||||||
return mModule->GetDefaultTypedValue(retType);
|
return mModule->GetDefaultTypedValue(retType, true, BfDefaultValueKind_Addr);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue