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-03-04 18:08:09 +0300
committerMarek Safar <marek.safar@gmail.com>2005-03-04 18:08:09 +0300
commit92f1702f9c48aa77e14733e1cfc2b4087d76a3bc (patch)
tree98afb8fec9ff6b06fe574945cdbd26a2929eff4b /mcs/errors/cs1629.cs
parent425756f59ae442d866490f63d1278c24fe21a4f1 (diff)
more tests + update
svn path=/trunk/mcs/; revision=41443
Diffstat (limited to 'mcs/errors/cs1629.cs')
-rw-r--r--mcs/errors/cs1629.cs13
1 files changed, 13 insertions, 0 deletions
diff --git a/mcs/errors/cs1629.cs b/mcs/errors/cs1629.cs
new file mode 100644
index 00000000000..4b969744c05
--- /dev/null
+++ b/mcs/errors/cs1629.cs
@@ -0,0 +1,13 @@
+// cs1629.cs: Unsafe code may not appear in iterators
+// Line: 8
+// Compiler options: -unsafe
+
+using System.Collections;
+
+class X {
+ static unsafe IEnumerator GetIt ()
+ {
+ yield return 1;
+ }
+
+} \ No newline at end of file