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

gtest-366.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: beeee1e2af22df1d1a003842a3efb214b4c87668 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27

public struct MyType
{
	int value;

	public MyType (int value)
	{
		this.value = value;
	}

	public static implicit operator int (MyType o)
	{
		return o.value;
	}
}

class Tester
{
	static void Assert<T> (T expected, T value)
	{
	}
	
	static void Main ()
	{
		Assert (10, new MyType (10));
	}
}