{"action":"created","comment":{"url":"https://api.github.com/repos/apple/swift/pulls/comments/201188929","pull_request_review_id":135641136,"id":201188929,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwMTE4ODkyOQ==","diff_hunk":"@@ -0,0 +1,25 @@\n+// RUN: %target-swift-frontend -emit-silgen -verify %s | %FileCheck %s","path":"test/NameBinding/dynamic-callable-silgen.swift","position":1,"original_position":1,"commit_id":"0044ed25e08026bc852464c8ae468eae13e206ba","original_commit_id":"0044ed25e08026bc852464c8ae468eae13e206ba","user":{"login":"slavapestov","id":66486,"node_id":"MDQ6VXNlcjY2NDg2","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":"SILGen tests should be located in test/SILGen/","created_at":"2018-07-10T00:41:20Z","updated_at":"2018-07-10T00:41:20Z","html_url":"https://github.com/apple/swift/pull/16980#discussion_r201188929","pull_request_url":"https://api.github.com/repos/apple/swift/pulls/16980","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/apple/swift/pulls/comments/201188929"},"html":{"href":"https://github.com/apple/swift/pull/16980#discussion_r201188929"},"pull_request":{"href":"https://api.github.com/repos/apple/swift/pulls/16980"}}},"pull_request":{"url":"https://api.github.com/repos/apple/swift/pulls/16980","id":192317426,"node_id":"MDExOlB1bGxSZXF1ZXN0MTkyMzE3NDI2","html_url":"https://github.com/apple/swift/pull/16980","diff_url":"https://github.com/apple/swift/pull/16980.diff","patch_url":"https://github.com/apple/swift/pull/16980.patch","issue_url":"https://api.github.com/repos/apple/swift/issues/16980","number":16980,"state":"open","locked":false,"title":"Implement dynamically callable types (`@dynamicCallable`).","user":{"login":"dan-zheng","id":5590046,"node_id":"MDQ6VXNlcjU1OTAwNDY=","avatar_url":"https://avatars0.githubusercontent.com/u/5590046?v=4","gravatar_id":"","url":"https://api.github.com/users/dan-zheng","html_url":"https://github.com/dan-zheng","followers_url":"https://api.github.com/users/dan-zheng/followers","following_url":"https://api.github.com/users/dan-zheng/following{/other_user}","gists_url":"https://api.github.com/users/dan-zheng/gists{/gist_id}","starred_url":"https://api.github.com/users/dan-zheng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dan-zheng/subscriptions","organizations_url":"https://api.github.com/users/dan-zheng/orgs","repos_url":"https://api.github.com/users/dan-zheng/repos","events_url":"https://api.github.com/users/dan-zheng/events{/privacy}","received_events_url":"https://api.github.com/users/dan-zheng/received_events","type":"User","site_admin":false},"body":"This proposal introduces the `@dynamicCallable` attribute, which enables\r\nnominal types to be \"callable\" via a simple syntactic sugar.\r\n\r\nThis is the implementation of the Swift evolution proposal here:\r\nhttps://github.com/apple/swift-evolution/pull/858.\r\nRead there for more details.\r\n\r\n---\r\n\r\n`@dynamicCallable` is a follow-up to [SE-0195 \"Dynamic Member Lookup\"](https://github.com/apple/swift-evolution/blob/master/proposals/0195-dynamic-member-lookup.md).\r\n\r\nForum discussion regarding `@dynamicCallable`:\r\n  - [Pitch: Introduce user-defined dynamically \"callable\" types](https://forums.swift.org/t/pitch-introduce-user-defined-dynamically-callable-types/7038).\r\n  - [Pitch #2: Introduce user-defined dynamically “callable” types](https://forums.swift.org/t/pitch-2-introduce-user-defined-dynamically-callable-types/7112).\r\n  - Current pitch thread: [Pitch #3: Introduce user-defined dynamically “callable” types](https://forums.swift.org/t/pitch-3-introduce-user-defined-dynamically-callable-types/12232)","created_at":"2018-06-04T07:17:56Z","updated_at":"2018-07-10T00:41:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2371df32b80e0789b8ee91ec4996d3282711cf19","assignee":{"login":"slavapestov","id":66486,"node_id":"MDQ6VXNlcjY2NDg2","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},"assignees":[{"login":"slavapestov","id":66486,"node_id":"MDQ6VXNlcjY2NDg2","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}],"requested_reviewers":[{"login":"rudkx","id":162784,"node_id":"MDQ6VXNlcjE2Mjc4NA==","avatar_url":"https://avatars1.githubusercontent.com/u/162784?v=4","gravatar_id":"","url":"https://api.github.com/users/rudkx","html_url":"https://github.com/rudkx","followers_url":"https://api.github.com/users/rudkx/followers","following_url":"https://api.github.com/users/rudkx/following{/other_user}","gists_url":"https://api.github.com/users/rudkx/gists{/gist_id}","starred_url":"https://api.github.com/users/rudkx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rudkx/subscriptions","organizations_url":"https://api.github.com/users/rudkx/orgs","repos_url":"https://api.github.com/users/rudkx/repos","events_url":"https://api.github.com/users/rudkx/events{/privacy}","received_events_url":"https://api.github.com/users/rudkx/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[{"id":295491817,"node_id":"MDU6TGFiZWwyOTU0OTE4MTc=","url":"https://api.github.com/repos/apple/swift/labels/swift-evolution-pending-discussion","name":"swift-evolution-pending-discussion","color":"d4c5f9","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/apple/swift/pulls/16980/commits","review_comments_url":"https://api.github.com/repos/apple/swift/pulls/16980/comments","review_comment_url":"https://api.github.com/repos/apple/swift/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apple/swift/issues/16980/comments","statuses_url":"https://api.github.com/repos/apple/swift/statuses/0044ed25e08026bc852464c8ae468eae13e206ba","head":{"label":"dan-zheng:dynamic-callable","ref":"dynamic-callable","sha":"0044ed25e08026bc852464c8ae468eae13e206ba","user":{"login":"dan-zheng","id":5590046,"node_id":"MDQ6VXNlcjU1OTAwNDY=","avatar_url":"https://avatars0.githubusercontent.com/u/5590046?v=4","gravatar_id":"","url":"https://api.github.com/users/dan-zheng","html_url":"https://github.com/dan-zheng","followers_url":"https://api.github.com/users/dan-zheng/followers","following_url":"https://api.github.com/users/dan-zheng/following{/other_user}","gists_url":"https://api.github.com/users/dan-zheng/gists{/gist_id}","starred_url":"https://api.github.com/users/dan-zheng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dan-zheng/subscriptions","organizations_url":"https://api.github.com/users/dan-zheng/orgs","repos_url":"https://api.github.com/users/dan-zheng/repos","events_url":"https://api.github.com/users/dan-zheng/events{/privacy}","received_events_url":"https://api.github.com/users/dan-zheng/received_events","type":"User","site_admin":false},"repo":{"id":135949956,"node_id":"MDEwOlJlcG9zaXRvcnkxMzU5NDk5NTY=","name":"swift","full_name":"dan-zheng/swift","owner":{"login":"dan-zheng","id":5590046,"node_id":"MDQ6VXNlcjU1OTAwNDY=","avatar_url":"https://avatars0.githubusercontent.com/u/5590046?v=4","gravatar_id":"","url":"https://api.github.com/users/dan-zheng","html_url":"https://github.com/dan-zheng","followers_url":"https://api.github.com/users/dan-zheng/followers","following_url":"https://api.github.com/users/dan-zheng/following{/other_user}","gists_url":"https://api.github.com/users/dan-zheng/gists{/gist_id}","starred_url":"https://api.github.com/users/dan-zheng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dan-zheng/subscriptions","organizations_url":"https://api.github.com/users/dan-zheng/orgs","repos_url":"https://api.github.com/users/dan-zheng/repos","events_url":"https://api.github.com/users/dan-zheng/events{/privacy}","received_events_url":"https://api.github.com/users/dan-zheng/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dan-zheng/swift","description":"The Swift Programming Language","fork":true,"url":"https://api.github.com/repos/dan-zheng/swift","forks_url":"https://api.github.com/repos/dan-zheng/swift/forks","keys_url":"https://api.github.com/repos/dan-zheng/swift/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dan-zheng/swift/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dan-zheng/swift/teams","hooks_url":"https://api.github.com/repos/dan-zheng/swift/hooks","issue_events_url":"https://api.github.com/repos/dan-zheng/swift/issues/events{/number}","events_url":"https://api.github.com/repos/dan-zheng/swift/events","assignees_url":"https://api.github.com/repos/dan-zheng/swift/assignees{/user}","branches_url":"https://api.github.com/repos/dan-zheng/swift/branches{/branch}","tags_url":"https://api.github.com/repos/dan-zheng/swift/tags","blobs_url":"https://api.github.com/repos/dan-zheng/swift/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dan-zheng/swift/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dan-zheng/swift/git/refs{/sha}","trees_url":"https://api.github.com/repos/dan-zheng/swift/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dan-zheng/swift/statuses/{sha}","languages_url":"https://api.github.com/repos/dan-zheng/swift/languages","stargazers_url":"https://api.github.com/repos/dan-zheng/swift/stargazers","contributors_url":"https://api.github.com/repos/dan-zheng/swift/contributors","subscribers_url":"https://api.github.com/repos/dan-zheng/swift/subscribers","subscription_url":"https://api.github.com/repos/dan-zheng/swift/subscription","commits_url":"https://api.github.com/repos/dan-zheng/swift/commits{/sha}","git_commits_url":"https://api.github.com/repos/dan-zheng/swift/git/commits{/sha}","comments_url":"https://api.github.com/repos/dan-zheng/swift/comments{/number}","issue_comment_url":"https://api.github.com/repos/dan-zheng/swift/issues/comments{/number}","contents_url":"https://api.github.com/repos/dan-zheng/swift/contents/{+path}","compare_url":"https://api.github.com/repos/dan-zheng/swift/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dan-zheng/swift/merges","archive_url":"https://api.github.com/repos/dan-zheng/swift/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dan-zheng/swift/downloads","issues_url":"https://api.github.com/repos/dan-zheng/swift/issues{/number}","pulls_url":"https://api.github.com/repos/dan-zheng/swift/pulls{/number}","milestones_url":"https://api.github.com/repos/dan-zheng/swift/milestones{/number}","notifications_url":"https://api.github.com/repos/dan-zheng/swift/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dan-zheng/swift/labels{/name}","releases_url":"https://api.github.com/repos/dan-zheng/swift/releases{/id}","deployments_url":"https://api.github.com/repos/dan-zheng/swift/deployments","created_at":"2018-06-03T23:56:41Z","updated_at":"2018-06-23T04:53:41Z","pushed_at":"2018-07-09T22:46:29Z","git_url":"git://github.com/dan-zheng/swift.git","ssh_url":"git@github.com:dan-zheng/swift.git","clone_url":"https://github.com/dan-zheng/swift.git","svn_url":"https://github.com/dan-zheng/swift","homepage":"https://swift.org/","size":308493,"stargazers_count":0,"watchers_count":0,"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","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"apple:master","ref":"master","sha":"12bb4ef4221b4257adf952b931a4cbab933cbfbe","user":{"login":"apple","id":10639145,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEwNjM5MTQ1","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,"node_id":"MDEwOlJlcG9zaXRvcnk0NDgzODk0OQ==","name":"swift","full_name":"apple/swift","owner":{"login":"apple","id":10639145,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEwNjM5MTQ1","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-07-10T00:14:23Z","pushed_at":"2018-07-10T00:25:38Z","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":309089,"stargazers_count":44467,"watchers_count":44467,"language":"C++","has_issues":false,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":7016,"mirror_url":null,"archived":false,"open_issues_count":376,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":7016,"open_issues":376,"watchers":44467,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/apple/swift/pulls/16980"},"html":{"href":"https://github.com/apple/swift/pull/16980"},"issue":{"href":"https://api.github.com/repos/apple/swift/issues/16980"},"comments":{"href":"https://api.github.com/repos/apple/swift/issues/16980/comments"},"review_comments":{"href":"https://api.github.com/repos/apple/swift/pulls/16980/comments"},"review_comment":{"href":"https://api.github.com/repos/apple/swift/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apple/swift/pulls/16980/commits"},"statuses":{"href":"https://api.github.com/repos/apple/swift/statuses/0044ed25e08026bc852464c8ae468eae13e206ba"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"slavapestov"}}