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

test-389.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 22a13cffa825f8dd1a464f19460caaf253023295 (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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
// This is used to debug an ordering dependent bug.
//
// Compiler options: support-389.cs -out:test-389.exe

using System;
using System.Collections;
using System.Reflection;

namespace Schemas
{
	public partial class basefieldtype
	{
		public virtual object Instantiate () { return null; }
	}

	public partial class fieldtype
	{
		public override object Instantiate ()
		{
			Console.WriteLine ("Instantiating type '{0}'", id);
			return null;
		}
	}

	public partial class compoundfield
	{
		public override object Instantiate ()
		{
			Console.WriteLine ("Instantiating compound field '{0}'", id);
			return null;
		}
	}

	public partial class field
	{
		public object Instantiate ()
		{
			Console.WriteLine ("Instantiating field '{0}'", id);
			return null;
		}
	}
	
	public partial class formdata
	{
		public object Instantiate ()
		{
			Console.WriteLine ("Instantiating form window");
			return null;
		}
	}

	public class M {
	    public static void Main () {}
	}
}