Use proper KotlinType in get/set methods for property reference

This commit is contained in:
Dmitry Petrov
2018-08-20 15:11:33 +03:00
parent 6cd91e43bb
commit 7d4dfc87b1
10 changed files with 201 additions and 2 deletions
@@ -0,0 +1,12 @@
// !LANGUAGE: +InlineClasses
// IGNORE_BACKEND: JVM_IR
// WITH_RUNTIME
inline class Foo(val z: String)
var f = Foo("zzz")
fun box(): String {
(::f).set(Foo("OK"))
return (::f).get().z
}