{"action":"opened","issue":{"url":"https://api.github.com/repos/dotnet/corefx/issues/33004","repository_url":"https://api.github.com/repos/dotnet/corefx","labels_url":"https://api.github.com/repos/dotnet/corefx/issues/33004/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/corefx/issues/33004/comments","events_url":"https://api.github.com/repos/dotnet/corefx/issues/33004/events","html_url":"https://github.com/dotnet/corefx/issues/33004","id":373493659,"node_id":"MDU6SXNzdWUzNzM0OTM2NTk=","number":33004,"title":"Type.GetInterface with a same named interface throws a NullReferenceException","user":{"login":"hughbe","id":1275900,"node_id":"MDQ6VXNlcjEyNzU5MDA=","avatar_url":"https://avatars0.githubusercontent.com/u/1275900?v=4","gravatar_id":"","url":"https://api.github.com/users/hughbe","html_url":"https://github.com/hughbe","followers_url":"https://api.github.com/users/hughbe/followers","following_url":"https://api.github.com/users/hughbe/following{/other_user}","gists_url":"https://api.github.com/users/hughbe/gists{/gist_id}","starred_url":"https://api.github.com/users/hughbe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hughbe/subscriptions","organizations_url":"https://api.github.com/users/hughbe/orgs","repos_url":"https://api.github.com/users/hughbe/repos","events_url":"https://api.github.com/users/hughbe/events{/privacy}","received_events_url":"https://api.github.com/users/hughbe/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-10-24T13:50:24Z","updated_at":"2018-10-24T13:50:24Z","closed_at":null,"author_association":"COLLABORATOR","body":"```\r\nusing System;\r\nusing System.Collections.Generic;\r\nusing System.Reflection;\r\nusing Xunit;\r\n\r\nnamespace System.Tests\r\n{\r\n    public partial class TypeTests\r\n    {\r\n        [Fact]\r\n        public void GetInterface_SameNameInterfaces_ThrowsAmbiguousMatchException()\r\n        {\r\n            Assert.Throws<NullReferenceException>(() => typeof(ClassWithTwoSameNameInterfaces).GetInterface(\"System.Tests.Inner.Interface1\", ignoreCase: true));\r\n        }\r\n    }\r\n\r\n    public class ClassWithTwoSameNameInterfaces : Interface1, Inner.Interface1 { }\r\n\r\n    namespace Inner\r\n    {\r\n        public interface Interface1 { }\r\n    }\r\n}\r\n\r\npublic interface Interface1 { }\r\n```"}}
{"actor":{"display_login":"hughbe"}}