[Mono-bugs] [Bug 23944] New - Property instead of variable

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
27 Apr 2002 13:11:28 -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 massimo@mmmm.it.


--- shadow/23944	Sat Apr 27 09:11:28 2002
+++ shadow/23944.tmp.24082	Sat Apr 27 09:11:28 2002
@@ -0,0 +1,47 @@
+Bug#: 23944
+Product: Mono/MCS
+Version: unspecified
+OS Details: 
+Status: NEW   
+Priority: Major
+Component: Misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: massimo@mmmm.it               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+Summary: Property instead of variable
+Error CS0118: Expression denotes a `property access' where a `variable' 
+was expected
+Microsoft (R) Visual C# .NET Compiler version 7.00.9466
+for Microsoft (R) .NET Framework version 1.0.3705
+this code is valid and returns valid IP address.
+Logically, a property IS a variable.
+Tested with MCS 0.11 binary packages
+using System;
+using System.Net;
+class CS0118
+static void Main()
+IPHostEntry iphe= Dns.Resolve("www.go-mono.com");
+IPAddress ipa = iphe.AddressList[0]; //CS0118:Expression denotes a 
+`property access' where a `variable' was expected