Author: marek
Date: 2007-05-15 18:37:41 -0400 (Tue, 15 May 2007)
New Revision: 77445
Modified:
trunk/mcs/mcs/ChangeLog
trunk/mcs/mcs/expression.cs
Log:
2007-05-15 Marek Safar <[EMAIL PROTECTED]>
A fix for bug #81380
* expression.cs (Is.DoResolve): Only value types have constant
`is?\194?\180
behaviour.
Modified: trunk/mcs/mcs/ChangeLog
===================================================================
--- trunk/mcs/mcs/ChangeLog 2007-05-15 22:17:37 UTC (rev 77444)
+++ trunk/mcs/mcs/ChangeLog 2007-05-15 22:37:41 UTC (rev 77445)
@@ -1,5 +1,11 @@
2007-05-15 Marek Safar <[EMAIL PROTECTED]>
+ A fix for bug #81380
+ * expression.cs (Is.DoResolve): Only value types have constant `is´
+ behaviour.
+
+2007-05-15 Marek Safar <[EMAIL PROTECTED]>
+
* flowanalysis.cs: Unified error message.
* statement.cs (Block): Removed switch_block.
@@ -1252,7 +1258,7 @@
step, after overload resolution has taken place instead of doing
the check at the low-level `This.DoResolve' level.
- The `This.DoResolve'�happens before overload resolution, so it has
+ The `This.DoResolve' happens before overload resolution, so it has
no way of knowing if the method that will be called will be
instace or static, triggering an erroneous report for cs0188 (Bug
78113).
@@ -4390,7 +4396,7 @@
* literal.cs (NullLiteral.Reduce): null can be converted to any
reference type.
-2005-10-28 Kornél Pál <[EMAIL PROTECTED]>
+2005-10-28 Kornél Pál <[EMAIL PROTECTED]>
* driver.cs: Use Encoding.Default as default code page instead
of ISO-28591.
@@ -4815,7 +4821,7 @@
(PartialContainer.Create): check abstract/sealed/static strictly
but abstract/sealed can exist only at one side. Fixed bug #75883.
-2005-09-01 Kornél Pál <[EMAIL PROTECTED]>
+2005-09-01 Kornél Pál <[EMAIL PROTECTED]>
Fix #75945.
* attribute.cs (Attribute.GetMarshal): If ArraySubType is not
@@ -4895,7 +4901,7 @@
* statement.cs : (Continue.Resolve()) Unlike break, continue is not
allowed inside a switch (without loop). Fixed bug #75433.
-2005-08-26 Kornél Pál <[EMAIL PROTECTED]>
+2005-08-26 Kornél Pál <[EMAIL PROTECTED]>
* AssemblyInfo.cs: Using Consts.MonoVersion instead of MonoVersion.cs.
* mcs.exe.sources: Using Consts.MonoVersion instead of MonoVersion.cs.
@@ -10761,9 +10767,9 @@
According to the spec,
In a member access of the form E.I, if E is a single identifier,
- and if the meaning of E as a simple-name (§7.5.2) is a constant,
+ and if the meaning of E as a simple-name (§7.5.2) is a constant,
field, property, localvariable, or parameter with the same type as
- the meaning of E as a type-name (§3.8), then both possible
+ the meaning of E as a type-name (§3.8), then both possible
meanings of E are permitted.
We did not check that E as a simple-name had the same type as E as
@@ -12075,12 +12081,12 @@
basically ignored the method name. Now we make sure that the
method name is one of the valid indexer names.
-2004-03-14 Gustavo Giráldez <[EMAIL PROTECTED]>
+2004-03-14 Gustavo Giráldez <[EMAIL PROTECTED]>
* support.cs (SeekableStreamReader): Keep track of stream byte
positions and don't mix them with character offsets to the buffer.
- Patch from Gustavo Giráldez
+ Patch from Gustavo Giráldez
2004-03-15 Marek Safar <[EMAIL PROTECTED]>
@@ -15429,7 +15435,7 @@
* driver.cs: fixed bug #37187.
-2003-01-27 Pedro Martinez Juliá <[EMAIL PROTECTED]>
+2003-01-27 Pedro Martinez Juliá <[EMAIL PROTECTED]>
* expression.cs (IndexerAccess.DoResolve): Before trying to resolve
any indexer, it's needed to build a list with all the indexers in the
@@ -16817,7 +16823,7 @@
without debugging support.
* delegate.cs (Delegate.CloseDelegate): Removed, use CloseType instead.
- Fixes bug #30235. Thanks to Ricardo Fernández Pascual.
+ Fixes bug #30235. Thanks to Ricardo Fernández Pascual.
2002-09-12 Martin Baulig <[EMAIL PROTECTED]>
Modified: trunk/mcs/mcs/expression.cs
===================================================================
--- trunk/mcs/mcs/expression.cs 2007-05-15 22:17:37 UTC (rev 77444)
+++ trunk/mcs/mcs/expression.cs 2007-05-15 22:37:41 UTC (rev 77445)
@@ -1204,7 +1204,7 @@
action = Action.AlwaysFalse;
Report.Warning (184, 1, loc, "The given
expression is never of the provided (`{0}') type",
TypeManager.CSharpName
(probe_type));
- } else {
+ } else if (etype.IsValueType) {
Report.Warning (183, 1, loc, "The given
expression is always of the provided (`{0}') type",
TypeManager.CSharpName
(probe_type));
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches