Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix Issue 12009 - local import and "unable to resolve forward referen…
…ce" error `Module::semantic2` could be invoked from local imports, even when some local symbol semantics are not yet completed.
- 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; | ||
} |