https://issues.dlang.org/show_bug.cgi?id=17422
--- Comment #2 from [email protected] --- Commits pushed to master at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/ad041aa29e02ed1cca2d00f2553ac16a86762bfa fix Issue 17422 - class reference not initialized as scope variable - infer scope for class references to prevent escaping - those are just normal class references with scope to prevent escaping - only `scope o = new Object` remains special, because it uses the fact that the class ref cannot be escaped to allocate the instance on the stack https://github.com/dlang/dmd/commit/6ad2e6d91b84a00703900c2b6e3a9e9ab03f1e6b Merge pull request #6826 from MartinNowak/fix17422 [scope] fix Issue 17422 - class reference not initialized as scope variable --
