{"action":"created","issue":{"url":"https://api.github.com/repos/sirthias/parboiled2/issues/143","labels_url":"https://api.github.com/repos/sirthias/parboiled2/issues/143/labels{/name}","comments_url":"https://api.github.com/repos/sirthias/parboiled2/issues/143/comments","events_url":"https://api.github.com/repos/sirthias/parboiled2/issues/143/events","html_url":"https://github.com/sirthias/parboiled2/issues/143","id":72427521,"number":143,"title":"Error in the \"zeroOrMore\" documentation","user":{"login":"anatoliykmetyuk","id":2614813,"avatar_url":"https://avatars.githubusercontent.com/u/2614813?v=3","gravatar_id":"","url":"https://api.github.com/users/anatoliykmetyuk","html_url":"https://github.com/anatoliykmetyuk","followers_url":"https://api.github.com/users/anatoliykmetyuk/followers","following_url":"https://api.github.com/users/anatoliykmetyuk/following{/other_user}","gists_url":"https://api.github.com/users/anatoliykmetyuk/gists{/gist_id}","starred_url":"https://api.github.com/users/anatoliykmetyuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anatoliykmetyuk/subscriptions","organizations_url":"https://api.github.com/users/anatoliykmetyuk/orgs","repos_url":"https://api.github.com/users/anatoliykmetyuk/repos","events_url":"https://api.github.com/users/anatoliykmetyuk/events{/privacy}","received_events_url":"https://api.github.com/users/anatoliykmetyuk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-05-01T12:53:07Z","updated_at":"2015-05-03T09:47:20Z","closed_at":null,"body":"In the `README.rst` documentation, section about `oneOrMore`, it is said in the table that if type of `a` is `Rule[I, O <: I]` then type of `oneOrMore(a)` is `Rule[I, O]`. This is not true, however, the type of `oneOrMore(a)` is `Rule[I, I]`.\r\n\r\nTo check this, compile the following code:\r\n```scala\r\n  type A\r\n  type B <: A\r\n\r\n  def R1: Rule[A :: HNil, B :: HNil]\r\n  def R2: Rule[A :: HNil, B :: HNil] = rule {zeroOrMore(R1)}\r\n```\r\n\r\nYou will get an error:\r\n```\r\n[error]  type mismatch;\r\n[error]  found   : org.parboiled2.Rule[shapeless.::[A,shapeless.HNil],shapeless.::[A,shapeless.HNil]] with org.parboiled2.Repeated\r\n[error]  required: org.parboiled2.Rule[shapeless.::[A,shapeless.HNil],shapeless.::[B,shapeless.HNil]]\r\n[error]   def R2: Rule[A :: HNil, B :: HNil] = rule {zeroOrMore(R1)}\r\n```"},"comment":{"url":"https://api.github.com/repos/sirthias/parboiled2/issues/comments/98460944","html_url":"https://github.com/sirthias/parboiled2/issues/143#issuecomment-98460944","issue_url":"https://api.github.com/repos/sirthias/parboiled2/issues/143","id":98460944,"user":{"login":"anatoliykmetyuk","id":2614813,"avatar_url":"https://avatars.githubusercontent.com/u/2614813?v=3","gravatar_id":"","url":"https://api.github.com/users/anatoliykmetyuk","html_url":"https://github.com/anatoliykmetyuk","followers_url":"https://api.github.com/users/anatoliykmetyuk/followers","following_url":"https://api.github.com/users/anatoliykmetyuk/following{/other_user}","gists_url":"https://api.github.com/users/anatoliykmetyuk/gists{/gist_id}","starred_url":"https://api.github.com/users/anatoliykmetyuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anatoliykmetyuk/subscriptions","organizations_url":"https://api.github.com/users/anatoliykmetyuk/orgs","repos_url":"https://api.github.com/users/anatoliykmetyuk/repos","events_url":"https://api.github.com/users/anatoliykmetyuk/events{/privacy}","received_events_url":"https://api.github.com/users/anatoliykmetyuk/received_events","type":"User","site_admin":false},"created_at":"2015-05-03T09:47:20Z","updated_at":"2015-05-03T09:47:20Z","body":"Ok, I did so."}}