Skip to content

Commit 60b5739

Browse files
add #nullable restore to decorator template to resolve compiler warning CS8669 (#57)
1 parent 18537a8 commit 60b5739

6 files changed

+6
-0
lines changed

DecoratorGenerator.UnitTests/BirdDecorator.generated.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// <auto-generated/>
2+
#nullable restore
23
namespace SampleLibrary;
34

45
public abstract class BirdDecorator : IBird

DecoratorGenerator.UnitTests/CatDecorator.generated.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// <auto-generated/>
2+
#nullable restore
23
namespace SampleLibrary;
34

45
public abstract class CatDecorator : ICat

DecoratorGenerator.UnitTests/DynamoDBContextDecorator.generated.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// <auto-generated/>
2+
#nullable restore
23
namespace Amazon.DynamoDBv2.DataModel;
34

45
public abstract class DynamoDBContextDecorator : IDynamoDBContext

DecoratorGenerator.UnitTests/LionPropertiesDecorator.generated.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// <auto-generated/>
2+
#nullable restore
23
namespace SampleLibrary;
34

45
public abstract class LionPropertiesDecorator : ILionProperties

DecoratorGenerator.UnitTests/NestedDecorator.generated.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// <auto-generated/>
2+
#nullable restore
23
namespace SampleLibrary.Deep.Nesteds;
34

45
public abstract class NestedDecorator : INested

DecoratorGenerator/OutputGenerator.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ public static (string source, string className) GenerateOutputs(INamedTypeSymbol
2020

2121
var source =
2222
$@"// <auto-generated/>
23+
#nullable restore
2324
namespace {type.ContainingNamespace.ToDisplayString()};
2425
2526
public abstract class {className} : {@interface.Name}

0 commit comments

Comments
 (0)