diff options
author | Marek Safar <marek.safar@gmail.com> | 2005-03-15 14:36:52 +0300 |
---|---|---|
committer | Marek Safar <marek.safar@gmail.com> | 2005-03-15 14:36:52 +0300 |
commit | 3c51d59125a4ecf704d0bcd2302064da37437dbd (patch) | |
tree | 878ece23014f91a18138f969f5570d55ca904092 /mcs/errors/cs0165-5.cs | |
parent | 1526b387b56b76b48ac86e4bec98e35619fd3aa8 (diff) |
New tests + updated wrong (need to flush before it become chaotic)
Removed obsole tests.
svn path=/trunk/mcs/; revision=41830
Diffstat (limited to 'mcs/errors/cs0165-5.cs')
-rw-r--r-- | mcs/errors/cs0165-5.cs | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/mcs/errors/cs0165-5.cs b/mcs/errors/cs0165-5.cs new file mode 100644 index 00000000000..a7ca518dc69 --- /dev/null +++ b/mcs/errors/cs0165-5.cs @@ -0,0 +1,23 @@ +// cs0165.cs: Use of unassigned local variable +// Line: 9 + +using System; + +class C { + public static int test5 () + { + int a; + + try { + Console.WriteLine ("TRY"); + a = 8; + } catch { + a = 9; + } finally { + // CS0165 + Console.WriteLine (a); + } + + return a; + } +} |