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-306.cs | |
parent | fca6d5f5bc287af303a2dc254bcdb003eca8320e (diff) |
New testcases for type-resolution.
svn path=/trunk/mcs/; revision=34716
Diffstat (limited to 'mcs/tests/test-306.cs')
-rw-r--r-- | mcs/tests/test-306.cs | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/mcs/tests/test-306.cs b/mcs/tests/test-306.cs new file mode 100644 index 00000000000..6dd09cdbd47 --- /dev/null +++ b/mcs/tests/test-306.cs @@ -0,0 +1,26 @@ +using System; + +using C = A.D; + +class A +{ + class D : 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(); + } +} |