{"action":"created","issue":{"url":"https://api.github.com/repos/sass/sass/issues/1636","labels_url":"https://api.github.com/repos/sass/sass/issues/1636/labels{/name}","comments_url":"https://api.github.com/repos/sass/sass/issues/1636/comments","events_url":"https://api.github.com/repos/sass/sass/issues/1636/events","html_url":"https://github.com/sass/sass/issues/1636","id":57494377,"number":1636,"title":"@extend creating two rules with different logic","user":{"login":"dtipson","id":597197,"avatar_url":"https://avatars.githubusercontent.com/u/597197?v=3","gravatar_id":"","url":"https://api.github.com/users/dtipson","html_url":"https://github.com/dtipson","followers_url":"https://api.github.com/users/dtipson/followers","following_url":"https://api.github.com/users/dtipson/following{/other_user}","gists_url":"https://api.github.com/users/dtipson/gists{/gist_id}","starred_url":"https://api.github.com/users/dtipson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dtipson/subscriptions","organizations_url":"https://api.github.com/users/dtipson/orgs","repos_url":"https://api.github.com/users/dtipson/repos","events_url":"https://api.github.com/users/dtipson/events{/privacy}","received_events_url":"https://api.github.com/users/dtipson/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-02-12T17:46:54Z","updated_at":"2015-02-13T21:32:05Z","closed_at":"2015-02-13T21:32:05Z","body":"Apologies if I'm just ignorant of how this is supposed to work, or if this is bad syntax, but seems very strange that anything like this would output two different rules with conflicting idea of how @extend-ing something that uses & should work. Tested on 3.4.11\r\n.scss:\r\n```\r\n%none{\r\n    .bodyclass & {\r\n        display:none;\r\n    }\r\n}\r\nheader .logo{\r\n    @extend %none;\r\n}\r\n```\r\noutput:\r\n*.bodyclass header .logo, header .bodyclass .logo { display:none; }*\r\n\r\nThat is, the first rule generated interprets the .bodyclass & as referencing the top parent, while the second interprets it as referencing the immediate parent.  My expectation was that one or the other would be the \"correct\" interpretation of the syntax, rather than it generating both."},"comment":{"url":"https://api.github.com/repos/sass/sass/issues/comments/74330565","html_url":"https://github.com/sass/sass/issues/1636#issuecomment-74330565","issue_url":"https://api.github.com/repos/sass/sass/issues/1636","id":74330565,"user":{"login":"nex3","id":188,"avatar_url":"https://avatars.githubusercontent.com/u/188?v=3","gravatar_id":"","url":"https://api.github.com/users/nex3","html_url":"https://github.com/nex3","followers_url":"https://api.github.com/users/nex3/followers","following_url":"https://api.github.com/users/nex3/following{/other_user}","gists_url":"https://api.github.com/users/nex3/gists{/gist_id}","starred_url":"https://api.github.com/users/nex3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nex3/subscriptions","organizations_url":"https://api.github.com/users/nex3/orgs","repos_url":"https://api.github.com/users/nex3/repos","events_url":"https://api.github.com/users/nex3/events{/privacy}","received_events_url":"https://api.github.com/users/nex3/received_events","type":"User","site_admin":false},"created_at":"2015-02-13T21:32:04Z","updated_at":"2015-02-13T21:32:04Z","body":"@davidkpiano explained this well."}}