6bdd276d05
Former-commit-id: fd56571888259555122d8a0f58c68838229cea2b
52 lines
672 B
C#
52 lines
672 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
|
|
class Program
|
|
{
|
|
static void Main ()
|
|
{
|
|
}
|
|
|
|
public static void Transform<V> (Area<V> area, Func<V, V> transform)
|
|
where V : IA<V>
|
|
{
|
|
Test (GetIB<V> (), t => Transform2 (null, transform));
|
|
}
|
|
|
|
static IB<W> GetIB<W> ()
|
|
where W : IA<W>
|
|
{
|
|
return null;
|
|
}
|
|
|
|
static void Test<T> (T values, Func<T, T> func)
|
|
{
|
|
}
|
|
|
|
public static IB<U> Transform2<U> (
|
|
IB<U> b,
|
|
Func<U, U> transform) where U : IA<U>
|
|
{
|
|
return null;
|
|
}
|
|
}
|
|
|
|
|
|
public class Area<TVector>
|
|
where TVector : IA<TVector>
|
|
{
|
|
public IB<TVector> GetSegments ()
|
|
{
|
|
return null;
|
|
}
|
|
}
|
|
|
|
public interface IB<TB>
|
|
where TB : IA<TB>
|
|
{
|
|
}
|
|
|
|
public interface IA<T>
|
|
{
|
|
}
|