Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cs0552.cs « errors « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 7fe395005deadf0caa5bfd29bb593ef8dfdffa98 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// cs0552.cs: user-defined conversion to/from interface
// Line: 12
//
using System;
using System.IO;

//
//
// Implicit conversion to an interface is not permitted
//
class NoIDispose {
	public static implicit operator IDisposable (NoIDispose a)
	{
		return a.x;
	}
}