{"action":"created","issue":{"url":"https://api.github.com/repos/lampepfl/dotty/issues/628","labels_url":"https://api.github.com/repos/lampepfl/dotty/issues/628/labels{/name}","comments_url":"https://api.github.com/repos/lampepfl/dotty/issues/628/comments","events_url":"https://api.github.com/repos/lampepfl/dotty/issues/628/events","html_url":"https://github.com/lampepfl/dotty/pull/628","id":83480221,"number":628,"title":"Fix/initializer deadlocks","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},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-06-01T13:00:14Z","updated_at":"2015-06-01T13:28:45Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/lampepfl/dotty/pulls/628","html_url":"https://github.com/lampepfl/dotty/pull/628","diff_url":"https://github.com/lampepfl/dotty/pull/628.diff","patch_url":"https://github.com/lampepfl/dotty/pull/628.patch"},"body":"Fixes all observed deadlocks by moving lambdas to static scope only if we must do so (because they are in a super constructor). Review by @DarkDimius "},"comment":{"url":"https://api.github.com/repos/lampepfl/dotty/issues/comments/107465691","html_url":"https://github.com/lampepfl/dotty/pull/628#issuecomment-107465691","issue_url":"https://api.github.com/repos/lampepfl/dotty/issues/628","id":107465691,"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":"2015-06-01T13:28:45Z","updated_at":"2015-06-01T13:28:45Z","body":"@darkdimius I am not super current on this one and am very time\nconstrained. Can you try to do a PR for me to review?\n\nOn Mon, Jun 1, 2015 at 3:07 PM, Dmitry Petrashko <notifications@github.com>\nwrote:\n\n> @odersky <https://github.com/odersky> can you please try this test:\n>\n> class A(a: =>Object)\n> object foo extends A({\n>   object bar extends A(\n>     {val s = (1 to 10).map(x => if (x % 2 == 0) bar else foo)\n>      s\n>     })\n>     val s = bar\n>     s\n>   });\n>\n> In scalac, it would fail due to\n> https://issues.scala-lang.org/browse/SI-7666 but this is valid code,\n> broken by 3d240ad\n> <https://github.com/lampepfl/dotty/commit/3d240ad40ccfb570174ec9758bfe68ba4e91eefb>\n> .\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/lampepfl/dotty/pull/628#issuecomment-107442745>.\n>\n\n\n\n-- \nMartin Odersky\nEPFL\n"}}