-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
I have the following code
[Zomp.SyncMethodGenerator.CreateSyncVersion(OmitNullableDirective = true)]
public async Task<bool> FooAsync()
{
return await Bar(() => Task.FromResult(true));
}
public T Bar<T>(Func<T> innerLogic) => innerLogic();which ends up producing
public bool Foo()
{
}which gives the following error
FooAsync.g.cs(6,21,6,24): error CS0161: 'Foo()': not all code paths return a value
I expected it to produce
public bool Foo()
{
return Bar(() => true);
}virzak
Metadata
Metadata
Assignees
Labels
No labels