zompinc / sync-method-generator

Generates a synchronized version of an async method
MIT License
48 stars 4 forks source link

(1.3.21) Lost FQN in `using` statement #57

Closed lsoft closed 6 months ago

lsoft commented 6 months ago
namespace SomeNamespace
{

...
        [Zomp.SyncMethodGenerator.CreateSyncVersion]
        public async Task FooAsync(
            )
        {
            using MyStream ms = new MyStream();
            await Task.Delay(1);
        }

...

namespace OtherNamespace
{
    public class MyStream : NetworkStream
    {
...
    }
...

the result:

image

virzak commented 6 months ago

AnotherOne :) will fix

virzak commented 6 months ago
MyStream ms = new MyStream();

wasn't working either.

virzak commented 6 months ago

Version 1.3.23