Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
781df82
commit 52f8780
Showing
3 changed files
with
49 additions
and
14 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
// 5962 | ||
|
||
struct S | ||
{ | ||
auto g()(){ return 1; } | ||
const auto g()(){ return 2; } | ||
} | ||
void main() | ||
{ | ||
auto ms = S(); | ||
assert(ms.g() == 1); | ||
auto cs = const(S)(); | ||
assert(cs.g() == 2); | ||
} | ||
// 5962 | ||
|
||
struct S | ||
{ | ||
auto g()(){ return 1; } | ||
const auto g()(){ return 2; } | ||
} | ||
void main() | ||
{ | ||
auto ms = S(); | ||
assert(ms.g() == 1); | ||
auto cs = const(S)(); | ||
assert(cs.g() == 2); | ||
} |
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
52f8780
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like you intended to remove test/runnable/bug5962.d since you merged it into xtest46. The file was instead line-ended corrected, I think.