| Index: third_party/protobuf/csharp/src/Google.Protobuf.Test/FieldCodecTest.cs
|
| diff --git a/third_party/protobuf/csharp/src/Google.Protobuf.Test/FieldCodecTest.cs b/third_party/protobuf/csharp/src/Google.Protobuf.Test/FieldCodecTest.cs
|
| index c616470e81fc6e8821283c68f87e2b5855659823..0e2bad59e5fcf89ecb3ba3894a75fba45130938a 100644
|
| --- a/third_party/protobuf/csharp/src/Google.Protobuf.Test/FieldCodecTest.cs
|
| +++ b/third_party/protobuf/csharp/src/Google.Protobuf.Test/FieldCodecTest.cs
|
| @@ -32,6 +32,7 @@
|
|
|
| using System.Collections.Generic;
|
| using System.IO;
|
| +using System.Reflection;
|
| using Google.Protobuf.TestProtos;
|
| using NUnit.Framework;
|
|
|
| @@ -162,7 +163,7 @@ namespace Google.Protobuf
|
| codedOutput.Flush();
|
| Assert.AreEqual(0, stream.Position);
|
| Assert.AreEqual(0, codec.CalculateSizeWithTag(codec.DefaultValue));
|
| - if (typeof(T).IsValueType)
|
| + if (typeof(T).GetTypeInfo().IsValueType)
|
| {
|
| Assert.AreEqual(default(T), codec.DefaultValue);
|
| }
|
|
|