objects/interface-generics.vala \
objects/methods.vala \
objects/paramspec.vala \
+ objects/plugin-module-init.vala \
objects/properties.vala \
objects/property-notify.vala \
objects/property-read-only-auto.vala \
--- /dev/null
+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);
+}