{"action":"created","issue":{"url":"https://api.github.com/repos/kohesive/injekt/issues/13","labels_url":"https://api.github.com/repos/kohesive/injekt/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/kohesive/injekt/issues/13/comments","events_url":"https://api.github.com/repos/kohesive/injekt/issues/13/events","html_url":"https://github.com/kohesive/injekt/issues/13","id":104553434,"number":13,"title":"Generics support","user":{"login":"yoavst","id":3912269,"avatar_url":"https://avatars.githubusercontent.com/u/3912269?v=3","gravatar_id":"","url":"https://api.github.com/users/yoavst","html_url":"https://github.com/yoavst","followers_url":"https://api.github.com/users/yoavst/followers","following_url":"https://api.github.com/users/yoavst/following{/other_user}","gists_url":"https://api.github.com/users/yoavst/gists{/gist_id}","starred_url":"https://api.github.com/users/yoavst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yoavst/subscriptions","organizations_url":"https://api.github.com/users/yoavst/orgs","repos_url":"https://api.github.com/users/yoavst/repos","events_url":"https://api.github.com/users/yoavst/events{/privacy}","received_events_url":"https://api.github.com/users/yoavst/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/kohesive/injekt/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/kohesive/injekt/labels/registry-all","name":"registry-all","color":"d4c5f9"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2015-09-02T19:18:17Z","updated_at":"2015-09-03T17:26:59Z","closed_at":null,"body":"I have a simple parser interface\r\n```kotlin\r\npublic interface Parser<K> {\r\n    public fun parse(document: Document): K\r\n}\r\n```\r\nso I register singletons based on this interface:\r\n```kotlin\r\naddSingleton(javaClass<Parser<CourseDetails>>(), CourseDetailsParser)\r\naddSingleton(javaClass<Parser<Array<CourseTitle>>>(), CoursesParser)\r\naddSingleton(javaClass<Parser<MessageData>>(), MessageParser)\r\naddSingleton(javaClass<Parser<Array<MessageTitle>>>(), MessagesParser)\r\naddSingleton(javaClass<Parser<RequestData>>(), RequestParser)\r\naddSingleton(javaClass<Parser<Array<RequestTitle>>>(), RequestsParser)\r\naddSingleton(javaClass<Parser<CalendarWeek>>(), WeeklyCalendarParser)\r\n```\r\nHowever when I try to get ` Injekt.get(javaClass<Parser<Array<CourseTitle>>>())` it return me wrong one (`CourseDetailsParser` instead of `CoursesParser`)"},"comment":{"url":"https://api.github.com/repos/kohesive/injekt/issues/comments/137520444","html_url":"https://github.com/kohesive/injekt/issues/13#issuecomment-137520444","issue_url":"https://api.github.com/repos/kohesive/injekt/issues/13","id":137520444,"user":{"login":"yoavst","id":3912269,"avatar_url":"https://avatars.githubusercontent.com/u/3912269?v=3","gravatar_id":"","url":"https://api.github.com/users/yoavst","html_url":"https://github.com/yoavst","followers_url":"https://api.github.com/users/yoavst/followers","following_url":"https://api.github.com/users/yoavst/following{/other_user}","gists_url":"https://api.github.com/users/yoavst/gists{/gist_id}","starred_url":"https://api.github.com/users/yoavst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yoavst/subscriptions","organizations_url":"https://api.github.com/users/yoavst/orgs","repos_url":"https://api.github.com/users/yoavst/repos","events_url":"https://api.github.com/users/yoavst/events{/privacy}","received_events_url":"https://api.github.com/users/yoavst/received_events","type":"User","site_admin":false},"created_at":"2015-09-03T17:26:59Z","updated_at":"2015-09-03T17:26:59Z","body":"Will Injekt require kotlin-reflections? "}}