[Wasm] Fixed invalid delegated property getters lowering

#Fixed KT-58941
This commit is contained in:
Igor Yakovlev
2023-07-24 15:28:37 +02:00
committed by Space Team
parent 488d24296a
commit e8e8a26cd1
5 changed files with 4 additions and 8 deletions
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: WASM
import kotlin.reflect.KProperty
class Delegate {
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: WASM
inline operator fun Double.provideDelegate(thisRef: Any?, kProp: Any?) = this.toLong()
inline operator fun Long.getValue(thisRef: Any?, kProp: Any?) = this.toInt()
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: WASM
// WITH_STDLIB
object Host {
@@ -1,5 +1,4 @@
// !LANGUAGE: -ForbidUsingExtensionPropertyTypeParameterInDelegate
// IGNORE_BACKEND: WASM
// SKIP_MANGLE_VERIFICATION
//For KT-6020
// KT-24643: language version in K2 is >= 1.8