struct Typedef( T ) {
     T payload;
     alias payload this;
}

alias Typedef!int myInt;

There you go.

The question is if this still works flawlessly for complicated examples.

Reply via email to