{"action":"created","issue":{"url":"https://api.github.com/repos/rubinius/rubinius/issues/3538","labels_url":"https://api.github.com/repos/rubinius/rubinius/issues/3538/labels{/name}","comments_url":"https://api.github.com/repos/rubinius/rubinius/issues/3538/comments","events_url":"https://api.github.com/repos/rubinius/rubinius/issues/3538/events","html_url":"https://github.com/rubinius/rubinius/issues/3538","id":123173762,"number":3538,"title":"`Method#parameters` fail with kwargs","user":{"login":"adaedra","id":823894,"avatar_url":"https://avatars.githubusercontent.com/u/823894?v=3","gravatar_id":"","url":"https://api.github.com/users/adaedra","html_url":"https://github.com/adaedra","followers_url":"https://api.github.com/users/adaedra/followers","following_url":"https://api.github.com/users/adaedra/following{/other_user}","gists_url":"https://api.github.com/users/adaedra/gists{/gist_id}","starred_url":"https://api.github.com/users/adaedra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adaedra/subscriptions","organizations_url":"https://api.github.com/users/adaedra/orgs","repos_url":"https://api.github.com/users/adaedra/repos","events_url":"https://api.github.com/users/adaedra/events{/privacy}","received_events_url":"https://api.github.com/users/adaedra/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-12-20T17:38:35Z","updated_at":"2015-12-20T17:48:46Z","closed_at":null,"body":"Hello,\r\n\r\nProblem:\r\n`Method#parameters` outputs wrong on a method with defined kwargs.\r\n\r\nCode sample:\r\n```ruby\r\ndef foo(a, b = nil, c:, d: nil)\r\nend\r\n\r\nputs \"#{RUBY_ENGINE} #{RUBY_VERSION}\"\r\np method(:foo).parameters\r\n```\r\n\r\nRuby output\r\n```\r\nruby 2.2.3\r\n[[:req, :a], [:opt, :b], [:keyreq, :c], [:key, :d]]\r\n```\r\n\r\nRubinius output\r\n```\r\nrbx 2.1.0\r\n[[:req, :a], [:opt, :b], [:opt, :\"_:1\"]]\r\n```\r\n\r\nVersions:\r\n```\r\nruby -v: rubinius 2.6 (2.1.0 cdcec7e8 2015-12-20 3.5.1 JI) [x86_64-darwin15.0.0]\r\nchruby: 0.3.9\r\nuname -a: Darwin localhost 15.0.0 Darwin Kernel Version 15.0.0: Sat Sep 19 15:53:46 PDT 2015; root:xnu-3247.10.11~1/RELEASE_X86_64 x86_64\r\n```"},"comment":{"url":"https://api.github.com/repos/rubinius/rubinius/issues/comments/166140683","html_url":"https://github.com/rubinius/rubinius/issues/3538#issuecomment-166140683","issue_url":"https://api.github.com/repos/rubinius/rubinius/issues/3538","id":166140683,"user":{"login":"adaedra","id":823894,"avatar_url":"https://avatars.githubusercontent.com/u/823894?v=3","gravatar_id":"","url":"https://api.github.com/users/adaedra","html_url":"https://github.com/adaedra","followers_url":"https://api.github.com/users/adaedra/followers","following_url":"https://api.github.com/users/adaedra/following{/other_user}","gists_url":"https://api.github.com/users/adaedra/gists{/gist_id}","starred_url":"https://api.github.com/users/adaedra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adaedra/subscriptions","organizations_url":"https://api.github.com/users/adaedra/orgs","repos_url":"https://api.github.com/users/adaedra/repos","events_url":"https://api.github.com/users/adaedra/events{/privacy}","received_events_url":"https://api.github.com/users/adaedra/received_events","type":"User","site_admin":false},"created_at":"2015-12-20T17:48:46Z","updated_at":"2015-12-20T17:48:46Z","body":"There doesn't seem to be specs relating to kwargs in `Method`."}}