daver32 / InterfaceGenerator

A simple source generator that creates interfaces by implementations.
MIT License
36 stars 14 forks source link

Keep same nullable context as implementation #16

Open fjmorel opened 1 year ago

fjmorel commented 1 year ago

If possible, it would great if the nullable context (off, annotations, on) could be set per item on the interface to match whatever has been set on the implementation with #nullable enable and the like.

Right now, if I set something to a nullable reference type, I get a build warning.

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context. Auto-generated code requires an explicit '#nullable'