Skip to content

Commit 9e92c9f

Browse files
committed
Handle ref struct
1 parent bd173f6 commit 9e92c9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

NetFabric.Hyperlinq.SourceGenerator/Generator.AsValueEnumerable.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ static bool HandleAsValueEnumerable(Compilation compilation, TypeSymbolsCache ty
164164
.AppendLine()
165165
.AppendLine($"IEnumerator IEnumerable.GetEnumerator() => ((IEnumerable<{itemTypeString}>)source).GetEnumerator();");
166166
}
167-
else
167+
else if (!getEnumeratorReturnType.IsRefLikeType)
168168
{
169169
// A custom enumerator wrapper is required
170170

0 commit comments

Comments
 (0)