Skip to content

Commit

Permalink
Fix C# 8 language issue with target type new expression (#353)
Browse files Browse the repository at this point in the history
  • Loading branch information
jamescourtney authored Nov 25, 2022
1 parent 359b753 commit fb060c8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/FlatSharp/Serialization/DeserializeClassDefinition.cs
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ protected virtual string GetGetOrCreateMethodBody()
else
{
return $@"
{this.ClassName}<TInputBuffer>? item = new();
{this.ClassName}<TInputBuffer>? item = new {this.ClassName}<TInputBuffer>();
item.Initialize(buffer, offset, remainingDepth);
return item;
";
Expand Down
4 changes: 2 additions & 2 deletions src/common.props
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@

<PropertyGroup>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<Version>7.0.1</Version>
<PackageVersion>7.0.1</PackageVersion>
<Version>7.0.2</Version>
<PackageVersion>7.0.2</PackageVersion>
<AssemblyVersion>$(Version)</AssemblyVersion>
<Authors>James Courtney</Authors>
<Description>FlatSharp is a fast, idiomatic implementation of the FlatBuffer binary format.</Description>
Expand Down

0 comments on commit fb060c8

Please sign in to comment.