From 2b6775ebbfc5230909154fc577ffb7cd36e79847 Mon Sep 17 00:00:00 2001 From: Marc Rousavy Date: Mon, 16 Sep 2024 14:36:24 +0200 Subject: [PATCH] fix: Return `local_ref` always --- packages/nitrogen/src/syntax/kotlin/FbjniHybridObject.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nitrogen/src/syntax/kotlin/FbjniHybridObject.ts b/packages/nitrogen/src/syntax/kotlin/FbjniHybridObject.ts index c40c36c9..9a6dbc96 100644 --- a/packages/nitrogen/src/syntax/kotlin/FbjniHybridObject.ts +++ b/packages/nitrogen/src/syntax/kotlin/FbjniHybridObject.ts @@ -168,7 +168,7 @@ function getFbjniMethodForwardImplementation( const returnJNI = new KotlinCxxBridgedType(method.returnType) - const returnType = returnJNI.asJniReferenceType('alias') + const returnType = returnJNI.asJniReferenceType('local') const paramsTypes = method.parameters .map((p) => { const bridge = new KotlinCxxBridgedType(p.type)