diff --git a/feature_tests/kotlin/somelib/src/main/kotlin/dev/diplomattest/somelib/TesterTrait.kt b/feature_tests/kotlin/somelib/src/main/kotlin/dev/diplomattest/somelib/TesterTrait.kt index fbe10c473..cd8ff0ea1 100644 --- a/feature_tests/kotlin/somelib/src/main/kotlin/dev/diplomattest/somelib/TesterTrait.kt +++ b/feature_tests/kotlin/somelib/src/main/kotlin/dev/diplomattest/somelib/TesterTrait.kt @@ -109,7 +109,7 @@ internal class DiplomatTrait_TesterTrait_Wrapper internal constructor ( vtable.run_testStructTraitFn_callback = testStructTraitFn; val native_wrapper = DiplomatTrait_TesterTrait_Wrapper_Native(); native_wrapper.vtable = vtable; - native_wrapper.data_ = DiplomatJVMRuntime.buildRustCookie(vtable as Object); + native_wrapper.data_ = DiplomatJVMRuntime.buildRustCookie(native_wrapper as Object); return DiplomatTrait_TesterTrait_Wrapper(native_wrapper); } } diff --git a/tool/src/kotlin/snapshots/diplomat_tool__kotlin__test__trait_gen.snap b/tool/src/kotlin/snapshots/diplomat_tool__kotlin__test__trait_gen.snap index 7a052aacf..492eb18fd 100644 --- a/tool/src/kotlin/snapshots/diplomat_tool__kotlin__test__trait_gen.snap +++ b/tool/src/kotlin/snapshots/diplomat_tool__kotlin__test__trait_gen.snap @@ -165,7 +165,7 @@ internal class DiplomatTrait_TesterTrait_Wrapper internal constructor ( vtable.run_testEnumReturn_callback = testEnumReturn; val native_wrapper = DiplomatTrait_TesterTrait_Wrapper_Native(); native_wrapper.vtable = vtable; - native_wrapper.data_ = DiplomatJVMRuntime.buildRustCookie(vtable as Object); + native_wrapper.data_ = DiplomatJVMRuntime.buildRustCookie(native_wrapper as Object); return DiplomatTrait_TesterTrait_Wrapper(native_wrapper); } }