{"action":"closed","issue":{"url":"https://api.github.com/repos/gkz/LiveScript/issues/712","labels_url":"https://api.github.com/repos/gkz/LiveScript/issues/712/labels{/name}","comments_url":"https://api.github.com/repos/gkz/LiveScript/issues/712/comments","events_url":"https://api.github.com/repos/gkz/LiveScript/issues/712/events","html_url":"https://github.com/gkz/LiveScript/issues/712","id":68868675,"number":712,"title":"Why pattern matching transforms into switch (false) instead of switch(true) ?","user":{"login":"askucher","id":4496793,"avatar_url":"https://avatars.githubusercontent.com/u/4496793?v=3","gravatar_id":"","url":"https://api.github.com/users/askucher","html_url":"https://github.com/askucher","followers_url":"https://api.github.com/users/askucher/followers","following_url":"https://api.github.com/users/askucher/following{/other_user}","gists_url":"https://api.github.com/users/askucher/gists{/gist_id}","starred_url":"https://api.github.com/users/askucher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/askucher/subscriptions","organizations_url":"https://api.github.com/users/askucher/orgs","repos_url":"https://api.github.com/users/askucher/repos","events_url":"https://api.github.com/users/askucher/events{/privacy}","received_events_url":"https://api.github.com/users/askucher/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-16T08:04:11Z","updated_at":"2015-04-16T08:05:32Z","closed_at":"2015-04-16T08:05:32Z","body":"Why pattern matching transforms into switch (false) instead of switch(true) ?\r\n\r\n```Livescript\r\nconst test = \r\n   | (1 is 1)  => 1\r\n   | _ => 0\r\n```\r\n\r\nTransforms to \r\n```Javascript\r\n/ Generated by LiveScript 1.3.1\r\nvar test;\r\ntest = (function(){\r\n  switch (false) {\r\n  case 1 !== 1:\r\n    return 1;\r\n  default:\r\n    return 0;\r\n  }\r\n}());\r\n```"}}