-
-
Notifications
You must be signed in to change notification settings - Fork 673
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1556 from Scormave/fixNullableKnownTypes
Fixed nullable embedded types are being added to generated resolver
- Loading branch information
Showing
3 changed files
with
116 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// Copyright (c) All contributors. All rights reserved. | ||
// Licensed under the MIT license. See LICENSE file in the project root for full license information. | ||
|
||
#pragma warning disable SA1307 // Accessible fields should begin with upper-case letter | ||
#pragma warning disable SA1401 // Fields should be private | ||
#pragma warning disable SA1649 // File name should match first type name | ||
|
||
#nullable enable | ||
|
||
namespace TestData2; | ||
|
||
[MessagePackObject(true)] | ||
public class NullableTest | ||
{ | ||
public int[]? a; | ||
public List<byte[]?> b = null!; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters