Properly cast right-hand side value for inline property setter
#KT-22649 Fixed
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
// FILE: 1.kt
|
||||
var result = ""
|
||||
|
||||
inline var apx:Int
|
||||
get() = 0
|
||||
set(value) { result = if (value == 1) "OK" else "fail" }
|
||||
|
||||
|
||||
// FILE: 2.kt
|
||||
fun test(s: Int?) {
|
||||
apx = s!!
|
||||
}
|
||||
|
||||
fun box() : String {
|
||||
test(1)
|
||||
return result
|
||||
}
|
||||
Reference in New Issue
Block a user