{"action":"created","issue":{"url":"https://api.github.com/repos/dotnet/roslyn/issues/11933","repository_url":"https://api.github.com/repos/dotnet/roslyn","labels_url":"https://api.github.com/repos/dotnet/roslyn/issues/11933/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/roslyn/issues/11933/comments","events_url":"https://api.github.com/repos/dotnet/roslyn/issues/11933/events","html_url":"https://github.com/dotnet/roslyn/issues/11933","id":159746029,"number":11933,"title":"Cannot get type of implicitly typed array in VB.NET","user":{"login":"michalhosala","id":9108373,"avatar_url":"https://avatars.githubusercontent.com/u/9108373?v=3","gravatar_id":"","url":"https://api.github.com/users/michalhosala","html_url":"https://github.com/michalhosala","followers_url":"https://api.github.com/users/michalhosala/followers","following_url":"https://api.github.com/users/michalhosala/following{/other_user}","gists_url":"https://api.github.com/users/michalhosala/gists{/gist_id}","starred_url":"https://api.github.com/users/michalhosala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michalhosala/subscriptions","organizations_url":"https://api.github.com/users/michalhosala/orgs","repos_url":"https://api.github.com/users/michalhosala/repos","events_url":"https://api.github.com/users/michalhosala/events{/privacy}","received_events_url":"https://api.github.com/users/michalhosala/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dotnet/roslyn/labels/Area-Compilers","name":"Area-Compilers","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/Concept-API","name":"Concept-API","color":"fef2c0"},{"url":"https://api.github.com/repos/dotnet/roslyn/labels/Language-VB","name":"Language-VB","color":"207de5"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/dotnet/roslyn/milestones/11","html_url":"https://github.com/dotnet/roslyn/milestones/2.0%20(Preview%201)","labels_url":"https://api.github.com/repos/dotnet/roslyn/milestones/11/labels","id":1109349,"number":11,"title":"2.0 (Preview 1)","description":"The next major version.","creator":{"login":"gafter","id":3804346,"avatar_url":"https://avatars.githubusercontent.com/u/3804346?v=3","gravatar_id":"","url":"https://api.github.com/users/gafter","html_url":"https://github.com/gafter","followers_url":"https://api.github.com/users/gafter/followers","following_url":"https://api.github.com/users/gafter/following{/other_user}","gists_url":"https://api.github.com/users/gafter/gists{/gist_id}","starred_url":"https://api.github.com/users/gafter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gafter/subscriptions","organizations_url":"https://api.github.com/users/gafter/orgs","repos_url":"https://api.github.com/users/gafter/repos","events_url":"https://api.github.com/users/gafter/events{/privacy}","received_events_url":"https://api.github.com/users/gafter/received_events","type":"User","site_admin":false},"open_issues":334,"closed_issues":101,"state":"open","created_at":"2015-05-13T22:28:30Z","updated_at":"2016-06-20T03:53:02Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2016-06-11T00:28:40Z","updated_at":"2016-06-20T13:25:22Z","closed_at":null,"body":"**Version Used**: 1.2.2\r\n\r\n**Steps to Reproduce**:\r\n\r\n1. Have the following piece of code in your sample VB.NET solution (lets call `{1, 2}` `initExpr`):\r\n\r\n    ```\r\n    Dim a = {1, 2}\r\n    ```\r\n2. setup roslyn code analysis solution and try to get type of `initExpr` syntax node using:\r\n\r\n    ```\r\n    var type = model.GetTypeInfo(initExpr).Type\r\n    ```\r\nwhere `model` is `SemanticModel` of document where `initExpr` resides,\r\n3. observe `type` is `null`\r\n\r\n**Expected Behavior**:\r\nType of `initExpr` should be `Integer()`\r\n\r\n**Actual Behavior**:\r\nType of `initExpr` is `null`\r\n\r\n**Why?**\r\n* above approach to get type info works just fine in C# for implicitly typed arrays such as `new[] {1, 2}`,\r\n* putting cursor over a variable `a` in Visual Studio correctly shows it is of type `Integer()` so the type is obviously known and should be returned when trying to access it via `GetSymbolInfo` method.\r\n\r\nIssue initially described at [StackOverflow](http://stackoverflow.com/q/37658891/3242721)."},"comment":{"url":"https://api.github.com/repos/dotnet/roslyn/issues/comments/227140971","html_url":"https://github.com/dotnet/roslyn/issues/11933#issuecomment-227140971","issue_url":"https://api.github.com/repos/dotnet/roslyn/issues/11933","id":227140971,"user":{"login":"michalhosala","id":9108373,"avatar_url":"https://avatars.githubusercontent.com/u/9108373?v=3","gravatar_id":"","url":"https://api.github.com/users/michalhosala","html_url":"https://github.com/michalhosala","followers_url":"https://api.github.com/users/michalhosala/followers","following_url":"https://api.github.com/users/michalhosala/following{/other_user}","gists_url":"https://api.github.com/users/michalhosala/gists{/gist_id}","starred_url":"https://api.github.com/users/michalhosala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michalhosala/subscriptions","organizations_url":"https://api.github.com/users/michalhosala/orgs","repos_url":"https://api.github.com/users/michalhosala/repos","events_url":"https://api.github.com/users/michalhosala/events{/privacy}","received_events_url":"https://api.github.com/users/michalhosala/received_events","type":"User","site_admin":false},"created_at":"2016-06-20T13:25:22Z","updated_at":"2016-06-20T13:25:22Z","body":"@gafter @VSadov `ConvertedType` correctly returns `Integer()` and while it is convenient way of addressing this issue at the moment, I still think it is a bug and `Type` should return the same, shouldn't it?"}}
{"actor":{"display_login":"michalhosala"}}