Code inliner: keep main property if it can have side effects

So #KT-24165 Fixed
This commit is contained in:
Mikhail Glukhikh
2018-05-23 14:20:24 +03:00
parent 93a510c05b
commit f3c2dd0526
13 changed files with 204 additions and 12 deletions
@@ -0,0 +1,8 @@
// "Replace with 'FOO'" "true"
const val FOO = 1
@Deprecated("always const", ReplaceWith("FOO"))
fun foo() = 1
fun test(){
val x = foo<caret>()
}