Merge pull request #5210 from alexrp/profiler-runtime-settings
[mono.git] / mono / tests / bug-666008.cs
1 using System;
2
3 abstract class Foo<T>
4 {
5     public virtual int OnReloaded () {
6         Console.WriteLine ("HIT!");
7                 return 0;
8     }
9 }
10
11 class Bar<T> : Foo<T>
12 {
13     public int DoIt (Func<int> a) {
14         return a ();
15     }
16
17     public override int OnReloaded () {
18         return DoIt (base.OnReloaded);
19     }
20 }
21
22 public class Tests
23 {
24     public static int Main (String[] args) {
25         var b = new Bar<string> ();
26         return b.OnReloaded ();
27     }
28 }