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>2006-03-22 01:40:25 +0300
committerMarek Safar <marek.safar@gmail.com>2006-03-22 01:40:25 +0300
commit7a4048598ad26e3d8f76d1f74ad6b77fc3fbbabf (patch)
tree9efffadff9cb67e693e6c7c944cbd1ddd5489d5a /mcs/gmcs/typemanager.cs
parentcd1e486cace10983cb348def4d46eb46a34bab0b (diff)
manually synchronized with 56802
svn path=/trunk/mcs/; revision=58266
Diffstat (limited to 'mcs/gmcs/typemanager.cs')
-rw-r--r--mcs/gmcs/typemanager.cs4
1 files changed, 4 insertions, 0 deletions
diff --git a/mcs/gmcs/typemanager.cs b/mcs/gmcs/typemanager.cs
index 58f1c722cad..8cd99af71b6 100644
--- a/mcs/gmcs/typemanager.cs
+++ b/mcs/gmcs/typemanager.cs
@@ -1480,6 +1480,10 @@ public partial class TypeManager {
if (builder_to_declspace [t] is Enum)
return true;
+#if MS_COMPATIBLE
+ if (t.IsGenericParameter)
+ return false;
+#endif
return t.IsEnum;
}