-
-
Notifications
You must be signed in to change notification settings - Fork 606
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 #1588 from 9rnsr/fix9276
Issue 9276 - regression(2.061): Forward reference error
- Loading branch information
Showing
11 changed files
with
163 additions
and
33 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
module imports.test9276decl; | ||
|
||
import imports.test9276sem, imports.test9276visitors, imports.test9276util; | ||
|
||
class Declaration | ||
{ | ||
mixin DownCastMethods!TemplateDecl; | ||
} | ||
|
||
class TemplateDecl : OverloadableDecl | ||
{ | ||
mixin Visitors; | ||
} | ||
|
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,15 @@ | ||
module imports.test9276expr; | ||
|
||
import imports.test9276parser; | ||
import imports.test9276util; | ||
|
||
class Node | ||
{ | ||
mixin DownCastMethods!Declaration; | ||
|
||
} | ||
|
||
class Expression : Node | ||
{ | ||
} | ||
|
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 @@ | ||
module imports.test9276hash; |
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,4 @@ | ||
module imports.test9276parser; | ||
|
||
public import imports.test9276expr, imports.test9276decl; | ||
|
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,25 @@ | ||
module imports.test9276sem; | ||
|
||
class Declaration | ||
{ | ||
mixin Visitors; | ||
} | ||
|
||
template Semantic(T) | ||
{ | ||
private: | ||
struct | ||
{ | ||
import imports.test9276hash; | ||
} | ||
|
||
} | ||
|
||
|
||
|
||
import imports.test9276visitors; | ||
|
||
class OverloadableDecl : Declaration | ||
{ | ||
} | ||
|
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,12 @@ | ||
module imports.test9276type; | ||
|
||
import imports.test9276parser; | ||
|
||
class Type : Expression // <- note to Walter. | ||
{ | ||
} | ||
|
||
class BasicType : Type | ||
{ | ||
} | ||
|
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,13 @@ | ||
module imports.test9276util; | ||
|
||
string _dgliteral(T...)() | ||
{ | ||
foreach (t; T) | ||
return t.stringof; | ||
assert(0); | ||
} | ||
template DownCastMethods(T...) | ||
{ | ||
enum x = _dgliteral!T; | ||
} | ||
|
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,16 @@ | ||
module imports.test9276visitors; | ||
|
||
template Visitors() | ||
{ | ||
mixin Semantic!(typeof(this)); | ||
mixin DeepDup!(typeof(this)); | ||
} | ||
|
||
import imports.test9276type; | ||
|
||
template DeepDup(T) if (is(T : BasicType)) | ||
{} | ||
|
||
template DeepDup(T) | ||
{} | ||
|
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,6 @@ | ||
// REQUIRED_ARGS: compilable/imports/test9276parser.d | ||
|
||
|
||
// This is a dummy module for compilable test | ||
void main() | ||
{} |
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