{"action":"closed","issue":{"url":"https://api.github.com/repos/getgauge/gauge/issues/181","labels_url":"https://api.github.com/repos/getgauge/gauge/issues/181/labels{/name}","comments_url":"https://api.github.com/repos/getgauge/gauge/issues/181/comments","events_url":"https://api.github.com/repos/getgauge/gauge/issues/181/events","html_url":"https://github.com/getgauge/gauge/issues/181","id":97622344,"number":181,"title":"Variable values are overwritten if a concept is called twice within another concept","user":{"login":"mahendrakariya","id":2538874,"avatar_url":"https://avatars.githubusercontent.com/u/2538874?v=3","gravatar_id":"","url":"https://api.github.com/users/mahendrakariya","html_url":"https://github.com/mahendrakariya","followers_url":"https://api.github.com/users/mahendrakariya/followers","following_url":"https://api.github.com/users/mahendrakariya/following{/other_user}","gists_url":"https://api.github.com/users/mahendrakariya/gists{/gist_id}","starred_url":"https://api.github.com/users/mahendrakariya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mahendrakariya/subscriptions","organizations_url":"https://api.github.com/users/mahendrakariya/orgs","repos_url":"https://api.github.com/users/mahendrakariya/repos","events_url":"https://api.github.com/users/mahendrakariya/events{/privacy}","received_events_url":"https://api.github.com/users/mahendrakariya/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/getgauge/gauge/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-28T05:52:51Z","updated_at":"2015-08-05T07:00:54Z","closed_at":"2015-08-05T07:00:54Z","body":"If a concept is called more than once with another concept, the variable values of only the last occurrence is getting considered.\r\n\r\n### Code Snippets\r\n\r\n**Java**\r\n```\r\n@Step(\"Say <greeting> to <product name>\")\r\npublic void helloWorld(String greeting, String name) {\r\n    System.out.println(greeting + \", \" + name);\r\n}\r\n```\r\n\r\n**Hello_World.spec**\r\n```\r\nSpecification Heading\r\n=====================\r\n\r\nFirst scenario\r\n--------------\r\n\r\n* Say \"hi\" and \"hello\" and \"welcome\" to \"gauge\"\r\n```\r\n\r\n**Concept1**\r\n```\r\n# Say <Greeting1> and <Greeting2> to <ProductName>\r\n\r\n* Say <Greeting1> to <ProductName>\r\n* Say <Greeting2> to <ProductName>\r\n```\r\n\r\n**Concept2**\r\n```\r\n# Say <Greeting1> and <Greeting2> and <Greeting3> to <ProductName>\r\n\r\n* Say <Greeting1> and <Greeting2> to <ProductName>\r\n* Say <Greeting2> and <Greeting3> to \"abc\"\r\n```\r\n\r\n### Expected Output\r\n```\r\nhi, gauge\r\nhello, gauge\r\n\r\nhello, abc\r\nwelcome, abc\r\n```\r\n\r\n### Actual Output\r\n```\r\nhello, abc\r\nwelcome, abc\r\n\r\nhello, abc\r\nwelcome, abc\r\n```"}}