[wasm] Improve virtualenv installation script (#18470)
[mono-project.git] / mono / tests / bug-10837.cs
blob25ad0f0f3c85887d4ca467b320fdf43357eaab3a
1 /*
4 Packed interface table for class Repro.Derived
6 */
7 using System;
9 namespace Repro {
10 interface Interface<T0>
12 void Problem();
14 class Base<T1> : Interface<T1>
16 void Interface<T1>.Problem() {
17 Console.WriteLine("Base.Method()");
18 throw new Exception ();
21 class Derived<U> : Base<int>, Interface<U>
23 void Interface<U>.Problem() { Console.WriteLine("Derived`2.Method()"); }
24 ~Derived() {
28 class FinalClass : Derived<int>, Interface<string>, Interface<int>
30 void Interface<string>.Problem() {
31 Console.WriteLine("Derived.Method()");
32 throw new Exception ();
35 class Program
37 public static void Main()
39 Interface<int> j = new FinalClass();
40 j.Problem();