diff options
author | Marek Safar <marek.safar@gmail.com> | 2011-01-05 18:44:02 +0300 |
---|---|---|
committer | Marek Safar <marek.safar@gmail.com> | 2011-01-05 18:45:53 +0300 |
commit | 744039ce748b831ce740a86034c62131be39b2b7 (patch) | |
tree | 62f0ffe2920710e07ad0bfbba8d782259d11a8aa /mcs/tests/gtest-550.cs | |
parent | f63ceee13b7d8710a47a36c306cc996cbec5b6df (diff) |
[662440] Don't expand nested type builders of non-generic types
Diffstat (limited to 'mcs/tests/gtest-550.cs')
-rw-r--r-- | mcs/tests/gtest-550.cs | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/mcs/tests/gtest-550.cs b/mcs/tests/gtest-550.cs new file mode 100644 index 00000000000..a845c129f3b --- /dev/null +++ b/mcs/tests/gtest-550.cs @@ -0,0 +1,61 @@ +using System; + +namespace Foo +{ + public static class Magic + { + public interface IUpDown + { + int DestinationDimension { get; } + } + + public static int Main () + { + Magic<decimal>.Upsample (new Instance ()); + return 0; + } + } + + public static class Magic<T> + { + public interface IAccessible { T this[int index] { get; set; } } + + public interface IUpDown : Magic.IUpDown, IAccessible { } + + public static void Upsample (IUpDown o) + { + var count = o.DestinationDimension; + } + } + + class Instance : Magic<decimal>.IUpDown + { + #region IUpDown Members + + public int DestinationDimension + { + get + { + return 1; + } + } + + #endregion + + #region IAccessible Members + + public decimal this[int index] + { + get + { + throw new NotImplementedException (); + } + set + { + throw new NotImplementedException (); + } + } + + #endregion + } +}
\ No newline at end of file |