{"action":"created","issue":{"url":"https://api.github.com/repos/ceylon/ceylon/issues/6364","repository_url":"https://api.github.com/repos/ceylon/ceylon","labels_url":"https://api.github.com/repos/ceylon/ceylon/issues/6364/labels{/name}","comments_url":"https://api.github.com/repos/ceylon/ceylon/issues/6364/comments","events_url":"https://api.github.com/repos/ceylon/ceylon/issues/6364/events","html_url":"https://github.com/ceylon/ceylon/issues/6364","id":164624569,"number":6364,"title":"ClassCastException on meta reference to member class constructor","user":{"login":"lucaswerkmeister","id":2346599,"avatar_url":"https://avatars.githubusercontent.com/u/2346599?v=3","gravatar_id":"","url":"https://api.github.com/users/lucaswerkmeister","html_url":"https://github.com/lucaswerkmeister","followers_url":"https://api.github.com/users/lucaswerkmeister/followers","following_url":"https://api.github.com/users/lucaswerkmeister/following{/other_user}","gists_url":"https://api.github.com/users/lucaswerkmeister/gists{/gist_id}","starred_url":"https://api.github.com/users/lucaswerkmeister/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lucaswerkmeister/subscriptions","organizations_url":"https://api.github.com/users/lucaswerkmeister/orgs","repos_url":"https://api.github.com/users/lucaswerkmeister/repos","events_url":"https://api.github.com/users/lucaswerkmeister/events{/privacy}","received_events_url":"https://api.github.com/users/lucaswerkmeister/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ceylon/ceylon/labels/c-constructors","name":"c-constructors","color":"02d7e1"},{"url":"https://api.github.com/repos/ceylon/ceylon/labels/m-compiler-java","name":"m-compiler-java","color":"00aa00"},{"url":"https://api.github.com/repos/ceylon/ceylon/labels/t-bug","name":"t-bug","color":"e10c02"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-07-08T22:00:37Z","updated_at":"2016-07-09T14:07:28Z","closed_at":null,"body":"```ceylon\r\nshared void run() {\r\n    class C {\r\n        shared new c {}\r\n        shared new d() {}\r\n    }\r\n    \r\n    void protect(void f()) { try { f(); } catch (Throwable t) { t.printStackTrace(); } }\r\n\r\n    protect(() => print(`C.c`));\r\n    protect(() => print(`C.d`));\r\n}\r\n```\r\n> java.lang.ClassCastException: com.redhat.ceylon.compiler.java.runtime.metamodel.meta.ClassImpl cannot be cast to ceylon.language.meta.model.MemberClass (twice)"},"comment":{"url":"https://api.github.com/repos/ceylon/ceylon/issues/comments/231536029","html_url":"https://github.com/ceylon/ceylon/issues/6364#issuecomment-231536029","issue_url":"https://api.github.com/repos/ceylon/ceylon/issues/6364","id":231536029,"user":{"login":"jvasileff","id":236050,"avatar_url":"https://avatars.githubusercontent.com/u/236050?v=3","gravatar_id":"","url":"https://api.github.com/users/jvasileff","html_url":"https://github.com/jvasileff","followers_url":"https://api.github.com/users/jvasileff/followers","following_url":"https://api.github.com/users/jvasileff/following{/other_user}","gists_url":"https://api.github.com/users/jvasileff/gists{/gist_id}","starred_url":"https://api.github.com/users/jvasileff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jvasileff/subscriptions","organizations_url":"https://api.github.com/users/jvasileff/orgs","repos_url":"https://api.github.com/users/jvasileff/repos","events_url":"https://api.github.com/users/jvasileff/events{/privacy}","received_events_url":"https://api.github.com/users/jvasileff/received_events","type":"User","site_admin":false},"created_at":"2016-07-09T14:07:28Z","updated_at":"2016-07-09T14:07:28Z","body":"Oh yeah, there's also `type()` which I don't think should ever throw:\r\n\r\n```ceylon\r\nvoid f() {\r\n    class A() {}\r\n    assert (is Class<A,Nothing> aType = type(A()));\r\n}\r\n```"}}
{"actor":{"display_login":"jvasileff"}}