[jit] Fix the saving of the 'cfg->ret_var_set' flag when inlining, it was set to...
[mono.git] / mcs / errors / cs0809-2.cs
1 // CS0809: Obsolete member `A.Filename' overrides non-obsolete member `Error.Filename'
2 // Line: 8
3 // Compiler options: -warnaserror
4
5 class A: Error {
6         [System.ObsoleteAttribute ("Obsolete", true)]   
7         public override string Filename {
8                 set {
9                 }
10         }
11         
12         public static void Main () {}
13 }
14
15 public class Error {
16         public virtual string Filename {
17                 set {
18                 }
19                 get {
20                         return "aa";
21                 }
22         }
23 }
24
25 class B {
26         void TT () {
27                 new A ().Filename = "Filename";
28         }
29 }