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

test-386.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 0a95d45b47e3184fca0c3d2ac22041127cc32b6b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
using System;

class SuperDecimal{
	private Decimal val;

	public SuperDecimal (Decimal val)
	{
		this.val = val;
	}

	public static implicit operator SuperDecimal (Decimal val)
	{
		return new SuperDecimal (val);
	}

	public static void Main ()
	{
		int i = 2;
		SuperDecimal sd = i;
	}
}