Skip to content

Commit 0ce3710

Browse files
authored
fix(204): add #nullable enabled directive on top of generated file (#205)
fix(202): add `#nullable enabled` directive on top of generated file This avoid CS8669 warnings Signed-off-by: backtrack5r3 <flennertom@gmail.com>
1 parent f0c10b9 commit 0ce3710

6 files changed

Lines changed: 6 additions & 0 deletions

File tree

internal/cmd/testdata/success_csharp.golden

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// AUTOMATICALLY GENERATED BY OPENFEATURE CLI, DO NOT EDIT.
2+
#nullable enable
23
using System;
34
using System.Collections.Generic;
45
using System.Threading.Tasks;

internal/generators/csharp/csharp.tmpl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// AUTOMATICALLY GENERATED BY OPENFEATURE CLI, DO NOT EDIT.
2+
#nullable enable
23
using System;
34
using System.Collections.Generic;
45
using System.Threading.Tasks;

test/csharp-integration/OpenFeature.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// AUTOMATICALLY GENERATED BY OPENFEATURE CLI, DO NOT EDIT.
2+
#nullable enable
23
using System;
34
using System.Collections.Generic;
45
using System.Threading.Tasks;

test/csharp-integration/OpenFeature.g.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// AUTOMATICALLY GENERATED BY OPENFEATURE CLI, DO NOT EDIT.
2+
#nullable enable
23
using System;
34
using System.Collections.Generic;
45
using System.Threading.Tasks;

test/csharp-integration/expected/OpenFeature.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// AUTOMATICALLY GENERATED BY OPENFEATURE CLI, DO NOT EDIT.
2+
#nullable enable
23
using System;
34
using System.Collections.Generic;
45
using System.Threading.Tasks;

test/csharp-integration/expected/OpenFeature.g.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// AUTOMATICALLY GENERATED BY OPENFEATURE CLI, DO NOT EDIT.
2+
#nullable enable
23
using System;
34
using System.Collections.Generic;
45
using System.Threading.Tasks;

0 commit comments

Comments
 (0)