Fix detection of erased this for inline class

This commit is contained in:
Mikhail Zarechenskiy
2018-02-07 16:11:33 +03:00
parent b361d0e9c0
commit ce601bebbe
8 changed files with 57 additions and 22 deletions
@@ -0,0 +1,17 @@
// !LANGUAGE: +InlineClasses
inline class Props(val intArray: IntArray) {
val size get() = intArray.size
fun foo(): Int {
val a = size
return a
}
}
fun box(): String {
val f = Props(intArrayOf(1, 2, 3))
if (f.foo() != 3) return "fail"
return "OK"
}