diff options
Diffstat (limited to 'mcs/tests/gtest-579.cs')
-rw-r--r-- | mcs/tests/gtest-579.cs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/mcs/tests/gtest-579.cs b/mcs/tests/gtest-579.cs index 9def4cd52c..615312c36b 100644 --- a/mcs/tests/gtest-579.cs +++ b/mcs/tests/gtest-579.cs @@ -9,12 +9,23 @@ public class G<U, V> : IA<G<V, string>> public class C { + static bool Test_2 <T2>(T2[] t) + { + return t is byte[]; + } + public static int Main () { G<long, short> p = new G<long, short> (); if (p is IA<G<string, string>>) return 1; + if (Test_2 (new int [0])) + return 2; + + if (!Test_2 (new byte [0])) + return 3; + return 0; } }
\ No newline at end of file |