diff options
author | Martin Baulig <martin@novell.com> | 2005-05-02 18:05:01 +0400 |
---|---|---|
committer | Martin Baulig <martin@novell.com> | 2005-05-02 18:05:01 +0400 |
commit | cb3e137d10e13b60fe9893782365c232a6ba10c6 (patch) | |
tree | c6eb52ea7a9a1cb3971495af8ce3552164073d95 /mcs/errors/cs0165-8.cs | |
parent | fa04b80eaaa682013fd17c29791a50e36161659b (diff) |
New error tests.
svn path=/trunk/mcs/; revision=43885
Diffstat (limited to 'mcs/errors/cs0165-8.cs')
-rwxr-xr-x | mcs/errors/cs0165-8.cs | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/mcs/errors/cs0165-8.cs b/mcs/errors/cs0165-8.cs new file mode 100755 index 00000000000..f24532fcc21 --- /dev/null +++ b/mcs/errors/cs0165-8.cs @@ -0,0 +1,19 @@ +// CS0165: Use of unassigned local variable `x' +// Line: 17 +using System; + +public class Foo +{ + static void Main () + { + int service; + + foreach (char b in "hola") { + Console.WriteLine (b); + service = 1; + break; + } + + Console.WriteLine (service); + } +} |