{"action":"closed","issue":{"url":"https://api.github.com/repos/google/closure-compiler/issues/969","labels_url":"https://api.github.com/repos/google/closure-compiler/issues/969/labels{/name}","comments_url":"https://api.github.com/repos/google/closure-compiler/issues/969/comments","events_url":"https://api.github.com/repos/google/closure-compiler/issues/969/events","html_url":"https://github.com/google/closure-compiler/issues/969","id":80478774,"number":969,"title":"NTI: Asserts do not force the type","user":{"login":"pstjvn","id":729251,"avatar_url":"https://avatars.githubusercontent.com/u/729251?v=3","gravatar_id":"","url":"https://api.github.com/users/pstjvn","html_url":"https://github.com/pstjvn","followers_url":"https://api.github.com/users/pstjvn/followers","following_url":"https://api.github.com/users/pstjvn/following{/other_user}","gists_url":"https://api.github.com/users/pstjvn/gists{/gist_id}","starred_url":"https://api.github.com/users/pstjvn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pstjvn/subscriptions","organizations_url":"https://api.github.com/users/pstjvn/orgs","repos_url":"https://api.github.com/users/pstjvn/repos","events_url":"https://api.github.com/users/pstjvn/events{/privacy}","received_events_url":"https://api.github.com/users/pstjvn/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/google/closure-compiler/labels/NTI","name":"NTI","color":"006b75"},{"url":"https://api.github.com/repos/google/closure-compiler/labels/P1","name":"P1","color":"eb6420"}],"state":"closed","locked":false,"assignee":{"login":"dimvar","id":286890,"avatar_url":"https://avatars.githubusercontent.com/u/286890?v=3","gravatar_id":"","url":"https://api.github.com/users/dimvar","html_url":"https://github.com/dimvar","followers_url":"https://api.github.com/users/dimvar/followers","following_url":"https://api.github.com/users/dimvar/following{/other_user}","gists_url":"https://api.github.com/users/dimvar/gists{/gist_id}","starred_url":"https://api.github.com/users/dimvar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dimvar/subscriptions","organizations_url":"https://api.github.com/users/dimvar/orgs","repos_url":"https://api.github.com/users/dimvar/repos","events_url":"https://api.github.com/users/dimvar/events{/privacy}","received_events_url":"https://api.github.com/users/dimvar/received_events","type":"User","site_admin":false},"milestone":null,"comments":0,"created_at":"2015-05-25T09:59:34Z","updated_at":"2015-08-07T15:16:48Z","closed_at":"2015-08-07T15:16:48Z","body":"While testing NTI I found a lot of this warning type:\r\n\r\n```\r\njs/components/pages/auth.js:139: WARNING - Returned type does not match declared return type.\r\ndeclared : longa.ui.Pages\r\nfound    : goog.ui.Component|null\r\n\r\n    return goog.asserts.assertInstanceof(this.getChildAt(0), longa.ui.Pages);\r\n```\r\n\r\nThe whole method is:\r\n```\r\n  /**\r\n   * Getter for the pages widget.\r\n   * @protected\r\n   * @return {!longa.ui.Pages}\r\n   */\r\n  getPages: function() {\r\n    return goog.asserts.assertInstanceof(this.getChildAt(0), longa.ui.Pages);\r\n  },\r\n```\r\n\r\nI think this might be a bug. I think assertInstanceof should tell the compiler that I am sure this is the type and basically I am enforcing it, but it still does not take it into account.\r\n"}}