[Mono-bugs] [Bug 73834][Nor] Changed - Wrong CS0154 error

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Sat, 19 Mar 2005 15:42:43 -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 rharinath@novell.com.


--- shadow/73834	2005-03-19 08:57:42.000000000 -0500
+++ shadow/73834.tmp.12901	2005-03-19 15:42:43.000000000 -0500
@@ -45,6 +45,18 @@
 X.cs(17) error CS0154: The property `LiteralType' can not be used in this
 context because it lacks a get accessor
 Expected Results:
 No error
+------- Additional Comments From rharinath@novell.com  2005-03-19 15:42 -------
+On first analysis, this seems to require some retooling of the
+IdenticalNameAndTypeName mechanism.
+Instead of pushing the resposiblity of calling that function to other
+classes, I think the right way is to make SimpleNameResolve try to
+determine this property itself.
+If SimpleNameResolve finds a non-static member expression, it should
+keep going on until it hits a type.  I don't think this'll be too
+expensive since the type-lookup is well cached now.