{"action":"created","comment":{"url":"https://api.github.com/repos/JetBrains/kotlin/pulls/comments/84238088","pull_request_review_id":5026971,"id":84238088,"diff_hunk":"@@ -1,7 +1,6 @@\n fun foo() {\n-    val a: kotlin.test.Asserter?\n-    if (<caret>) {\n-        a = null\n+    val a = if (<caret>) {","path":"idea/testData/codeInsight/surroundWith/if/moveDeclarationsOut/val/fullQualifiedType.kt.after","position":5,"original_position":5,"commit_id":"4a378fc18a556b309b0735ac36991f5095887fd1","original_commit_id":"24499b0819223b45953eb6cfdeffa823d2425a32","user":{"login":"shiraji","id":3675458,"avatar_url":"https://avatars.githubusercontent.com/u/3675458?v=3","gravatar_id":"","url":"https://api.github.com/users/shiraji","html_url":"https://github.com/shiraji","followers_url":"https://api.github.com/users/shiraji/followers","following_url":"https://api.github.com/users/shiraji/following{/other_user}","gists_url":"https://api.github.com/users/shiraji/gists{/gist_id}","starred_url":"https://api.github.com/users/shiraji/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shiraji/subscriptions","organizations_url":"https://api.github.com/users/shiraji/orgs","repos_url":"https://api.github.com/users/shiraji/repos","events_url":"https://api.github.com/users/shiraji/events{/privacy}","received_events_url":"https://api.github.com/users/shiraji/received_events","type":"User","site_admin":false},"body":"Right. I think if there is type declaration, this intention should keep them.\r\n\r\n```kotlin\r\nval a: kotlin.test.Asserter? = if (<caret>) {\r\n    null\r\n}\r\n```\r\n\r\nshould be the expected result. I will work on that.","created_at":"2016-10-20T08:54:48Z","updated_at":"2016-10-20T08:54:48Z","html_url":"https://github.com/JetBrains/kotlin/pull/966#discussion_r84238088","pull_request_url":"https://api.github.com/repos/JetBrains/kotlin/pulls/966","_links":{"self":{"href":"https://api.github.com/repos/JetBrains/kotlin/pulls/comments/84238088"},"html":{"href":"https://github.com/JetBrains/kotlin/pull/966#discussion_r84238088"},"pull_request":{"href":"https://api.github.com/repos/JetBrains/kotlin/pulls/966"}}},"pull_request":{"url":"https://api.github.com/repos/JetBrains/kotlin/pulls/966","id":88574744,"html_url":"https://github.com/JetBrains/kotlin/pull/966","diff_url":"https://github.com/JetBrains/kotlin/pull/966.diff","patch_url":"https://github.com/JetBrains/kotlin/pull/966.patch","issue_url":"https://api.github.com/repos/JetBrains/kotlin/issues/966","number":966,"state":"open","locked":false,"title":"[WIP] KT-5435 Surround with try/catch should generate more Kotlin-style code","user":{"login":"shiraji","id":3675458,"avatar_url":"https://avatars.githubusercontent.com/u/3675458?v=3","gravatar_id":"","url":"https://api.github.com/users/shiraji","html_url":"https://github.com/shiraji","followers_url":"https://api.github.com/users/shiraji/followers","following_url":"https://api.github.com/users/shiraji/following{/other_user}","gists_url":"https://api.github.com/users/shiraji/gists{/gist_id}","starred_url":"https://api.github.com/users/shiraji/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shiraji/subscriptions","organizations_url":"https://api.github.com/users/shiraji/orgs","repos_url":"https://api.github.com/users/shiraji/repos","events_url":"https://api.github.com/users/shiraji/events{/privacy}","received_events_url":"https://api.github.com/users/shiraji/received_events","type":"User","site_admin":false},"body":" #KT-5435\r\n\r\nhttps://youtrack.jetbrains.com/issue/KT-5435","created_at":"2016-10-09T09:17:39Z","updated_at":"2016-10-20T08:54:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":"87d24070ba7032585d4dc29933643731ffbf8672","assignee":{"login":"yole","id":46553,"avatar_url":"https://avatars.githubusercontent.com/u/46553?v=3","gravatar_id":"","url":"https://api.github.com/users/yole","html_url":"https://github.com/yole","followers_url":"https://api.github.com/users/yole/followers","following_url":"https://api.github.com/users/yole/following{/other_user}","gists_url":"https://api.github.com/users/yole/gists{/gist_id}","starred_url":"https://api.github.com/users/yole/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yole/subscriptions","organizations_url":"https://api.github.com/users/yole/orgs","repos_url":"https://api.github.com/users/yole/repos","events_url":"https://api.github.com/users/yole/events{/privacy}","received_events_url":"https://api.github.com/users/yole/received_events","type":"User","site_admin":false},"assignees":[{"login":"yole","id":46553,"avatar_url":"https://avatars.githubusercontent.com/u/46553?v=3","gravatar_id":"","url":"https://api.github.com/users/yole","html_url":"https://github.com/yole","followers_url":"https://api.github.com/users/yole/followers","following_url":"https://api.github.com/users/yole/following{/other_user}","gists_url":"https://api.github.com/users/yole/gists{/gist_id}","starred_url":"https://api.github.com/users/yole/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yole/subscriptions","organizations_url":"https://api.github.com/users/yole/orgs","repos_url":"https://api.github.com/users/yole/repos","events_url":"https://api.github.com/users/yole/events{/privacy}","received_events_url":"https://api.github.com/users/yole/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/JetBrains/kotlin/pulls/966/commits","review_comments_url":"https://api.github.com/repos/JetBrains/kotlin/pulls/966/comments","review_comment_url":"https://api.github.com/repos/JetBrains/kotlin/pulls/comments{/number}","comments_url":"https://api.github.com/repos/JetBrains/kotlin/issues/966/comments","statuses_url":"https://api.github.com/repos/JetBrains/kotlin/statuses/4a378fc18a556b309b0735ac36991f5095887fd1","head":{"label":"shiraji:try_catch_generate_in_kotlin_style","ref":"try_catch_generate_in_kotlin_style","sha":"4a378fc18a556b309b0735ac36991f5095887fd1","user":{"login":"shiraji","id":3675458,"avatar_url":"https://avatars.githubusercontent.com/u/3675458?v=3","gravatar_id":"","url":"https://api.github.com/users/shiraji","html_url":"https://github.com/shiraji","followers_url":"https://api.github.com/users/shiraji/followers","following_url":"https://api.github.com/users/shiraji/following{/other_user}","gists_url":"https://api.github.com/users/shiraji/gists{/gist_id}","starred_url":"https://api.github.com/users/shiraji/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shiraji/subscriptions","organizations_url":"https://api.github.com/users/shiraji/orgs","repos_url":"https://api.github.com/users/shiraji/repos","events_url":"https://api.github.com/users/shiraji/events{/privacy}","received_events_url":"https://api.github.com/users/shiraji/received_events","type":"User","site_admin":false},"repo":{"id":62323288,"name":"kotlin","full_name":"shiraji/kotlin","owner":{"login":"shiraji","id":3675458,"avatar_url":"https://avatars.githubusercontent.com/u/3675458?v=3","gravatar_id":"","url":"https://api.github.com/users/shiraji","html_url":"https://github.com/shiraji","followers_url":"https://api.github.com/users/shiraji/followers","following_url":"https://api.github.com/users/shiraji/following{/other_user}","gists_url":"https://api.github.com/users/shiraji/gists{/gist_id}","starred_url":"https://api.github.com/users/shiraji/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shiraji/subscriptions","organizations_url":"https://api.github.com/users/shiraji/orgs","repos_url":"https://api.github.com/users/shiraji/repos","events_url":"https://api.github.com/users/shiraji/events{/privacy}","received_events_url":"https://api.github.com/users/shiraji/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/shiraji/kotlin","description":"The Kotlin Programming Language","fork":true,"url":"https://api.github.com/repos/shiraji/kotlin","forks_url":"https://api.github.com/repos/shiraji/kotlin/forks","keys_url":"https://api.github.com/repos/shiraji/kotlin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/shiraji/kotlin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/shiraji/kotlin/teams","hooks_url":"https://api.github.com/repos/shiraji/kotlin/hooks","issue_events_url":"https://api.github.com/repos/shiraji/kotlin/issues/events{/number}","events_url":"https://api.github.com/repos/shiraji/kotlin/events","assignees_url":"https://api.github.com/repos/shiraji/kotlin/assignees{/user}","branches_url":"https://api.github.com/repos/shiraji/kotlin/branches{/branch}","tags_url":"https://api.github.com/repos/shiraji/kotlin/tags","blobs_url":"https://api.github.com/repos/shiraji/kotlin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/shiraji/kotlin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/shiraji/kotlin/git/refs{/sha}","trees_url":"https://api.github.com/repos/shiraji/kotlin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/shiraji/kotlin/statuses/{sha}","languages_url":"https://api.github.com/repos/shiraji/kotlin/languages","stargazers_url":"https://api.github.com/repos/shiraji/kotlin/stargazers","contributors_url":"https://api.github.com/repos/shiraji/kotlin/contributors","subscribers_url":"https://api.github.com/repos/shiraji/kotlin/subscribers","subscription_url":"https://api.github.com/repos/shiraji/kotlin/subscription","commits_url":"https://api.github.com/repos/shiraji/kotlin/commits{/sha}","git_commits_url":"https://api.github.com/repos/shiraji/kotlin/git/commits{/sha}","comments_url":"https://api.github.com/repos/shiraji/kotlin/comments{/number}","issue_comment_url":"https://api.github.com/repos/shiraji/kotlin/issues/comments{/number}","contents_url":"https://api.github.com/repos/shiraji/kotlin/contents/{+path}","compare_url":"https://api.github.com/repos/shiraji/kotlin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/shiraji/kotlin/merges","archive_url":"https://api.github.com/repos/shiraji/kotlin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/shiraji/kotlin/downloads","issues_url":"https://api.github.com/repos/shiraji/kotlin/issues{/number}","pulls_url":"https://api.github.com/repos/shiraji/kotlin/pulls{/number}","milestones_url":"https://api.github.com/repos/shiraji/kotlin/milestones{/number}","notifications_url":"https://api.github.com/repos/shiraji/kotlin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/shiraji/kotlin/labels{/name}","releases_url":"https://api.github.com/repos/shiraji/kotlin/releases{/id}","deployments_url":"https://api.github.com/repos/shiraji/kotlin/deployments","created_at":"2016-06-30T15:44:52Z","updated_at":"2016-06-30T15:45:35Z","pushed_at":"2016-10-20T04:55:28Z","git_url":"git://github.com/shiraji/kotlin.git","ssh_url":"git@github.com:shiraji/kotlin.git","clone_url":"https://github.com/shiraji/kotlin.git","svn_url":"https://github.com/shiraji/kotlin","homepage":"http://kotlinlang.org/","size":335307,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"JetBrains:master","ref":"master","sha":"b5d81d8e3152b4fce26f7a499fb66ff379a56b8d","user":{"login":"JetBrains","id":878437,"avatar_url":"https://avatars.githubusercontent.com/u/878437?v=3","gravatar_id":"","url":"https://api.github.com/users/JetBrains","html_url":"https://github.com/JetBrains","followers_url":"https://api.github.com/users/JetBrains/followers","following_url":"https://api.github.com/users/JetBrains/following{/other_user}","gists_url":"https://api.github.com/users/JetBrains/gists{/gist_id}","starred_url":"https://api.github.com/users/JetBrains/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JetBrains/subscriptions","organizations_url":"https://api.github.com/users/JetBrains/orgs","repos_url":"https://api.github.com/users/JetBrains/repos","events_url":"https://api.github.com/users/JetBrains/events{/privacy}","received_events_url":"https://api.github.com/users/JetBrains/received_events","type":"Organization","site_admin":false},"repo":{"id":3432266,"name":"kotlin","full_name":"JetBrains/kotlin","owner":{"login":"JetBrains","id":878437,"avatar_url":"https://avatars.githubusercontent.com/u/878437?v=3","gravatar_id":"","url":"https://api.github.com/users/JetBrains","html_url":"https://github.com/JetBrains","followers_url":"https://api.github.com/users/JetBrains/followers","following_url":"https://api.github.com/users/JetBrains/following{/other_user}","gists_url":"https://api.github.com/users/JetBrains/gists{/gist_id}","starred_url":"https://api.github.com/users/JetBrains/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JetBrains/subscriptions","organizations_url":"https://api.github.com/users/JetBrains/orgs","repos_url":"https://api.github.com/users/JetBrains/repos","events_url":"https://api.github.com/users/JetBrains/events{/privacy}","received_events_url":"https://api.github.com/users/JetBrains/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/JetBrains/kotlin","description":"The Kotlin Programming Language","fork":false,"url":"https://api.github.com/repos/JetBrains/kotlin","forks_url":"https://api.github.com/repos/JetBrains/kotlin/forks","keys_url":"https://api.github.com/repos/JetBrains/kotlin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/JetBrains/kotlin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/JetBrains/kotlin/teams","hooks_url":"https://api.github.com/repos/JetBrains/kotlin/hooks","issue_events_url":"https://api.github.com/repos/JetBrains/kotlin/issues/events{/number}","events_url":"https://api.github.com/repos/JetBrains/kotlin/events","assignees_url":"https://api.github.com/repos/JetBrains/kotlin/assignees{/user}","branches_url":"https://api.github.com/repos/JetBrains/kotlin/branches{/branch}","tags_url":"https://api.github.com/repos/JetBrains/kotlin/tags","blobs_url":"https://api.github.com/repos/JetBrains/kotlin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/JetBrains/kotlin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/JetBrains/kotlin/git/refs{/sha}","trees_url":"https://api.github.com/repos/JetBrains/kotlin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/JetBrains/kotlin/statuses/{sha}","languages_url":"https://api.github.com/repos/JetBrains/kotlin/languages","stargazers_url":"https://api.github.com/repos/JetBrains/kotlin/stargazers","contributors_url":"https://api.github.com/repos/JetBrains/kotlin/contributors","subscribers_url":"https://api.github.com/repos/JetBrains/kotlin/subscribers","subscription_url":"https://api.github.com/repos/JetBrains/kotlin/subscription","commits_url":"https://api.github.com/repos/JetBrains/kotlin/commits{/sha}","git_commits_url":"https://api.github.com/repos/JetBrains/kotlin/git/commits{/sha}","comments_url":"https://api.github.com/repos/JetBrains/kotlin/comments{/number}","issue_comment_url":"https://api.github.com/repos/JetBrains/kotlin/issues/comments{/number}","contents_url":"https://api.github.com/repos/JetBrains/kotlin/contents/{+path}","compare_url":"https://api.github.com/repos/JetBrains/kotlin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/JetBrains/kotlin/merges","archive_url":"https://api.github.com/repos/JetBrains/kotlin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/JetBrains/kotlin/downloads","issues_url":"https://api.github.com/repos/JetBrains/kotlin/issues{/number}","pulls_url":"https://api.github.com/repos/JetBrains/kotlin/pulls{/number}","milestones_url":"https://api.github.com/repos/JetBrains/kotlin/milestones{/number}","notifications_url":"https://api.github.com/repos/JetBrains/kotlin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/JetBrains/kotlin/labels{/name}","releases_url":"https://api.github.com/repos/JetBrains/kotlin/releases{/id}","deployments_url":"https://api.github.com/repos/JetBrains/kotlin/deployments","created_at":"2012-02-13T17:29:58Z","updated_at":"2016-10-20T07:31:15Z","pushed_at":"2016-10-20T08:50:35Z","git_url":"git://github.com/JetBrains/kotlin.git","ssh_url":"git@github.com:JetBrains/kotlin.git","clone_url":"https://github.com/JetBrains/kotlin.git","svn_url":"https://github.com/JetBrains/kotlin","homepage":"http://kotlinlang.org/","size":676518,"stargazers_count":6158,"watchers_count":6158,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":669,"mirror_url":null,"open_issues_count":20,"forks":669,"open_issues":20,"watchers":6158,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/JetBrains/kotlin/pulls/966"},"html":{"href":"https://github.com/JetBrains/kotlin/pull/966"},"issue":{"href":"https://api.github.com/repos/JetBrains/kotlin/issues/966"},"comments":{"href":"https://api.github.com/repos/JetBrains/kotlin/issues/966/comments"},"review_comments":{"href":"https://api.github.com/repos/JetBrains/kotlin/pulls/966/comments"},"review_comment":{"href":"https://api.github.com/repos/JetBrains/kotlin/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/JetBrains/kotlin/pulls/966/commits"},"statuses":{"href":"https://api.github.com/repos/JetBrains/kotlin/statuses/4a378fc18a556b309b0735ac36991f5095887fd1"}}}}
{"actor":{"display_login":"shiraji"}}