{"action":"created","issue":{"url":"https://api.github.com/repos/bridgedotnet/Bridge/issues/857","labels_url":"https://api.github.com/repos/bridgedotnet/Bridge/issues/857/labels{/name}","comments_url":"https://api.github.com/repos/bridgedotnet/Bridge/issues/857/comments","events_url":"https://api.github.com/repos/bridgedotnet/Bridge/issues/857/events","html_url":"https://github.com/bridgedotnet/Bridge/issues/857","id":128428975,"number":857,"title":"Compiler crash due to unsigned enum","user":{"login":"strygo","id":334491,"avatar_url":"https://avatars.githubusercontent.com/u/334491?v=3","gravatar_id":"","url":"https://api.github.com/users/strygo","html_url":"https://github.com/strygo","followers_url":"https://api.github.com/users/strygo/followers","following_url":"https://api.github.com/users/strygo/following{/other_user}","gists_url":"https://api.github.com/users/strygo/gists{/gist_id}","starred_url":"https://api.github.com/users/strygo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/strygo/subscriptions","organizations_url":"https://api.github.com/users/strygo/orgs","repos_url":"https://api.github.com/users/strygo/repos","events_url":"https://api.github.com/users/strygo/events{/privacy}","received_events_url":"https://api.github.com/users/strygo/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/bridgedotnet/Bridge/labels/defect","name":"defect","color":"FF4136"}],"state":"closed","locked":false,"assignee":{"login":"vladsch","id":378225,"avatar_url":"https://avatars.githubusercontent.com/u/378225?v=3","gravatar_id":"","url":"https://api.github.com/users/vladsch","html_url":"https://github.com/vladsch","followers_url":"https://api.github.com/users/vladsch/followers","following_url":"https://api.github.com/users/vladsch/following{/other_user}","gists_url":"https://api.github.com/users/vladsch/gists{/gist_id}","starred_url":"https://api.github.com/users/vladsch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vladsch/subscriptions","organizations_url":"https://api.github.com/users/vladsch/orgs","repos_url":"https://api.github.com/users/vladsch/repos","events_url":"https://api.github.com/users/vladsch/events{/privacy}","received_events_url":"https://api.github.com/users/vladsch/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/bridgedotnet/Bridge/milestones/14","html_url":"https://github.com/bridgedotnet/Bridge/milestones/1.11","labels_url":"https://api.github.com/repos/bridgedotnet/Bridge/milestones/14/labels","id":1429604,"number":14,"title":"1.11","description":"","creator":{"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},"open_issues":32,"closed_issues":57,"state":"open","created_at":"2015-11-25T15:51:05Z","updated_at":"2016-01-28T20:53:17Z","due_on":"2016-02-01T07:00:00Z","closed_at":null},"comments":2,"created_at":"2016-01-24T22:14:07Z","updated_at":"2016-01-28T20:55:06Z","closed_at":"2016-01-28T20:53:17Z","body":"While converting an existing .NET library to Bridge, I hit a compiler error caused by the following code:\r\n\r\n```\r\n    public enum TestEnum : uint\r\n    {\r\n        All = 0xFFFFFFFF,\r\n    }\r\n```\r\n\r\nThis results in the following compiler crash:\r\n\r\n```\r\nSeverity\tCode\tDescription\tProject\tFile\tLine\tSuppression State\r\nError\t\tError: Specified cast is not valid.    at Bridge.Translator.Inspector.VisitEnumMemberDeclaration(EnumMemberDeclaration enumMemberDeclaration)\r\n   at ICSharpCode.NRefactory.CSharp.EnumMemberDeclaration.AcceptVisitor(IAstVisitor visitor)\r\n   at Bridge.Contract.Helpers.AcceptChildren(AstNode node, IAstVisitor visitor)\r\n   at Bridge.Translator.Inspector.VisitTypeDeclaration(TypeDeclaration typeDeclaration)\r\n   at ICSharpCode.NRefactory.CSharp.TypeDeclaration.AcceptVisitor(IAstVisitor visitor)\r\n   at Bridge.Contract.Helpers.AcceptChildren(AstNode node, IAstVisitor visitor)\r\n   at Bridge.Translator.Inspector.VisitNamespaceDeclaration(NamespaceDeclaration namespaceDeclaration)\r\n   at ICSharpCode.NRefactory.CSharp.NamespaceDeclaration.AcceptVisitor(IAstVisitor visitor)\r\n   at Bridge.Contract.Helpers.AcceptChildren(AstNode node, IAstVisitor visitor)\r\n   at Bridge.Translator.Inspector.VisitSyntaxTree(SyntaxTree node)\r\n   at Bridge.Translator.Translator.InspectTypes(MemberResolver resolver, IAssemblyInfo config)\r\n   at Bridge.Translator.Translator.Translate()\r\n   at Bridge.Build.GenerateScript.Execute()\tClassLibrary2\t\t\t\r\n```"},"comment":{"url":"https://api.github.com/repos/bridgedotnet/Bridge/issues/comments/176411591","html_url":"https://github.com/bridgedotnet/Bridge/issues/857#issuecomment-176411591","issue_url":"https://api.github.com/repos/bridgedotnet/Bridge/issues/857","id":176411591,"user":{"login":"strygo","id":334491,"avatar_url":"https://avatars.githubusercontent.com/u/334491?v=3","gravatar_id":"","url":"https://api.github.com/users/strygo","html_url":"https://github.com/strygo","followers_url":"https://api.github.com/users/strygo/followers","following_url":"https://api.github.com/users/strygo/following{/other_user}","gists_url":"https://api.github.com/users/strygo/gists{/gist_id}","starred_url":"https://api.github.com/users/strygo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/strygo/subscriptions","organizations_url":"https://api.github.com/users/strygo/orgs","repos_url":"https://api.github.com/users/strygo/repos","events_url":"https://api.github.com/users/strygo/events{/privacy}","received_events_url":"https://api.github.com/users/strygo/received_events","type":"User","site_admin":false},"created_at":"2016-01-28T20:55:06Z","updated_at":"2016-01-28T20:55:06Z","body":"No problem. Thanks for the quick fix!"}}