mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
Drop deprecated pre-1.0 API. Remove remaining usages in tests.
This commit is contained in:
@@ -46,8 +46,8 @@ fun box(): String {
|
||||
assert(a.s == "def") { "Fail js access" }
|
||||
|
||||
// Check that valid Kotlin reflection objects are created by those Field objects
|
||||
val ki = ji.kotlin as KProperty1<J, Int>
|
||||
val ks = js.kotlin as KMutableProperty1<J, String>
|
||||
val ki = ji.kotlinProperty as KProperty1<J, Int>
|
||||
val ks = js.kotlinProperty as KMutableProperty1<J, String>
|
||||
assert(ki.get(a) == 42) { "Fail ki get" }
|
||||
assert(ks.get(a) == "def") { "Fail ks get" }
|
||||
ks.set(a, "ghi")
|
||||
|
||||
Reference in New Issue
Block a user