a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
35 lines
356 B
C#
35 lines
356 B
C#
// Compiler options: -warnaserror -warn:4
|
|
|
|
using System;
|
|
|
|
interface IList
|
|
{
|
|
int Count { get; set; }
|
|
}
|
|
|
|
interface ICounter
|
|
{
|
|
void Count (int i);
|
|
}
|
|
|
|
interface IEx
|
|
{
|
|
void Count (params int[] i);
|
|
}
|
|
|
|
interface IListCounter: IEx, IList, ICounter
|
|
{
|
|
}
|
|
|
|
class Test
|
|
{
|
|
static void Foo (IListCounter t)
|
|
{
|
|
t.Count (1);
|
|
}
|
|
|
|
public static void Main ()
|
|
{
|
|
}
|
|
}
|