[sgen] Don't trigger collections during allocation of thread objects (#17970)
[mono-project.git] / mcs / errors / cs0507-7.cs
blob5289579edd28e9883422d26d6a5cfba1f0c771f3
1 // CS0507: `Class2.GetString()': cannot change access modifiers when overriding `protected internal' inherited member `Class1.GetString()'
2 // Line: 7
3 // Compiler options: -r:CS0507-7-lib.dll
5 public sealed class Class2 : Class1
7 protected override string GetString ()
9 return "Hello2";