{"comment":{"url":"https://api.github.com/repos/JetBrains/kotlin/comments/9819914","html_url":"https://github.com/JetBrains/kotlin/commit/53beee8773a530fa2fc12958007d098f17900ceb#commitcomment-9819914","id":9819914,"user":{"login":"MichaelNedzelsky","id":4004176,"avatar_url":"https://avatars.githubusercontent.com/u/4004176?v=3","gravatar_id":"","url":"https://api.github.com/users/MichaelNedzelsky","html_url":"https://github.com/MichaelNedzelsky","followers_url":"https://api.github.com/users/MichaelNedzelsky/followers","following_url":"https://api.github.com/users/MichaelNedzelsky/following{/other_user}","gists_url":"https://api.github.com/users/MichaelNedzelsky/gists{/gist_id}","starred_url":"https://api.github.com/users/MichaelNedzelsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MichaelNedzelsky/subscriptions","organizations_url":"https://api.github.com/users/MichaelNedzelsky/orgs","repos_url":"https://api.github.com/users/MichaelNedzelsky/repos","events_url":"https://api.github.com/users/MichaelNedzelsky/events{/privacy}","received_events_url":"https://api.github.com/users/MichaelNedzelsky/received_events","type":"User","site_admin":false},"position":null,"line":null,"path":"","commit_id":"53beee8773a530fa2fc12958007d098f17900ceb","created_at":"2015-02-19T12:38:11Z","updated_at":"2015-02-19T12:38:11Z","body":"@udalov \r\nAbout example: using master branch, add\r\n`val a = 10`\r\nto `compiler/testData/serialization/builtinsSerializer/compileTimeConstants.kt`\r\nand run `BuiltinsSerializerTest.testCompileTimeConstants`: the compile time constant 10 will be lost.\r\n\r\nRegarding forcing computation of return type: it will be forced in `local.type(...)` after invoking `type.getConstructor()`.\r\nRegarding code inside `VariableDescriptorImpl.getCompileTimeInitializer`: if `outType` is instance of `DeferredType`, it is possible to call `outType.getDelegate()`, but `DeferredType` belongs to frontend module.\r\nOne possible solution is to change visibility of `DelegatingType.getDelegate()` from `protected` to `public`.\r\n"}}