{"action":"opened","issue":{"url":"https://api.github.com/repos/dotnet/roslyn/issues/11194","repository_url":"https://api.github.com/repos/dotnet/roslyn","labels_url":"https://api.github.com/repos/dotnet/roslyn/issues/11194/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/roslyn/issues/11194/comments","events_url":"https://api.github.com/repos/dotnet/roslyn/issues/11194/events","html_url":"https://github.com/dotnet/roslyn/issues/11194","id":153874998,"number":11194,"title":"Source Generators: IDE rnaming replacing member should also rename the original","user":{"login":"VSadov","id":8218165,"avatar_url":"https://avatars.githubusercontent.com/u/8218165?v=3","gravatar_id":"","url":"https://api.github.com/users/VSadov","html_url":"https://github.com/VSadov","followers_url":"https://api.github.com/users/VSadov/followers","following_url":"https://api.github.com/users/VSadov/following{/other_user}","gists_url":"https://api.github.com/users/VSadov/gists{/gist_id}","starred_url":"https://api.github.com/users/VSadov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VSadov/subscriptions","organizations_url":"https://api.github.com/users/VSadov/orgs","repos_url":"https://api.github.com/users/VSadov/repos","events_url":"https://api.github.com/users/VSadov/events{/privacy}","received_events_url":"https://api.github.com/users/VSadov/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dotnet/roslyn/labels/Area-IDE","name":"Area-IDE","color":"5319e7"},{"url":"https://api.github.com/repos/dotnet/roslyn/labels/Bug","name":"Bug","color":"fc2929"},{"url":"https://api.github.com/repos/dotnet/roslyn/labels/Language-C%23","name":"Language-C#","color":"207de5"},{"url":"https://api.github.com/repos/dotnet/roslyn/labels/New%20Language%20Feature%20-%20Replace/Original","name":"New Language Feature - Replace/Original","color":"bfd4f2"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-09T21:32:22Z","updated_at":"2016-05-09T21:32:22Z","closed_at":null,"body":"Ideally renaming replacing member would rename both replacing and the original one.\r\n\r\nCurrently attempt to rename second Foo asserts since rename does not affect original member and results in assert\r\nAssert is ignorable. \r\n\r\n```C#\r\n    class Program\r\n    {\r\n        static void Main(string[] args)\r\n        {\r\n            System.Console.WriteLine(Foo());\r\n        }\r\n\r\n        static int Foo()\r\n        {\r\n            return 42;\r\n        }\r\n\r\n        replace static int Foo()\r\n        {\r\n            return original() + 1;\r\n        } \r\n    }\r\n```\r\n\r\n-- Assertion Failed: Abort=Quit, Retry=Debug, Ignore=Continue\r\n\r\nRename introduced errors in error-free code\r\n\r\n\r\n   at Microsoft.CodeAnalysis.Shared.Extensions.DocumentExtensions.<VerifyNoErrorsAsync>d__6.MoveNext()\r\n\r\n   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[TStateMachine](TStateMachine& stateMachine)\r\n\r\n   at Microsoft.CodeAnalysis.Shared.Extensions.DocumentExtensions.VerifyNoErrorsAsync(Document newDocument, String message, CancellationToken cancellationToken, List`1 ignoreErrorCodes)\r\n\r\n   at Microsoft.CodeAnalysis.Rename.ConflictEngine.ConflictResolver.Session.<DebugVerifyNoErrorsAsync>d__19.MoveNext()\r\n\r\n. . . \r\n"}}