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

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

class MainClass
{
	public static implicit operator string (MainClass src)
	{
		return null;
	}

	public static int Main ()
	{
		var obj = new MainClass ();
		var s = "x";
		var res = (string) obj ?? s;
		if (res != "x")
			return 1;

		return 0;
	}
}