diff options
author | Marek Safar <marek.safar@gmail.com> | 2011-04-12 16:43:51 +0400 |
---|---|---|
committer | Marek Safar <marek.safar@gmail.com> | 2011-04-12 18:15:45 +0400 |
commit | 410b3e423f1135a9783d93ef93635c3cb27b809f (patch) | |
tree | 4b54d7ce324ca1e8fbe18e7bf2f0acf578e3d99b /mcs/tests/gtest-556.cs | |
parent | b12e7d8ef036b2f99fce7bb04511bad6faeb2500 (diff) |
[686290] Inflate correctly imported nested type used from same type
Diffstat (limited to 'mcs/tests/gtest-556.cs')
-rw-r--r-- | mcs/tests/gtest-556.cs | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/mcs/tests/gtest-556.cs b/mcs/tests/gtest-556.cs new file mode 100644 index 00000000000..2c9eb057d62 --- /dev/null +++ b/mcs/tests/gtest-556.cs @@ -0,0 +1,25 @@ +// Compiler options: -r:gtest-556-lib.dll + +using System; + +class A2 +{ + public class N<T> + { + public static N<T> Method () + { + return default (N<T>); + } + } +} + +class Test +{ + static int Main () + { + A2.N<short> b1 = A2.N<short>.Method (); + A.N<byte> b2 = A.N<byte>.Method (); + + return 0; + } +} |