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

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

public class Tmp
{
	public int stuff;
}
public class Driver
{
	Tmp tmp;

	public int? Prop {
		get { return tmp != null ? tmp.stuff : (int?)null; }
	}

	public static int Main ()
	{
		int? r = new Driver().Prop;
		Console.WriteLine (r);
		return r.HasValue ? 1 : 0;
	}
}