a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
37 lines
376 B
C#
37 lines
376 B
C#
|
|
|
|
using System.Collections.Generic;
|
|
|
|
interface IA
|
|
{
|
|
}
|
|
|
|
interface IB : IA
|
|
{
|
|
}
|
|
|
|
static class E
|
|
{
|
|
internal static void ToReadOnly<T>(this IEnumerable<T> source)
|
|
{
|
|
}
|
|
|
|
internal static void To (this IA i)
|
|
{
|
|
}
|
|
}
|
|
|
|
class C
|
|
{
|
|
public static void Main ()
|
|
{
|
|
}
|
|
|
|
public static void Test (IEnumerable<bool> bindings)
|
|
{
|
|
bindings.ToReadOnly();
|
|
|
|
IB ib = null;
|
|
ib.To ();
|
|
}
|
|
} |