[ruby-cvs:78477] a1f98cd4c1 (master): vm_args.c: make the keyword deprecation message helpful
"Yusuke Endoh" <[email protected]>
| Newsgroups | gmane.comp.lang.ruby.cvs |
|---|---|
| Message-ID | <[email protected]> |
Yusuke Endoh 2019-12-03 17:56:50 +0900 (Tue, 03 Dec 2019)
New Revision: a1f98cd4c1
https://github.com/ruby/ruby/commit/a1f98cd4c1
Log:
vm_args.c: make the keyword deprecation message helpful
```
$ ./miniruby -e 'def foo(kw: 1); end; h = {kw: 1}; foo(h)'
-e:1: warning: The last argument is used as the keyword parameter
-e:1: warning: for `foo' defined here; maybe ** should be added to the call?
```
Modified files:
vm_args.c