{"action":"created","issue":{"url":"https://api.github.com/repos/dotnet/roslyn/issues/5164","labels_url":"https://api.github.com/repos/dotnet/roslyn/issues/5164/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/roslyn/issues/5164/comments","events_url":"https://api.github.com/repos/dotnet/roslyn/issues/5164/events","html_url":"https://github.com/dotnet/roslyn/issues/5164","id":106017291,"number":5164,"title":"Should the Inheritance be respected for the types injected with \"WithGlobalsType\"?","user":{"login":"gsferreira","id":1719764,"avatar_url":"https://avatars.githubusercontent.com/u/1719764?v=3","gravatar_id":"","url":"https://api.github.com/users/gsferreira","html_url":"https://github.com/gsferreira","followers_url":"https://api.github.com/users/gsferreira/followers","following_url":"https://api.github.com/users/gsferreira/following{/other_user}","gists_url":"https://api.github.com/users/gsferreira/gists{/gist_id}","starred_url":"https://api.github.com/users/gsferreira/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gsferreira/subscriptions","organizations_url":"https://api.github.com/users/gsferreira/orgs","repos_url":"https://api.github.com/users/gsferreira/repos","events_url":"https://api.github.com/users/gsferreira/events{/privacy}","received_events_url":"https://api.github.com/users/gsferreira/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dotnet/roslyn/labels/Area-Interactive","name":"Area-Interactive","color":"5319e7"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/dotnet/roslyn/milestones/3","html_url":"https://github.com/dotnet/roslyn/milestones/1.1","labels_url":"https://api.github.com/repos/dotnet/roslyn/milestones/3/labels","id":937401,"number":3,"title":"1.1","description":"This is our 1.1 Milestone.\r\n\r\n<!---\r\n@huboard:{\"order\":1.5}\r\n-->\r\n","creator":{"login":"jaredpar","id":146967,"avatar_url":"https://avatars.githubusercontent.com/u/146967?v=3","gravatar_id":"","url":"https://api.github.com/users/jaredpar","html_url":"https://github.com/jaredpar","followers_url":"https://api.github.com/users/jaredpar/followers","following_url":"https://api.github.com/users/jaredpar/following{/other_user}","gists_url":"https://api.github.com/users/jaredpar/gists{/gist_id}","starred_url":"https://api.github.com/users/jaredpar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaredpar/subscriptions","organizations_url":"https://api.github.com/users/jaredpar/orgs","repos_url":"https://api.github.com/users/jaredpar/repos","events_url":"https://api.github.com/users/jaredpar/events{/privacy}","received_events_url":"https://api.github.com/users/jaredpar/received_events","type":"User","site_admin":false},"open_issues":398,"closed_issues":359,"state":"open","created_at":"2015-01-15T20:48:41Z","updated_at":"2015-09-15T22:31:39Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2015-09-11T14:01:45Z","updated_at":"2015-09-15T22:32:31Z","closed_at":null,"body":"Hi!\r\n\r\nI was trying the Interactive Scripting Api and I realized that in the following code, if the Globals class inherits from a *\"ParentGlobals\"*, the variables defined at *\"ParentGlobals\"* won't be considered.\r\n\r\n           var script = CSharpScript.Create(\"X + Y\").WithGlobalsType(typeof(Globals));\r\n            var result = script.Run(new Globals { X = 1, Y = 2 });\r\n\r\nThis is happening because in the *\"Microsoft.CodeAnalysis.Scripting.ScriptVariables\"* class the *AddVariables* method has the *DeclaredOnly* binding flag.\r\n\r\nBefore submit a pull request I want to know if hierarchy should be considered?\r\n\r\nThanks in advance"},"comment":{"url":"https://api.github.com/repos/dotnet/roslyn/issues/comments/140566008","html_url":"https://github.com/dotnet/roslyn/issues/5164#issuecomment-140566008","issue_url":"https://api.github.com/repos/dotnet/roslyn/issues/5164","id":140566008,"user":{"login":"ManishJayaswal","id":9527491,"avatar_url":"https://avatars.githubusercontent.com/u/9527491?v=3","gravatar_id":"","url":"https://api.github.com/users/ManishJayaswal","html_url":"https://github.com/ManishJayaswal","followers_url":"https://api.github.com/users/ManishJayaswal/followers","following_url":"https://api.github.com/users/ManishJayaswal/following{/other_user}","gists_url":"https://api.github.com/users/ManishJayaswal/gists{/gist_id}","starred_url":"https://api.github.com/users/ManishJayaswal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ManishJayaswal/subscriptions","organizations_url":"https://api.github.com/users/ManishJayaswal/orgs","repos_url":"https://api.github.com/users/ManishJayaswal/repos","events_url":"https://api.github.com/users/ManishJayaswal/events{/privacy}","received_events_url":"https://api.github.com/users/ManishJayaswal/received_events","type":"User","site_admin":false},"created_at":"2015-09-15T22:32:31Z","updated_at":"2015-09-15T22:32:31Z","body":"@gsferreira this is a bug. Hierarchy should be considered. Please submit a PR."}}