{"action":"opened","issue":{"url":"https://api.github.com/repos/Baratynskiy/kotlin-netbeans/issues/53","repository_url":"https://api.github.com/repos/Baratynskiy/kotlin-netbeans","labels_url":"https://api.github.com/repos/Baratynskiy/kotlin-netbeans/issues/53/labels{/name}","comments_url":"https://api.github.com/repos/Baratynskiy/kotlin-netbeans/issues/53/comments","events_url":"https://api.github.com/repos/Baratynskiy/kotlin-netbeans/issues/53/events","html_url":"https://github.com/Baratynskiy/kotlin-netbeans/issues/53","id":169617951,"number":53,"title":"Completion should create braces instead of brackets when function has only lambda parameter","user":{"login":"mglukhikh","id":1127631,"avatar_url":"https://avatars.githubusercontent.com/u/1127631?v=3","gravatar_id":"","url":"https://api.github.com/users/mglukhikh","html_url":"https://github.com/mglukhikh","followers_url":"https://api.github.com/users/mglukhikh/followers","following_url":"https://api.github.com/users/mglukhikh/following{/other_user}","gists_url":"https://api.github.com/users/mglukhikh/gists{/gist_id}","starred_url":"https://api.github.com/users/mglukhikh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mglukhikh/subscriptions","organizations_url":"https://api.github.com/users/mglukhikh/orgs","repos_url":"https://api.github.com/users/mglukhikh/repos","events_url":"https://api.github.com/users/mglukhikh/events{/privacy}","received_events_url":"https://api.github.com/users/mglukhikh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-05T14:19:49Z","updated_at":"2016-08-05T14:19:49Z","closed_at":null,"body":"Example:\r\n\r\n```\r\nfun minDivisor(n: Int): Int = (2..n).firs<caret>\r\n```\r\n\r\nHere we press Ctrl+Space, select `first(predicate: (Int) -> Boolean)` and press Enter. After it we get\r\n\r\n```\r\nfun minDivisor(n: Int): Int = (2..n).first(predicate)\r\n```\r\n\r\nExpected instead:\r\n\r\n```\r\nfun minDivisor(n: Int): Int = (2..n).first { }\r\n// To write something like n % it == 0 inside braces\r\n```\r\n"}}
{"actor":{"display_login":"mglukhikh"}}