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

public class NullableAnd
{
	static object Foo (object l, object r)
	{
		return (Boolean?)l & (Boolean?)r;
	}

	public static int Main ()
	{
		var g = Foo (true, true);
		Console.WriteLine (g);
		if ((bool?) g != true)
			return 1;

		return 0;
	}
}