{"action":"opened","issue":{"url":"https://api.github.com/repos/lampepfl/dotty/issues/1225","repository_url":"https://api.github.com/repos/lampepfl/dotty","labels_url":"https://api.github.com/repos/lampepfl/dotty/issues/1225/labels{/name}","comments_url":"https://api.github.com/repos/lampepfl/dotty/issues/1225/comments","events_url":"https://api.github.com/repos/lampepfl/dotty/issues/1225/events","html_url":"https://github.com/lampepfl/dotty/issues/1225","id":149181465,"number":1225,"title":"@static lazy val generates invalid bytecode","user":{"login":"lrytz","id":119636,"avatar_url":"https://avatars.githubusercontent.com/u/119636?v=3","gravatar_id":"","url":"https://api.github.com/users/lrytz","html_url":"https://github.com/lrytz","followers_url":"https://api.github.com/users/lrytz/followers","following_url":"https://api.github.com/users/lrytz/following{/other_user}","gists_url":"https://api.github.com/users/lrytz/gists{/gist_id}","starred_url":"https://api.github.com/users/lrytz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lrytz/subscriptions","organizations_url":"https://api.github.com/users/lrytz/orgs","repos_url":"https://api.github.com/users/lrytz/repos","events_url":"https://api.github.com/users/lrytz/events{/privacy}","received_events_url":"https://api.github.com/users/lrytz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-18T15:16:54Z","updated_at":"2016-04-18T15:16:54Z","closed_at":null,"body":"```scala\r\nimport annotation.static\r\nclass T\r\nobject T {\r\n  @static lazy val x = \"hi\"\r\n  def main(args: Array[String]): Unit = {\r\n    println(x)\r\n  }\r\n}\r\n```\r\n\r\ngives\r\n\r\n```\r\njava.lang.VerifyError: Bad local variable type\r\nException Details:\r\n  Location:\r\n    T$.x()Ljava/lang/String; @0: aload_0\r\n  Reason:\r\n    Type top (current frame, locals[0]) is not assignable to reference type\r\n  Current Frame:\r\n    bci: @0\r\n    flags: { }\r\n    locals: { }\r\n    stack: { }\r\n  Bytecode:\r\n    0x0000000: 2ab4 0018 9a00 06a7 000a 2ab4 001a a700\r\n    0x0000010: 122a 04b5 0018 2a12 1cb5 001a 2ab4 001a\r\n    0x0000020: b0\r\n  Stackmap Table:\r\n    same_frame(@10)\r\n    same_frame(@17)\r\n    same_locals_1_stack_item_frame(@32,Object[#30])\r\n\r\n\tat T.main(Test.scala)\r\n```"}}