{"action":"opened","issue":{"url":"https://api.github.com/repos/ceylon/ceylon-compiler/issues/2194","labels_url":"https://api.github.com/repos/ceylon/ceylon-compiler/issues/2194/labels{/name}","comments_url":"https://api.github.com/repos/ceylon/ceylon-compiler/issues/2194/comments","events_url":"https://api.github.com/repos/ceylon/ceylon-compiler/issues/2194/events","html_url":"https://github.com/ceylon/ceylon-compiler/issues/2194","id":86992944,"number":2194,"title":"issues with non-captured `late` value initialization","user":{"login":"jvasileff","id":236050,"avatar_url":"https://avatars.githubusercontent.com/u/236050?v=3","gravatar_id":"","url":"https://api.github.com/users/jvasileff","html_url":"https://github.com/jvasileff","followers_url":"https://api.github.com/users/jvasileff/followers","following_url":"https://api.github.com/users/jvasileff/following{/other_user}","gists_url":"https://api.github.com/users/jvasileff/gists{/gist_id}","starred_url":"https://api.github.com/users/jvasileff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jvasileff/subscriptions","organizations_url":"https://api.github.com/users/jvasileff/orgs","repos_url":"https://api.github.com/users/jvasileff/repos","events_url":"https://api.github.com/users/jvasileff/events{/privacy}","received_events_url":"https://api.github.com/users/jvasileff/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-10T14:40:55Z","updated_at":"2015-06-10T14:40:55Z","closed_at":null,"body":"Non-captured `late` references may not make sense, but these appear to be bugs nevertheless:\r\n\r\n1. No `InitializationError` on second initialization. And this actually runs, despite the generated Java code declaring `s` `final`:\r\n\r\n```ceylon\r\nshared class TC() {\r\n  late String s;\r\n  s = \"s\";\r\n  s = \"t\";\r\n  print(s);\r\n}\r\n```\r\n\r\n2. The following fails in eclipse with `Exception in thread \"main\" java.lang.VerifyError: Bad local variable type` but I wasn't able to reproduce using the CLI:\r\n\r\n```ceylon\r\nshared class TC() {\r\n  late String s;\r\n  for (_ in 1..1) {\r\n    s = \"s\";\r\n  }\r\n  print(s);\r\n}\r\n```"}}