[jit] Fix the saving of the 'cfg->ret_var_set' flag when inlining, it was set to...
[mono.git] / mcs / errors / cs0278-2.cs
1 // CS0278: `IListCounter' contains ambiguous implementation of `enumerable' pattern. Method `IList.GetEnumerator()' is ambiguous with method `ICounter.GetEnumerator()'
2 // Line: 26
3 // Compiler options: -warnaserror -warn:2
4
5 using System;
6 using System.Collections;
7
8 interface IList 
9 {
10         IEnumerator GetEnumerator ();
11 }
12
13 interface ICounter 
14 {
15         IEnumerator GetEnumerator ();
16 }
17
18 interface IListCounter: IList, ICounter
19 {
20 }
21
22 class Test
23 {
24         static void Foo (IListCounter t)
25         {
26                 foreach (var e in t)
27                 {
28                 }
29         }
30 }