{"action":"created","issue":{"url":"https://api.github.com/repos/lampepfl/dotty/issues/1424","repository_url":"https://api.github.com/repos/lampepfl/dotty","labels_url":"https://api.github.com/repos/lampepfl/dotty/issues/1424/labels{/name}","comments_url":"https://api.github.com/repos/lampepfl/dotty/issues/1424/comments","events_url":"https://api.github.com/repos/lampepfl/dotty/issues/1424/events","html_url":"https://github.com/lampepfl/dotty/issues/1424","id":168180257,"number":1424,"title":"parser incorrectly reports self type error for lambda in template","user":{"login":"retronym","id":65551,"avatar_url":"https://avatars.githubusercontent.com/u/65551?v=3","gravatar_id":"","url":"https://api.github.com/users/retronym","html_url":"https://github.com/retronym","followers_url":"https://api.github.com/users/retronym/followers","following_url":"https://api.github.com/users/retronym/following{/other_user}","gists_url":"https://api.github.com/users/retronym/gists{/gist_id}","starred_url":"https://api.github.com/users/retronym/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/retronym/subscriptions","organizations_url":"https://api.github.com/users/retronym/orgs","repos_url":"https://api.github.com/users/retronym/repos","events_url":"https://api.github.com/users/retronym/events{/privacy}","received_events_url":"https://api.github.com/users/retronym/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2016-07-28T19:46:03Z","updated_at":"2016-07-31T19:00:00Z","closed_at":null,"body":"```\r\nclass Test {\r\n  (x: Int) => x\r\n}\r\n\r\n```\r\n\r\n```\r\nsandbox/test.scala:2: error: not a legal self type clause (class dotty.tools.dotc.ast.untpd$Parens)\r\n  (x: Int) => x\r\n  ^\r\nsandbox/test.scala:2: error: package x is not a value\r\n  (x: Int) => x\r\n   ^\r\nsandbox/test.scala:2: error: package x is not a value\r\n  (x: Int) => x\r\n              ^\r\nthree errors found\r\n```"},"comment":{"url":"https://api.github.com/repos/lampepfl/dotty/issues/comments/236449912","html_url":"https://github.com/lampepfl/dotty/issues/1424#issuecomment-236449912","issue_url":"https://api.github.com/repos/lampepfl/dotty/issues/1424","id":236449912,"user":{"login":"odersky","id":795990,"avatar_url":"https://avatars.githubusercontent.com/u/795990?v=3","gravatar_id":"","url":"https://api.github.com/users/odersky","html_url":"https://github.com/odersky","followers_url":"https://api.github.com/users/odersky/followers","following_url":"https://api.github.com/users/odersky/following{/other_user}","gists_url":"https://api.github.com/users/odersky/gists{/gist_id}","starred_url":"https://api.github.com/users/odersky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/odersky/subscriptions","organizations_url":"https://api.github.com/users/odersky/orgs","repos_url":"https://api.github.com/users/odersky/repos","events_url":"https://api.github.com/users/odersky/events{/privacy}","received_events_url":"https://api.github.com/users/odersky/received_events","type":"User","site_admin":false},"created_at":"2016-07-31T18:59:59Z","updated_at":"2016-07-31T18:59:59Z","body":"Except for:\r\n\r\n    scala> x => println(1)\r\n    <console>:1: error: ';' expected but '=>' found.\r\n    x => println(1)\r\n      ^\r\n\r\nSo it seems the REPL has to special case closures in any case. "}}
{"actor":{"display_login":"odersky"}}