{"action":"created","issue":{"url":"https://api.github.com/repos/apple/swift-protobuf/issues/120","repository_url":"https://api.github.com/repos/apple/swift-protobuf","labels_url":"https://api.github.com/repos/apple/swift-protobuf/issues/120/labels{/name}","comments_url":"https://api.github.com/repos/apple/swift-protobuf/issues/120/comments","events_url":"https://api.github.com/repos/apple/swift-protobuf/issues/120/events","html_url":"https://github.com/apple/swift-protobuf/issues/120","id":185317510,"number":120,"title":"Cannot pass immutable value as inout argument","user":{"login":"gmosx","id":37342,"avatar_url":"https://avatars.githubusercontent.com/u/37342?v=3","gravatar_id":"","url":"https://api.github.com/users/gmosx","html_url":"https://github.com/gmosx","followers_url":"https://api.github.com/users/gmosx/followers","following_url":"https://api.github.com/users/gmosx/following{/other_user}","gists_url":"https://api.github.com/users/gmosx/gists{/gist_id}","starred_url":"https://api.github.com/users/gmosx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gmosx/subscriptions","organizations_url":"https://api.github.com/users/gmosx/orgs","repos_url":"https://api.github.com/users/gmosx/repos","events_url":"https://api.github.com/users/gmosx/events{/privacy}","received_events_url":"https://api.github.com/users/gmosx/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-10-26T07:34:04Z","updated_at":"2016-10-26T18:44:52Z","closed_at":null,"body":"I try to compile a simple Protocol Buffer:\r\n\r\n```\r\nmessage ProtoMessage {\r\n    required uint32 payloadType = 1;\r\n    ...\r\n}\r\n```\r\n\r\nThe `protoc` compiler generates the Swift files but when I try to build the project I get the following error:\r\n\r\n````\r\n/.../Sources/Messages.pb.swift:93:93: error: cannot pass immutable value of type 'inout UInt32?' (aka 'inout Optional<UInt32>') as inout argument\r\n    case 1: handled = try setter.decodeSingularField(fieldType: ProtobufUInt32.self, value: &_payloadType)\r\n```\r\n\r\nAny ideas?"},"comment":{"url":"https://api.github.com/repos/apple/swift-protobuf/issues/comments/256440856","html_url":"https://github.com/apple/swift-protobuf/issues/120#issuecomment-256440856","issue_url":"https://api.github.com/repos/apple/swift-protobuf/issues/120","id":256440856,"user":{"login":"gmosx","id":37342,"avatar_url":"https://avatars.githubusercontent.com/u/37342?v=3","gravatar_id":"","url":"https://api.github.com/users/gmosx","html_url":"https://github.com/gmosx","followers_url":"https://api.github.com/users/gmosx/followers","following_url":"https://api.github.com/users/gmosx/following{/other_user}","gists_url":"https://api.github.com/users/gmosx/gists{/gist_id}","starred_url":"https://api.github.com/users/gmosx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gmosx/subscriptions","organizations_url":"https://api.github.com/users/gmosx/orgs","repos_url":"https://api.github.com/users/gmosx/repos","events_url":"https://api.github.com/users/gmosx/events{/privacy}","received_events_url":"https://api.github.com/users/gmosx/received_events","type":"User","site_admin":false},"created_at":"2016-10-26T18:44:52Z","updated_at":"2016-10-26T18:44:52Z","body":"I am using:\r\n\r\n$ protoc-gen-swift --version\r\nprotoc-gen-swift 0.9.24\r\n"}}
{"actor":{"display_login":"gmosx"}}