{"action":"closed","issue":{"url":"https://api.github.com/repos/stylus/stylus/issues/2068","labels_url":"https://api.github.com/repos/stylus/stylus/issues/2068/labels{/name}","comments_url":"https://api.github.com/repos/stylus/stylus/issues/2068/comments","events_url":"https://api.github.com/repos/stylus/stylus/issues/2068/events","html_url":"https://github.com/stylus/stylus/issues/2068","id":122160004,"number":2068,"title":"Conditional assignment combined with define produces invalid css","user":{"login":"Sivitas","id":4080198,"avatar_url":"https://avatars.githubusercontent.com/u/4080198?v=3","gravatar_id":"","url":"https://api.github.com/users/Sivitas","html_url":"https://github.com/Sivitas","followers_url":"https://api.github.com/users/Sivitas/followers","following_url":"https://api.github.com/users/Sivitas/following{/other_user}","gists_url":"https://api.github.com/users/Sivitas/gists{/gist_id}","starred_url":"https://api.github.com/users/Sivitas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sivitas/subscriptions","organizations_url":"https://api.github.com/users/Sivitas/orgs","repos_url":"https://api.github.com/users/Sivitas/repos","events_url":"https://api.github.com/users/Sivitas/events{/privacy}","received_events_url":"https://api.github.com/users/Sivitas/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-14T23:54:18Z","updated_at":"2015-12-15T04:22:19Z","closed_at":"2015-12-15T04:22:19Z","body":"I'm using gulp-stylus. When I define a variable that has only a conditional assignment, the resulting css has an artifact when combined with define. \r\n\r\ngulpfile.js\r\n```js\r\nvar gulp = require('gulp'),\r\n  gulpStylus = require('gulp-stylus'),\r\n  stylus = require('stylus');\r\n\r\ngulp.task('default', function() {\r\n  gulp.src('main.styl')\r\n    .pipe(gulpStylus({ define: { random: new stylus.nodes.Literal('#321') } }) // this define\r\n    .pipe(gulp.dest('.'));\r\n});\r\n```\r\n\r\nmain.styl\r\n```styl\r\nrandom := #123\r\n\r\ndiv\r\n  color random\r\n```\r\nproduces \r\n\r\nmain.css\r\n```css\r\n#321 /* The artifact */\r\n.test {\r\n  color: #321;\r\n}\r\n```\r\n\r\nIf I do `random = #123`, the define isn't applied (assuming it's overwritten)\r\nIf I don't use define, the artifact disappears\r\n\r\nTested on 0.52.4 and 0.53.0 (manually updated gulp-stylus to use 0.53.0 but not sure if things lined up properly)"}}