diff options
author | Jaime Anguiano Olarra <jaime@mono-cvs.ximian.com> | 2002-12-03 17:47:45 +0300 |
---|---|---|
committer | Jaime Anguiano Olarra <jaime@mono-cvs.ximian.com> | 2002-12-03 17:47:45 +0300 |
commit | 1e0036634e465abb26e3da19186fb49a0372535b (patch) | |
tree | 18e49cb457219696e9f3baefd5c2c90f6cc9773a /mcs/errors/cs0071.cs | |
parent | 988d84bbc4441632eb5f364c9c738d51a7d4d6e4 (diff) |
Test for C# Compiler Error CS0071. NOTE: Very strange behavior. See later
Bugzilla report.
svn path=/trunk/mcs/; revision=9366
Diffstat (limited to 'mcs/errors/cs0071.cs')
-rw-r--r-- | mcs/errors/cs0071.cs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/mcs/errors/cs0071.cs b/mcs/errors/cs0071.cs new file mode 100644 index 00000000000..2ebccf4c67c --- /dev/null +++ b/mcs/errors/cs0071.cs @@ -0,0 +1,17 @@ +// cs0071.cs: An explicit implementation of an event must use property syntax. +// Line: 13 + +using System; + +public delegate void Foo (object source); + +interface IFoo { + event Foo OnFoo; +} + +class ErrorCS0071 : IFoo { + event Foo IFoo.OnFoo () { } + public static void Main () { + } +} + |