[Mono-bugs] [Bug 76404][Min] Changed - [PATCH] mcs misses the
location of CS0214 for constants
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Tue Oct 11 04:18:37 EDT 2005
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 atsushi at ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=76404
--- shadow/76404 2005-10-11 03:46:40.000000000 -0400
+++ shadow/76404.tmp.22183 2005-10-11 04:18:37.000000000 -0400
@@ -53,6 +53,15 @@
------- Additional Comments From rharinath at novell.com 2005-10-11 03:46 -------
Hmm... Don't you need to pass the newly computed locations to the
ComposedCast constructor in the first two cases?
+
+------- Additional Comments From atsushi at ximian.com 2005-10-11 04:18 -------
+In the first two cases, GetLocation() might result in null Location
+for builtin_types (which does not have location). That's why
+lexer.Location is assigned (only when the location could not be acquired).
+
+Basically there we should not use builtin_types directly but use
+something like a type reference, but this is rather small fix.
+
More information about the mono-bugs
mailing list