Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Safar <marek.safar@gmail.com>2011-10-31 16:26:14 +0400
committerMarek Safar <marek.safar@gmail.com>2011-11-02 15:09:48 +0400
commitbf9a580867cd573a398ed5c3ea5668c57e5b9b9b (patch)
tree716c5528a665307823d556b7835e8dd5207030fd /mcs/tests/gtest-564.cs
parent3e03af5c188cab08b8d2a4d14573e5239d0e2fc0 (diff)
Better type parameter value type conversion checks
Diffstat (limited to 'mcs/tests/gtest-564.cs')
-rw-r--r--mcs/tests/gtest-564.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/mcs/tests/gtest-564.cs b/mcs/tests/gtest-564.cs
index a320b18e08f..a9887d6c4dc 100644
--- a/mcs/tests/gtest-564.cs
+++ b/mcs/tests/gtest-564.cs
@@ -34,15 +34,15 @@ class Test
{
var m = typeof (C1).GetMethod ("Test");
var ta = m.GetGenericArguments ()[0].GetGenericParameterConstraints ();
- if (ta.Length != 1)
+ if (ta.Length != 2)
return 1;
m = typeof (C2).GetMethod ("Test");
ta = m.GetGenericArguments ()[0].GetGenericParameterConstraints ();
if (ta.Length != 1)
- return 1;
+ return 2;
Console.WriteLine ("ok");
return 0;
}
-} \ No newline at end of file
+}