add test to confirm behavior of Control.SetVisibleCore, and remove some redundant...
[mcs.git] / tests / gtest-261.cs
blob43ba6b8f2544cc6a356cd3a6b45fb762a63c5eab
1 using System;
3 class Cons<T,U>
5 public T car;
6 public U cdr;
8 public Cons (T x, U y)
10 car = x; cdr = y;
13 public override String ToString ()
15 return "(" + car + '.' + cdr + ')';
19 class List<A> : Cons<A, List<A>>
21 public List (A value)
22 : base(value, null)
23 { }
25 public List (A value, List<A> next)
26 : base(value, next)
27 { }
29 public void zip<B> (List<B> other)
31 cdr.zip (other.cdr);
35 abstract class Test
37 public static void Main (String[] args)
39 List<int> list = new List<Int32> (3);
40 Console.WriteLine (list);