{"action":"created","issue":{"url":"https://api.github.com/repos/square/kotlinpoet/issues/434","repository_url":"https://api.github.com/repos/square/kotlinpoet","labels_url":"https://api.github.com/repos/square/kotlinpoet/issues/434/labels{/name}","comments_url":"https://api.github.com/repos/square/kotlinpoet/issues/434/comments","events_url":"https://api.github.com/repos/square/kotlinpoet/issues/434/events","html_url":"https://github.com/square/kotlinpoet/issues/434","id":347666738,"node_id":"MDU6SXNzdWUzNDc2NjY3Mzg=","number":434,"title":"Cannot add superinterface to object","user":{"login":"breandan","id":175716,"node_id":"MDQ6VXNlcjE3NTcxNg==","avatar_url":"https://avatars3.githubusercontent.com/u/175716?v=4","gravatar_id":"","url":"https://api.github.com/users/breandan","html_url":"https://github.com/breandan","followers_url":"https://api.github.com/users/breandan/followers","following_url":"https://api.github.com/users/breandan/following{/other_user}","gists_url":"https://api.github.com/users/breandan/gists{/gist_id}","starred_url":"https://api.github.com/users/breandan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/breandan/subscriptions","organizations_url":"https://api.github.com/users/breandan/orgs","repos_url":"https://api.github.com/users/breandan/repos","events_url":"https://api.github.com/users/breandan/events{/privacy}","received_events_url":"https://api.github.com/users/breandan/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-08-05T03:52:08Z","updated_at":"2018-08-05T04:36:02Z","closed_at":"2018-08-05T04:36:02Z","author_association":"NONE","body":"I have an object that extends a class like so:\r\n\r\n`object MyObject: SuperInterface(\"...\")`\r\n\r\nHere is the KotlinPoet code:\r\n\r\n```\r\nTypeSpec.objectBuilder(\"MyObject\")\r\n              .addSuperinterface(ClassName(\"\", \"SuperInterface\"), \"...\")\r\n```\r\nI receive the error:\r\n\r\n`delegating to constructor parameter requires not-null constructor`\r\n\r\nHowever, Kotlin objects may not have a constructor."},"comment":{"url":"https://api.github.com/repos/square/kotlinpoet/issues/comments/410495222","html_url":"https://github.com/square/kotlinpoet/issues/434#issuecomment-410495222","issue_url":"https://api.github.com/repos/square/kotlinpoet/issues/434","id":410495222,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMDQ5NTIyMg==","user":{"login":"breandan","id":175716,"node_id":"MDQ6VXNlcjE3NTcxNg==","avatar_url":"https://avatars3.githubusercontent.com/u/175716?v=4","gravatar_id":"","url":"https://api.github.com/users/breandan","html_url":"https://github.com/breandan","followers_url":"https://api.github.com/users/breandan/followers","following_url":"https://api.github.com/users/breandan/following{/other_user}","gists_url":"https://api.github.com/users/breandan/gists{/gist_id}","starred_url":"https://api.github.com/users/breandan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/breandan/subscriptions","organizations_url":"https://api.github.com/users/breandan/orgs","repos_url":"https://api.github.com/users/breandan/repos","events_url":"https://api.github.com/users/breandan/events{/privacy}","received_events_url":"https://api.github.com/users/breandan/received_events","type":"User","site_admin":false},"created_at":"2018-08-05T04:36:02Z","updated_at":"2018-08-05T04:36:02Z","author_association":"NONE","body":"Nevermind, I figured out what I was was doing wrong. Here's the solution:\r\n\r\n```\r\nTypeSpec.objectBuilder(\"MyObject\")\r\n              .superclass(ClassName(\"\",\"SuperInterface\"))\r\n              .addSuperclassConstructorParameter(\"\\\"...\\\"\")\r\n```"}}
{"actor":{"display_login":"breandan"}}