We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8030c81 commit 499bfe7Copy full SHA for 499bfe7
src/SourceGeneration.Reflection.SourceGenerator/Models/SourceMethodInfo.cs
@@ -24,7 +24,7 @@ public bool CanInvoke()
24
25
if (IsGenericMethod)
26
{
27
- if (TypeParameters.Any(x => x.HasUnmanagedTypeConstraint || x.HasTypeParameterInConstraintTypes || x.ConstraintTypes.Length > 1))
+ if (TypeParameters.Any(x => x.HasUnmanagedTypeConstraint || x.HasValueTypeConstraint || x.HasTypeParameterInConstraintTypes || x.ConstraintTypes.Length > 1))
28
return false;
29
30
if (Parameters.Any(x => !x.IsTypeParameter && x.HasNestedTypeParameter))
0 commit comments