diff options
author | Marek Safar <marek.safar@gmail.com> | 2009-09-22 20:52:09 +0400 |
---|---|---|
committer | Marek Safar <marek.safar@gmail.com> | 2009-09-22 20:52:09 +0400 |
commit | dd0e028f7d6a59f707cd97b3cc59b37c44c45e8b (patch) | |
tree | a01c35352b8b0e6e7114ee1fb5200a9872e89e55 /mcs/errors | |
parent | 19c65b195aaa39d2aeb079ebcf21eb7884f820e1 (diff) |
New test.
svn path=/trunk/mcs/; revision=142422
Diffstat (limited to 'mcs/errors')
-rw-r--r-- | mcs/errors/gcs0458-7.cs | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/mcs/errors/gcs0458-7.cs b/mcs/errors/gcs0458-7.cs new file mode 100644 index 00000000000..0935e36c2c7 --- /dev/null +++ b/mcs/errors/gcs0458-7.cs @@ -0,0 +1,19 @@ +// CS0472: The result of the expression is always `null' of type `MyEnum?' +// Line: 17 +// Compiler options: -warnaserror -warn:2 + +using System; + +enum MyEnum +{ + Value_1 +} + +class C +{ + public static void Main () + { + var d = MyEnum.Value_1; + var x = d & null; + } +} |