[metadata] Use MONO_PROFILER_API on MonoClass getters in checked builds (#20440)
[mono-project.git] / mcs / errors / cs0649-5.cs
blob20778691b1e98763eeaa3bd6a23615deaa257767
1 // CS0649: Field `TestClass.b' is never assigned to, and will always have its default value
2 // Line: 12
3 // Compiler options: -warnaserror -warn:4
5 public struct Bar
7 public int x;
10 public class TestClass
12 Bar b;
14 public bool Foo ()
16 if (b.x == 0)
17 return false;
19 return true;
22 public static void Main ()