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/cs0642.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/cs0642.cs')
-rwxr-xr-x | mcs/errors/cs0642.cs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/mcs/errors/cs0642.cs b/mcs/errors/cs0642.cs new file mode 100755 index 00000000000..9c73cd6baf1 --- /dev/null +++ b/mcs/errors/cs0642.cs @@ -0,0 +1,6 @@ +class X{ + static void Main () + { + if (true); + } +} |