Ad
struct Test {
    const int t = 42;
};

template <class T>
struct TestTemplateThis : T {
    int get_t() const { return this->t; }
};

template <class T>
struct TestTemplateNoThis : T {
    int get_t() const { return t; }
};
Code
Diff
  • namespace Test {
      public class Test {
        public string a, b;
        
        public bool DummyMethod() 
        {  
          string local_b, local_a = default;
          local_b = null;     
          return local_a == local_b;      
        }
        
      }
    }
    • namespace Test {
    • public class Test {
    • public string a,b = null;
    • public string a, b;
    • public bool DummyMethod() {
    • public bool DummyMethod()
    • {
    • string local_b, local_a = default;
    • local_b = null;
    • return local_a == local_b;
    • }
    • }
    • }
namespace Test {
  public class Test {
    public string a;
    public string b = null;
  }
}