New tests, updates
authorMarek Safar <marek.safar@gmail.com>
Fri, 18 Jul 2008 09:52:24 +0000 (09:52 -0000)
committerMarek Safar <marek.safar@gmail.com>
Fri, 18 Jul 2008 09:52:24 +0000 (09:52 -0000)
svn path=/trunk/mcs/; revision=108214

1  2 
mcs/errors/cs0136-3.cs
mcs/errors/cs0136-4.cs
mcs/errors/cs0162-12.cs
mcs/errors/cs0841-2.cs
mcs/errors/cs0841-3.cs
mcs/errors/cs0841.cs
mcs/errors/cs0844-2.cs
mcs/errors/cs0844.cs
mcs/errors/gcs0841.cs

diff --cc mcs/errors/cs0136-3.cs
index 6a8c82e1a61e6db8a67eb5481e11e8f80dcf7717,6a8c82e1a61e6db8a67eb5481e11e8f80dcf7717..0000000000000000000000000000000000000000
deleted file mode 100644,100644
+++ /dev/null
@@@ -1,11 -1,11 +1,0 @@@
--// cs0136-3.cs: A local variable named `y' cannot be declared in this scope because it would give a different meaning to `y', which is already used in a `parent or current' scope to denote something else
--// Line: 8
--
--class X
--{
--   static void y () { }
--   static void Main () {
--     y ();
--     int y = 5;
--   }
--}
diff --cc mcs/errors/cs0136-4.cs
index 74a623bf66edea4ee053487565ce9470de8701ad,74a623bf66edea4ee053487565ce9470de8701ad..0000000000000000000000000000000000000000
deleted file mode 100644,100644
+++ /dev/null
@@@ -1,11 -1,11 +1,0 @@@
--// cs0136-4.cs: A local variable named `y' cannot be declared in this scope because it would give a different meaning to `y', which is already used in a `parent or current' scope to denote something else
--// Line: 8
--
--class X
--{
--      static int y;
--      static void Main () {
--              y = 10;
--              int y = 5;
--      }
--}
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..5215e44c714aae42dc11acb7a53c0869759f963f
new file mode 100755 (executable)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,14 @@@
++// CS0162: Unreachable code detected
++// Line: 11
++// Compiler options: -warnaserror -warn:2
++
++public class Test
++{
++      public static void Main ()
++      {
++              return;
++
++              Test testStr;
++              return;
++      }
++}
index 90070d2ef1abd37a91d5e33e74f79fd696c2dfd8,90070d2ef1abd37a91d5e33e74f79fd696c2dfd8..8cf05e8ee1968deaff2c713a3f546dec7069590b
@@@ -1,4 -1,4 +1,4 @@@
--// CS0841: The variable `y' cannot be used before it is declared
++// CS0841: A local variable `y' cannot be used before it is declared
  // Line: 8
  
  public class C
@@@ -8,4 -8,4 +8,4 @@@
            int x = y;
            int y = 1;
        }
--}
++}
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..2d0b97f2846f6987488f6260f9c59f2533f2d5e4
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,11 @@@
++// CS0841: A local variable `y' cannot be used before it is declared
++// Line: 8
++
++class X
++{
++   static void y () { }
++   static void Main () {
++     y ();
++     int y = 5;
++   }
++}
index 3d885b6d37551a2e71fe9c89cca577d7ee8bf5b5,3d885b6d37551a2e71fe9c89cca577d7ee8bf5b5..ba1f977a53d0c51dc83961473e7e6b77c13303e8
@@@ -1,4 -1,4 +1,4 @@@
--// CS0841: The variable `y' cannot be used before it is declared
++// CS0841: A local variable `y' cannot be used before it is declared
  // Line: 8
  
  public class C
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..051557d2d52cb58d78aae245ea9410f65a1ece0e
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,11 @@@
++// CS0844: A local variable `y' cannot be used before it is declared. Consider renaming the local variable when it hides the field `X.y'
++// Line: 8
++
++class X
++{
++      static int y;
++      static void Main () {
++              y = 10;
++              int y = 5;
++      }
++}
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..dc7f835a5fbe6fb10ed2a32f910c96bf09f8ab70
new file mode 100755 (executable)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,13 @@@
++// CS0844: A local variable `s' cannot be used before it is declared. Consider renaming the local variable when it hides the field `C.s'
++// Line: 10
++
++class C
++{
++      string s;
++
++      public void Test ()
++      {
++              s = "x";
++              string s = "a";
++      }
++}
index f466ca1bae6850b3153b1e39428401682ccd8d3e,f466ca1bae6850b3153b1e39428401682ccd8d3e..9aa926454939949b20ebec00ea9aafb56ba8addb
@@@ -1,4 -1,4 +1,4 @@@
--// CS0841: The variable `v' cannot be used before it is declared
++// CS0841: A local variable `v' cannot be used before it is declared
  // Line: 9