mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-18 17:02:10 -10:00
class.cs (MethodOrOperator): Moved common parts from method class. detect obsolete attributes. (Method.Define): Simplified as it reuses code from base. (Constructor.ValidAttributeTargets): Fixed issue found during refactoring. (Destructor.ValidAttributeTargets): Fixed issue found during refactoring. (Operator): Finished refactoring set off by #78020. Operator class is now ordinary method class. * anonymous.cs: Updated. * decl.cs (DeclSpace): Add IsGeneric svn path=/trunk/mcs/; revision=59276
19 lines
358 B
C#
19 lines
358 B
C#
// cs0057.cs: Inconsistent accessibility: parameter type `ErrorCS0057' is less accessible than operator `Foo.implicit operator Foo(ErrorCS0057)'
|
|
// Line: 11
|
|
|
|
using System;
|
|
|
|
class ErrorCS0057 {
|
|
public ErrorCS0057 () {}
|
|
}
|
|
|
|
public class Foo {
|
|
public static implicit operator Foo(ErrorCS0057 bar) {
|
|
return new Foo ();
|
|
}
|
|
|
|
public static void Main () {
|
|
}
|
|
}
|
|
|