[Mono-bugs] [Bug 26840][Nor] New - ResolveLValue: did not set its type after Resolve

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
22 Jun 2002 19:46:00 -0000


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 gonzalo@ximian.com.

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

--- shadow/26840	Sat Jun 22 15:46:00 2002
+++ shadow/26840.tmp.4229	Sat Jun 22 15:46:00 2002
@@ -0,0 +1,86 @@
+Bug#: 26840
+Product: Mono/Runtime
+Version: unspecified
+OS: All
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: gonzalo@ximian.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: ResolveLValue: did not set its type after Resolve
+
+Steps to reproduce the problem:
+1. Compile this program as dll:
+--begin--
+using System;
+using System.Collections;
+
+namespace A {
+class Parent
+{
+        private ArrayList _fileDependencies;
+
+        public ArrayList FileDependencies
+        {
+                set { _fileDependencies = value; }
+        }
+}
+}
+--end--
+2. Then compile this one as dll referencing the previous:
+--begin--
+using System;
+using System.Collections;
+
+namespace A {
+class Child : Parent
+{
+        private static ArrayList _deps;
+
+        static Child ()
+        {
+                _deps = new ArrayList ();
+        }
+
+        public Child ()
+        {
+                this.FileDependencies = A.Child._deps;
+        }
+}
+}
+--end--
+
+Actual Results:
+(process:1356): ** WARNING **: unhandled exception System.Exception:
+"Expression Mono.CSharp.PropertyExpr did
+not set its type after Resolve"
+in <0x0023a> Mono.CSharp.Expression:ResolveLValue
+(Mono.CSharp.EmitContext,Mono.CSharp.Expression)
+in <0x00091> Mono.CSharp.Assign:DoResolve (Mono.CSharp.EmitContext)
+in <0x0002e> Mono.CSharp.Expression:Resolve (Mono.CSharp.EmitContext)
+in <0x00014> Mono.CSharp.StatementExpression:Resolve (Mono.CSharp.EmitContext)
+in <0x00092> Mono.CSharp.Block:Resolve (Mono.CSharp.EmitContext)
+in <0x0008b> Mono.CSharp.EmitContext:EmitTopBlock
+(Mono.CSharp.Block,Mono.CSharp.Location)
+in <0x00287> Mono.CSharp.Constructor:Emit (Mono.CSharp.TypeContainer)
+in <0x000cb> Mono.CSharp.TypeContainer:Emit ()
+in <0x004ca> Mono.CSharp.RootContext:EmitCode ()
+in <0x01c6f> Mono.CSharp.Driver:MainDriver (string[])
+in <0x00009> Mono.CSharp.Driver:Main (string[])
+
+Expected Results:
+Successfull compilation
+
+How often does this happen? 
+Always
+
+Additional Information:
+It fails in linux and in windows with out runtime. Works with MS runtime.
+This bugs prevents compilation of the generated code from xsp.