diff options
author | Miguel de Icaza <miguel@gnome.org> | 2002-01-19 07:27:34 +0300 |
---|---|---|
committer | Miguel de Icaza <miguel@gnome.org> | 2002-01-19 07:27:34 +0300 |
commit | aa634bb0419989a60379efba25e04e149936158e (patch) | |
tree | d9d0c94b2fc0a5743b2ae5c91acf0392032fbe7f /mcs/errors/cs0563.cs | |
parent | 280963b1858ee3f3b27eadc22bacf0ccf6c0ff4c (diff) |
2002-01-19 Miguel de Icaza <miguel@ximian.com>
* ecore.cs (CopyNewMethods): reworked, exposed, made public.
Slower, but more generally useful. Used by the abstract
registering implementation.
* expression.cs (ResolveMemberAccess): Reorder the way we evaluate
the rules for the special rule on Type/instances. First check if
we have the same name, and if so, try that special static path
rather than the instance path.
2002-01-18 Miguel de Icaza <miguel@ximian.com>
* cs-parser.jay: Emit 642 (warning: possible empty statement) for
for, while and if.
* class.cs (TypeBuilder.DefineType): Do not allow inheritance from
Enum, ValueType, Delegate or Array for non-corlib compiles.
* cs-tokenizer.cs: Catch long identifiers (645)
* typemanager.cs (IndexerPropetyName): Ravi never tested this
piece of code.
* class.cs (TypeContainer.RegisterRequiredImplementations): Bug
fix, we were returning too early, so we were not registering
pending methods from abstract classes.
Do not register pending methods if the class is abstract.
* expression.cs (Conditional.DoResolve): Report circular implicit
conversions when we neecd to compute it for conditional
expressions.
(Is.DoResolve): If the expression is always of the provided type,
flag warning 183. If the expression can not ever be of the
provided type flag warning 184.
* class.cs: Catch 169 as well.
* ecore.cs (FieldExpr): For now in AddressOf mark as assigned and
read.
Also add more error test cases.
svn path=/trunk/mcs/; revision=2065
Diffstat (limited to 'mcs/errors/cs0563.cs')
-rw-r--r-- | mcs/errors/cs0563.cs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mcs/errors/cs0563.cs b/mcs/errors/cs0563.cs index cda3db7d5a9..af369883b2c 100644 --- a/mcs/errors/cs0563.cs +++ b/mcs/errors/cs0563.cs @@ -1,5 +1,7 @@ // cs0563.cs: One of the parameters to the binary operator should be the containing type // Line: 4 class X { - public static int operator + (int a, int b); + public static int operator + (int a, int b) + { + } } |