mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 19:48:20 +02:00
Allow ? match to 'out' during CheckMethod
This commit is contained in:
parent
fad6b49908
commit
7cb92e4007
1 changed files with 9 additions and 1 deletions
|
@ -2170,6 +2170,14 @@ bool BfMethodMatcher::CheckMethod(BfTypeInstance* targetTypeInstance, BfTypeInst
|
|||
}
|
||||
}
|
||||
|
||||
bool matches = false;
|
||||
if (wantType->IsOut())
|
||||
{
|
||||
if (auto memberRefExpr = BfNodeDynCast<BfUninitializedExpression>(mArguments[argIdx].mExpression))
|
||||
matches = true;
|
||||
}
|
||||
|
||||
if (!matches)
|
||||
goto NoMatch;
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue