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:
authorMiguel de Icaza <miguel@gnome.org>2005-08-01 06:41:34 +0400
committerMiguel de Icaza <miguel@gnome.org>2005-08-01 06:41:34 +0400
commit2cc0d42a7e83e5980e022d1d0ab0626aee7bf096 (patch)
tree72c0193bb7d236abb8523a2039f0aef4f4f9c8b2 /mcs/tests/test-424.cs
parentbae49599cf08dd79e3203ca3c3f2af14913b3173 (diff)
Test for 75674
svn path=/trunk/mcs/; revision=47878
Diffstat (limited to 'mcs/tests/test-424.cs')
-rw-r--r--mcs/tests/test-424.cs32
1 files changed, 32 insertions, 0 deletions
diff --git a/mcs/tests/test-424.cs b/mcs/tests/test-424.cs
new file mode 100644
index 00000000000..482ba03670c
--- /dev/null
+++ b/mcs/tests/test-424.cs
@@ -0,0 +1,32 @@
+//
+// Sample for bug 75674
+//
+using System;
+using System.Collections;
+
+class XX {
+ static void Metodo (Exception e)
+ {
+ if (e is NotImplementedException){
+ Console.WriteLine ("OK");
+ } else {
+ Console.WriteLine ("Fail");
+ }
+ }
+
+ static IEnumerable X ()
+ {
+ try {
+ throw new NotImplementedException ();
+ } catch (Exception e){
+ Metodo (e);
+ }
+ yield return 0;
+ }
+
+ static void Main ()
+ {
+ foreach (int a in X ()){
+ }
+ }
+}