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/cs0269.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/cs0269.cs')
-rw-r--r-- | mcs/errors/cs0269.cs | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/mcs/errors/cs0269.cs b/mcs/errors/cs0269.cs new file mode 100644 index 00000000000..2e28732b431 --- /dev/null +++ b/mcs/errors/cs0269.cs @@ -0,0 +1,24 @@ +// cs0269.cs: Use of unassigned out parameter 'a' +// Line: 23 + +struct A +{ + public int a; + public A (int foo) + { + a = foo; + } +} + +class X +{ + static void test_output (A a) + { + } + + static void test5 (out A a) + { + test_output (a); + a = new A (5); + } +} |