[nem-en] How to apply attbibutes on type parameters?

Vladimir Reshetnikov v.reshetnikov at gmail.com
Mon Jan 29 13:53:25 CET 2007


In C#, I used the following code in order to apply an attribute on a type
parameter:

[c#]
class A<[My]T> { }
class MyAttribute : Attribute {}
[/c#]

In Nemerle, this does not work:

[nemerle]
class A[[My]T] {}
[/nemrle]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /mailman/pipermail/devel-en/attachments/20070129/2ddbc345/attachment.html


More information about the devel-en mailing list