New tests.
authorMarek Safar <marek.safar@gmail.com>
Wed, 19 Aug 2009 10:58:38 +0000 (10:58 -0000)
committerMarek Safar <marek.safar@gmail.com>
Wed, 19 Aug 2009 10:58:38 +0000 (10:58 -0000)
svn path=/trunk/mcs/; revision=140231

1  2 
mcs/errors/cs0027-4.cs
mcs/errors/cs0206-2.cs
mcs/errors/cs0432-3.cs
mcs/errors/cs0533-4.cs
mcs/errors/cs0534-5.cs
mcs/errors/cs1967.cs

index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..cae5dc9212849e9f4bf194204eb28e00cd858fae
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,7 @@@
++// CS0027: Keyword `this' is not available in the current context
++// Line: 6
++
++class Program
++{
++      const object y = this;
++}
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..210590692461497e6a38a97d43c984fefb27ccd0
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,27 @@@
++// CS0206: A property or indexer may not be passed as an out or ref parameter
++// Line: 22
++
++using System;
++
++namespace N
++{
++      public class Test
++      {
++              public double this[int i]
++              {
++                      get { return 1; }
++              }
++
++              public static void WriteOutData(out double d)
++              {
++                      d = 5.0;
++              }
++
++              public static void Main(string[] args)
++              {
++                      Test test = new Test();
++                      WriteOutData(out test[1]);
++              }
++      }
++}
++
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..492aac16bb1e37c175e34c2ded8a7e547d041401
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,6 @@@
++// CS0432: Alias `Sa' not found
++// Line: 6
++
++using S = System;
++
++[assembly: Sa::CLSCompliantAttribute (false)]
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..4d2eee8243cb0eb8af6a7d85d7725cef92bfe722
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,12 @@@
++// CS0533: `B.MyEvent' hides inherited abstract member `A.MyEvent'
++// Line: 11
++
++using System;
++
++abstract class A {
++      public abstract event EventHandler MyEvent;
++}
++
++class B : A {
++      public event EventHandler MyEvent;
++}
diff --cc mcs/errors/cs0534-5.cs
index 66b2a27ceec73ee0a699d0adaf0a1b45fb18bdff,66b2a27ceec73ee0a699d0adaf0a1b45fb18bdff..0000000000000000000000000000000000000000
deleted file mode 100644,100644
+++ /dev/null
@@@ -1,12 -1,12 +1,0 @@@
--// CS0534: `B' does not implement inherited abstract member `A.MyEvent.add'
--// Line: 11
--
--using System;
--
--abstract class A {
--      public abstract event EventHandler MyEvent;
--}
--
--class B : A {
--      public event EventHandler MyEvent;
--}
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..696c979c0177629120ba1ed9becd8262d02243c6
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,6 @@@
++// CS1967: A constraint cannot be the dynamic type
++// Line: 4
++
++class C<T> where T : dynamic
++{
++}