Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix Issue 17059 - incorrect circular reference with `is(Klass : Inter…
…face)` - fixed by tweaking the fix for Issue 16980 (#6383) - happened b/c TypeClass::implicitConv -> TypeClass::constConv checks for offset == 0, which triggered size finalization - instead handle unfinalized classes in isBaseOf (new OFFSET_FWDREF) and only explicity finalize size before optimizing casts - add a halt for any OFFSET_FWDREF leaking through to IR gen
- Loading branch information
1 parent
d3187d6
commit c4ac1ab
Showing
5 changed files
with
27 additions
and
6 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
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 @@ | ||
mixin template impl() | ||
{ | ||
alias T = typeof(this); | ||
enum doImplement = is(T : I); | ||
|
||
static if (doImplement) | ||
{} | ||
} | ||
|
||
interface I {} | ||
class A : I {mixin impl;} |