Allow passing null to JsonArray.Add()
[mono.git] / mcs / tests / gtest-617.cs
1 using System;
2 using System.Collections.Generic;
3  
4 class Program
5 {
6         static void Main()
7         {
8                 foreach (string x in new B ()) {
9                 }
10         }
11 }
12
13 class A
14 {
15         public IEnumerator<string> GetEnumerator ()
16         {
17                 var s = new List<string>();
18                 s.Add("1"); 
19                 return s.GetEnumerator();
20         }
21 }
22
23 class B : A
24 {
25         public IEnumerator<int> GetEnumerator (int[] x = null)
26         {
27                 throw new NotImplementedException ();
28         }
29 }