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 #2173 from 9rnsr/fix10334
Issue 10334 - ddoc should prefer simple syntax for template instantiations with one parameter
- Loading branch information
Showing
20 changed files
with
341 additions
and
83 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,27 @@ | ||
// PERMUTE_ARGS: | ||
// REQUIRED_ARGS: -D -Ddtest_results/compilable -o- | ||
// POST_SCRIPT: compilable/extra-files/ddocAny-postscript.sh 10334 | ||
|
||
module ddoc10334; | ||
|
||
template Foo10334(T) if (Bar10334!()) {} /// | ||
template Foo10334(T) if (Bar10334!100) {} /// | ||
template Foo10334(T) if (Bar10334!3.14) {} /// | ||
template Foo10334(T) if (Bar10334!"str") {} /// | ||
template Foo10334(T) if (Bar10334!1.4i) {} /// | ||
template Foo10334(T) if (Bar10334!null) {} /// | ||
template Foo10334(T) if (Bar10334!true) {} /// | ||
template Foo10334(T) if (Bar10334!false) {} /// | ||
template Foo10334(T) if (Bar10334!'A') {} /// | ||
template Foo10334(T) if (Bar10334!int) {} /// | ||
template Foo10334(T) if (Bar10334!string) {} /// | ||
template Foo10334(T) if (Bar10334!([1,2,3])) {} /// | ||
template Foo10334(T) if (Bar10334!(Baz10334!())) {} /// | ||
template Foo10334(T) if (Bar10334!(Baz10334!T)) {} /// | ||
template Foo10334(T) if (Bar10334!(Baz10334!100)) {} /// | ||
template Foo10334(T) if (Bar10334!(.foo)) {} /// | ||
|
||
template Test10334(T...) {} /// | ||
mixin Test10334!int a; /// | ||
mixin Test10334!(int,long) b; /// | ||
mixin Test10334!"str" c; /// |
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,61 @@ | ||
<html><head> | ||
<META http-equiv="content-type" content="text/html; charset=utf-8"> | ||
<title>ddoc10334</title> | ||
</head><body> | ||
<h1>ddoc10334</h1> | ||
<br><br> | ||
<dl><dt><big><a name="Foo10334"></a>template <u>Foo10334</u>(T) if (Bar10334!())</big></dt> | ||
<dd><br><br> | ||
</dd> | ||
<dt><big><a name="Foo10334"></a>template <u>Foo10334</u>(T) if (Bar10334!100)</big></dt> | ||
<dd><br><br> | ||
</dd> | ||
<dt><big><a name="Foo10334"></a>template <u>Foo10334</u>(T) if (Bar10334!3.14)</big></dt> | ||
<dd><br><br> | ||
</dd> | ||
<dt><big><a name="Foo10334"></a>template <u>Foo10334</u>(T) if (Bar10334!"str")</big></dt> | ||
<dd><br><br> | ||
</dd> | ||
<dt><big><a name="Foo10334"></a>template <u>Foo10334</u>(T) if (Bar10334!1.4i)</big></dt> | ||
<dd><br><br> | ||
</dd> | ||
<dt><big><a name="Foo10334"></a>template <u>Foo10334</u>(T) if (Bar10334!null)</big></dt> | ||
<dd><br><br> | ||
</dd> | ||
<dt><big><a name="Foo10334"></a>template <u>Foo10334</u>(T) if (Bar10334!true)</big></dt> | ||
<dd><br><br> | ||
</dd> | ||
<dt><big><a name="Foo10334"></a>template <u>Foo10334</u>(T) if (Bar10334!false)</big></dt> | ||
<dd><br><br> | ||
</dd> | ||
<dt><big><a name="Foo10334"></a>template <u>Foo10334</u>(T) if (Bar10334!'A')</big></dt> | ||
<dd><br><br> | ||
</dd> | ||
<dt><big><a name="Foo10334"></a>template <u>Foo10334</u>(T) if (Bar10334!int)</big></dt> | ||
<dd><br><br> | ||
</dd> | ||
<dt><big><a name="Foo10334"></a>template <u>Foo10334</u>(T) if (Bar10334!string)</big></dt> | ||
<dd><br><br> | ||
</dd> | ||
<dt><big><a name="Foo10334"></a>template <u>Foo10334</u>(T) if (Bar10334!([1, 2, 3]))</big></dt> | ||
<dd><br><br> | ||
</dd> | ||
<dt><big><a name="Foo10334"></a>template <u>Foo10334</u>(T) if (Bar10334!(Baz10334!()))</big></dt> | ||
<dd><br><br> | ||
</dd> | ||
<dt><big><a name="Foo10334"></a>template <u>Foo10334</u>(T) if (Bar10334!(Baz10334!T))</big></dt> | ||
<dd><br><br> | ||
</dd> | ||
<dt><big><a name="Foo10334"></a>template <u>Foo10334</u>(T) if (Bar10334!(Baz10334!100))</big></dt> | ||
<dd><br><br> | ||
</dd> | ||
<dt><big><a name="Foo10334"></a>template <u>Foo10334</u>(T) if (Bar10334!(.foo))</big></dt> | ||
<dd><br><br> | ||
</dd> | ||
<dt><big><a name="Test10334"></a>template <u>Test10334</u>(T...)</big></dt> | ||
<dd><br><br> | ||
</dd> | ||
</dl> | ||
|
||
<hr><small>Page generated by <a href="http://dlang.org/ddoc.html">Ddoc</a>. </small> | ||
</body></html> |
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
Oops, something went wrong.