blob: 9599911879a9899213c723c929e97eaf9e0c84e7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
public class Module : GLib.TypeModule {
int private_field = 42;
}
[ModuleInit]
public GLib.Type init_plugin (TypeModule? m) {
return typeof (Module);
}
void main () {
var o = GLib.Object.new (init_plugin (null));
assert (o is TypeModule);
assert (o is Module);
}
|