[Wasm] Fix memory override in mono_wasm_add_assembly
[mono-project.git] / mcs / tests / gtest-120.cs
blobef81950d7c31247ac93271e78d9fac0445bfb08a
1 using System;
3 public interface ISequenced<T>
5 bool Equals (ISequenced<T> that);
8 public class SequencedHasher <S,W>
9 where S : ISequenced<W>
11 public bool Equals (S i1, S i2)
13 return i1 == null ? i2 == null : i1.Equals (i2);
17 public class Sequenced<T> : ISequenced<T>
19 public bool Equals (ISequenced<T> that)
21 return false;
25 class X
27 public static void Main ()
29 Sequenced<int> s = new Sequenced<int> ();
30 SequencedHasher<Sequenced<int>,int> hasher = new SequencedHasher<Sequenced<int>,int> ();
31 hasher.Equals (s, s);