summaryrefslogtreecommitdiff
path: root/mcs/tests/gtest-implicitarray-02.cs
blob: ef70f82490dd5aedfcadfb169ca5feefc77534df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
class MyString
{
	public static implicit operator string (MyString s)
	{
		return "ggtt";
	}
}

public class Test
{
	public static int Main ()
	{
		var v = new [] { new MyString (), "a" };
		if (v [0] != "ggtt")
			return 1;
		return 0;
	}
}