KT-43196 member extension property can't be "primary" in inline class

This commit is contained in:
Dmitry Petrov
2020-11-16 11:30:37 +03:00
parent b6f958f856
commit 93f868fb96
5 changed files with 89 additions and 1 deletions
@@ -0,0 +1,15 @@
inline class Z1(val s: Int) {
val String.ext: Int get() = 239
}
inline class Z2(val s: Int) {
val String.s: Int get() = 239
}
interface StrS {
val String.s: Int
}
inline class Z3(val s: Int) : StrS {
override val String.s: Int get() = 239
}