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 #4316 from 9rnsr/fix13860
Issue 13860 - template required forward reference for typeof(member)
- Loading branch information
Showing
5 changed files
with
34 additions
and
9 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,27 @@ | ||
// PERMUTE_ARGS: | ||
/* | ||
TEST_OUTPUT: | ||
--- | ||
pure nothrow @nogc @safe void() | ||
pure nothrow @nogc @safe void() | ||
--- | ||
*/ | ||
|
||
struct Foo(Bar...) | ||
{ | ||
Bar bars; | ||
auto baz(size_t d)() {} | ||
pragma(msg, typeof(baz!0)); | ||
} | ||
|
||
auto bar(S, R)(S s, R r) | ||
{ | ||
pragma(msg, typeof(Foo!().baz!0)); | ||
} | ||
|
||
void main() | ||
{ | ||
int[] x; | ||
int[] y; | ||
x.bar(y); | ||
} |
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