[Wasm] Fix memory override in mono_wasm_add_assembly
[mono-project.git] / mcs / tests / test-93.cs
blob0ce693979d6c2728c18187ffee76391e4f9dc70c
1 //
2 // This tests member lookups on inherited interfaces.
3 //
4 // The bug was exposed because FindMembers in MemberLookup
5 // would not return all the members on interfaces, but only
6 // the members from the most close type.
7 //
9 using System;
10 using System.Collections;
12 namespace N1
14 interface A
16 void method1 ();
19 interface B:A
21 void method2 ();
24 public class C
26 void method (ref B p)
28 p.method2();//<- works declared in 'B'
29 p.method1();//<- fails declared in 'A'
35 class Test {
36 public static int Main () {
37 IList list = new ArrayList ();
38 int n = list.Count;
40 return 0;