Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,13 @@ public void Initialize(IncrementalGeneratorInitializationContext context)
var sourceType = methodSymbol.Parameters[0].Type;
var targetType = methodSymbol.ReturnType;

// Skip conversion operators with unbound generic type parameters
// These cannot be properly represented in AOT converters at runtime
if (sourceType.IsGenericDefinition() || targetType.IsGenericDefinition())
{
return null;
}

return new ConversionInfo
{
ContainingType = containingType,
Expand Down