От: | _nn_ | www.nemerleweb.com | |
Дата: | 24.11.11 16:37 | ||
Оценка: |
interface IA {}
class M
{
static void F<T>() where T : IA, new() {} // OK
static void G<T>() where T : new(), IA {} // The `new()' constraint must be the last constraint specified
static void Main() {}
}
interface IA {}
module M
{
F[T]() : void where T : IA, new() {} // OK
G[T]() : void where T : new(), IA {} // OK
Main() : void {}
}