Initial set of Ward sgen annotations (#5705)
[mono.git] / mcs / tests / gtest-338.cs
1 using System;
2 using System.Collections;
3 using System.Collections.Generic;
4
5 class Test {
6
7         public static void Main ()
8         {
9                 FooList<string> l = new FooList<string> ();
10                 Foo<string> (l);
11         }
12
13         static void Foo<T> (IList<T> list)
14         {
15                 ICollection coll = list as ICollection;
16                 if (coll != null)
17                         Console.WriteLine (coll.Count);
18         }
19 }
20
21 public class FooList<T> : IList<T> {
22
23         public int IndexOf (T item)
24         {
25                 throw new NotImplementedException ();
26         }
27
28         public void Insert (int index, T item)
29         {
30                 throw new NotImplementedException ();
31         }
32
33         public void RemoveAt (int index)
34         {
35                 throw new NotImplementedException ();
36         }
37
38         public T this [int index]
39         {
40                 get { throw new NotImplementedException (); }
41                 set { throw new NotImplementedException (); }
42         }
43
44         public void Add (T item)
45         {
46                 throw new NotImplementedException ();
47         }
48
49         public void Clear ()
50         {
51                 throw new NotImplementedException ();
52         }
53
54         public bool Contains (T item)
55         {
56                 throw new NotImplementedException ();
57         }
58
59         public void CopyTo (T [] array, int arrayIndex)
60         {
61                 throw new NotImplementedException ();
62         }
63
64         public bool Remove (T item)
65         {
66                 throw new NotImplementedException ();
67         }
68
69         public int Count
70         {
71                 get { throw new NotImplementedException (); }
72         }
73
74         public bool IsReadOnly
75         {
76                 get { throw new NotImplementedException (); }
77         }
78
79         IEnumerator<T> IEnumerable<T>.GetEnumerator ()
80         {
81                 throw new NotImplementedException ();
82         }
83
84         public IEnumerator GetEnumerator ()
85         {
86                 throw new NotImplementedException ();
87         }
88 }