Don't skip receiver with side effects on static calls
#KT-6278 Fixed
This commit is contained in:
@@ -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()
|
||||
}
|
||||
Reference in New Issue
Block a user