diff options
author | Martin Baulig <martin@novell.com> | 2007-03-27 02:25:33 +0400 |
---|---|---|
committer | Martin Baulig <martin@novell.com> | 2007-03-27 02:25:33 +0400 |
commit | 771cf0dc5437db68e123e2478f2995b1d63d7dae (patch) | |
tree | eb1a64b44df77aa7ff5e5e8ca2c4d7f965dd6234 /mcs/tests/gtest-323.cs | |
parent | f6f747f059680bdc6b72286adad9770dec3110a4 (diff) |
2007-03-27 Martin Baulig <martin@ximian.com>
Fix #81209.
* decl.cs
(DeclSpace.LookupNestedTypeInHierarchy): Correctly handle nested
generic types.
svn path=/trunk/mcs/; revision=74993
Diffstat (limited to 'mcs/tests/gtest-323.cs')
-rwxr-xr-x | mcs/tests/gtest-323.cs | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/mcs/tests/gtest-323.cs b/mcs/tests/gtest-323.cs new file mode 100755 index 00000000000..a8b1b8bb50d --- /dev/null +++ b/mcs/tests/gtest-323.cs @@ -0,0 +1,22 @@ +public class MyBase<K, V> +{ + public class Callback + { } + + public void Hello (Callback cb) + { } +} + +public class X : MyBase<string, int> +{ + public X (Callback cb) + { } + + public void Test (Callback cb) + { + Hello (cb); + } + + static void Main () + { } +} |