struct Bar_T; // opaque
alias Bar = Bar_T*;
void someFuncIWantWrapped(Bar* bar)
{
}
struct Foo
{
Bar bar;
alias bar this;
}
void someFunc(Foo* foo)
{
someFuncIWantWrapped(foo);
}
gives
Error: function someFuncIWantWrapped (Bar_T** bar) is not
callable using argument types Foo*
I feel like this should work.
Yes I realise that I can fix it by
void someFunc(Foo foo)
{
someFuncIWantWrapped(&foo.bar);
}
but I'm generating this and the name of bar changes and in
generated from multiple code paths.
Should I report this as a bug?