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-05-18 00:13:44 +0400
committerMiguel de Icaza <miguel@gnome.org>2002-05-18 00:13:44 +0400
commit3cd86625e7059cfea0f4ca7505b33a53131d53e2 (patch)
tree587f290e8b4bbd272b7a889003f02f727375a298 /mcs/errors/cs0039.cs
parent6e3ae7ed4ae40268c51c5d543264dfd04ed4ee50 (diff)
2002-05-17 Miguel de Icaza <miguel@ximian.com>
* ecore.cs (ExplicitReferenceConversionExists): Made public. (ImplicitReferenceConversionExists): Split out from StandardConversionExists. * expression.cs (As): We were only implementing one of the three cases for the as operator. We now implement them all. (Is): Implement the various other cases for Is as well. * typemanager.cs (CACHE): New define used to control if we want or not the FindMembers cache. Seems to have a negative impact on performance currently (MemberLookup): Nested types have full acess to enclosing type members Remove code that coped with instance/static returns for events, we now catch this in RealFindMembers. (RealFindMembers): only perform static lookup if the instance lookup did not return a type or an event. svn path=/trunk/mcs/; revision=4724
Diffstat (limited to 'mcs/errors/cs0039.cs')
-rwxr-xr-xmcs/errors/cs0039.cs16
1 files changed, 16 insertions, 0 deletions
diff --git a/mcs/errors/cs0039.cs b/mcs/errors/cs0039.cs
new file mode 100755
index 00000000000..494fe68f956
--- /dev/null
+++ b/mcs/errors/cs0039.cs
@@ -0,0 +1,16 @@
+// cs0039.cs: as operator can not convert explicitly from type to type
+// line: 8
+class A {
+ public static void Main ()
+ {
+ decimal tryDec;
+ tryDec = 1234.2345M;
+
+ object a = tryDec as string;
+ }
+}
+
+
+
+
+