Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3418 from 9rnsr/fix12009
Issue 12009 - local import and "unable to resolve forward reference" error
- Loading branch information
Showing
3 changed files
with
45 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
struct RefCounted(T) | ||
{ | ||
struct RefCountedStore | ||
{ | ||
private struct Impl | ||
{ | ||
T _payload; | ||
} | ||
|
||
private Impl* _store; | ||
} | ||
RefCountedStore _refCounted; | ||
|
||
~this() | ||
{ | ||
import core.stdc.stdlib : free; | ||
} | ||
} | ||
|
||
struct GroupBy(R) | ||
{ | ||
struct SharedInput | ||
{ | ||
Group unused; | ||
} | ||
|
||
struct Group | ||
{ | ||
private RefCounted!SharedInput _allGroups; | ||
} | ||
} | ||
|
||
void main() | ||
{ | ||
GroupBy!(int[]) g1; | ||
} |