-
-
Notifications
You must be signed in to change notification settings - Fork 609
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix Issue 16572 - can't take inout delegate
- fix error to account for inout (MODwild) matches
- Loading branch information
1 parent
7ddb346
commit 847baa9
Showing
2 changed files
with
16 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,15 @@ | ||
| class K | ||
| { | ||
| inout(int) f() inout | ||
| { | ||
| return var; | ||
| } | ||
|
|
||
| void bug() | ||
| { | ||
| auto d = &f; | ||
| d(); | ||
| } | ||
|
|
||
| int var; | ||
| } |
847baa9There 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.
That was easy! :)