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 #9075 from RazvanN7/Issue_18938
Fix Issue 18938 - Dmd segfault when compiling this dub package in test release
- Loading branch information
Showing
5 changed files
with
53 additions
and
1 deletion.
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,10 @@ | ||
// REQUIRED_ARGS: -c -Ifail_compilation/imports/ fail_compilation/imports/test18938a/cache.d fail_compilation/imports/test18938a/file.d | ||
/* | ||
TEST_OUTPUT: | ||
--- | ||
fail_compilation/imports/test18938b/file.d(20): Deprecation: `std.algorithm.setops.No` is not visible from module `file` | ||
fail_compilation/imports/test18938b/file.d(9): Error: `map(Range)(Range r) if (isInputRange!(Unqual!Range))` has no effect | ||
--- | ||
*/ | ||
|
||
void main() {} |
Empty file.
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 @@ | ||
import imports.test18938b.file; | ||
class IconThemeGroup : IniLikeGroup | ||
{ | ||
this() | ||
{ | ||
super("Icon Theme"); | ||
} | ||
|
||
///setter | ||
string inherits()() { | ||
} | ||
|
||
} |
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,28 @@ | ||
module imports.test18938b.file; | ||
import std.algorithm; | ||
|
||
class IniLikeGroup | ||
{ | ||
this(string ) {} | ||
@trusted byNode() | ||
{ | ||
map!(node => lineNode); | ||
} | ||
} | ||
|
||
|
||
class IniLikeFile | ||
{ | ||
struct WriteOptions | ||
{ | ||
static exact() | ||
{ | ||
return WriteOptions(No.lineBetweenGroups); | ||
} | ||
|
||
this(Args)(Args ){} | ||
|
||
} | ||
void saveToFile(WriteOptions = WriteOptions.exact) {} | ||
final save() {} | ||
} |