{"action":"closed","issue":{"url":"https://api.github.com/repos/dotnet/orleans/issues/105","labels_url":"https://api.github.com/repos/dotnet/orleans/issues/105/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/orleans/issues/105/comments","events_url":"https://api.github.com/repos/dotnet/orleans/issues/105/events","html_url":"https://github.com/dotnet/orleans/issues/105","id":57215006,"number":105,"title":"IGrainObserver not useable in with VB (CodeGen Issue)","user":{"login":"BenjaminGibbs","id":7413070,"avatar_url":"https://avatars.githubusercontent.com/u/7413070?v=3","gravatar_id":"","url":"https://api.github.com/users/BenjaminGibbs","html_url":"https://github.com/BenjaminGibbs","followers_url":"https://api.github.com/users/BenjaminGibbs/followers","following_url":"https://api.github.com/users/BenjaminGibbs/following{/other_user}","gists_url":"https://api.github.com/users/BenjaminGibbs/gists{/gist_id}","starred_url":"https://api.github.com/users/BenjaminGibbs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BenjaminGibbs/subscriptions","organizations_url":"https://api.github.com/users/BenjaminGibbs/orgs","repos_url":"https://api.github.com/users/BenjaminGibbs/repos","events_url":"https://api.github.com/users/BenjaminGibbs/events{/privacy}","received_events_url":"https://api.github.com/users/BenjaminGibbs/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dotnet/orleans/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":{"login":"sergeybykov","id":8248806,"avatar_url":"https://avatars.githubusercontent.com/u/8248806?v=3","gravatar_id":"","url":"https://api.github.com/users/sergeybykov","html_url":"https://github.com/sergeybykov","followers_url":"https://api.github.com/users/sergeybykov/followers","following_url":"https://api.github.com/users/sergeybykov/following{/other_user}","gists_url":"https://api.github.com/users/sergeybykov/gists{/gist_id}","starred_url":"https://api.github.com/users/sergeybykov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sergeybykov/subscriptions","organizations_url":"https://api.github.com/users/sergeybykov/orgs","repos_url":"https://api.github.com/users/sergeybykov/repos","events_url":"https://api.github.com/users/sergeybykov/events{/privacy}","received_events_url":"https://api.github.com/users/sergeybykov/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2015-02-10T18:27:34Z","updated_at":"2015-02-11T23:17:20Z","closed_at":"2015-02-11T23:17:20Z","body":"I have come across another small bug in the CodeGen which prevents using IGrainObserver in being used with VB\r\n\r\nAdding the following interface to the GrainInterfaces project creates a compile error.\r\n```vbnet\r\nPublic Interface IMyObserver\r\n        Inherits IGrainObserver\r\n\r\nEnd Interface\r\n```\r\nThe code generated that is invalid is\r\n\r\n```vbnet\r\nPublic Shared Sub DeleteObjectReference(reference As onShowcase.Distributed.GrainInterfaces.ApplicationData.IMyObserver) As System.Threading.Tasks.Task\r\n            Return Global.Orleans.Runtime.GrainReference.DeleteObjectReference(reference)\r\nEnd Sub\r\n```\r\nIt is declaring a sub/void but then trying to return a task.\r\n\r\nIt is caused by https://github.com/dotnet/orleans/blob/622d724b43d06aa483c236c23dbbe049fe2dd81d/src/ClientGenerator/VBCodeGenerator.cs#L174 "}}