{"action":"closed","issue":{"url":"https://api.github.com/repos/ceylon/ceylon-spec/issues/1347","labels_url":"https://api.github.com/repos/ceylon/ceylon-spec/issues/1347/labels{/name}","comments_url":"https://api.github.com/repos/ceylon/ceylon-spec/issues/1347/comments","events_url":"https://api.github.com/repos/ceylon/ceylon-spec/issues/1347/events","html_url":"https://github.com/ceylon/ceylon-spec/issues/1347","id":86222623,"number":1347,"title":"ExpressionVisitor CCE using package qualifier on generic function w/constraints","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},"labels":[{"url":"https://api.github.com/repos/ceylon/ceylon-spec/labels/bug","name":"bug","color":"e10c02"},{"url":"https://api.github.com/repos/ceylon/ceylon-spec/labels/high%20priority","name":"high priority","color":"d7e102"}],"state":"closed","locked":false,"assignee":{"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},"milestone":{"url":"https://api.github.com/repos/ceylon/ceylon-spec/milestones/11","html_url":"https://github.com/ceylon/ceylon-spec/milestones/1.2","labels_url":"https://api.github.com/repos/ceylon/ceylon-spec/milestones/11/labels","id":798020,"number":11,"title":"1.2","description":"Serialization.","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":10,"closed_issues":181,"state":"open","created_at":"2014-09-22T09:55:40Z","updated_at":"2015-06-08T16:11:10Z","due_on":"2014-10-28T23:00:00Z","closed_at":null},"comments":2,"created_at":"2015-06-08T15:28:25Z","updated_at":"2015-06-08T16:11:10Z","closed_at":"2015-06-08T16:11:10Z","body":"This used to work:\r\n\r\n```ceylon\r\nT id<T>(T t) given T satisfies Object => nothing;\r\nString s = package.id(\"\");\r\n```\r\nI now get:\r\n```\r\nthe 'ExpressionVisitor' caused an exception visiting a 'InvocationExpression' node: '\"java.lang.ClassCastException\"'\r\n```\r\nIn my original code (non-simplified), I get:\r\n```\r\nthe 'ExpressionVisitor' caused an exception visiting a 'InvocationExpression' node: '\"java.lang.ClassCastException: com.redhat.ceylon.model.loader.model.LazyPackage cannot be cast to com.redhat.ceylon.model.typechecker.model.TypeDeclaration\"' at 'com.redhat.ceylon.model.typechecker.model.Type.getTypedMember(Type.java:1227)'\r\n```"}}