Closed skarllot closed 6 months ago
@skarllot, could you provide a minimal class with signatures and attributes? Thanks.
@virzak
public partial class Subject1<T>
{
[Zomp.SyncMethodGenerator.CreateSyncVersion]
public async Task FooAsync(
)
{
await Task.Delay(1);
}
}
public partial class Subject1
{
[Zomp.SyncMethodGenerator.CreateSyncVersion]
public async Task FooAsync(
)
{
await Task.Delay(1);
}
}
warning CS8785: Generator 'SyncMethodSourceGenerator' failed to generate source. It will not contribute to the output and compilation errors may occur as a result. Exception was of type 'ArgumentException' with message 'The hintName 'SomeNamespace.Subject1.FooAsync.g.cs' of the added source file must be unique within a generator.
(ISG produces 2 files with same name - generic arguments did not taken into account).
When I try to generate synchronous methods for classes with same name but different arity the generator fails.
Example:
Serializer
andSerialize<T>
.