How do I write a @generated inner constructor?

Ah I should have just tried the old thing, it seems to work still,

struct Foo
    @generated Foo() = :($(Expr(:new, :(Foo))))
end