Support casting Generic to GVariant
Simple Example
void print_simple_types (Variant v) {
...
}
void func<G> (G[] sa) {
foreach (var a in sa) {
print_simple_types (a);
}
}
void main () {
func<int> ({1,2,3});
}
error: GVariant serialization of type 'G' is not supported
This will require a bunch of runtime checks and obviously asserts if an unsupported type is passed. It will be restricted to supported GType.