Skip to content

Commit a94b163

Browse files
committed
fix DIP25 compilation errors
1 parent 870dd0c commit a94b163

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)