Add KotlinType info about this inside inline class

This commit is contained in:
Mikhail Zarechenskiy
2018-02-08 14:18:17 +03:00
parent c86d3e354b
commit 22b9c25dd0
9 changed files with 81 additions and 2 deletions
@@ -0,0 +1,21 @@
// !LANGUAGE: +InlineClasses
inline class UInt(val a: Int) {
fun test() {
takeNullable(this)
takeAnyInside(this)
takeAnyInside(this.a)
}
fun takeAnyInside(a: Any) {}
}
fun takeNullable(a: UInt?) {}
fun box(): String {
val a = UInt(0)
a.test()
return "OK"
}