{"action":"closed","issue":{"url":"https://api.github.com/repos/javaslang/javaslang/issues/22","labels_url":"https://api.github.com/repos/javaslang/javaslang/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/javaslang/javaslang/issues/22/comments","events_url":"https://api.github.com/repos/javaslang/javaslang/issues/22/events","html_url":"https://github.com/javaslang/javaslang/issues/22","id":41666696,"number":22,"title":"Distinguish generic types at runtime despite of type erasure","user":{"login":"danieldietrich","id":743833,"avatar_url":"https://avatars.githubusercontent.com/u/743833?v=3","gravatar_id":"","url":"https://api.github.com/users/danieldietrich","html_url":"https://github.com/danieldietrich","followers_url":"https://api.github.com/users/danieldietrich/followers","following_url":"https://api.github.com/users/danieldietrich/following{/other_user}","gists_url":"https://api.github.com/users/danieldietrich/gists{/gist_id}","starred_url":"https://api.github.com/users/danieldietrich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danieldietrich/subscriptions","organizations_url":"https://api.github.com/users/danieldietrich/orgs","repos_url":"https://api.github.com/users/danieldietrich/repos","events_url":"https://api.github.com/users/danieldietrich/events{/privacy}","received_events_url":"https://api.github.com/users/danieldietrich/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/javaslang/javaslang/labels/feature","name":"feature","color":"009800"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/javaslang/javaslang/milestones/4","html_url":"https://github.com/javaslang/javaslang/milestones/?.?.?%20Matcher%20Enhancements","labels_url":"https://api.github.com/repos/javaslang/javaslang/milestones/4/labels","id":800340,"number":4,"title":"?.?.? Matcher Enhancements","description":"Experimental Match Feature\r\n","creator":{"login":"danieldietrich","id":743833,"avatar_url":"https://avatars.githubusercontent.com/u/743833?v=3","gravatar_id":"","url":"https://api.github.com/users/danieldietrich","html_url":"https://github.com/danieldietrich","followers_url":"https://api.github.com/users/danieldietrich/followers","following_url":"https://api.github.com/users/danieldietrich/following{/other_user}","gists_url":"https://api.github.com/users/danieldietrich/gists{/gist_id}","starred_url":"https://api.github.com/users/danieldietrich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danieldietrich/subscriptions","organizations_url":"https://api.github.com/users/danieldietrich/orgs","repos_url":"https://api.github.com/users/danieldietrich/repos","events_url":"https://api.github.com/users/danieldietrich/events{/privacy}","received_events_url":"https://api.github.com/users/danieldietrich/received_events","type":"User","site_admin":false},"open_issues":5,"closed_issues":1,"state":"open","created_at":"2014-09-23T20:30:49Z","updated_at":"2015-05-03T18:36:18Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2014-09-02T00:04:31Z","updated_at":"2015-05-03T18:36:18Z","closed_at":"2015-05-03T18:36:18Z","body":"Could this help? https://gist.github.com/aslakhellesoy/3678beba60c109eacbe5 \r\n\r\nStatus quo:\r\n\r\n```java\r\nMatchs\r\n    .<?> caze((Some<String> s) -> s) // currently this case matches\r\n    .caze((Some<Integer> s) -> s)\r\n    .apply(new Some<>(1));\r\n```\r\n\r\nGoal:\r\n\r\n```java\r\nMatchs\r\n    .<?> caze((Some<String> s) -> s)\r\n    .caze((Some<Integer> s) -> s) // match by correct type and generic type parameter\r\n    .apply(new Some<>(1));\r\n```\r\n"}}