-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support keyword arguments support partially
Previously, methods defined with keyword arguments would have their keyword arguments ignored. ```rb def foo(x:) x.to_i end ``` → ``` def foo: -> Integer ``` With the added support for keyword arguments, keyword arguments can now be interpreted. However, the following are not yet supported - Method calls with keyword arguments keyword_hash_node because it does not support. - Optional keyword arguments The scenario test `RuntimeError: AST diff does not work well; the completely same code generates a different AST` is annoying me and I gave up.
- Loading branch information
1 parent
799276d
commit 1fe112b
Showing
3 changed files
with
21 additions
and
14 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
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,9 @@ | ||
## update | ||
def foo(x:) | ||
x | ||
end | ||
|
||
## assert | ||
class Object | ||
def foo: (x: untyped) -> untyped | ||
end |