From 7cf793f3088c75dc543ff70645d132423ccddc7b Mon Sep 17 00:00:00 2001 From: Igor Yakovlev Date: Thu, 25 Jan 2024 20:07:20 +0100 Subject: [PATCH] [Wasm] Add bootstrap declarations --- .../src/kotlin/reflect/associatedObjectsImpl.kt | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/libraries/stdlib/wasm/src/kotlin/reflect/associatedObjectsImpl.kt b/libraries/stdlib/wasm/src/kotlin/reflect/associatedObjectsImpl.kt index 17a7aaae189..ded8af2c4ea 100644 --- a/libraries/stdlib/wasm/src/kotlin/reflect/associatedObjectsImpl.kt +++ b/libraries/stdlib/wasm/src/kotlin/reflect/associatedObjectsImpl.kt @@ -23,4 +23,16 @@ internal fun tryGetAssociatedObject( // if (C2.klassId == klassId) if (Key2.klassId == keyId) return OBJ2 // ... return null -} \ No newline at end of file +} + +// Remove after bootstrap KT-65322 +@Suppress("UNUSED_PARAMETER") +internal fun addAssociatedObject( + mapToInit: MutableMap, + klassId: Int, + keyId: Int, + instance: Any +): Unit = error("Remove after bootstrap") + +// Remove after bootstrap KT-65322 +internal fun initAssociatedObjects(): Unit = error("Remove after bootstrap") \ No newline at end of file