Calling a static method in an object inheriting from GObject.Object incorrectly warns
Doing something like this:
const Foo = GObject.registerClass(
class Foo extends GObject.Object {
static newFromStatic() { return new Foo() }
});
Foo.newFromStatic();
Fails with:
(gjs:2334146): Gjs-WARNING **: 21:05:54.189: JS ERROR: Error: Tried to construct an object without a GType; are you using GObject.registerClass() when inheriting from a GObject type?
Foo@/tmp/js:3:49
newFromStatic@/tmp/js:4:37
@/tmp/js:7:5