April 11, 2020
https://issues.dlang.org/show_bug.cgi?id=20728

Victor Porton <porton@narod.ru> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |porton@narod.ru

--
April 11, 2020
https://issues.dlang.org/show_bug.cgi?id=20728

Adam D. Ruppe <destructionator@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |destructionator@gmail.com
         Resolution|---                         |INVALID

--- Comment #1 from Adam D. Ruppe <destructionator@gmail.com> ---
Your sample code doesn't even compile. That's because of this rule.

That page doesn't mention the implicit cast of unique data (such as returned from a pure function), though that is technically a cast so it is kinda covered.

But regardless, your example is invalid so I'm closing this. Please make sure your code actually does what you think it does before opening a bug.

--