-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #815 from scooter-dangle/Proc#arity-with-default-args
Calculate Proc#arity the same way as Method#arity
- Loading branch information
Showing
2 changed files
with
1 addition
and
5 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,5 +1 @@ | ||
fails:Proc#arity returns 1 for a block taking |a, | arguments | ||
fails:Proc#arity returns -1 for a lambda taking one optional argument | ||
fails:Proc#arity returns -2 for a lambda taking |a, b = 0| argument | ||
fails:Proc#arity returns -2 for a lambda taking |a, b = 0, c = 0| argument | ||
fails:Proc#arity returns -2 for a lambda taking |(a, b), c = 0| argument |
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