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-04-08 12:29:31 +0400
committerMiguel de Icaza <miguel@gnome.org>2002-04-08 12:29:31 +0400
commit37f334d38b5091a1030bcac96200bc380475cfb0 (patch)
tree92866b545da360b70cc33ab835553754e2d39dae /mcs/errors/cs0019-4.cs
parent4fd9b07b9de06a458f0447ffd08fbf3b29767a14 (diff)
Add new tests
svn path=/trunk/mcs/; revision=3676
Diffstat (limited to 'mcs/errors/cs0019-4.cs')
-rwxr-xr-xmcs/errors/cs0019-4.cs20
1 files changed, 20 insertions, 0 deletions
diff --git a/mcs/errors/cs0019-4.cs b/mcs/errors/cs0019-4.cs
new file mode 100755
index 00000000000..938735e69a2
--- /dev/null
+++ b/mcs/errors/cs0019-4.cs
@@ -0,0 +1,20 @@
+// cs0019.cs : Operator + cannot be applied to operands of type `int' and `Test.Zub'
+// Line : 11
+using System;
+
+class Test {
+
+ enum Zub :byte {
+ Foo = 99,
+ Bar,
+ Baz
+ }
+
+
+ static void Main ()
+ {
+ Zub a = Zub.Foo, b = Zub.Bar;
+ object v = (a + b);
+ }
+}
+