{"action":"created","issue":{"url":"https://api.github.com/repos/ceylon/ceylon-ide-eclipse/issues/1497","labels_url":"https://api.github.com/repos/ceylon/ceylon-ide-eclipse/issues/1497/labels{/name}","comments_url":"https://api.github.com/repos/ceylon/ceylon-ide-eclipse/issues/1497/comments","events_url":"https://api.github.com/repos/ceylon/ceylon-ide-eclipse/issues/1497/events","html_url":"https://github.com/ceylon/ceylon-ide-eclipse/issues/1497","id":107349191,"number":1497,"title":"Typechecker errors are removed when using native(\"js\")","user":{"login":"bjansen","id":281528,"avatar_url":"https://avatars.githubusercontent.com/u/281528?v=3","gravatar_id":"","url":"https://api.github.com/users/bjansen","html_url":"https://github.com/bjansen","followers_url":"https://api.github.com/users/bjansen/followers","following_url":"https://api.github.com/users/bjansen/following{/other_user}","gists_url":"https://api.github.com/users/bjansen/gists{/gist_id}","starred_url":"https://api.github.com/users/bjansen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bjansen/subscriptions","organizations_url":"https://api.github.com/users/bjansen/orgs","repos_url":"https://api.github.com/users/bjansen/repos","events_url":"https://api.github.com/users/bjansen/events{/privacy}","received_events_url":"https://api.github.com/users/bjansen/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ceylon/ceylon-ide-eclipse/labels/bug","name":"bug","color":"e10c02"},{"url":"https://api.github.com/repos/ceylon/ceylon-ide-eclipse/labels/high%20priority","name":"high priority","color":"d7e102"}],"state":"open","locked":false,"assignee":{"login":"quintesse","id":778793,"avatar_url":"https://avatars.githubusercontent.com/u/778793?v=3","gravatar_id":"","url":"https://api.github.com/users/quintesse","html_url":"https://github.com/quintesse","followers_url":"https://api.github.com/users/quintesse/followers","following_url":"https://api.github.com/users/quintesse/following{/other_user}","gists_url":"https://api.github.com/users/quintesse/gists{/gist_id}","starred_url":"https://api.github.com/users/quintesse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/quintesse/subscriptions","organizations_url":"https://api.github.com/users/quintesse/orgs","repos_url":"https://api.github.com/users/quintesse/repos","events_url":"https://api.github.com/users/quintesse/events{/privacy}","received_events_url":"https://api.github.com/users/quintesse/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/ceylon/ceylon-ide-eclipse/milestones/11","html_url":"https://github.com/ceylon/ceylon-ide-eclipse/milestones/1.2","labels_url":"https://api.github.com/repos/ceylon/ceylon-ide-eclipse/milestones/11/labels","id":822285,"number":11,"title":"1.2","description":"","creator":{"login":"gavinking","id":579974,"avatar_url":"https://avatars.githubusercontent.com/u/579974?v=3","gravatar_id":"","url":"https://api.github.com/users/gavinking","html_url":"https://github.com/gavinking","followers_url":"https://api.github.com/users/gavinking/followers","following_url":"https://api.github.com/users/gavinking/following{/other_user}","gists_url":"https://api.github.com/users/gavinking/gists{/gist_id}","starred_url":"https://api.github.com/users/gavinking/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gavinking/subscriptions","organizations_url":"https://api.github.com/users/gavinking/orgs","repos_url":"https://api.github.com/users/gavinking/repos","events_url":"https://api.github.com/users/gavinking/events{/privacy}","received_events_url":"https://api.github.com/users/gavinking/received_events","type":"User","site_admin":false},"open_issues":12,"closed_issues":255,"state":"open","created_at":"2014-10-11T14:48:54Z","updated_at":"2015-09-19T18:30:45Z","due_on":"2014-11-23T23:00:00Z","closed_at":null},"comments":2,"created_at":"2015-09-19T18:29:47Z","updated_at":"2015-09-19T18:33:36Z","closed_at":null,"body":"I created a new project, enabled both \"Compile for JVM\" and \"Compile for Javascript\", then created two modules:\r\n\r\n- one is annotated `native(\"js\")`\r\n- one is annotated `native(\"jvm\")`\r\n\r\nIn the JS module, typechecker errors are not reported. This leads to the JS backend being invoked, and the compilation succeeds: I can run my code in the browser although the Ceylon code is incorrect. This only happens in the IDE.\r\n\r\nExample of invalid code, for which no typechecker error is reported:\r\n\r\n```\r\nvoid fun(dynamic foo, Lololol lol) { // note the invalid type Lololol\r\n    print(foo); // this shouldn't work because foo is dynamic\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/ceylon/ceylon-ide-eclipse/issues/comments/141696445","html_url":"https://github.com/ceylon/ceylon-ide-eclipse/issues/1497#issuecomment-141696445","issue_url":"https://api.github.com/repos/ceylon/ceylon-ide-eclipse/issues/1497","id":141696445,"user":{"login":"gavinking","id":579974,"avatar_url":"https://avatars.githubusercontent.com/u/579974?v=3","gravatar_id":"","url":"https://api.github.com/users/gavinking","html_url":"https://github.com/gavinking","followers_url":"https://api.github.com/users/gavinking/followers","following_url":"https://api.github.com/users/gavinking/following{/other_user}","gists_url":"https://api.github.com/users/gavinking/gists{/gist_id}","starred_url":"https://api.github.com/users/gavinking/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gavinking/subscriptions","organizations_url":"https://api.github.com/users/gavinking/orgs","repos_url":"https://api.github.com/users/gavinking/repos","events_url":"https://api.github.com/users/gavinking/events{/privacy}","received_events_url":"https://api.github.com/users/gavinking/received_events","type":"User","site_admin":false},"created_at":"2015-09-19T18:33:36Z","updated_at":"2015-09-19T18:33:36Z","body":"@quintesse this is for you."}}