Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Safar <marek.safar@gmail.com>2005-05-13 13:43:26 +0400
committerMarek Safar <marek.safar@gmail.com>2005-05-13 13:43:26 +0400
commit18db43b590e3e695402c6186b085411005502b62 (patch)
treed6fdd534b1a48b31500f4f6d5fdcb797b217977b /mcs/errors/cs1657-2.cs
parentfa44c5ad4e6b8fa7582719557064b6d3e4a458ee (diff)
new tests
svn path=/trunk/mcs/; revision=44492
Diffstat (limited to 'mcs/errors/cs1657-2.cs')
-rw-r--r--mcs/errors/cs1657-2.cs19
1 files changed, 19 insertions, 0 deletions
diff --git a/mcs/errors/cs1657-2.cs b/mcs/errors/cs1657-2.cs
new file mode 100644
index 00000000000..817e80191bc
--- /dev/null
+++ b/mcs/errors/cs1657-2.cs
@@ -0,0 +1,19 @@
+// cs1657.cs: Cannot pass 'm' as a ref or out argument because it is a 'using variable'
+// Line: 11
+
+using System.IO;
+
+class E
+{
+ public E (int[] args)
+ {
+ using (MemoryStream m = new MemoryStream ()){
+ Init (out m);
+ }
+ }
+
+ void Init (out MemoryStream val)
+ {
+ val = null;
+ }
+}