Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
fix Issue 9436 - enum cannot be forward referenced with cyclic import…
…s and mixin
- Loading branch information
Showing
7 changed files
with
59 additions
and
0 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,11 @@ | ||
module imports.test9436aggr; | ||
|
||
import imports.test9436type; | ||
|
||
class Aggregate : Type | ||
{ | ||
} | ||
|
||
class Class | ||
{ | ||
} |
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.test9436interp; | ||
|
||
import imports.test9436type; | ||
import imports.test9436aggr; | ||
|
||
class ReferenceValueT(T) | ||
{ | ||
void doCast() | ||
{ | ||
auto x = Type.ConversionFlags.kAllowBaseClass; | ||
} | ||
} | ||
|
||
class ClassValue : ReferenceValueT!Class | ||
{ | ||
} |
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,7 @@ | ||
module imports.test9436node; | ||
|
||
import imports.test9436aggr; | ||
|
||
template ForwardCtor() | ||
{ | ||
} |
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.test9436type; | ||
|
||
import imports.test9436node; | ||
|
||
class Type | ||
{ | ||
mixin ForwardCtor!(); | ||
|
||
enum ConversionFlags | ||
{ | ||
kAllowBaseClass = 0 | ||
} | ||
} |
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 @@ | ||
// REQUIRED_ARGS: -c compilable/imports/test9436interp.d | ||
|
||
// this is a dummy module for test 9436. | ||
|