fix Issue 12660 - Wrong non-@nogc function invariant error
Merge pull request #3586 from 9rnsr/fix12660

Issue 12660 - Wrong non-@nogc function invariant error