[Mono-bugs] [Bug 69985][Nor] New - ldtoken broken w/OPT_SHARED

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Sun, 28 Nov 2004 13:51:47 -0500 (EST)


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by martin@ximian.com.

http://bugzilla.ximian.com/show_bug.cgi?id=69985

--- shadow/69985	2004-11-28 13:51:47.000000000 -0500
+++ shadow/69985.tmp.472	2004-11-28 13:51:47.000000000 -0500
@@ -0,0 +1,45 @@
+Bug#: 69985
+Product: Mono: Runtime
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: martin@ximian.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: ldtoken broken w/OPT_SHARED
+
+The behaviour of the following test case is different when running with and
+-O=shared:
+
+====
+class List<T>
+{
+        public bool Test ()
+        {
+                Type t = typeof (T);
+                return t.IsGenericParameter;
+        }
+}
+
+class X
+{
+        static int Main ()
+        {
+                List<int> list = new List<int> ();
+                if (list.Test ())
+                        return 1;
+                return 0;
+        }
+}
+====
+
+When running without -O=shared, `t' is the real type (int in this case). 
+When running with -O=shared, `t' is the type parameter `T' (wrong).