-
-
Notifications
You must be signed in to change notification settings - Fork 389
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
Showing
1 changed file
with
3 additions
and
3 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 |
---|---|---|
|
@@ -125,7 +125,7 @@ def m(*args, **kwargs) | |
end | ||
|
||
it "works with -> (*args, **kwargs) {}" do | ||
m = -> (*args, **kwargs) do | ||
m = -> *args, **kwargs do | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
eregon
Author
Member
|
||
target(*args, **kwargs) | ||
end | ||
|
||
|
@@ -261,8 +261,8 @@ def y(args) | |
yield(*args) | ||
end | ||
|
||
ruby2_keywords def m(*args) | ||
y(args, &-> (*args, **kwargs) { target(*args, **kwargs) }) | ||
ruby2_keywords def m(*outer_args) | ||
y(outer_args, &-> *args, **kwargs { target(*args, **kwargs) }) | ||
end | ||
end | ||
|
||
|
@eregon I think this changes the meaning of the test case. The name
it "works with -> (*args, **kwargs) {}"
suggests that the purpose of the test is to validate that things work properly if the parentheses are include.