{"action":"opened","issue":{"url":"https://api.github.com/repos/bridgedotnet/Bridge/issues/1938","repository_url":"https://api.github.com/repos/bridgedotnet/Bridge","labels_url":"https://api.github.com/repos/bridgedotnet/Bridge/issues/1938/labels{/name}","comments_url":"https://api.github.com/repos/bridgedotnet/Bridge/issues/1938/comments","events_url":"https://api.github.com/repos/bridgedotnet/Bridge/issues/1938/events","html_url":"https://github.com/bridgedotnet/Bridge/issues/1938","id":181737058,"number":1938,"title":"Type.IsArray template missing parentheses","user":{"login":"LeonidVeriga","id":11466613,"avatar_url":"https://avatars.githubusercontent.com/u/11466613?v=3","gravatar_id":"","url":"https://api.github.com/users/LeonidVeriga","html_url":"https://github.com/LeonidVeriga","followers_url":"https://api.github.com/users/LeonidVeriga/followers","following_url":"https://api.github.com/users/LeonidVeriga/following{/other_user}","gists_url":"https://api.github.com/users/LeonidVeriga/gists{/gist_id}","starred_url":"https://api.github.com/users/LeonidVeriga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LeonidVeriga/subscriptions","organizations_url":"https://api.github.com/users/LeonidVeriga/orgs","repos_url":"https://api.github.com/users/LeonidVeriga/repos","events_url":"https://api.github.com/users/LeonidVeriga/events{/privacy}","received_events_url":"https://api.github.com/users/LeonidVeriga/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/bridgedotnet/Bridge/labels/defect","name":"defect","color":"FF4136"}],"state":"open","locked":false,"assignee":{"login":"LeonidVeriga","id":11466613,"avatar_url":"https://avatars.githubusercontent.com/u/11466613?v=3","gravatar_id":"","url":"https://api.github.com/users/LeonidVeriga","html_url":"https://github.com/LeonidVeriga","followers_url":"https://api.github.com/users/LeonidVeriga/followers","following_url":"https://api.github.com/users/LeonidVeriga/following{/other_user}","gists_url":"https://api.github.com/users/LeonidVeriga/gists{/gist_id}","starred_url":"https://api.github.com/users/LeonidVeriga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LeonidVeriga/subscriptions","organizations_url":"https://api.github.com/users/LeonidVeriga/orgs","repos_url":"https://api.github.com/users/LeonidVeriga/repos","events_url":"https://api.github.com/users/LeonidVeriga/events{/privacy}","received_events_url":"https://api.github.com/users/LeonidVeriga/received_events","type":"User","site_admin":false},"assignees":[{"login":"LeonidVeriga","id":11466613,"avatar_url":"https://avatars.githubusercontent.com/u/11466613?v=3","gravatar_id":"","url":"https://api.github.com/users/LeonidVeriga","html_url":"https://github.com/LeonidVeriga","followers_url":"https://api.github.com/users/LeonidVeriga/followers","following_url":"https://api.github.com/users/LeonidVeriga/following{/other_user}","gists_url":"https://api.github.com/users/LeonidVeriga/gists{/gist_id}","starred_url":"https://api.github.com/users/LeonidVeriga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LeonidVeriga/subscriptions","organizations_url":"https://api.github.com/users/LeonidVeriga/orgs","repos_url":"https://api.github.com/users/LeonidVeriga/repos","events_url":"https://api.github.com/users/LeonidVeriga/events{/privacy}","received_events_url":"https://api.github.com/users/LeonidVeriga/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/bridgedotnet/Bridge/milestones/31","html_url":"https://github.com/bridgedotnet/Bridge/milestones/15.3","labels_url":"https://api.github.com/repos/bridgedotnet/Bridge/milestones/31/labels","id":2035948,"number":31,"title":"15.3","description":"","creator":{"login":"geoffreymcgill","id":62210,"avatar_url":"https://avatars.githubusercontent.com/u/62210?v=3","gravatar_id":"","url":"https://api.github.com/users/geoffreymcgill","html_url":"https://github.com/geoffreymcgill","followers_url":"https://api.github.com/users/geoffreymcgill/followers","following_url":"https://api.github.com/users/geoffreymcgill/following{/other_user}","gists_url":"https://api.github.com/users/geoffreymcgill/gists{/gist_id}","starred_url":"https://api.github.com/users/geoffreymcgill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geoffreymcgill/subscriptions","organizations_url":"https://api.github.com/users/geoffreymcgill/orgs","repos_url":"https://api.github.com/users/geoffreymcgill/repos","events_url":"https://api.github.com/users/geoffreymcgill/events{/privacy}","received_events_url":"https://api.github.com/users/geoffreymcgill/received_events","type":"User","site_admin":false},"open_issues":16,"closed_issues":9,"state":"open","created_at":"2016-09-28T20:29:47Z","updated_at":"2016-10-07T18:28:12Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2016-10-07T18:28:12Z","updated_at":"2016-10-07T18:28:12Z","closed_at":null,"body":"### Expected\r\nUsing a negation operator should not interfere with the function's template specific implementation, parentheses being used:\r\n```cs\r\npublic extern bool IsArray\r\n{\r\n    [Template(\"{this} === Array\")]\r\n    get;\r\n}\r\n```\r\nOutput:\r\n```js\r\nvar r = !(type === Array) === !((type === Array));\r\n```\r\n\r\n### Actual\r\n`Type.IsArray` template is missing parentheses:\r\n```cs\r\npublic extern bool IsArray\r\n{\r\n    [Template(\"({this} === Array)\")]\r\n    get;\r\n}\r\n```\r\nOutput:\r\n```js\r\nvar r = !type === Array === !(type === Array);\r\n```\r\n\r\n### Steps To Reproduce\r\n\r\n[Deck](http://deck.net/12a343a3f77fa858888478cd83332d62)\r\n\r\n```cs\r\npublic class Program\r\n{\r\n    public static void Main()\r\n    {\r\n        var type = 3.GetType();\r\n        \r\n        var r = !type.IsArray == !(type.IsArray);\r\n        Console.WriteLine(\"Should be true: \" + r);\r\n    }\r\n}\r\n```\r\n"}}
{"actor":{"display_login":"LeonidVeriga"}}