diff options
author | Miguel de Icaza <miguel@gnome.org> | 2002-04-08 12:29:31 +0400 |
---|---|---|
committer | Miguel de Icaza <miguel@gnome.org> | 2002-04-08 12:29:31 +0400 |
commit | 37f334d38b5091a1030bcac96200bc380475cfb0 (patch) | |
tree | 92866b545da360b70cc33ab835553754e2d39dae /mcs/errors/cs0019-2.cs | |
parent | 4fd9b07b9de06a458f0447ffd08fbf3b29767a14 (diff) |
Add new tests
svn path=/trunk/mcs/; revision=3676
Diffstat (limited to 'mcs/errors/cs0019-2.cs')
-rwxr-xr-x | mcs/errors/cs0019-2.cs | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/mcs/errors/cs0019-2.cs b/mcs/errors/cs0019-2.cs new file mode 100755 index 00000000000..d9753a29a1c --- /dev/null +++ b/mcs/errors/cs0019-2.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 () + { + int v = 1; + object foo = (v + Zub.Foo); + } +} + |