{"action":"created","issue":{"url":"https://api.github.com/repos/inversify/InversifyJS/issues/340","repository_url":"https://api.github.com/repos/inversify/InversifyJS","labels_url":"https://api.github.com/repos/inversify/InversifyJS/issues/340/labels{/name}","comments_url":"https://api.github.com/repos/inversify/InversifyJS/issues/340/comments","events_url":"https://api.github.com/repos/inversify/InversifyJS/issues/340/events","html_url":"https://github.com/inversify/InversifyJS/issues/340","id":171197160,"number":340,"title":"Investigate required inject() when identifier is a class","user":{"login":"remojansen","id":10656223,"avatar_url":"https://avatars.githubusercontent.com/u/10656223?v=3","gravatar_id":"","url":"https://api.github.com/users/remojansen","html_url":"https://github.com/remojansen","followers_url":"https://api.github.com/users/remojansen/followers","following_url":"https://api.github.com/users/remojansen/following{/other_user}","gists_url":"https://api.github.com/users/remojansen/gists{/gist_id}","starred_url":"https://api.github.com/users/remojansen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/remojansen/subscriptions","organizations_url":"https://api.github.com/users/remojansen/orgs","repos_url":"https://api.github.com/users/remojansen/repos","events_url":"https://api.github.com/users/remojansen/events{/privacy}","received_events_url":"https://api.github.com/users/remojansen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-08-15T15:43:30Z","updated_at":"2016-08-17T14:50:26Z","closed_at":null,"body":"## Expected Behavior\r\nNo inject() should be required \r\n\r\n## Steps to Reproduce (for bugs)\r\n\r\n```ts\r\n    it(\"injects a class with no interface\", () => {\r\n        @injectable()\r\n        class Child {\r\n            public sayHello(): string {\r\n                return \"hello\";\r\n            }\r\n        }\r\n\r\n        @injectable()\r\n        class Parent {\r\n            constructor(private child: Child) {}\r\n\r\n            public sayHello(): string {\r\n                return child.sayHello();\r\n            }\r\n        }\r\n\r\n        let kernel = new Kernel();\r\n        kernel.bind<Child>(Child).toSelf();\r\n        kernel.bind<Parent>(Parent).toSelf();\r\n\r\n        let parent = kernel.get<Parent>(Parent);\r\n        expect(parent.sayHello()).equals(\"hello\");\r\n    });\r\n```\r\n\r\n## Context\r\nReported by @johnfields\r\n\r\n## Your Environment\r\nTS 1.8.10\r\n"},"comment":{"url":"https://api.github.com/repos/inversify/InversifyJS/issues/comments/240436511","html_url":"https://github.com/inversify/InversifyJS/issues/340#issuecomment-240436511","issue_url":"https://api.github.com/repos/inversify/InversifyJS/issues/340","id":240436511,"user":{"login":"johnfields","id":191167,"avatar_url":"https://avatars.githubusercontent.com/u/191167?v=3","gravatar_id":"","url":"https://api.github.com/users/johnfields","html_url":"https://github.com/johnfields","followers_url":"https://api.github.com/users/johnfields/followers","following_url":"https://api.github.com/users/johnfields/following{/other_user}","gists_url":"https://api.github.com/users/johnfields/gists{/gist_id}","starred_url":"https://api.github.com/users/johnfields/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnfields/subscriptions","organizations_url":"https://api.github.com/users/johnfields/orgs","repos_url":"https://api.github.com/users/johnfields/repos","events_url":"https://api.github.com/users/johnfields/events{/privacy}","received_events_url":"https://api.github.com/users/johnfields/received_events","type":"User","site_admin":false},"created_at":"2016-08-17T14:50:25Z","updated_at":"2016-08-17T14:50:25Z","body":"@remojansen yes it can be closed.  Thanks for investigating!"}}
{"actor":{"display_login":"johnfields"}}