Hi John,
Unfortunately, annotations apply only to declarations, not to types. So, you can't annotate the argument to a type function.
The "parameter" annotation target means parameters to RPC methods, like:
interface Foo {
bar @0 (baz :UInt32 $annotation);
}
One thing you could try is wrapping your list elements in a struct:
struct Ex1 {
array1 @0 :List(Element);
struct Element {
value @0 :UInt32 $hide();
}
}
Unfortunately in this particular case, this will double the memory usage of your list, because elements of a struct list will be aligned to 8 bytes, whereas UInt32s are 4 bytes.
-Kenton