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

dtest-021.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 284c68ddcb87738d59fe1aa9fe2894d5a8821d98 (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
public class T
{
	class B
	{
		public dynamic this [int i] {
			set {
				int v = (dynamic) value;
			}
			get {
				return i;
			}
		}
	}

	public class Program 
	{
		public static int Main ()
		{
			B b = new B ();
			b [4] = 1;
			dynamic d = b [9];
			return 0;
		}
	}
}