-
-
Notifications
You must be signed in to change notification settings - Fork 264
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 #4798 from kinke/merge_stable
Merge upstream stable
- Loading branch information
Showing
6 changed files
with
42 additions
and
10 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
module imports.test23722_2b; | ||
|
||
struct T(alias fun) { } | ||
|
||
struct S(int i) { | ||
auto t = T!(x => i)(); | ||
} | ||
|
||
string g() { | ||
S!0 s0; | ||
S!1 s1; | ||
return s1.t.init.mangleof; | ||
} |
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,10 @@ | ||
// COMPILE_SEPARATELY: | ||
// EXTRA_SOURCES: imports/test23722_2b.d | ||
// https://issues.dlang.org/show_bug.cgi?id=23722 | ||
// Lambdas are mangled incorrectly when using multiple compilation units, resulting in incorrect code | ||
import imports.test23722_2b; | ||
|
||
void main() { | ||
S!1 s1; | ||
assert(s1.t.init.mangleof == g); | ||
} |