mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 19:48:20 +02:00
Disallow 'null' for inferred generic argument
This commit is contained in:
parent
965e2e2930
commit
989f9e6019
1 changed files with 2 additions and 0 deletions
|
@ -260,6 +260,8 @@ bool BfGenericInferContext::InferGenericArgument(BfMethodInstance* methodInstanc
|
||||||
// Disallow illegal types
|
// Disallow illegal types
|
||||||
if (argType->IsRef())
|
if (argType->IsRef())
|
||||||
return;
|
return;
|
||||||
|
if (argType->IsNull())
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((*mCheckMethodGenericArguments)[wantGenericParam->mGenericParamIdx] != argType)
|
if ((*mCheckMethodGenericArguments)[wantGenericParam->mGenericParamIdx] != argType)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue