summaryrefslogtreecommitdiff
path: root/mcs/tests/test-680.cs
blob: 946c0f873295e5151171405df967f99719cd25a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
using System;

namespace AsStringProblem
{
	class MainClass
	{
		public static void Main ()
		{
			object o = "Hello World";
			Console.WriteLine (o as string + "blah");
			Console.WriteLine (o is string + "blah");
			Console.WriteLine ((o as string) + "blah");
			Console.WriteLine ("blah" + o as string);
		}
	}
}