{"action":"created","issue":{"url":"https://api.github.com/repos/Saltarelle/SaltarelleCompiler/issues/385","repository_url":"https://api.github.com/repos/Saltarelle/SaltarelleCompiler","labels_url":"https://api.github.com/repos/Saltarelle/SaltarelleCompiler/issues/385/labels{/name}","comments_url":"https://api.github.com/repos/Saltarelle/SaltarelleCompiler/issues/385/comments","events_url":"https://api.github.com/repos/Saltarelle/SaltarelleCompiler/issues/385/events","html_url":"https://github.com/Saltarelle/SaltarelleCompiler/issues/385","id":58004124,"number":385,"title":"Can't cast to subclass of generic types","user":{"login":"cdchambers","id":1521435,"avatar_url":"https://avatars.githubusercontent.com/u/1521435?v=3","gravatar_id":"","url":"https://api.github.com/users/cdchambers","html_url":"https://github.com/cdchambers","followers_url":"https://api.github.com/users/cdchambers/followers","following_url":"https://api.github.com/users/cdchambers/following{/other_user}","gists_url":"https://api.github.com/users/cdchambers/gists{/gist_id}","starred_url":"https://api.github.com/users/cdchambers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cdchambers/subscriptions","organizations_url":"https://api.github.com/users/cdchambers/orgs","repos_url":"https://api.github.com/users/cdchambers/repos","events_url":"https://api.github.com/users/cdchambers/events{/privacy}","received_events_url":"https://api.github.com/users/cdchambers/received_events","type":"User","site_admin":false},"labels":[{"id":1839637,"url":"https://api.github.com/repos/Saltarelle/SaltarelleCompiler/labels/bug","name":"bug","color":"fc2929","default":true},{"id":13638440,"url":"https://api.github.com/repos/Saltarelle/SaltarelleCompiler/labels/fixed-but-not-released","name":"fixed-but-not-released","color":"02e10c","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/Saltarelle/SaltarelleCompiler/milestones/20","html_url":"https://github.com/Saltarelle/SaltarelleCompiler/milestone/20","labels_url":"https://api.github.com/repos/Saltarelle/SaltarelleCompiler/milestones/20/labels","id":805873,"number":20,"title":"3.0","description":"First release in the Roslyn branch","creator":{"login":"erik-kallen","id":688028,"avatar_url":"https://avatars.githubusercontent.com/u/688028?v=3","gravatar_id":"","url":"https://api.github.com/users/erik-kallen","html_url":"https://github.com/erik-kallen","followers_url":"https://api.github.com/users/erik-kallen/followers","following_url":"https://api.github.com/users/erik-kallen/following{/other_user}","gists_url":"https://api.github.com/users/erik-kallen/gists{/gist_id}","starred_url":"https://api.github.com/users/erik-kallen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erik-kallen/subscriptions","organizations_url":"https://api.github.com/users/erik-kallen/orgs","repos_url":"https://api.github.com/users/erik-kallen/repos","events_url":"https://api.github.com/users/erik-kallen/events{/privacy}","received_events_url":"https://api.github.com/users/erik-kallen/received_events","type":"User","site_admin":false},"open_issues":35,"closed_issues":5,"state":"open","created_at":"2014-09-28T19:41:51Z","updated_at":"2016-12-16T07:40:56Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2015-02-18T00:11:06Z","updated_at":"2016-12-16T07:40:56Z","closed_at":"2016-12-16T07:40:56Z","body":"I have the following in C#\r\n\r\n```cs\r\nclass K\r\n{\r\n}\r\n\r\nclass A<T> where T : K\r\n{\r\n}\r\n\r\nclass B<T> : A<T> where T : K\r\n{\r\n}\r\n\r\nclass C : B<K>\r\n{\r\n}\r\n\r\nA<K> b = new C();\r\n```\r\n\r\nExpected: b is B<K> to be `true`.\r\nActual: it is `false`.\r\n\r\nI put the compiled javascript of the above into a fiddle, see http://jsfiddle.net/tha95xmx/4/\r\n"},"comment":{"url":"https://api.github.com/repos/Saltarelle/SaltarelleCompiler/issues/comments/267535597","html_url":"https://github.com/Saltarelle/SaltarelleCompiler/issues/385#issuecomment-267535597","issue_url":"https://api.github.com/repos/Saltarelle/SaltarelleCompiler/issues/385","id":267535597,"user":{"login":"geoffreymcgill","id":62210,"avatar_url":"https://avatars.githubusercontent.com/u/62210?v=3","gravatar_id":"","url":"https://api.github.com/users/geoffreymcgill","html_url":"https://github.com/geoffreymcgill","followers_url":"https://api.github.com/users/geoffreymcgill/followers","following_url":"https://api.github.com/users/geoffreymcgill/following{/other_user}","gists_url":"https://api.github.com/users/geoffreymcgill/gists{/gist_id}","starred_url":"https://api.github.com/users/geoffreymcgill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geoffreymcgill/subscriptions","organizations_url":"https://api.github.com/users/geoffreymcgill/orgs","repos_url":"https://api.github.com/users/geoffreymcgill/repos","events_url":"https://api.github.com/users/geoffreymcgill/events{/privacy}","received_events_url":"https://api.github.com/users/geoffreymcgill/received_events","type":"User","site_admin":false},"created_at":"2016-12-16T07:40:56Z","updated_at":"2016-12-16T07:40:56Z","body":"Looks like this sample is returning the correct expected result when compiling with Bridge.\r\n\r\nhttp://deck.net/3afe5dd92e3e9e89726781c10620e504\r\n\r\n```cs\r\npublic class Program\r\n{\r\n    public static void Main()\r\n    {\r\n        A<K> b = new C();\r\n        \r\n        // Should be true\r\n        Console.WriteLine(b is B<K>);\r\n    }\r\n}\r\n\r\nclass K { }\r\n\r\nclass A<T> where T : K { }\r\n\r\nclass B<T> : A<T> where T : K { }\r\n\r\nclass C : B<K> { }\r\n```\r\n\r\nHope this helps."}}
{"actor":{"display_login":"geoffreymcgill"}}