2010-05-31 Jb Evain <jbevain@novell.com>
[mcs.git] / tests / test-776.cs
blob8dc7fb1cd76a08a3b9e7f30f267a674d22f44443
1 using System;
3 class First
5 public virtual object this [string name]
7 get { return "First"; }
8 set { }
12 class Second : First
14 public override object this [string name]
16 get { return "Second"; }
17 set { }
21 class Third : Second
23 public override object this [string name]
25 get { return base [name]; }
26 set { }
30 class a
32 static int Main (string[] args)
34 First t = (First)new Third ();
35 if (t ["test"] != "Second")
36 return 1;
38 return 0;