diff options
author | Raja R Harinath <harinath@hurrynot.org> | 2004-10-05 15:33:05 +0400 |
---|---|---|
committer | Raja R Harinath <harinath@hurrynot.org> | 2004-10-05 15:33:05 +0400 |
commit | 62f2bd39d9931d45fe61f6a1f22337b0eb524f13 (patch) | |
tree | ad46892af33359f6786f474857016a1f28c58f41 /mcs/tests/test-302.cs | |
parent | fca6d5f5bc287af303a2dc254bcdb003eca8320e (diff) |
New testcases for type-resolution.
svn path=/trunk/mcs/; revision=34716
Diffstat (limited to 'mcs/tests/test-302.cs')
-rw-r--r-- | mcs/tests/test-302.cs | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/mcs/tests/test-302.cs b/mcs/tests/test-302.cs new file mode 100644 index 00000000000..8191dbc1b29 --- /dev/null +++ b/mcs/tests/test-302.cs @@ -0,0 +1,24 @@ +using System; + +class A +{ + class C : Exception { } + + public class B + { + class C : Exception { } + + public B () { + try { + throw new A.B.C (); + } + catch (C e) { + } + } + } + + public static void Main() + { + object o = new A.B(); + } +} |