summaryrefslogtreecommitdiff
path: root/mcs/tests/gtest-419.cs
blob: 4d20d23d6bd8bf73543b358a58bf84e300eda67b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
using System;

class Program
{
	public static int Main ()
	{
		int? i = ((int?) -4);
		int? i2 = (int?) +4;
		object o = (object) (int?) 42;

		return (bool) Test ("True") == true ? 0 : 1;
	}

	static object Test (string s)
	{
		return (!string.IsNullOrEmpty (s)) ? (bool?) bool.Parse (s) : null;
	}
}