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:
authorMarek Safar <marek.safar@gmail.com>2007-11-14 13:10:22 +0300
committerMarek Safar <marek.safar@gmail.com>2007-11-14 13:10:22 +0300
commited9802ee5166acfcc2320c08401916ef1b603163 (patch)
treea4ca184eec7334756bf9e30781fae49c54ae8a58 /mcs/tests/test-276.cs
parent34b32965585b1feddb3348f4e5496fea99c9c338 (diff)
More test coverage.
svn path=/trunk/mcs/; revision=89603
Diffstat (limited to 'mcs/tests/test-276.cs')
-rw-r--r--mcs/tests/test-276.cs8
1 files changed, 4 insertions, 4 deletions
diff --git a/mcs/tests/test-276.cs b/mcs/tests/test-276.cs
index f10a66cd167..a858dacd2f5 100644
--- a/mcs/tests/test-276.cs
+++ b/mcs/tests/test-276.cs
@@ -1,10 +1,10 @@
-// Test for bug #60459
+// Compiler options: -warnaserror -warn:4
using System;
using System.Reflection;
-public class EventTestClass {
- public event EventHandler Elapsed;
+public class EventTestClass : IEventTest {
+ public event EventHandler Elapsed; // No warning is reported
}
public interface IEventTest {
@@ -14,7 +14,7 @@ public interface IEventTest {
public class EntryPoint
{
- static bool test (Type type) { return type.GetEvent ("Elapsed").IsSpecialName; }
+ public static bool test (Type type) { return type.GetEvent ("Elapsed").IsSpecialName; }
public static int Main ()
{
return (test (typeof (EventTestClass))