Files
mono/mcs/errors/cs0057.cs
T
Marek Safar c3c8d3ab97 2006-04-09 Marek Safar <[email protected]>
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
2006-04-09 22:16:44 +00:00

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 () {
}
}