Wiki

Ticket #328 (new enhancement)

Opened 11 years ago

Move to .Net 4.0: Support Co and ContraVariance

Reported by: hopscc Owned by:
Priority: minor Milestone:
Component: Cobra Compiler Version: 0.9.4
Keywords: Cc:

Description

C# 4.0 supports defining co and contravariance on Generic Interfaces and Delegates. Augment cobra parsing and codegen to do same
Hopefully it will just be a passthrough cobra syntax to C#.

see  http://www.codeproject.com/Articles/37795/C-4-0-s-New-Features-Explained Co and Contra Variance

Cobra syntax should probably be an optional tag ('in', out') before
generic Type placeholder definition.

Note: See TracTickets for help on using tickets.