[mcs] Allows shadowing of probing pattern variables
[mono.git] / mcs / errors / cs0619-41.cs
index 2527e65295d284077fcfb670a0a12648faece7ec..68360976a759ead97acb09cd78d9bab88e399ce5 100644 (file)
@@ -1,28 +1,18 @@
-// cs0619-41.cs: `A.Filename' is obsolete: `Obsolete'
-// Line: 8
+// CS0619: `Y' is obsolete: `ooo'
+// Line: 6
 
-class A: Error {
-       [System.ObsoleteAttribute ("Obsolete", true)]   
-       public override string Filename {
-               set {
-               }
-       }
-       
-       public static void Main () {}
+using System;
+
+class X : I<Y>
+{
 }
 
-public class Error {
-       public virtual string Filename {
-               set {
-               }
-               get {
-                       return "aa";
-               }
-       }
+interface I<T>
+{
+
 }
 
-class B {
-       void TT () {
-               new A ().Filename = "Filename";
-       }
-}
\ No newline at end of file
+[Obsolete("ooo", true)]
+class Y
+{
+}