Issue 11888 - Incorrect behaviour taking slice from return value

https://issues.dlang.org/show_bug.cgi?id=11888