{"action":"created","comment":{"url":"https://api.github.com/repos/apple/swift/pulls/comments/177629406","pull_request_review_id":107533887,"id":177629406,"diff_hunk":"@@ -124,7 +124,7 @@ class TestFunc12 {\n \n \n enum AutoclosureFailableOf<T> {\n-  case Success(@autoclosure () -> T)  // expected-error {{@autoclosure may only be used on parameters}}\n+  case Success(@autoclosure () -> T)","path":"test/attr/attr_autoclosure.swift","position":5,"original_position":5,"commit_id":"ec54ec61f845901eac18955edf75d2a028abfe24","original_commit_id":"ec54ec61f845901eac18955edf75d2a028abfe24","user":{"login":"slavapestov","id":66486,"avatar_url":"https://avatars1.githubusercontent.com/u/66486?v=4","gravatar_id":"","url":"https://api.github.com/users/slavapestov","html_url":"https://github.com/slavapestov","followers_url":"https://api.github.com/users/slavapestov/followers","following_url":"https://api.github.com/users/slavapestov/following{/other_user}","gists_url":"https://api.github.com/users/slavapestov/gists{/gist_id}","starred_url":"https://api.github.com/users/slavapestov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slavapestov/subscriptions","organizations_url":"https://api.github.com/users/slavapestov/orgs","repos_url":"https://api.github.com/users/slavapestov/repos","events_url":"https://api.github.com/users/slavapestov/events{/privacy}","received_events_url":"https://api.github.com/users/slavapestov/received_events","type":"User","site_admin":false},"body":"Can you add a test that a use of this type checks?","created_at":"2018-03-28T03:18:33Z","updated_at":"2018-03-28T03:18:47Z","html_url":"https://github.com/apple/swift/pull/15562#discussion_r177629406","pull_request_url":"https://api.github.com/repos/apple/swift/pulls/15562","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/apple/swift/pulls/comments/177629406"},"html":{"href":"https://github.com/apple/swift/pull/15562#discussion_r177629406"},"pull_request":{"href":"https://api.github.com/repos/apple/swift/pulls/15562"}}},"pull_request":{"url":"https://api.github.com/repos/apple/swift/pulls/15562","id":177912260,"html_url":"https://github.com/apple/swift/pull/15562","diff_url":"https://github.com/apple/swift/pull/15562.diff","patch_url":"https://github.com/apple/swift/pull/15562.patch","issue_url":"https://api.github.com/repos/apple/swift/issues/15562","number":15562,"state":"open","locked":false,"title":"Add a parameter list to EnumElementDecl","user":{"login":"CodaFi","id":1896383,"avatar_url":"https://avatars3.githubusercontent.com/u/1896383?v=4","gravatar_id":"","url":"https://api.github.com/users/CodaFi","html_url":"https://github.com/CodaFi","followers_url":"https://api.github.com/users/CodaFi/followers","following_url":"https://api.github.com/users/CodaFi/following{/other_user}","gists_url":"https://api.github.com/users/CodaFi/gists{/gist_id}","starred_url":"https://api.github.com/users/CodaFi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CodaFi/subscriptions","organizations_url":"https://api.github.com/users/CodaFi/orgs","repos_url":"https://api.github.com/users/CodaFi/repos","events_url":"https://api.github.com/users/CodaFi/events{/privacy}","received_events_url":"https://api.github.com/users/CodaFi/received_events","type":"User","site_admin":false},"body":"Factors out the pure refactoring part of #15418.  It should be NFC but for some richer SourceKit info and the lifting of [a regression](https://github.com/apple/swift/commit/b5828e6a61f587387b99620b55321c77bf5c87c8#diff-a53bf0219e57890224cd32d1c4dc9082L113) because of a mis-applied semantic check. \r\n\r\nThis models, but does not plumb through, default arguments.","created_at":"2018-03-28T02:13:33Z","updated_at":"2018-03-28T03:18:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5757e48c198611213107e261a85ecb54f9001b7e","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/apple/swift/pulls/15562/commits","review_comments_url":"https://api.github.com/repos/apple/swift/pulls/15562/comments","review_comment_url":"https://api.github.com/repos/apple/swift/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apple/swift/issues/15562/comments","statuses_url":"https://api.github.com/repos/apple/swift/statuses/ec54ec61f845901eac18955edf75d2a028abfe24","head":{"label":"CodaFi:param-reset","ref":"param-reset","sha":"ec54ec61f845901eac18955edf75d2a028abfe24","user":{"login":"CodaFi","id":1896383,"avatar_url":"https://avatars3.githubusercontent.com/u/1896383?v=4","gravatar_id":"","url":"https://api.github.com/users/CodaFi","html_url":"https://github.com/CodaFi","followers_url":"https://api.github.com/users/CodaFi/followers","following_url":"https://api.github.com/users/CodaFi/following{/other_user}","gists_url":"https://api.github.com/users/CodaFi/gists{/gist_id}","starred_url":"https://api.github.com/users/CodaFi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CodaFi/subscriptions","organizations_url":"https://api.github.com/users/CodaFi/orgs","repos_url":"https://api.github.com/users/CodaFi/repos","events_url":"https://api.github.com/users/CodaFi/events{/privacy}","received_events_url":"https://api.github.com/users/CodaFi/received_events","type":"User","site_admin":false},"repo":{"id":47345791,"name":"swift","full_name":"CodaFi/swift","owner":{"login":"CodaFi","id":1896383,"avatar_url":"https://avatars3.githubusercontent.com/u/1896383?v=4","gravatar_id":"","url":"https://api.github.com/users/CodaFi","html_url":"https://github.com/CodaFi","followers_url":"https://api.github.com/users/CodaFi/followers","following_url":"https://api.github.com/users/CodaFi/following{/other_user}","gists_url":"https://api.github.com/users/CodaFi/gists{/gist_id}","starred_url":"https://api.github.com/users/CodaFi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CodaFi/subscriptions","organizations_url":"https://api.github.com/users/CodaFi/orgs","repos_url":"https://api.github.com/users/CodaFi/repos","events_url":"https://api.github.com/users/CodaFi/events{/privacy}","received_events_url":"https://api.github.com/users/CodaFi/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/CodaFi/swift","description":"The Swift Programming Language","fork":true,"url":"https://api.github.com/repos/CodaFi/swift","forks_url":"https://api.github.com/repos/CodaFi/swift/forks","keys_url":"https://api.github.com/repos/CodaFi/swift/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CodaFi/swift/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CodaFi/swift/teams","hooks_url":"https://api.github.com/repos/CodaFi/swift/hooks","issue_events_url":"https://api.github.com/repos/CodaFi/swift/issues/events{/number}","events_url":"https://api.github.com/repos/CodaFi/swift/events","assignees_url":"https://api.github.com/repos/CodaFi/swift/assignees{/user}","branches_url":"https://api.github.com/repos/CodaFi/swift/branches{/branch}","tags_url":"https://api.github.com/repos/CodaFi/swift/tags","blobs_url":"https://api.github.com/repos/CodaFi/swift/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CodaFi/swift/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CodaFi/swift/git/refs{/sha}","trees_url":"https://api.github.com/repos/CodaFi/swift/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CodaFi/swift/statuses/{sha}","languages_url":"https://api.github.com/repos/CodaFi/swift/languages","stargazers_url":"https://api.github.com/repos/CodaFi/swift/stargazers","contributors_url":"https://api.github.com/repos/CodaFi/swift/contributors","subscribers_url":"https://api.github.com/repos/CodaFi/swift/subscribers","subscription_url":"https://api.github.com/repos/CodaFi/swift/subscription","commits_url":"https://api.github.com/repos/CodaFi/swift/commits{/sha}","git_commits_url":"https://api.github.com/repos/CodaFi/swift/git/commits{/sha}","comments_url":"https://api.github.com/repos/CodaFi/swift/comments{/number}","issue_comment_url":"https://api.github.com/repos/CodaFi/swift/issues/comments{/number}","contents_url":"https://api.github.com/repos/CodaFi/swift/contents/{+path}","compare_url":"https://api.github.com/repos/CodaFi/swift/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CodaFi/swift/merges","archive_url":"https://api.github.com/repos/CodaFi/swift/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CodaFi/swift/downloads","issues_url":"https://api.github.com/repos/CodaFi/swift/issues{/number}","pulls_url":"https://api.github.com/repos/CodaFi/swift/pulls{/number}","milestones_url":"https://api.github.com/repos/CodaFi/swift/milestones{/number}","notifications_url":"https://api.github.com/repos/CodaFi/swift/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CodaFi/swift/labels{/name}","releases_url":"https://api.github.com/repos/CodaFi/swift/releases{/id}","deployments_url":"https://api.github.com/repos/CodaFi/swift/deployments","created_at":"2015-12-03T16:45:39Z","updated_at":"2018-03-24T16:34:55Z","pushed_at":"2018-03-28T02:11:36Z","git_url":"git://github.com/CodaFi/swift.git","ssh_url":"git@github.com:CodaFi/swift.git","clone_url":"https://github.com/CodaFi/swift.git","svn_url":"https://github.com/CodaFi/swift","homepage":"","size":264913,"stargazers_count":3,"watchers_count":3,"language":"C++","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":0,"open_issues":0,"watchers":3,"default_branch":"master"}},"base":{"label":"apple:master","ref":"master","sha":"a4b6518b919827e39f190ebd117805d20e3ddafc","user":{"login":"apple","id":10639145,"avatar_url":"https://avatars0.githubusercontent.com/u/10639145?v=4","gravatar_id":"","url":"https://api.github.com/users/apple","html_url":"https://github.com/apple","followers_url":"https://api.github.com/users/apple/followers","following_url":"https://api.github.com/users/apple/following{/other_user}","gists_url":"https://api.github.com/users/apple/gists{/gist_id}","starred_url":"https://api.github.com/users/apple/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apple/subscriptions","organizations_url":"https://api.github.com/users/apple/orgs","repos_url":"https://api.github.com/users/apple/repos","events_url":"https://api.github.com/users/apple/events{/privacy}","received_events_url":"https://api.github.com/users/apple/received_events","type":"Organization","site_admin":false},"repo":{"id":44838949,"name":"swift","full_name":"apple/swift","owner":{"login":"apple","id":10639145,"avatar_url":"https://avatars0.githubusercontent.com/u/10639145?v=4","gravatar_id":"","url":"https://api.github.com/users/apple","html_url":"https://github.com/apple","followers_url":"https://api.github.com/users/apple/followers","following_url":"https://api.github.com/users/apple/following{/other_user}","gists_url":"https://api.github.com/users/apple/gists{/gist_id}","starred_url":"https://api.github.com/users/apple/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apple/subscriptions","organizations_url":"https://api.github.com/users/apple/orgs","repos_url":"https://api.github.com/users/apple/repos","events_url":"https://api.github.com/users/apple/events{/privacy}","received_events_url":"https://api.github.com/users/apple/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/apple/swift","description":"The Swift Programming Language","fork":false,"url":"https://api.github.com/repos/apple/swift","forks_url":"https://api.github.com/repos/apple/swift/forks","keys_url":"https://api.github.com/repos/apple/swift/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apple/swift/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apple/swift/teams","hooks_url":"https://api.github.com/repos/apple/swift/hooks","issue_events_url":"https://api.github.com/repos/apple/swift/issues/events{/number}","events_url":"https://api.github.com/repos/apple/swift/events","assignees_url":"https://api.github.com/repos/apple/swift/assignees{/user}","branches_url":"https://api.github.com/repos/apple/swift/branches{/branch}","tags_url":"https://api.github.com/repos/apple/swift/tags","blobs_url":"https://api.github.com/repos/apple/swift/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apple/swift/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apple/swift/git/refs{/sha}","trees_url":"https://api.github.com/repos/apple/swift/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apple/swift/statuses/{sha}","languages_url":"https://api.github.com/repos/apple/swift/languages","stargazers_url":"https://api.github.com/repos/apple/swift/stargazers","contributors_url":"https://api.github.com/repos/apple/swift/contributors","subscribers_url":"https://api.github.com/repos/apple/swift/subscribers","subscription_url":"https://api.github.com/repos/apple/swift/subscription","commits_url":"https://api.github.com/repos/apple/swift/commits{/sha}","git_commits_url":"https://api.github.com/repos/apple/swift/git/commits{/sha}","comments_url":"https://api.github.com/repos/apple/swift/comments{/number}","issue_comment_url":"https://api.github.com/repos/apple/swift/issues/comments{/number}","contents_url":"https://api.github.com/repos/apple/swift/contents/{+path}","compare_url":"https://api.github.com/repos/apple/swift/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apple/swift/merges","archive_url":"https://api.github.com/repos/apple/swift/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apple/swift/downloads","issues_url":"https://api.github.com/repos/apple/swift/issues{/number}","pulls_url":"https://api.github.com/repos/apple/swift/pulls{/number}","milestones_url":"https://api.github.com/repos/apple/swift/milestones{/number}","notifications_url":"https://api.github.com/repos/apple/swift/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apple/swift/labels{/name}","releases_url":"https://api.github.com/repos/apple/swift/releases{/id}","deployments_url":"https://api.github.com/repos/apple/swift/deployments","created_at":"2015-10-23T21:15:07Z","updated_at":"2018-03-28T03:03:34Z","pushed_at":"2018-03-28T02:29:24Z","git_url":"git://github.com/apple/swift.git","ssh_url":"git@github.com:apple/swift.git","clone_url":"https://github.com/apple/swift.git","svn_url":"https://github.com/apple/swift","homepage":"https://swift.org/","size":275358,"stargazers_count":43120,"watchers_count":43120,"language":"C++","has_issues":false,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":6772,"mirror_url":null,"archived":false,"open_issues_count":302,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":6772,"open_issues":302,"watchers":43120,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/apple/swift/pulls/15562"},"html":{"href":"https://github.com/apple/swift/pull/15562"},"issue":{"href":"https://api.github.com/repos/apple/swift/issues/15562"},"comments":{"href":"https://api.github.com/repos/apple/swift/issues/15562/comments"},"review_comments":{"href":"https://api.github.com/repos/apple/swift/pulls/15562/comments"},"review_comment":{"href":"https://api.github.com/repos/apple/swift/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apple/swift/pulls/15562/commits"},"statuses":{"href":"https://api.github.com/repos/apple/swift/statuses/ec54ec61f845901eac18955edf75d2a028abfe24"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"slavapestov"}}