You're not returning a pointer and you're not returning by `ref`, so `return` is ignored. On Sunday, 1 May 2022 at 21:09:14 UTC, mesni wrote: > Moreover, if you return `this.someSlice.ptr` in the return > method in a structure, there will also be no error. What error do you expect?