Fix backend issue related to JvmStatic val with accessor

Do not treat accessors to JvmStatic properties as having dispatch receiver

 #KT-11585 Fixed
This commit is contained in:
Denis Zharkov
2016-10-04 16:46:38 +03:00
parent 543cf7b265
commit 194853b5c2
5 changed files with 75 additions and 2 deletions
@@ -0,0 +1,15 @@
// WITH_RUNTIME
var result = "fail 1"
object Foo {
@JvmStatic
private val a = "OK"
fun foo() = run { result = a }
}
fun box(): String {
Foo.foo()
return result
}