Don't skip receiver with side effects on static calls

#KT-6278 Fixed
This commit is contained in:
Michael Bogdanov
2014-11-18 15:35:06 +03:00
parent 5a8944085a
commit ec649e83c3
8 changed files with 200 additions and 45 deletions
@@ -0,0 +1,18 @@
import kotlin.platform.platformStatic
var holder = ""
fun getA(): A {
holder += "OK"
return A
}
object A {
platformStatic fun a(): String {
return holder
}
}
fun box(): String {
return getA().a()
}