Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiguel de Icaza <miguel@gnome.org>2002-01-19 07:27:34 +0300
committerMiguel de Icaza <miguel@gnome.org>2002-01-19 07:27:34 +0300
commitaa634bb0419989a60379efba25e04e149936158e (patch)
treed9d0c94b2fc0a5743b2ae5c91acf0392032fbe7f /mcs/errors/cs0184.cs
parent280963b1858ee3f3b27eadc22bacf0ccf6c0ff4c (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/cs0184.cs')
-rwxr-xr-xmcs/errors/cs0184.cs13
1 files changed, 13 insertions, 0 deletions
diff --git a/mcs/errors/cs0184.cs b/mcs/errors/cs0184.cs
new file mode 100755
index 00000000000..014b945f21b
--- /dev/null
+++ b/mcs/errors/cs0184.cs
@@ -0,0 +1,13 @@
+// cs0184.cs: The expression is never of the provided type
+// Line:
+
+class X {
+
+ static void Main ()
+ {
+ int a;
+
+ if (a is byte){
+ }
+ }
+}