Closed GoogleCodeExporter closed 9 years ago
Does there have to be a loop for this? It sounds like it should be easy
demonstrate without any looping. (It does sound like a real problem though...)
Original comment by jonathan.skeet
on 13 Feb 2015 at 8:45
Looping isn't needed. It's just how this issue bit me. Thanks for the
reply
On Fri, Feb 13, 2015, 12:45 PM null <protobuf-csharp-port@googlecode.com>
wrote:
Original comment by aaron.hu...@gmail.com
on 13 Feb 2015 at 8:57
I can't reproduce this in a test, e.g.
[TestMethod]
public void ClearWithEnum()
{
var builder = new TestAllTypes.Builder {OptionalForeignEnum = ForeignEnum.FOREIGN_BAR};
var message = builder.Build();
Assert.IsTrue(message.HasOptionalForeignEnum);
Assert.AreEqual(ForeignEnum.FOREIGN_BAR, message.OptionalForeignEnum);
builder.Clear();
message = builder.Build();
Assert.IsFalse(message.HasOptionalForeignEnum);
}
That passes. Could you give a similar test (or short but complete program) that
fails?
Original comment by jonathan.skeet
on 15 Feb 2015 at 10:52
Sorry Jon, my bad. Please disregard.
Original comment by aaron.hu...@gmail.com
on 15 Feb 2015 at 7:15
So you made a mistake diagnosing it? Fantastic - will close the issue. Thanks!
(If it turns out there really is a problem after all, feel free to reopen, of
course.)
Original comment by jonathan.skeet
on 15 Feb 2015 at 7:25
Original issue reported on code.google.com by
aaron.hu...@gmail.com
on 13 Feb 2015 at 8:02