{"action":"opened","issue":{"url":"https://api.github.com/repos/ceylon/ceylon-compiler/issues/2248","labels_url":"https://api.github.com/repos/ceylon/ceylon-compiler/issues/2248/labels{/name}","comments_url":"https://api.github.com/repos/ceylon/ceylon-compiler/issues/2248/comments","events_url":"https://api.github.com/repos/ceylon/ceylon-compiler/issues/2248/events","html_url":"https://github.com/ceylon/ceylon-compiler/issues/2248","id":97156231,"number":2248,"title":"compiler bug for class alias delegating to 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":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-24T22:03:24Z","updated_at":"2015-07-24T22:03:24Z","closed_at":null,"body":"```ceylon\r\nshared class C {\r\n    shared new c() {}\r\n}\r\nshared class D() => C.c();\r\n```\r\n> error: constructor C in class C cannot be applied to given types;\r\n  required: c_\r\n  found: no arguments\r\n  reason: actual and formal argument lists differ in length\r\nNote: Created module tmp/1.0.0\r\nceylon compile: Fatal error: The compiler exited abnormally (4) due to a bug in the compiler.\r\n[…] bla bla please report\r\ncom.redhat.ceylon.compiler.CompilerBugException: Bug\r\n        […] snip\r\nCaused by: java.lang.ClassCastException: com.sun.tools.javac.code.Type$ErrorType cannot be cast to com.sun.tools.javac.code.Symbol\r\n\tat com.sun.tools.javac.jvm.Code.emitop2(Code.java:996)\r\n\tat com.sun.tools.javac.jvm.Gen.visitNewClass(Gen.java:1728)\r\n\tat com.sun.tools.javac.tree.JCTree$JCNewClass.accept(JCTree.java:1374)\r\n        […] snip\r\n\r\nAs always, [generated code](https://gist.github.com/lucaswerkmeister/c1c9b610fc9757f33bff), `@noanno`’d.\r\n\r\nNote: I think the spec currently doesn’t actually bless class aliases delegating to constructors, so depending on how ceylon/ceylon-spec#1388 is resolved, this bug might turn out to be invalid."}}