{"action":"created","issue":{"url":"https://api.github.com/repos/ceylon/ceylon-compiler/issues/2290","labels_url":"https://api.github.com/repos/ceylon/ceylon-compiler/issues/2290/labels{/name}","comments_url":"https://api.github.com/repos/ceylon/ceylon-compiler/issues/2290/comments","events_url":"https://api.github.com/repos/ceylon/ceylon-compiler/issues/2290/events","html_url":"https://github.com/ceylon/ceylon-compiler/issues/2290","id":103925154,"number":2290,"title":"“error: cannot find symbol” when referring to class that has parameter list and default 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-compiler/labels/BUG","name":"BUG","color":"e10c02"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/ceylon/ceylon-compiler/milestones/11","html_url":"https://github.com/ceylon/ceylon-compiler/milestones/1.2","labels_url":"https://api.github.com/repos/ceylon/ceylon-compiler/milestones/11/labels","id":809477,"number":11,"title":"1.2","description":"","creator":{"login":"tombentley","id":879487,"avatar_url":"https://avatars.githubusercontent.com/u/879487?v=3","gravatar_id":"","url":"https://api.github.com/users/tombentley","html_url":"https://github.com/tombentley","followers_url":"https://api.github.com/users/tombentley/followers","following_url":"https://api.github.com/users/tombentley/following{/other_user}","gists_url":"https://api.github.com/users/tombentley/gists{/gist_id}","starred_url":"https://api.github.com/users/tombentley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tombentley/subscriptions","organizations_url":"https://api.github.com/users/tombentley/orgs","repos_url":"https://api.github.com/users/tombentley/repos","events_url":"https://api.github.com/users/tombentley/events{/privacy}","received_events_url":"https://api.github.com/users/tombentley/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":367,"state":"open","created_at":"2014-10-01T08:51:07Z","updated_at":"2015-09-03T13:43:17Z","due_on":"2014-11-02T23:00:00Z","closed_at":null},"comments":9,"created_at":"2015-08-30T14:04:32Z","updated_at":"2015-09-03T13:44:38Z","closed_at":"2015-09-03T13:43:17Z","body":"```ceylon\r\nclass C() {\r\n    shared new() {}\r\n}\r\nC c = C();\r\n```\r\nIn addition to the typechecker error\r\n\r\n> error: class with parameters may not declare constructors: class 'C' has a parameter list and a constructor\r\n\r\nyou also get a backend error:\r\n\r\n> error: cannot find symbol\r\n```ceylon\r\nC c = C();\r\n       ^\r\n```\r\n  symbol:   class C\r\n  location: package tmp\r\n\r\nAnd, if you instead declare a class extending `C`\r\n```ceylon\r\nclass D() extends C() {}\r\n```\r\nyou also get\r\n\r\n> error: method does not override or implement a method from a supertype\r\n\r\n(without location info).\r\n\r\nAs always, [generated code](https://gist.github.com/lucaswerkmeister/37f29f5ccc777d29c085), `@noanno`’d; you can see that the “method [that] does not override or implement a method from a supertype” is the `$getType$()` method."},"comment":{"url":"https://api.github.com/repos/ceylon/ceylon-compiler/issues/comments/137450720","html_url":"https://github.com/ceylon/ceylon-compiler/issues/2290#issuecomment-137450720","issue_url":"https://api.github.com/repos/ceylon/ceylon-compiler/issues/2290","id":137450720,"user":{"login":"tombentley","id":879487,"avatar_url":"https://avatars.githubusercontent.com/u/879487?v=3","gravatar_id":"","url":"https://api.github.com/users/tombentley","html_url":"https://github.com/tombentley","followers_url":"https://api.github.com/users/tombentley/followers","following_url":"https://api.github.com/users/tombentley/following{/other_user}","gists_url":"https://api.github.com/users/tombentley/gists{/gist_id}","starred_url":"https://api.github.com/users/tombentley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tombentley/subscriptions","organizations_url":"https://api.github.com/users/tombentley/orgs","repos_url":"https://api.github.com/users/tombentley/repos","events_url":"https://api.github.com/users/tombentley/events{/privacy}","received_events_url":"https://api.github.com/users/tombentley/received_events","type":"User","site_admin":false},"created_at":"2015-09-03T13:44:38Z","updated_at":"2015-09-03T13:44:38Z","body":"I've implemented this, though it's possible some edge cases make this error recovery itself go wrong. "}}