On Friday, 17 May 2019 at 05:22:30 UTC, Mike Franklin wrote:

My assessment (which could be wrong):
`scope` and `return` only apply to pointers and `ref`s. If you remove all `scope` and `return` attributes from the function `push`, it works fine.

I consider it a bug that the compiler doesn't emit an error when using attributes on types for which they are not intended.

Mike

Working example:  https://run.dlang.io/is/TCP0td

Reply via email to