mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-17 19:10:23 -10:00
* syntax0068.cs, syntax0069.cs, syntax0071.cs, syntax0116.cs: These are syntax errors which we'd need to catch in cs-parser.jay; separate them from the other errors. * cs0572.cs: New test. svn path=/trunk/mcs/; revision=16497
18 lines
281 B
C#
18 lines
281 B
C#
// 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 () {
|
|
}
|
|
}
|
|
|