svn path=/trunk/mcs/; revision=108214
+++ /dev/null
--// 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;
-- }
--}
+++ /dev/null
--// 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;
-- }
--}
--- /dev/null
--- /dev/null
++// CS0162: Unreachable code detected
++// Line: 11
++// Compiler options: -warnaserror -warn:2
++
++public class Test
++{
++ public static void Main ()
++ {
++ return;
++
++ Test testStr;
++ return;
++ }
++}
--// 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
int x = y;
int y = 1;
}
--}
++}
--- /dev/null
--- /dev/null
++// 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;
++ }
++}
--// 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
--- /dev/null
--- /dev/null
++// 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;
++ }
++}
--- /dev/null
--- /dev/null
++// 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";
++ }
++}
--// 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