THRIFT-5578 #nullable disable collides with C# lang versions < 8
Client: netstd
Patch: Jens Geyer
diff --git a/compiler/cpp/src/thrift/generate/t_netstd_generator.cc b/compiler/cpp/src/thrift/generate/t_netstd_generator.cc
index d3f3a1b..ad9e579 100644
--- a/compiler/cpp/src/thrift/generate/t_netstd_generator.cc
+++ b/compiler/cpp/src/thrift/generate/t_netstd_generator.cc
@@ -311,8 +311,6 @@
{
if( use_net6_features) {
out << "#nullable enable // requires C# 8.0" << endl;
- } else {
- out << "#nullable disable // suppress C# 8.0 nullable contexts (we still support earlier versions)" << endl;
}
// this one must be first