796f8e6bce
This reverts commit 84334b08
12 lines
244 B
Kotlin
Vendored
12 lines
244 B
Kotlin
Vendored
public open class A() {
|
|
public open val foo: Int? = 1
|
|
}
|
|
|
|
infix fun Int.bar(i: Int) = i
|
|
|
|
fun test() {
|
|
val p = A()
|
|
// For open value properties, smart casts should not work
|
|
if (p.foo is Int) p.foo <!UNSAFE_INFIX_CALL!>bar<!> 11
|
|
}
|