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

Kamil Skalski kamil.skalski at gmail.com
Mon Jan 29 14:07:24 CET 2007


This is currently not supported, but it would be a nice feature. It
needs a few modifications in various places (e.g. parsetree,
attributes emission)

2007/1/29, Vladimir Reshetnikov <v.reshetnikov at gmail.com>:
> 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]
>
> _______________________________________________
> https://nemerle.org/mailman/listinfo/devel-en
>
>
>


-- 
Kamil Skalski
http://nazgul.omega.pl



More information about the devel-en mailing list