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

test-833.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: e0e263d435927787e29d8e475998b317d7457cb2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
using System;

class MainClass
{
	public struct DC
	{
		public readonly Guid m_Id;

		public DC (Guid Id)
		{
			m_Id = Id;
		}

		public Guid Id
		{
			get { return m_Id; }
		}


	}

	public static int Main ()
	{
		Guid Id = Guid.NewGuid ();
		DC dc = new DC (Id);
		Console.WriteLine ("id: {0} default: {1}", Id, default (Guid));
		if (dc.Id.Equals (default (Guid)))
			return 1;

		if (dc.m_Id.Equals (default (Guid)))
			return 2;

Console.WriteLine ("ok");
		return 0;
	}
}