pakrym / jab

C# Source Generator based dependency injection container implementation.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

IAsynDisposable is still emitted when the type doesn't exist (on .NET Framework)

ViktorHofer opened this issue · comments

The following code line still uses the IAsyncDisposable type unconditionally:

codeWriter.Line($"if (value is {typeof(IDisposable)} || value is IAsyncDisposable)");

That results in errors like:
image