{"action":"created","issue":{"url":"https://api.github.com/repos/dart-lang/sdk/issues/29243","repository_url":"https://api.github.com/repos/dart-lang/sdk","labels_url":"https://api.github.com/repos/dart-lang/sdk/issues/29243/labels{/name}","comments_url":"https://api.github.com/repos/dart-lang/sdk/issues/29243/comments","events_url":"https://api.github.com/repos/dart-lang/sdk/issues/29243/events","html_url":"https://github.com/dart-lang/sdk/issues/29243","id":219223460,"number":29243,"title":"VM doesn't recognize new function type as type parameter.","user":{"login":"lrhn","id":4865287,"avatar_url":"https://avatars0.githubusercontent.com/u/4865287?v=3","gravatar_id":"","url":"https://api.github.com/users/lrhn","html_url":"https://github.com/lrhn","followers_url":"https://api.github.com/users/lrhn/followers","following_url":"https://api.github.com/users/lrhn/following{/other_user}","gists_url":"https://api.github.com/users/lrhn/gists{/gist_id}","starred_url":"https://api.github.com/users/lrhn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lrhn/subscriptions","organizations_url":"https://api.github.com/users/lrhn/orgs","repos_url":"https://api.github.com/users/lrhn/repos","events_url":"https://api.github.com/users/lrhn/events{/privacy}","received_events_url":"https://api.github.com/users/lrhn/received_events","type":"User","site_admin":false},"labels":[{"id":219928165,"url":"https://api.github.com/repos/dart-lang/sdk/labels/area-vm","name":"area-vm","color":"c7def8","default":false}],"state":"open","locked":false,"assignee":{"login":"crelier","id":8620091,"avatar_url":"https://avatars0.githubusercontent.com/u/8620091?v=3","gravatar_id":"","url":"https://api.github.com/users/crelier","html_url":"https://github.com/crelier","followers_url":"https://api.github.com/users/crelier/followers","following_url":"https://api.github.com/users/crelier/following{/other_user}","gists_url":"https://api.github.com/users/crelier/gists{/gist_id}","starred_url":"https://api.github.com/users/crelier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crelier/subscriptions","organizations_url":"https://api.github.com/users/crelier/orgs","repos_url":"https://api.github.com/users/crelier/repos","events_url":"https://api.github.com/users/crelier/events{/privacy}","received_events_url":"https://api.github.com/users/crelier/received_events","type":"User","site_admin":false},"assignees":[{"login":"crelier","id":8620091,"avatar_url":"https://avatars0.githubusercontent.com/u/8620091?v=3","gravatar_id":"","url":"https://api.github.com/users/crelier","html_url":"https://github.com/crelier","followers_url":"https://api.github.com/users/crelier/followers","following_url":"https://api.github.com/users/crelier/following{/other_user}","gists_url":"https://api.github.com/users/crelier/gists{/gist_id}","starred_url":"https://api.github.com/users/crelier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crelier/subscriptions","organizations_url":"https://api.github.com/users/crelier/orgs","repos_url":"https://api.github.com/users/crelier/repos","events_url":"https://api.github.com/users/crelier/events{/privacy}","received_events_url":"https://api.github.com/users/crelier/received_events","type":"User","site_admin":false}],"milestone":null,"comments":2,"created_at":"2017-04-04T11:44:50Z","updated_at":"2017-04-12T16:11:29Z","closed_at":null,"body":"Example code:\r\n```dart\r\nint Function() x = () => 42;\r\nint Function(int Function()) y = (int Function() x) => x();\r\nList<int Function()> l = <int Function()>[()=>42, x];  // Error\r\nmain() {\r\n  print(y(l[1]));\r\n}\r\n```\r\ncauses the error message:\r\n```\r\n'functype.dart': error: line 4 pos 1: unexpected token 'List'\r\nList<int Function()> l = <int Function()>[()=>42, x];\r\n^\r\n```\r\nRemoving the `<int Function()>` on line 4 makes the code work. This runs in dart2js, but also crashes the analyzer.\r\n"},"comment":{"url":"https://api.github.com/repos/dart-lang/sdk/issues/comments/293628817","html_url":"https://github.com/dart-lang/sdk/issues/29243#issuecomment-293628817","issue_url":"https://api.github.com/repos/dart-lang/sdk/issues/29243","id":293628817,"user":{"login":"crelier","id":8620091,"avatar_url":"https://avatars0.githubusercontent.com/u/8620091?v=3","gravatar_id":"","url":"https://api.github.com/users/crelier","html_url":"https://github.com/crelier","followers_url":"https://api.github.com/users/crelier/followers","following_url":"https://api.github.com/users/crelier/following{/other_user}","gists_url":"https://api.github.com/users/crelier/gists{/gist_id}","starred_url":"https://api.github.com/users/crelier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crelier/subscriptions","organizations_url":"https://api.github.com/users/crelier/orgs","repos_url":"https://api.github.com/users/crelier/repos","events_url":"https://api.github.com/users/crelier/events{/privacy}","received_events_url":"https://api.github.com/users/crelier/received_events","type":"User","site_admin":false},"created_at":"2017-04-12T16:11:29Z","updated_at":"2017-04-12T16:11:29Z","body":"I fixed this issue, but I cannot upload the cl including the regression test, because dartfmt is not able to parse it :-)\r\n\r\nI'll file a separate bug."}}
{"actor":{"display_login":"crelier"}}