{"action":"created","issue":{"url":"https://api.github.com/repos/ceylon/ceylon/issues/6292","repository_url":"https://api.github.com/repos/ceylon/ceylon","labels_url":"https://api.github.com/repos/ceylon/ceylon/issues/6292/labels{/name}","comments_url":"https://api.github.com/repos/ceylon/ceylon/issues/6292/comments","events_url":"https://api.github.com/repos/ceylon/ceylon/issues/6292/events","html_url":"https://github.com/ceylon/ceylon/issues/6292","id":157376916,"number":6292,"title":"Superclass type argument check with constructors","user":{"login":"dlkw","id":15879995,"avatar_url":"https://avatars.githubusercontent.com/u/15879995?v=3","gravatar_id":"","url":"https://api.github.com/users/dlkw","html_url":"https://github.com/dlkw","followers_url":"https://api.github.com/users/dlkw/followers","following_url":"https://api.github.com/users/dlkw/following{/other_user}","gists_url":"https://api.github.com/users/dlkw/gists{/gist_id}","starred_url":"https://api.github.com/users/dlkw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dlkw/subscriptions","organizations_url":"https://api.github.com/users/dlkw/orgs","repos_url":"https://api.github.com/users/dlkw/repos","events_url":"https://api.github.com/users/dlkw/events{/privacy}","received_events_url":"https://api.github.com/users/dlkw/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ceylon/ceylon/labels/m-typechecker","name":"m-typechecker","color":"00aa00"},{"url":"https://api.github.com/repos/ceylon/ceylon/labels/prio-high","name":"prio-high","color":"fbca04"},{"url":"https://api.github.com/repos/ceylon/ceylon/labels/t-bug","name":"t-bug","color":"e10c02"}],"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/milestones/15","html_url":"https://github.com/ceylon/ceylon/milestones/1.2.3","labels_url":"https://api.github.com/repos/ceylon/ceylon/milestones/15/labels","id":1590811,"number":15,"title":"1.2.3","description":"","creator":{"login":"FroMage","id":179265,"avatar_url":"https://avatars.githubusercontent.com/u/179265?v=3","gravatar_id":"","url":"https://api.github.com/users/FroMage","html_url":"https://github.com/FroMage","followers_url":"https://api.github.com/users/FroMage/followers","following_url":"https://api.github.com/users/FroMage/following{/other_user}","gists_url":"https://api.github.com/users/FroMage/gists{/gist_id}","starred_url":"https://api.github.com/users/FroMage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FroMage/subscriptions","organizations_url":"https://api.github.com/users/FroMage/orgs","repos_url":"https://api.github.com/users/FroMage/repos","events_url":"https://api.github.com/users/FroMage/events{/privacy}","received_events_url":"https://api.github.com/users/FroMage/received_events","type":"User","site_admin":false},"open_issues":142,"closed_issues":139,"state":"open","created_at":"2016-02-18T14:05:01Z","updated_at":"2016-05-29T09:34:12Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2016-05-29T09:10:31Z","updated_at":"2016-05-29T09:34:32Z","closed_at":"2016-05-29T09:34:12Z","body":"In Ceylon 1.2.2, type argument checking on a subclass definition depends on using default constructor or named constructor:\r\n\r\n```ceylon\r\nclass A1<T> given T satisfies [Object+] { shared new (){} }\r\nclass A2<T> given T satisfies [Object+] { shared new init(){} }\r\n\r\n// Type parameter T of declaration A1 has argument T which is not assignable to upper bound [Object+] of T\r\nclass B1<T>() extends A1<T>() given T satisfies [Object*] {}\r\n\r\n// No error, but same error is expected\r\nclass B2<T>() extends A2<T>.init() given T satisfies [Object*]{}\r\n```"},"comment":{"url":"https://api.github.com/repos/ceylon/ceylon/issues/comments/222351429","html_url":"https://github.com/ceylon/ceylon/issues/6292#issuecomment-222351429","issue_url":"https://api.github.com/repos/ceylon/ceylon/issues/6292","id":222351429,"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":"2016-05-29T09:34:32Z","updated_at":"2016-05-29T09:34:32Z","body":"Fixed, thanks again."}}
{"actor":{"display_login":"gavinking"}}