Skip to content

Commit 84e0711

Browse files
authored
Merge pull request #2533 from WalterBright/fixDIP25-errors
fix DIP25 compilation errors merged-on-behalf-of: Nicholas Wilson <thewilsonator@users.noreply.github.com>
2 parents 6c07752 + a94b163 commit 84e0711

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

spec/function.dd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -595,7 +595,7 @@ $(H2 $(LNAME2 optional-parenthesis, Optional Parentheses))
595595
---
596596
struct S {
597597
int function() callfp() { return &numfp; }
598-
int delegate() calldg() { return &numdg; }
598+
int delegate() calldg() return { return &numdg; }
599599
int numdg() { return 6; }
600600
}
601601

spec/struct.dd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1471,7 +1471,7 @@ $(H2 $(LEGACY_LNAME2 AssignOverload, assign-overload, Identity Assignment Overlo
14711471
int[] buf;
14721472
int a;
14731473

1474-
ref S opAssign(ref const S s)
1474+
ref S opAssign(ref const S s) return
14751475
{
14761476
a = s.a;
14771477
return this;

0 commit comments

Comments
 (0)