A
Aquila Deus
Hi all!
I found a problem when using generic with delegate:
delegate RT MethodTemplate <RT> ();
delegate RT MethodTemplate <RT, AT0> (AT0 a0);
delegate RT MethodTemplate <RT, AT0, AT1> (AT0 a0, AT1 at1);
delegate RT MethodTemplate <RT, AT0, AT1, AT2> (AT0 a0, AT1 at1, AT2
at2);
The definition is fine, but:
MethodTemplate<void> someAnonymousMethod = delegate () { .... };
gives me """ Keyword 'void' cannot be used in this context """
I know void is not a type, but isn't this inconsistent??
I found a problem when using generic with delegate:
delegate RT MethodTemplate <RT> ();
delegate RT MethodTemplate <RT, AT0> (AT0 a0);
delegate RT MethodTemplate <RT, AT0, AT1> (AT0 a0, AT1 at1);
delegate RT MethodTemplate <RT, AT0, AT1, AT2> (AT0 a0, AT1 at1, AT2
at2);
The definition is fine, but:
MethodTemplate<void> someAnonymousMethod = delegate () { .... };
gives me """ Keyword 'void' cannot be used in this context """
I know void is not a type, but isn't this inconsistent??